:root {
      --bg: #f3f4f6;
      --surface: #ffffff;
      --surface-subtle: #f1f3f6;
      --text: #111827;
      --text-muted: #6b7280;
      --border: #e5e7eb;
      --accent: #2563eb;
      --accent-soft: #eff6ff;
      --radius-lg: 16px;
      --radius-md: 12px;
      --radius-sm: 8px;
      --header-h: 56px;
      --theme-panel-w: minmax(300px, 33.333vw);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      background-color: var(--bg);
      color: var(--text);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }
    a { text-decoration: none; color: inherit; }

    /* 상단 헤더 */
    .topbar {
      background: rgba(255, 255, 255, 0.96);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 600;
      height: var(--header-h);
    }
    .topbar-inner {
      max-width: 1360px;
      margin: 0 auto;
      padding: 0 18px;
      height: 100%;
      display: grid;
      grid-template-columns: 150px 1fr auto;
      align-items: center;
      gap: 14px;
    }
    body.theme-full-mode .topbar-inner,
    body.place-detail-mode .topbar-inner {
      max-width: none;
    }

    .logo {
      font-size: 1.18rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--text);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
    }
    .logo-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--accent);
    }

    .header-search-wrap {
      display: flex;
      justify-content: center;
    }
    .header-search {
      width: 100%;
      max-width: 400px;
      height: 36px;
      display: flex;
      align-items: center;
      background: var(--surface-subtle);
      border: 1px solid transparent;
      border-radius: 10px;
      padding: 0 10px 0 14px;
      transition: all 0.18s ease;
    }
    .header-search:focus-within {
      background: var(--surface);
      border-color: var(--accent);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }
    .header-search input {
      flex: 1;
      border: none;
      background: transparent;
      font-size: 0.85rem;
      color: var(--text);
      outline: none;
      min-width: 0;
    }
    .header-search button {
      background: transparent;
      border: none;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      padding: 4px;
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .nav-btn {
      height: 34px;
      padding: 0 12px;
      border-radius: var(--radius-sm);
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      font-size: 0.8rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      white-space: nowrap;
      transition: background 0.15s ease, border-color 0.15s ease;
    }
    .nav-btn:hover {
      background: var(--surface-subtle);
      border-color: #d1d5db;
    }
    .nav-btn-primary {
      background: var(--text);
      color: var(--surface);
      border-color: var(--text);
    }
    .nav-btn-primary:hover {
      background: #1f2937;
      border-color: #1f2937;
    }
    .icon-only-btn {
      width: 34px;
      height: 34px;
      padding: 0;
      justify-content: center;
    }
    .mobile-search-toggle { display: none; }

    .mobile-search-drawer {
      display: none;
      background: var(--surface);
      padding: 10px 18px;
      border-top: 1px solid var(--border);
    }
    .mobile-search-drawer.open { display: block; }
    .mobile-search-drawer form { display: flex; gap: 8px; }
    .mobile-search-drawer input {
      flex: 1;
      height: 36px;
      padding: 0 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 0.88rem;
      outline: none;
    }
    .mobile-search-drawer button {
      padding: 0 16px;
      background: var(--text);
      color: var(--surface);
      border: none;
      border-radius: var(--radius-sm);
      font-size: 0.84rem;
      font-weight: 600;
      cursor: pointer;
    }

    /* 기본 홈 / 검색 2단 레이아웃 */
    .layout-grid {
      max-width: 1360px;
      margin: 0 auto;
      padding: 24px 20px 64px;
      display: grid;
      grid-template-columns: minmax(0, 1fr) 410px;
      gap: 28px;
      align-items: start;
    }
    .left-col { min-width: 0; }

    .section-block { margin-bottom: 32px; }
    .sec-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      margin-bottom: 12px;
    }
    .sec-title-wrap {
      display: flex;
      align-items: baseline;
      gap: 8px;
      flex-wrap: wrap;
    }
    .sec-head h2 {
      font-size: 1.06rem;
      font-weight: 800;
      letter-spacing: -0.02em;
    }
    .sec-count {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--text-muted);
    }
    .sec-link, .sec-more-btn {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--accent);
      background: transparent;
      border: none;
      cursor: pointer;
      white-space: nowrap;
      padding: 4px 6px;
    }
    .sec-link { color: var(--text-muted); font-weight: 600; }
    .sec-link:hover { color: var(--text); }
    .sec-more-btn:hover { text-decoration: underline; }

    .search-summary-bar {
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 10px 14px;
      margin-bottom: 18px;
      font-size: 0.84rem;
    }
    body.search-mode .search-summary-bar { display: flex; }
    .search-filter-tabs {
      display: flex;
      gap: 6px;
    }
    .search-tab-btn {
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text-muted);
      font-size: 0.76rem;
      font-weight: 700;
      cursor: pointer;
    }
    .search-tab-btn.active {
      background: var(--text);
      color: var(--surface);
      border-color: var(--text);
    }

    .clean-notice {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 10px 14px;
      margin-bottom: 14px;
      font-size: 0.82rem;
      color: #374151;
      transition: border-color 0.15s ease;
    }
    .clean-notice:hover { border-color: #cbd5e1; }
    .clean-notice-left {
      display: flex;
      align-items: center;
      gap: 8px;
      min-width: 0;
    }
    .clean-notice-text {
      font-weight: 500;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      transition: opacity 0.3s ease;
    }
    .clean-notice-cta {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--accent);
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* 테마지도 그리드 (기본 3열, 검색모드 1열) */
    .theme-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }
    body.search-mode .theme-grid {
      grid-template-columns: 1fr;
      gap: 8px;
    }
    .theme-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 13px;
      display: flex;
      align-items: center;
      gap: 11px;
      cursor: pointer;
      transition: border-color 0.15s ease, transform 0.15s ease;
    }
    .theme-card:hover {
      border-color: #cbd5e1;
      transform: translateY(-1px);
    }
    .theme-icon {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: var(--surface-subtle);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      flex-shrink: 0;
    }
    .theme-info { min-width: 0; flex: 1; }
    .theme-title {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .theme-meta {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 2px;
    }
    .theme-badge-paid {
      font-size: 0.7rem;
      font-weight: 700;
      color: #b45309;
      background: #fef3c7;
      padding: 2px 7px;
      border-radius: 999px;
      flex-shrink: 0;
    }

    /* 장소 카드 그리드 (기본 2열, 검색모드 1열) */
    .place-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    body.search-mode .place-grid {
      grid-template-columns: 1fr;
      gap: 8px;
    }
    .place-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      cursor: pointer;
      transition: border-color 0.15s ease, transform 0.15s ease;
    }
    .place-card:hover {
      border-color: #cbd5e1;
      transform: translateY(-1px);
    }
    .place-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .place-title-wrap {
      display: flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
    }
    .place-title {
      font-size: 0.92rem;
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .place-post-pill {
      font-size: 0.7rem;
      font-weight: 700;
      color: #db2777;
      background: #fdf2f8;
      padding: 1px 6px;
      border-radius: 999px;
      flex-shrink: 0;
    }
    .dist-badge {
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--text-muted);
      background: var(--surface-subtle);
      padding: 2px 7px;
      border-radius: 999px;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .place-body {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .place-thumb {
      width: 50px;
      height: 50px;
      border-radius: 8px;
      overflow: hidden;
      background: var(--surface-subtle);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      font-size: 1rem;
    }
    .place-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .place-meta {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
      font-size: 0.78rem;
      color: var(--text-muted);
    }
    .place-meta-row {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .place-meta-row a:hover {
      color: var(--accent);
      text-decoration: underline;
    }

    /* 우측 미니지도 (홈 / 검색 모드) */
    .right-col {
      position: sticky;
      top: 74px;
    }
    .map-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      overflow: hidden;
    }
    .mobile-map-top-bar {
      display: none;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .mobile-map-return-label {
      font-size: 0.88rem;
      font-weight: 800;
      color: var(--text);
      cursor: pointer;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .mobile-map-return-label:hover { color: var(--accent); }

    .map-head {
      padding: 11px 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-size: 0.85rem;
      font-weight: 700;
    }
    .map-head a {
      font-size: 0.78rem;
      font-weight: 600;
      color: var(--text-muted);
    }
    .map-head a:hover { color: var(--text); }
    .map-stage {
      position: relative;
      width: 100%;
      height: 520px;
    }
    #mini-map {
      width: 100%;
      height: 100%;
      z-index: 100;
    }


    /* Leaflet 맵타일 가로/세로 1px 틈(흰 줄) 방지 */
    .map-stage,
    #mini-map,
    .leaflet-container {
      background: #f2efe9 !important;
    }
    .leaflet-tile-container img.leaflet-tile {
      outline: 1px solid transparent !important;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      image-rendering: -webkit-optimize-contrast;
    }

    /* 일반 장소 핀 마커 */
    .allmap-pin-marker {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: var(--surface);
      border: 2.5px solid var(--accent);
      box-shadow: 0 3px 8px rgba(17, 24, 39, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.15s ease;
    }
    .allmap-pin-marker::after {
      content: '';
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
    }
    .allmap-pin-marker.focused {
      width: 26px;
      height: 26px;
      background: var(--accent);
      border-color: #ffffff;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
    }
    .allmap-pin-marker.focused::after {
      background: #ffffff;
      width: 8px;
      height: 8px;
    }

    /* 최근 포스팅 연필 마커 (기존 34px의 약 2/3 크기인 22px) */
    .allmap-pencil-marker {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: #ffffff;
      box-shadow:
        0 0 0 2.5px rgba(244, 114, 182, 0.36),
        0 2px 6px rgba(17, 24, 39, 0.18);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.15s ease;
    }
    .allmap-pencil-marker:hover {
      transform: scale(1.1);
    }
    .allmap-pencil-marker svg {
      width: 11px;
      height: 11px;
      stroke: #ec4899;
      fill: none;
      stroke-width: 2.4;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    /* 지도 위 현재 동네 배지 */
    .map-location-badge {
      position: absolute;
      top: 12px;
      left: 12px;
      z-index: 450;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(255, 255, 255, 0.96);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 6px 12px;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--text);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }
    .map-loc-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #ef4444;
    }
    .map-refresh-btn {
      border: none;
      border-left: 1px solid var(--border);
      background: transparent;
      padding-left: 8px;
      font-size: 0.74rem;
      font-weight: 600;
      color: var(--accent);
      cursor: pointer;
    }
    .map-refresh-btn:hover { text-decoration: underline; }

    /* 지도 우측 하단 '현재위치' 버튼 + 줌 컨트롤러 */
    .map-bottom-right-controls {
      position: absolute;
      right: 12px;
      bottom: 16px;
      z-index: 450;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }
    .btn-current-location {
      height: 34px;
      padding: 0 11px;
      border-radius: 8px;
      border: 1px solid #d1d5db;
      background: rgba(255, 255, 255, 0.97);
      color: var(--text);
      font-size: 0.76rem;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
      transition: background 0.15s ease, color 0.15s ease;
    }
    .btn-current-location:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: #ffffff;
    }
    .leaflet-control-zoom {
      border: 1px solid #d1d5db !important;
      border-radius: 8px !important;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
      margin: 0 !important;
    }
    .leaflet-control-zoom a {
      width: 34px !important;
      height: 34px !important;
      line-height: 34px !important;
      color: var(--text) !important;
      background: rgba(255, 255, 255, 0.97) !important;
      border-bottom: 1px solid #e5e7eb !important;
      font-size: 16px !important;
    }
    .leaflet-control-zoom a:last-child {
      border-bottom: none !important;
    }
    .leaflet-control-zoom a:hover {
      background: var(--surface-subtle) !important;
    }

    .btn-arrow-back {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex-shrink: 0;
      transition: background 0.15s ease;
    }
    .btn-arrow-back:hover { background: var(--surface-subtle); }

    /* ============================================================
       1) 테마지도 모드: 좌측 1/3 장소목록 + 나머지 전체 지도
       ============================================================ */
    .theme-panel-header { display: none; }
    body.theme-full-mode { overflow: hidden; }
    body.theme-full-mode .layout-grid {
      max-width: none;
      margin: 0;
      padding: 0;
      height: calc(100vh - var(--header-h));
      display: grid;
      grid-template-columns: var(--theme-panel-w) minmax(0, 1fr);
      gap: 0;
      align-items: stretch;
    }
    body.theme-full-mode .left-col {
      width: 100%;
      height: 100%;
      background: var(--surface);
      border-right: 1px solid var(--border);
      z-index: 420;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    body.theme-full-mode .home-theme-section,
    body.theme-full-mode .search-summary-bar,
    body.theme-full-mode #placeTickerLink,
    body.theme-full-mode .sec-link,
    body.theme-full-mode .sec-more-btn,
    body.theme-full-mode .fab-map,
    body.theme-full-mode .place-detail-view {
      display: none !important;
    }
    body.theme-full-mode .theme-panel-header {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-bottom: 1px solid var(--border);
      background: var(--surface);
      flex-shrink: 0;
    }
    .theme-panel-title-wrap { min-width: 0; flex: 1; }
    .theme-panel-title {
      font-size: 0.94rem;
      font-weight: 800;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .theme-panel-sub {
      font-size: 0.73rem;
      color: var(--text-muted);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    body.theme-full-mode .section-block {
      margin: 0;
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }
    body.theme-full-mode .sec-head {
      padding: 8px 12px;
      margin-bottom: 0;
      border-bottom: 1px solid var(--border);
      background: #fafafa;
      flex-shrink: 0;
    }
    body.theme-full-mode .sec-head h2 { font-size: 0.84rem; }
    body.theme-full-mode .sec-count { font-size: 0.74rem; }
    body.theme-full-mode .place-grid {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 0;
    }
    body.theme-full-mode .place-card {
      background: transparent;
      border: none;
      border-bottom: 1px solid #eceef2;
      border-radius: 0;
      padding: 10px 12px;
      gap: 6px;
      transform: none !important;
      box-shadow: none !important;
    }
    body.theme-full-mode .place-card:hover { background: #f9fafb; }
    body.theme-full-mode .place-title { font-size: 0.88rem; }
    body.theme-full-mode .place-thumb { width: 44px; height: 44px; border-radius: 8px; }
    body.theme-full-mode .place-meta { font-size: 0.75rem; gap: 2px; }

    body.theme-full-mode .right-col {
      display: block !important;
      position: relative;
      top: 0;
      width: 100%;
      height: 100%;
      z-index: 400;
    }
    body.theme-full-mode .map-card { height: 100%; border: none; border-radius: 0; display: flex; flex-direction: column; }
    body.theme-full-mode .map-head { display: none; }
    body.theme-full-mode .map-stage { flex: 1; height: 100%; }

    /* ============================================================
       2) 상세보기 모드: 좌측 상세정보 + 우측 약 1/3 지도
       ============================================================ */
    .place-detail-view { display: none; }
    body.place-detail-mode .home-theme-section,
    body.place-detail-mode .search-summary-bar,
    body.place-detail-mode #placeListSection,
    body.place-detail-mode .theme-panel-header,
    body.place-detail-mode .fab-map {
      display: none !important;
    }
    body.place-detail-mode .layout-grid {
      max-width: none;
      margin: 0;
      padding: 0;
      min-height: calc(100vh - var(--header-h));
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 33.333vw);
      gap: 0;
      align-items: stretch;
    }
    body.place-detail-mode .left-col {
      background: #f3f4f6;
      padding: 16px 18px 48px;
      border-right: 1px solid var(--border);
    }
    body.place-detail-mode .place-detail-view {
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-width: 820px;
      margin: 0 auto;
    }

    .detail-return-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--surface);
      border: 1px solid rgba(229, 231, 235, 0.9);
      border-radius: 14px;
      padding: 9px 12px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    }
    .detail-return-label {
      font-size: 0.9rem;
      font-weight: 800;
      color: var(--text);
      cursor: pointer;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .detail-return-label:hover { color: var(--accent); }

    .p-hero {
      position: relative;
      width: 100%;
      height: 224px;
      border-radius: 16px;
      overflow: hidden;
      background: var(--surface);
      border: 1px solid rgba(229, 231, 235, 0.85);
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    .p-hero img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .p-hero-fallback {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2.5rem;
      background: var(--surface-subtle);
    }
    .p-hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.25) 45%, transparent);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 14px;
      color: #ffffff;
    }
    .p-cat-badge {
      display: inline-block;
      align-self: flex-start;
      font-size: 10px;
      font-weight: 800;
      background: rgba(37, 99, 235, 0.92);
      color: #ffffff;
      padding: 2px 8px;
      border-radius: 6px;
      margin-bottom: 4px;
    }
    .p-hero-title {
      font-size: 1.15rem;
      font-weight: 900;
      letter-spacing: -0.02em;
      line-height: 1.25;
    }

    .p-card {
      background: var(--surface);
      border: 1px solid rgba(229, 231, 235, 0.85);
      border-radius: 16px;
      padding: 14px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    }
    .p-kicker {
      font-size: 10px;
      font-weight: 800;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      display: block;
      margin-bottom: 4px;
    }
    .p-kicker-muted {
      font-size: 10px;
      font-weight: 800;
      color: #9ca3af;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      display: block;
    }
    .p-intro-text {
      font-size: 0.84rem;
      color: #374151;
      line-height: 1.6;
      white-space: pre-line;
    }

    .p-info-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }
    .p-info-box {
      background: var(--surface);
      border: 1px solid rgba(229, 231, 235, 0.85);
      border-radius: 16px;
      padding: 12px;
      display: flex;
      align-items: center;
      gap: 10px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    }
    .p-info-icon {
      width: 36px;
      height: 36px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1rem;
      flex-shrink: 0;
    }
    .p-info-body { min-width: 0; flex: 1; }
    .p-info-val {
      font-size: 0.8rem;
      font-weight: 700;
      color: #1f2937;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .p-info-link {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--accent);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: block;
    }
    .p-info-link:hover { text-decoration: underline; }
    .p-call-btn {
      padding: 6px 10px;
      border-radius: 10px;
      background: #ecfdf5;
      color: #047857;
      font-size: 11px;
      font-weight: 800;
      flex-shrink: 0;
    }
    .p-call-btn:hover { background: #d1fae5; }

    .p-sns-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }
    .p-sns-chips {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
    }
    .p-sns-chip {
      padding: 4px 10px;
      border-radius: 8px;
      background: #f3f4f6;
      color: #374151;
      font-size: 11px;
      font-weight: 700;
    }
    .p-sns-chip:hover {
      background: #eef2ff;
      color: #4f46e5;
    }

    .p-menu-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 8px;
    }
    .p-menu-list {
      border-top: 1px solid #f3f4f6;
    }
    .p-menu-item {
      padding: 8px 0;
      border-bottom: 1px solid #f3f4f6;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 0.82rem;
    }
    .p-menu-item:last-child { border-bottom: none; padding-bottom: 2px; }
    .p-menu-name { font-weight: 700; color: #1f2937; }
    .p-menu-price { font-weight: 800; color: var(--accent); flex-shrink: 0; }

    /* 상세보기 중간 일반 문의 폼 */
    .p-inquiry-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }
    .p-inquiry-title {
      font-size: 0.92rem;
      font-weight: 800;
      color: var(--text);
      margin-top: 2px;
    }
    .p-channel-badges {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }
    .p-channel-badge {
      font-size: 11px;
      font-weight: 700;
      padding: 3px 9px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .p-channel-badge.email { background: #eff6ff; color: #1d4ed8; }
    .p-channel-badge.realtime { background: #ecfdf5; color: #047857; }
    .p-channel-badge.none { background: #f3f4f6; color: #6b7280; }

    .p-inquiry-form { display: flex; flex-direction: column; gap: 8px; }
    .p-inquiry-meta-row { display: grid; grid-template-columns: 150px 1fr; gap: 8px; }
    .p-inquiry-input {
      height: 36px;
      padding: 0 11px;
      border-radius: 10px;
      border: 1px solid #d1d5db;
      background: #f9fafb;
      font-size: 0.82rem;
      color: var(--text);
      outline: none;
    }
    .p-inquiry-input:focus { background: var(--surface); border-color: var(--accent); }
    .p-inquiry-textarea {
      width: 100%;
      min-height: 92px;
      padding: 11px 12px;
      border-radius: 12px;
      border: 1px solid #d1d5db;
      background: #f9fafb;
      font-family: inherit;
      font-size: 0.85rem;
      color: var(--text);
      line-height: 1.55;
      resize: vertical;
      outline: none;
    }
    .p-inquiry-textarea:focus { background: var(--surface); border-color: var(--accent); }
    .p-inquiry-foot {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }
    .p-inquiry-hint { font-size: 0.76rem; color: var(--text-muted); }
    .p-inquiry-submit {
      height: 36px;
      padding: 0 16px;
      border-radius: 10px;
      border: none;
      background: var(--text);
      color: var(--surface);
      font-size: 0.82rem;
      font-weight: 700;
      cursor: pointer;
    }
    .p-inquiry-submit:hover { background: #1f2937; }
    .p-inquiry-submit:disabled { background: #9ca3af; cursor: not-allowed; }

    .p-inquiry-history {
      margin-top: 12px;
      padding-top: 12px;
      border-top: 1px solid #f3f4f6;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .p-inquiry-history-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 0.76rem;
      font-weight: 700;
      color: #4b5563;
    }
    .btn-sim-reply {
      border: 1px solid #d1d5db;
      background: #f9fafb;
      color: #374151;
      border-radius: 8px;
      padding: 3px 9px;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
    }
    .btn-sim-reply:hover {
      background: #eff6ff;
      border-color: #93c5fd;
      color: #1d4ed8;
    }
    .p-inquiry-ticket {
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 10px 12px;
      background: #fafafa;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .p-inquiry-ticket.replied {
      background: #eff6ff;
      border-color: #93c5fd;
      cursor: pointer;
    }
    .p-inquiry-ticket-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 11px;
    }
    .p-ticket-status { font-weight: 800; padding: 2px 7px; border-radius: 6px; }
    .p-ticket-status.waiting { background: #f3f4f6; color: #4b5563; }
    .p-ticket-status.replied { background: var(--accent); color: #ffffff; }
    .p-inquiry-ticket-q { font-size: 0.82rem; color: #1f2937; line-height: 1.45; }
    .p-inquiry-ticket-reply {
      font-size: 0.8rem;
      color: #1e40af;
      background: #ffffff;
      border-radius: 8px;
      padding: 7px 10px;
      border: 1px solid #dbeafe;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    /* NEWS POSTING */
    .p-posts-wrap { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
    .p-posts-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2px;
      font-size: 0.78rem;
      font-weight: 800;
      color: #374151;
    }
    .p-posts-count { font-size: 11px; font-weight: 700; color: var(--accent); }
    .p-posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .p-post-card {
      background: var(--surface);
      border: 1px solid rgba(229, 231, 235, 0.85);
      border-radius: 16px;
      padding: 12px;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 10px;
    }
    .p-post-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      margin-bottom: 8px;
    }
    .p-post-tag {
      font-size: 10px;
      font-weight: 800;
      padding: 2px 7px;
      border-radius: 6px;
      background: var(--accent-soft);
      color: var(--accent);
    }
    .p-post-tag.video { background: #f5f3ff; color: #7c3aed; }
    .p-post-time { font-size: 11px; color: #9ca3af; }
    .p-post-media-45 {
      width: 100%;
      aspect-ratio: 4 / 5;
      border-radius: 12px;
      overflow: hidden;
      background: #f3f4f6;
    }
    .p-post-media-45 img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .p-post-video-wrap {
      width: 100%;
      background: #111827;
      border-radius: 12px;
      padding: 6px;
      display: flex;
      justify-content: center;
    }
    .p-post-video-wrap video {
      width: 180px;
      max-width: 100%;
      aspect-ratio: 9 / 16;
      border-radius: 8px;
      object-fit: cover;
      background: #000000;
    }
    .p-post-caption { font-size: 0.8rem; color: #374151; line-height: 1.5; white-space: pre-line; }

    /* 상세보기 모드에서 우측 1/3 지도 고정 */
    body.place-detail-mode .right-col {
      display: block !important;
      position: sticky;
      top: var(--header-h);
      height: calc(100vh - var(--header-h));
    }
    body.place-detail-mode .map-card {
      height: 100%;
      border: none;
      border-radius: 0;
      display: flex;
      flex-direction: column;
    }
    body.place-detail-mode .map-head { display: none; }
    body.place-detail-mode .map-stage { flex: 1; height: 100%; }

    .detail-mobile-map-slot { display: none; }

    /* 채팅 오버레이 */
    .chat-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 900;
      background: var(--surface);
      flex-direction: column;
    }
    .chat-overlay.open { display: flex; }
    .chat-head {
      padding: 10px 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }
    .chat-head-kicker { font-size: 11px; font-weight: 800; color: var(--accent); }
    .chat-head-status { font-size: 11px; font-weight: 700; color: #059669; margin-left: 6px; }
    .chat-head-title {
      font-size: 0.95rem;
      font-weight: 900;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .chat-close-btn {
      padding: 6px 12px;
      border-radius: 8px;
      border: none;
      background: #f3f4f6;
      color: #374151;
      font-size: 0.78rem;
      font-weight: 700;
      cursor: pointer;
    }
    .chat-close-btn:hover { background: #e5e7eb; }
    .chat-user-bar {
      padding: 8px 16px;
      border-bottom: 1px solid #f3f4f6;
      background: #f9fafb;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .chat-nick-input {
      width: 140px;
      height: 32px;
      padding: 0 10px;
      border-radius: 8px;
      border: 1px solid #d1d5db;
      background: var(--surface);
      font-size: 0.78rem;
      font-weight: 700;
      outline: none;
    }
    .chat-lang-select {
      height: 32px;
      padding: 0 8px;
      border-radius: 8px;
      border: 1px solid #d1d5db;
      background: var(--surface);
      font-size: 0.78rem;
      font-weight: 700;
      outline: none;
    }
    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      background: #f9fafb;
    }
    .chat-msg-item {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 10px 12px;
      font-size: 0.82rem;
    }
    .chat-msg-item.owner { background: #eff6ff; border-color: #bfdbfe; }
    .chat-msg-meta {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 4px;
      font-size: 0.76rem;
    }
    .chat-msg-sender { font-weight: 800; color: #1f2937; }
    .chat-msg-lang { color: var(--accent); font-weight: 700; font-size: 10px; margin-left: 4px; }
    .chat-msg-time { color: #9ca3af; font-size: 10px; }
    .chat-msg-body { color: #374151; line-height: 1.5; word-break: break-word; }
    .chat-send-form {
      padding: 12px 16px;
      border-top: 1px solid var(--border);
      background: var(--surface);
      display: flex;
      gap: 8px;
    }
    .chat-send-input {
      flex: 1;
      min-width: 0;
      height: 42px;
      padding: 0 14px;
      border-radius: 12px;
      border: 1px solid #d1d5db;
      background: #f9fafb;
      font-size: 0.86rem;
      outline: none;
    }
    .chat-send-btn {
      height: 42px;
      padding: 0 18px;
      border-radius: 12px;
      border: none;
      background: var(--accent);
      color: #ffffff;
      font-size: 0.84rem;
      font-weight: 700;
      cursor: pointer;
    }

    /* 우측 하단 원형 지도 아이콘 버튼 (모바일/태블릿에서 표시) */
    .fab-map {
      display: none;
      position: fixed;
      right: 18px;
      bottom: 22px;
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: var(--text);
      color: var(--surface);
      border: none;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 20px rgba(17, 24, 39, 0.28);
      cursor: pointer;
      z-index: 450;
      transition: transform 0.15s ease, background 0.15s ease;
    }
    .fab-map:hover {
      background: #1f2937;
      transform: scale(1.05);
    }

    @media (max-width: 1024px) {
      .layout-grid { grid-template-columns: 1fr; }
      .right-col { display: none; }
      .fab-map { display: inline-flex; }

      /* 지도보기 모드: 좌우상하 여백 없이 전체 화면 채움 + 상단 복귀 바 */
      .right-col.mobile-open {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: var(--header-h);
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-h));
        z-index: 520;
        background: var(--surface);
        padding: 0;
        margin: 0;
      }
      .right-col.mobile-open .map-card {
        flex: 1;
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
        display: flex;
        flex-direction: column;
      }
      .right-col.mobile-open .map-head {
        display: none;
      }
      .right-col.mobile-open .mobile-map-top-bar {
        display: flex;
      }
      .right-col.mobile-open .map-stage {
        flex: 1;
        width: 100%;
        height: 100%;
        border-radius: 0;
      }

      .theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      body.search-mode .theme-grid { grid-template-columns: 1fr; }

      body.theme-full-mode { overflow: auto; }
      body.theme-full-mode .layout-grid { height: auto; display: block; }
      body.theme-full-mode .left-col {
        width: 100%;
        height: auto;
        border-right: none;
      }
      body.theme-full-mode .right-col {
        display: block !important;
        position: relative;
        top: 0;
        width: 100%;
        height: 420px;
      }

      body.place-detail-mode .layout-grid { display: block; min-height: auto; }
      body.place-detail-mode .left-col { border-right: none; padding: 12px 12px 36px; }
      body.place-detail-mode .place-detail-view { max-width: none; }
      body.place-detail-mode .right-col { display: none !important; }
      body.place-detail-mode .detail-mobile-map-slot { display: block; margin-top: 4px; }
      body.place-detail-mode .detail-mobile-map-slot .map-card { border: 1px solid var(--border); border-radius: 16px; }
      body.place-detail-mode .detail-mobile-map-slot .map-stage { height: 300px; }
    }

    @media (max-width: 768px) {
      .topbar-inner { grid-template-columns: auto 1fr auto; gap: 10px; }
      .header-search-wrap { display: none; }
      .mobile-search-toggle { display: inline-flex; }
      .nav-label { display: none; }
      .theme-grid { grid-template-columns: 1fr; }
      .place-grid { grid-template-columns: 1fr; }
      .p-info-grid { grid-template-columns: 1fr; }
      .p-posts-grid { grid-template-columns: 1fr; }
      .p-inquiry-meta-row { grid-template-columns: 1fr; }
    }