    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    .skip-nav { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    .skip-nav:focus { position: fixed; top: 0.5rem; left: 0.5rem; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; margin: 0; z-index: 9999; padding: 0.75rem 1.25rem; background: var(--foreground); color: #fff; font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
    :root {
      --primary: #E8341C;
      --primary-foreground: #ffffff;
      --muted: #F8F6F3;
      --muted-foreground: #888888;
      --border: #E5E5E5;
      --background: #FFFFFF;
      --card: #FFFFFF;
      --foreground: #1A1A1A;
      --radius: 0.25rem;
      --font-display: 'Playfair Display', Georgia, serif;
      --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      --section-gap: 5rem;
    }
    html { scroll-behavior: smooth; }
    body {
      font-family: var(--font-body);
      background: var(--background);
      color: var(--foreground);
      line-height: 1.6;
      font-weight: 400;
      -webkit-font-smoothing: antialiased;
    }
    a { color: inherit; text-decoration: none; }
    a:hover { text-decoration: none; }
    .container { max-width: 80rem; margin: 0 auto; padding: 0 2rem; }
    .container-wide { max-width: 96rem; margin: 0 auto; padding: 0 2rem; }
    .breakout {
      width: 100vw;
      position: relative;
      left: 50%;
      right: 50%;
      margin-left: -50vw;
      margin-right: -50vw;
    }

    /* ── Navigation ── */
    .header {
      position: fixed; top: 0; left: 0; right: 0;
      z-index: 100;
      transition: background 0.3s ease, box-shadow 0.3s ease;
      background: transparent;
    }
    .header.scrolled {
      background: rgba(255,255,255,0.97);
      backdrop-filter: blur(8px);
      box-shadow: 0 1px 0 rgba(0,0,0,0.08);
    }
    .header-inner {
      display: flex; align-items: center; gap: 2rem;
      height: 4.5rem;
    }
    .brand {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 1.5rem;
      color: #ffffff;
      letter-spacing: -0.02em;
      transition: color 0.3s ease;
      white-space: nowrap;
    }
    .header.scrolled .brand { color: var(--foreground); }
    .nav-links { display: flex; gap: 2rem; font-size: 0.8125rem; flex: 1; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; align-items: center; }
    .nav-links a { display: inline-flex; align-items: center; color: rgba(255,255,255,0.85); transition: color 0.2s; border-bottom: 1.5px solid transparent; padding-bottom: 1px; }
    .nav-links a:hover { color: #ffffff; }
    .nav-links a.active { color: #ffffff; border-bottom-color: #ffffff; }
    .header.scrolled .nav-links a { color: var(--muted-foreground); }
    .header.scrolled .nav-links a:hover { color: var(--foreground); }
    .header.scrolled .nav-links a.active { color: var(--foreground); border-bottom-color: var(--foreground); }

    /* ── Nav dropdown ── */
    .nav-dropdown { position: relative; }
    .nav-dropdown-btn {
      display: flex; align-items: center; gap: 0.25rem;
      background: none; border: none; border-bottom: 1.5px solid transparent; cursor: pointer; padding: 0; padding-bottom: 1px;
      color: rgba(255,255,255,0.85); font-size: 0.8125rem; font-weight: 500;
      letter-spacing: 0.06em; text-transform: uppercase;
      font-family: var(--font-body); transition: color 0.2s;
    }
    .nav-dropdown-btn:hover { color: #ffffff; }
    .nav-dropdown-btn.active { color: #ffffff; border-bottom-color: #ffffff; }
    .header.scrolled .nav-dropdown-btn { color: var(--muted-foreground); }
    .header.scrolled .nav-dropdown-btn:hover { color: var(--foreground); }
    .header.scrolled .nav-dropdown-btn.active { color: var(--foreground); border-bottom-color: var(--foreground); }
    .nav-dropdown-caret { transition: transform 0.2s; }
    .nav-dropdown-btn[aria-expanded="true"] .nav-dropdown-caret { transform: rotate(180deg); }
    .nav-dropdown-menu {
      display: none; position: absolute; top: calc(100% + 0.75rem); left: 0;
      background: var(--card); border: 1px solid var(--border);
      box-shadow: 0 8px 32px rgba(0,0,0,0.12);
      min-width: 10rem; z-index: 200; overflow: hidden;
    }
    .nav-dropdown-menu.open { display: block; }
    .nav-dropdown-menu a {
      display: block; padding: 0.625rem 1rem;
      color: var(--foreground); font-size: 0.875rem;
      transition: background 0.15s; white-space: nowrap;
    }
    .nav-dropdown-menu a:hover { background: var(--muted); }
    .nav-dropdown-menu a.active { font-weight: 600; background: var(--muted); }
    .main { padding-top: 4.5rem; padding-bottom: 5rem; }
    .main-inner { padding: 4rem 0; }

    /* ── Footer ── */
    .footer {
      border-top: 1px solid var(--border);
      padding: 3rem 0;
      margin-top: 0;
      font-size: 0.8125rem;
      color: var(--muted-foreground);
      background: var(--foreground);
      color: rgba(255,255,255,0.5);
    }
    .footer-inner { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
    .footer-inner a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
    .footer-inner a:hover { color: #ffffff; }
    .footer-copyright { margin-left: auto; color: rgba(255,255,255,0.3); }
    .hidden { display: none !important; }
    .nav-notif-badge { display: none; }

    /* ── Magazine Grid System ── */
    .grid { display: grid; gap: 2rem; }
    .grid-1 { grid-template-columns: 1fr; max-width: 480px; }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
    @media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
    @media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 1024px) {
      .grid-3 { grid-template-columns: repeat(3, 1fr); }
    }

    /* ── Magazine Overlay Card ── */
    .mag-card { display: block; overflow: hidden; }
    .mag-card:hover { transform: none; box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
    .mag-card:hover img { transform: scale(1.05); }
    .mag-card img { transition: transform 0.5s ease; border-radius: var(--radius); }
    .mag-card-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem 1rem; z-index: 2; }
    .mag-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; color: #fff; margin-bottom: 0.25rem; }
    .mag-card-meta { font-size: 0.75rem; color: rgba(255,255,255,0.75); letter-spacing: 0.03em; }

    /* ── Magazine Card ── */
    @keyframes shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }
    .card {
      border: none;
      border-radius: 0;
      overflow: hidden;
      background: var(--card);
      position: relative;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/2; }
    .card-img {
      width: 100%; height: 100%;
      object-fit: cover; display: block;
      transition: transform 0.5s ease;
      background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite linear;
    }
    .card-img-placeholder {
      aspect-ratio: 3/2;
      background: linear-gradient(135deg, #1A1A1A 0%, #333333 100%);
      display: flex; align-items: center; justify-content: center;
    }
    .card-img-flag { font-size: 3.5rem; line-height: 1; user-select: none; }
    .card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
    .card:active { transform: translateY(0); }
    .card:hover .card-img { transform: scale(1.03); }
    .card-body { padding: 1.25rem 0 0; }
    .card-category {
      font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--primary);
      margin-bottom: 0.5rem; display: block;
    }
    .card-title {
      font-family: var(--font-display);
      font-weight: 700; font-size: 1.25rem;
      line-height: 1.25; margin-bottom: 0.5rem;
      color: var(--foreground);
    }
    .card-desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.5; }
    .card-meta { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.5rem; }
    .card-rating { font-size: 0.75rem; color: rgba(255,255,255,0.65); margin-top: 0.4rem; }

    /* ── Hero (full-screen) ── */
    .hero-full {
      position: relative;
      min-height: 100vh;
      display: flex; flex-direction: column; justify-content: flex-end;
      overflow: hidden;
      background: #1A1A1A;
    }
    .hero-full-bg {
      position: absolute; inset: 0;
      background-size: cover; background-position: center;
      z-index: 0;
      transition: transform 8s ease;
    }
    .hero-full:hover .hero-full-bg { transform: scale(1.03); }
    .img-overlay {
      position: absolute; inset: 0; z-index: 1;
      pointer-events: none;
      background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 30%, transparent 100%);
    }
    .hero-full-overlay {
      position: absolute; inset: 0; z-index: 1;
      background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
    }
    .hero-full-content {
      position: relative; z-index: 2;
      padding: 4rem 2rem 5rem;
      max-width: 80rem; margin: 0 auto; width: 100%;
    }
    .hero-theme-badge {
      display: inline-block;
      font-size: 0.6875rem; font-weight: 600;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: #ffffff; background: var(--primary);
      padding: 0.3rem 0.875rem; margin-bottom: 1.5rem;
    }
    .hero-full h1 {
      font-family: var(--font-display);
      font-size: clamp(3rem, 8vw, 7rem);
      font-weight: 900; line-height: 1.0;
      color: #ffffff; letter-spacing: -0.02em;
      margin-bottom: 1.25rem;
      max-width: 18ch;
    }
    .hero-full p {
      font-size: clamp(1rem, 2vw, 1.25rem);
      color: rgba(255,255,255,0.8);
      margin-bottom: 2.5rem;
      max-width: 48ch; line-height: 1.6;
    }
    .hero-scroll-hint {
      position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
      z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
      color: rgba(255,255,255,0.5); font-size: 0.6875rem;
      letter-spacing: 0.1em; text-transform: uppercase;
    }
    .hero-scroll-hint::after {
      content: '';
      width: 1px; height: 3rem;
      background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
      animation: scroll-line 2s ease-in-out infinite;
    }
    @keyframes scroll-line {
      0% { opacity: 1; transform: scaleY(1); transform-origin: top; }
      100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    }

    /* ── Inline hero (non-homepage) ── */
    .hero {
      text-align: center;
      padding: 6rem 0 4rem;
      background: var(--muted);
    }
    .hero h1 {
      font-family: var(--font-display);
      font-size: clamp(2.5rem, 5vw, 4rem);
      font-weight: 900; letter-spacing: -0.02em;
      margin-bottom: 1rem; line-height: 1.1;
    }
    .hero p { color: var(--muted-foreground); margin-bottom: 2rem; font-size: 1.125rem; }
    .search-bar {
      display: flex; max-width: 36rem; margin: 0 auto;
      background: var(--card); border: 1.5px solid var(--border);
      overflow: visible;
    }
    .search-bar input {
      flex: 1; padding: 0.875rem 1.5rem;
      border: none; font-size: 0.9375rem;
      outline: none; background: transparent;
      font-family: var(--font-body);
    }
    .search-bar button {
      padding: 0.875rem 1.75rem;
      background: var(--foreground); color: #ffffff;
      border: none; cursor: pointer;
      font-size: 0.8125rem; font-weight: 600;
      letter-spacing: 0.05em; text-transform: uppercase;
      font-family: var(--font-body);
    }
    .search-bar button:hover { background: var(--primary); }

    /* ── Section layout ── */
    .section { margin-bottom: var(--section-gap); }
    .section-header {
      display: flex; justify-content: space-between; align-items: baseline;
      margin-bottom: 2.5rem;
      border-bottom: 2px solid var(--foreground);
      padding-bottom: 0.875rem;
    }
    .section-title {
      font-family: var(--font-display);
      font-size: clamp(1.75rem, 3vw, 2.5rem);
      font-weight: 700; letter-spacing: -0.02em;
    }
    .section-link {
      font-size: 0.75rem; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--muted-foreground); border-bottom: 1px solid var(--border);
      padding-bottom: 1px;
      transition: color 0.2s, border-color 0.2s;
    }
    .section-link:hover { color: var(--foreground); border-color: var(--foreground); }

    /* ── Buttons ── */
    .btn {
      display: inline-flex; align-items: center;
      padding: 0.75rem 2rem;
      font-size: 0.8125rem; font-weight: 600;
      cursor: pointer; border: none;
      text-decoration: none; letter-spacing: 0.06em;
      text-transform: uppercase; font-family: var(--font-body);
      transition: background 0.2s, color 0.2s;
    }
    .btn-primary { background: var(--primary); color: #ffffff; }
    .btn-primary:hover { background: #c82a14; }
    .btn-outline { border: 1.5px solid var(--foreground); background: transparent; color: var(--foreground); }
    .btn-outline:hover { background: var(--foreground); color: #ffffff; }
    .btn-white { background: #ffffff; color: var(--foreground); }
    .btn-white:hover { background: var(--muted); }

    /* ── Misc shared ── */
    .badge {
      display: inline-block; padding: 0.2rem 0.625rem;
      font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em;
      text-transform: uppercase; background: var(--muted); color: var(--muted-foreground);
    }
    .pagination { display: flex; gap: 0.25rem; justify-content: center; align-items: center; margin-top: 3rem; flex-wrap: wrap; }
    .pagination a, .pagination span {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 2.5rem; height: 2.5rem; padding: 0 0.5rem;
      border: 1px solid var(--border); font-size: 0.875rem;
      text-decoration: none; color: var(--foreground); background: var(--card);
      transition: background 0.15s, color 0.15s, border-color 0.15s;
      font-family: var(--font-body);
    }
    .pagination a:hover { background: var(--foreground); border-color: var(--foreground); color: #ffffff; }
    .pagination .active { background: var(--foreground); color: #ffffff; border-color: var(--foreground); font-weight: 600; }
    .pagination-prev, .pagination-next { min-width: 2.75rem; font-weight: 600; }
    .pagination-ellipsis { border: none; background: none; color: var(--muted-foreground); cursor: default; }
    .pagination-ellipsis:hover { background: none; border-color: transparent; color: var(--muted-foreground); }

    /* ── Nav right controls ── */
    .nav-right { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
    .nav-search-btn {
      display: flex; align-items: center; justify-content: center;
      padding: 0.25rem; color: rgba(255,255,255,0.8);
      transition: color 0.2s;
    }
    .nav-search-btn:hover { color: #ffffff; }
    .header.scrolled .nav-search-btn { color: var(--muted-foreground); }
    .header.scrolled .nav-search-btn:hover { color: var(--foreground); }
    .nav-admin-btn {
      font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
      text-transform: uppercase; color: rgba(255,255,255,0.7);
      padding: 0.25rem 0.625rem; border: 1px solid rgba(255,255,255,0.3);
      transition: all 0.2s;
    }
    .nav-admin-btn:hover { color: #fff; border-color: rgba(255,255,255,0.7); }
    .header.scrolled .nav-admin-btn { color: var(--muted-foreground); border-color: var(--border); }
    .header.scrolled .nav-admin-btn:hover { color: var(--foreground); border-color: var(--foreground); }

    /* ── User menu ── */
    .user-menu { position: relative; }
    .user-menu-btn {
      display: flex; align-items: center; justify-content: center;
      width: 2rem; height: 2rem;
      border: none; background: transparent;
      cursor: pointer; padding: 0;
    }
    .user-menu-avatar {
      width: 2rem; height: 2rem; border-radius: 50%;
      object-fit: cover; border: 1.5px solid rgba(255,255,255,0.4);
      transition: border-color 0.2s;
    }
    .user-menu-btn:hover .user-menu-avatar { border-color: rgba(255,255,255,0.8); }
    .header.scrolled .user-menu-avatar { border-color: var(--border); }
    .header.scrolled .user-menu-btn:hover .user-menu-avatar { border-color: var(--foreground); }
    .user-menu-avatar-placeholder {
      width: 2rem; height: 2rem; border-radius: 50%;
      background: var(--primary); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
    }
    .nav-notif-badge {
      position: absolute; top: -2px; right: -2px;
      min-width: 1rem; height: 1rem; border-radius: 0.5rem;
      background: #e53e3e; color: #fff;
      font-size: 0.6rem; font-weight: 700; line-height: 1rem;
      text-align: center; padding: 0 3px;
      pointer-events: none;
    }
    .user-menu-dropdown {
      display: none; position: absolute; right: 0; top: calc(100% + 0.5rem);
      background: var(--card); border: 1px solid var(--border);
      box-shadow: 0 8px 32px rgba(0,0,0,0.12);
      min-width: 12rem; z-index: 100; overflow: hidden;
    }
    .user-menu-dropdown.open { display: block; }
    .user-menu-name {
      padding: 0.75rem 1rem 0.5rem;
      font-size: 0.875rem; font-weight: 600;
      color: var(--foreground); border-bottom: 1px solid var(--border);
    }
    .user-menu-item {
      display: block; padding: 0.625rem 1rem;
      color: var(--foreground); font-size: 0.875rem;
      transition: background 0.15s;
    }
    .user-menu-item:hover { background: var(--muted); }
    button.user-menu-item {
      background: none; border: none; cursor: pointer;
      width: 100%; text-align: left;
    }
    .mobile-logout-btn {
      background: none; border: none; cursor: pointer;
      padding: 0.875rem 0; color: rgba(255,255,255,0.85);
      font-size: 0.875rem; font-weight: 500;
      letter-spacing: 0.05em; text-transform: uppercase;
      border-bottom: 1px solid rgba(255,255,255,0.08);
      width: 100%; text-align: left;
    }
    .user-menu-divider { height: 1px; background: var(--border); margin: 0.25rem 0; }
    .nav-login-btn {
      font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em;
      text-transform: uppercase; color: rgba(255,255,255,0.85);
      padding: 0.375rem 0.875rem; border: 1px solid rgba(255,255,255,0.4);
      transition: all 0.2s;
    }
    .nav-login-btn:hover { color: #fff; border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.1); }
    .header.scrolled .nav-login-btn { color: var(--foreground); border-color: var(--border); }
    .header.scrolled .nav-login-btn:hover { border-color: var(--foreground); background: var(--muted); }

    /* ── Notification bell ── */
    .notif-bell { position: relative; }
    .notif-bell-btn {
      display: flex; align-items: center; justify-content: center;
      width: 2rem; height: 2rem;
      border: none; background: transparent;
      color: rgba(255,255,255,0.85); cursor: pointer; padding: 0;
      transition: color 0.2s;
    }
    .notif-bell-btn:hover { color: #fff; }
    .header.scrolled .notif-bell-btn { color: var(--foreground); }
    .header.scrolled .notif-bell-btn:hover { color: var(--foreground); }
    .notif-dropdown {
      display: none; position: absolute; right: -0.5rem; top: calc(100% + 0.5rem);
      background: var(--card); border: 1px solid var(--border);
      box-shadow: 0 8px 32px rgba(0,0,0,0.12);
      width: 20rem; max-width: calc(100vw - 2rem);
      z-index: 200; overflow: hidden;
    }
    .notif-dropdown.open { display: block; }
    .notif-dropdown-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
    }
    .notif-dropdown-title { font-size: 0.875rem; font-weight: 600; }
    .notif-dropdown-mark-all {
      font-size: 0.75rem; color: var(--primary); background: none; border: none;
      cursor: pointer; padding: 0; font-family: var(--font-body);
    }
    .notif-dropdown-mark-all:hover { text-decoration: underline; }
    .notif-dropdown-list {
      list-style: none; max-height: 22rem; overflow-y: auto;
    }
    .notif-dropdown-loading {
      padding: 1rem; text-align: center; color: var(--muted-foreground); font-size: 0.875rem;
    }
    .notif-dropdown-empty {
      padding: 1rem; text-align: center; color: var(--muted-foreground); font-size: 0.875rem;
    }
    .notif-dropdown-item {
      display: flex; align-items: flex-start; gap: 0.625rem;
      padding: 0.75rem 1rem; cursor: pointer;
      border-bottom: 1px solid var(--border); transition: background 0.15s;
    }
    .notif-dropdown-item:hover { background: var(--muted); }
    .notif-dropdown-item.notif-unread { background: #fef9f0; }
    .notif-dropdown-item.notif-unread:hover { background: #fef3e0; }
    .notif-dropdown-view-all {
      display: block; padding: 0.75rem 1rem; text-align: center;
      font-size: 0.8125rem; color: var(--primary); font-weight: 500;
      border-top: 1px solid var(--border);
    }
    .notif-dropdown-view-all:hover { background: var(--muted); }

    /* ── Notification item shared ── */
    .notif-item-icon { font-size: 1rem; flex-shrink: 0; margin-top: 0.1rem; }
    .notif-item-body { flex: 1; min-width: 0; }
    .notif-item-text { font-size: 0.8125rem; color: var(--foreground); line-height: 1.4; }
    .notif-item-time { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.125rem; }
    .notif-item-meta { display: flex; align-items: center; gap: 0.5rem; }
    .notif-item-actions { flex-shrink: 0; }
    .notif-delete-btn {
      font-size: 0.75rem; color: var(--muted-foreground); background: none; border: none;
      cursor: pointer; padding: 0.125rem 0.375rem; font-family: var(--font-body);
      border-radius: var(--radius); transition: background 0.15s, color 0.15s;
    }
    .notif-delete-btn:hover { background: var(--muted); color: #e53e3e; }

    /* ── Notifications full page ── */
    .notif-page { padding: 2rem 0 4rem; }
    .notif-page-header {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 1.5rem;
    }
    .notif-page-title { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; }
    .notif-filters {
      display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem;
    }
    .notif-type-filters, .notif-read-filters {
      display: flex; flex-wrap: wrap; gap: 0.375rem;
    }
    .notif-filter-btn, .notif-read-btn {
      padding: 0.375rem 0.875rem; font-size: 0.8125rem;
      border: 1px solid var(--border); background: transparent;
      color: var(--foreground); cursor: pointer; font-family: var(--font-body);
      border-radius: 1rem; transition: all 0.15s;
    }
    .notif-filter-btn:hover, .notif-read-btn:hover { border-color: var(--foreground); }
    .notif-filter-btn.active, .notif-read-btn.active {
      background: var(--foreground); color: #fff; border-color: var(--foreground);
    }
    .notif-list { list-style: none; }
    .notif-list-item {
      display: flex; align-items: flex-start; gap: 0.875rem;
      padding: 1rem; border-bottom: 1px solid var(--border);
      cursor: pointer; transition: background 0.15s;
    }
    .notif-list-item:hover { background: var(--muted); }
    .notif-list-item.notif-unread { background: #fef9f0; }
    .notif-list-item.notif-unread:hover { background: #fef3e0; }
    .notif-loading {
      padding: 3rem; text-align: center; color: var(--muted-foreground);
    }
    .notif-empty {
      padding: 3rem; text-align: center;
    }
    .notif-empty-title { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
    .notif-empty-desc { color: var(--muted-foreground); font-size: 0.9375rem; }
    .notif-pagination {
      display: flex; align-items: center; justify-content: center; gap: 1rem;
      margin-top: 2rem;
    }
    .notif-page-info { font-size: 0.875rem; color: var(--muted-foreground); }

    /* ── Language dropdown ── */
    .lang-dropdown { position: relative; }
    .lang-dropdown-btn {
      display: flex; align-items: center; gap: 0.25rem;
      padding: 0.25rem 0.625rem;
      border: 1px solid rgba(255,255,255,0.3);
      font-size: 0.75rem; font-weight: 500;
      background: transparent; color: rgba(255,255,255,0.85);
      cursor: pointer; white-space: nowrap;
      font-family: var(--font-body);
      transition: all 0.2s;
    }
    .lang-dropdown-btn:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
    .header.scrolled .lang-dropdown-btn { color: var(--foreground); border-color: var(--border); background: transparent; }
    .header.scrolled .lang-dropdown-btn:hover { border-color: var(--foreground); }
    .lang-dropdown-menu {
      display: none; position: absolute; right: 0; top: calc(100% + 0.5rem);
      background: var(--card); border: 1px solid var(--border);
      box-shadow: 0 8px 32px rgba(0,0,0,0.12);
      min-width: 10rem; z-index: 100; overflow: hidden;
    }
    .lang-dropdown-menu.open { display: block; }
    .lang-dropdown-menu a {
      display: block; padding: 0.625rem 1rem;
      color: var(--foreground); font-size: 0.875rem; white-space: nowrap;
      transition: background 0.15s;
    }
    .lang-dropdown-menu a:hover { background: var(--muted); }
    .lang-dropdown-menu a.active { background: var(--muted); font-weight: 600; }

    /* ── Hamburger / Mobile menu ── */
    .hamburger {
      display: none; flex-direction: column; justify-content: space-between;
      width: 1.5rem; height: 1.25rem;
      background: none; border: none; cursor: pointer; padding: 0;
    }
    .hamburger span {
      display: block; width: 100%; height: 1.5px;
      background: rgba(255,255,255,0.85);
      transition: background 0.3s;
    }
    .header.scrolled .hamburger span { background: var(--foreground); }
    .mobile-menu {
      display: none; flex-direction: column;
      padding: 0.5rem 0; border-top: 1px solid rgba(255,255,255,0.1);
      background: rgba(0,0,0,0.95);
    }
    .mobile-menu.open { display: flex; }
    .mobile-menu a {
      padding: 0.875rem 0; color: rgba(255,255,255,0.85);
      font-size: 0.875rem; font-weight: 500;
      letter-spacing: 0.05em; text-transform: uppercase;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .mobile-menu a:last-child { border-bottom: none; }
    .mobile-menu a.active { color: #ffffff; }
    @media (max-width: 767px) {
      .hamburger { display: flex; }
      .nav-links { display: none; }
      .nav-search-btn { display: none; }
      /* Extend mobile menu dark background to full screen width */
      .mobile-menu { margin-left: -1.25rem; margin-right: -1.25rem; }
      .mobile-menu a, .mobile-logout-btn { padding-left: 1.25rem; padding-right: 1.25rem; }
      .hero-full h1 { font-size: 2.5rem; }
      .hero-full-content { padding: 3rem 1.5rem 4rem; }
      .section-header { flex-direction: column; gap: 1rem; }
      .container { padding: 0 1.25rem; }
      .main-inner { padding: 2.5rem 0; }
      .hero { padding: 5rem 0 3rem; }
      .hero h1 { font-size: 2rem; }
      .section-title { font-size: 1.75rem; }
      h1 { font-size: 2rem; }
      h2 { font-size: 1.5rem; }
      .article-layout aside { display: none; }
      .btn { min-height: 2.75rem; }
      .search-bar { flex-wrap: wrap; }
      .search-bar input { width: 100%; }
      .search-bar button { width: 100%; }
      .pagination { gap: 0.25rem; }
      .pagination a, .pagination span { min-width: 2rem; height: 2rem; font-size: 0.8125rem; }
      :root { --section-gap: 3rem; }
    }

    /* ── Article layout ── */
    .article-layout {
      display: grid; grid-template-columns: 1fr;
      gap: 3rem; align-items: start;
    }
    @media (min-width: 768px) { .article-layout { grid-template-columns: 1fr 16rem; } }
    .empty-state { text-align: center; padding: 5rem 2rem; color: var(--muted-foreground); }
    img { max-width: 100%; height: auto; }

    /* ── Typography defaults ── */
    h1 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.1; letter-spacing: -0.02em; }
    h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.15; letter-spacing: -0.02em; }
    h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
    p { margin-bottom: 1rem; }

    /* ── Article content typography ── */
    .article-content { line-height: 1.85; font-size: 1.0625rem; letter-spacing: 0.01em; word-break: break-word; overflow-wrap: break-word; }
    .article-content h1 { font-size: 2rem; font-weight: 700; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); }
    .article-content h2 { font-size: 1.625rem; font-weight: 700; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
    .article-content h3 { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 0.75rem; padding-left: 0.75rem; border-left: 3px solid var(--primary); }
    .article-content h4 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
    .article-content h5 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 0.4rem; }
    .article-content h6 { font-size: 0.9rem; font-weight: 600; color: var(--muted-foreground); margin: 1rem 0 0.4rem; }
    .article-content p { margin-bottom: 1.5rem; }
    .article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
    .article-content a:hover { opacity: 0.8; }
    .article-content strong { font-weight: 700; }
    .article-content em { font-style: italic; }
    .article-content code {
      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
      font-size: 0.875em; background: #f5f5f5; border: 1px solid #e5e5e5;
      padding: 0.1em 0.4em;
    }
    .article-content pre {
      background: #1A1A1A; padding: 1.5rem;
      overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 2rem 0;
    }
    .article-content pre code {
      background: none; border: none; padding: 0;
      font-size: 0.875rem; color: #e5e5e5;
    }
    .article-content blockquote {
      margin: 2rem 0; padding: 1.5rem 2rem;
      border-left: 4px solid var(--primary);
      background: var(--muted); font-style: italic; font-size: 1.125rem;
    }
    .article-content blockquote p:last-child { margin-bottom: 0; }
    .article-content ul, .article-content ol { margin: 1rem 0 1.5rem 2rem; }
    .article-content li { margin-bottom: 0.5rem; }
    .article-content ul li { list-style-type: disc; }
    .article-content ol li { list-style-type: decimal; }
    .article-content img { max-width: 100%; height: auto; margin: 2rem auto; display: block; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
    .article-content picture { display: contents; }
    .article-body-img { border-radius: 0.5rem; }
    .article-content table {
      width: 100%; border-collapse: collapse; margin: 2rem 0;
      font-size: 0.9rem; border: 1px solid var(--border);
    }
    .article-content th {
      background: var(--muted); padding: 0.75rem 1rem;
      text-align: left; font-weight: 600;
      border-bottom: 2px solid var(--border);
    }
    .article-content td { padding: 0.625rem 1rem; border-bottom: 1px solid var(--border); }
    .article-content tr:last-child td { border-bottom: none; }
    .article-content tr:nth-child(even) td { background: var(--muted); }
    .article-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
    @media (max-width: 767px) {
      .article-content { font-size: 1rem; }
      .article-content h1 { font-size: 1.5rem; }
      .article-content h2 { font-size: 1.25rem; }
      .article-content h3 { font-size: 1.125rem; }
      .article-content pre { margin-left: -1rem; margin-right: -1rem; }
      .article-content table { display: block; overflow-x: auto; }
    }

    /* ── Article detail components ── */
    .article-sidebar { }
    .article-sidebar-sticky { position: sticky; top: 4rem; }
    .article-header { margin-bottom: 2rem; }
    .article-cover-picture { display: block; width: 100%; aspect-ratio: 16/9; margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden; }
    .article-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .article-description { color: var(--muted-foreground); font-size: 1.125rem; margin: 0.5rem 0; }
    .article-meta-row { display: flex; gap: 1rem; font-size: 0.875rem; color: var(--muted-foreground); margin-top: 1rem; flex-wrap: wrap; }
    .article-meta-updated { color: var(--primary); font-weight: 600; }
    .article-tags-row { margin-top: 1rem; }
    .article-back-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
    .article-back-link { color: var(--muted-foreground); }
    .toc-heading { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.5rem; }
    .explore-nearby-widget { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; }
    .rating-bar { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.75rem 0; text-decoration: none; color: inherit; }
    .rating-value { font-weight: 600; }
    .rating-count { color: var(--muted-foreground); font-size: 0.875rem; }

    /* ── Article detail: LBS/sections ── */
    .section-mt3 { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
    .section-cta { margin-top: 3rem; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--muted); }
    .section-heading-mb { margin-bottom: 0.75rem; }
    .section-heading-sm { font-size: 1.125rem; margin-bottom: 1rem; }
    .section-comments { margin-top: 3rem; }
    .flex-row-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
    .flex-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
    .text-muted-foreground { color: var(--muted-foreground); }
    .text-muted-sm { color: var(--muted-foreground); font-size: 0.9375rem; }
    .mt-1 { margin-top: 0.5rem; }
    .mt-4 { margin-top: 1rem; }
    .mt-6 { margin-top: 1.5rem; }
    .mb-1 { margin-bottom: 0.25rem; }
    .lbs-nearby-status { display: none; margin-top: 0.75rem; color: var(--muted-foreground); font-size: 0.9rem; }
    .lbs-nearby-manual { display: none; margin-top: 0.75rem; }
    .lbs-nearby-results { margin-top: 1rem; }
    .lbs-mini-map { display: none; height: 180px; border-radius: 8px; margin-bottom: 0.75rem; overflow: hidden; }
    .tips-list { margin-top: 1rem; }
    .tip-item { padding: 0.75rem 1rem; background: var(--muted); border-radius: var(--radius); margin-bottom: 0.75rem; }
    .tip-content { margin: 0 0 0.25rem; }
    .tip-date { color: var(--muted-foreground); }
    .tips-empty { color: var(--muted-foreground); }
    .tips-success { display: none; color: var(--primary); margin-top: 0.5rem; }
    .tips-auth-prompt { display: none; margin-top: 1.5rem; }
    .tips-form-wrapper { display: none; margin-top: 1.5rem; }
    .tips-textarea { width: 100%; padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); resize: vertical; font-size: 0.875rem; }
    .tips-textarea-actions { margin-top: 0.5rem; }
    .comments-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
    .comments-title { margin: 0; }
    .comments-count { color: var(--muted-foreground); font-size: 0.9375rem; }
    .comment-item { padding: 1rem; background: var(--muted); border-radius: var(--radius); margin-bottom: 0.75rem; }
    .comment-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.25rem; }
    .comment-author { font-weight: 600; }
    .comment-stars { margin-left: 0.5rem; color: #f59e0b; }
    .comment-body { margin: 0; }
    .comments-empty { color: var(--muted-foreground); }
    .comments-success { display: none; color: var(--primary); margin-top: 0.5rem; }
    .comments-auth-prompt { display: none; margin-top: 1.5rem; }
    .comments-form-wrapper { display: none; margin-top: 1.5rem; }
    .comments-form-field { margin-bottom: 0.75rem; }
    .comments-input { width: 100%; padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; box-sizing: border-box; }
    .comments-rating-label { font-size: 0.875rem; color: var(--muted-foreground); display: block; margin-bottom: 0.25rem; }
    .stars-input { display: flex; gap: 0.25rem; font-size: 1.75rem; line-height: 1; }
    .star-btn { cursor: pointer; color: var(--muted-foreground); }
    .comments-textarea { width: 100%; padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); resize: vertical; font-size: 0.875rem; box-sizing: border-box; }
    .load-more-wrapper { margin-top: 1rem; text-align: center; }
    .poi-tooltip { display: none; position: fixed; z-index: 1000; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,0.12); padding: 1rem; max-width: 280px; pointer-events: none; }
    .poi-tooltip-img-wrap { display: none; margin-bottom: 0.75rem; border-radius: calc(var(--radius) - 2px); overflow: hidden; aspect-ratio: 16/9; }
    .poi-tooltip-name { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; }
    .poi-tooltip-desc { font-size: 0.8125rem; color: var(--muted-foreground); line-height: 1.5; margin-bottom: 0.5rem; }
    .poi-tooltip-link { font-size: 0.8125rem; color: var(--primary); pointer-events: auto; }
    .poi-drawer-overlay { display: none; position: fixed; inset: 0; z-index: 999; background: rgba(0,0,0,0.4); }
    .poi-drawer { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; background: var(--background); border-top-left-radius: calc(var(--radius) * 2); border-top-right-radius: calc(var(--radius) * 2); padding: 1.5rem 1.25rem 2rem; box-shadow: 0 -4px 24px rgba(0,0,0,0.15); max-height: 80vh; overflow-y: auto; }
    .drawer-handle { width: 2.5rem; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 1.25rem; }
    .poi-drawer-img-wrap { display: none; margin-bottom: 1rem; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
    .poi-drawer-name { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; }
    .poi-drawer-desc { font-size: 0.9375rem; color: var(--muted-foreground); line-height: 1.6; margin-bottom: 1rem; }
    .img-cover { width: 100%; height: 100%; object-fit: cover; }
    .few-reviews-note-text { color: var(--muted-foreground); font-size: 0.9rem; margin-bottom: 1rem; }
    .itin-stop-nav-link { font-size: 0.75rem; color: var(--primary); text-decoration: none; margin-left: auto; }

    /* ── Tags, chips, breadcrumbs ── */
    .tag {
      display: inline-block; padding: 0.2rem 0.625rem;
      font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em;
      text-transform: uppercase; background: var(--muted); color: var(--muted-foreground);
      margin: 0.2rem; transition: background 0.15s;
    }
    .tag:hover { background: var(--foreground); color: #fff; }
    .breadcrumb { display: flex; gap: 0.5rem; font-size: 0.8125rem; color: var(--muted-foreground); margin-bottom: 1.5rem; align-items: center; }
    .breadcrumb a { color: var(--muted-foreground); transition: color 0.2s; }
    .breadcrumb a:hover { color: var(--foreground); }
    .breadcrumb span { color: var(--foreground); }
    .reading-time { font-size: 0.75rem; color: var(--muted-foreground); }
    .alert { padding: 1rem 1.25rem; margin-bottom: 1rem; background: var(--muted); border-left: 3px solid var(--primary); }

    /* ── Form elements ── */
    select, input[type=text], input[type=email], textarea {
      width: 100%; padding: 0.625rem 0.875rem;
      border: 1px solid var(--border); font-size: 0.9375rem;
      background: var(--card); outline: none; font-family: var(--font-body);
      transition: border-color 0.2s;
    }
    select:focus, input[type=text]:focus, input[type=email]:focus, textarea:focus { border-color: var(--foreground); }
    .form-group { margin-bottom: 1.25rem; }
    .form-group label { display: block; font-weight: 600; margin-bottom: 0.375rem; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; }

    /* ── PWA / Toast ── */
    #share-toast { display: none; position: fixed; bottom: 4rem; left: 50%; transform: translateX(-50%); background: var(--foreground); color: #fff; padding: 0.625rem 1.25rem; font-size: 0.875rem; z-index: 50; }
    #share-toast.visible { display: block; }
    #pwa-install-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--foreground); color: #fff; padding: 0.875rem 1.5rem; align-items: center; justify-content: space-between; z-index: 200; }
    #pwa-install-banner.visible { display: flex; }
    .back-to-top { display: none; position: fixed; bottom: 1.5rem; right: 1.5rem; width: 2.75rem; height: 2.75rem; border-radius: 100rem; background: var(--primary); color: #fff; border: none; cursor: pointer; font-size: 1.5rem; line-height: 1; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.2); transition: opacity 0.2s, transform 0.2s; }
    .back-to-top:hover { opacity: 0.85; transform: translateY(-2px); }
    .back-to-top.visible { display: flex; align-items: center; justify-content: center; }
    .pwa-banner-actions { display: flex; gap: 0.5rem; }
    #pwa-install-btn { background: #fff; color: var(--foreground); }
    #pwa-dismiss-btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }

    /* ── Floating Share Bar ── */
    .share-floating { position: fixed; right: 1.25rem; top: 50%; transform: translateY(-50%); z-index: 90; display: none; flex-direction: column; gap: 0.5rem; }
    .share-floating.visible { display: flex; }
    .share-floating-btn { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--card); border: 1px solid var(--border); cursor: pointer; font-size: 1rem; text-decoration: none; color: var(--foreground); transition: background 0.15s, transform 0.15s; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
    .share-floating-btn:hover { background: var(--muted); transform: scale(1.1); }
    .share-floating { transition: transform 0.25s ease, opacity 0.25s ease; }
    /* TOU-1698: auto-hide on scroll-down — desktop right strip slides offscreen to the right */
    .share-floating.share-floating-hidden { transform: translateY(-50%) translateX(150%); opacity: 0; pointer-events: none; }
    @media (max-width: 767px) {
      .share-floating { top: auto; bottom: 0; right: 0; left: 0; transform: none; flex-direction: row; justify-content: space-around; background: var(--card); border-top: 1px solid var(--border); padding: 0.5rem; width: 100%; box-shadow: 0 -2px 8px rgba(0,0,0,.1); border-radius: 0; }
      /* TOU-1698: mobile bottom bar slides down offscreen when hidden */
      .share-floating.share-floating-hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }
      /* TOU-1698: reserve space so the fixed bottom bar does not obstruct the end of the article content */
      body.has-share-floating-bar { padding-bottom: 4rem; }
    }
    /* ── WeChat QR Modal ── */
    .wechat-qr-modal { display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center; }
    .wechat-qr-modal.visible { display: flex; }
    .wechat-qr-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); cursor: pointer; }
    .wechat-qr-inner { position: relative; background: var(--card); border: 1px solid var(--border); padding: 2rem; text-align: center; max-width: 18rem; width: 90%; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
    .wechat-qr-close { position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none; cursor: pointer; font-size: 1.25rem; color: var(--muted-foreground); line-height: 1; }
    .wechat-qr-heading { font-weight: 600; margin-bottom: 1rem; }
    .wechat-qr-img-wrap { display: flex; align-items: center; justify-content: center; }
    .wechat-qr-img { width: 10rem; height: 10rem; border: 1px solid var(--border); }
    .wechat-qr-url { margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted-foreground); word-break: break-all; }

    /* ── Search dropdown ── */
    .search-wrapper { position: relative; }
    .search-dropdown { position: absolute; top: 100%; background: #fff; border: 1px solid var(--border); width: 100%; max-height: 18.75rem; overflow-y: auto; list-style: none; padding: 0; margin: 0; z-index: 100; box-shadow: 0 8px 32px rgba(0,0,0,.12); display: none; }
    .search-dropdown.open { display: block; }
    .search-dropdown-portal { position: fixed; background: #fff; border: 1px solid var(--border); max-height: 18.75rem; overflow-y: auto; list-style: none; padding: 0; margin: 0; z-index: 9999; box-shadow: 0 8px 32px rgba(0,0,0,.12); display: none; }
    .search-dropdown-portal.open { display: block; }
    .search-dropdown-item { padding: 0.625rem 1rem; cursor: pointer; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
    .search-dropdown-item:last-child { border-bottom: none; }
    .search-dropdown-item.active, .search-dropdown-item:hover { background: var(--muted); }
    .search-dropdown-group-header { padding: 0.375rem 1rem; font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; background: var(--muted); border-bottom: 1px solid var(--border); pointer-events: none; }
    .search-dropdown-empty { padding: 0.75rem 1rem; font-size: 0.875rem; color: var(--muted-foreground); text-align: center; }
    .clipboard-helper { position: fixed; opacity: 0; }

    /* ── TOC ── */
    .toc-list { list-style: none; padding: 0; margin: 0; font-size: 0.875rem; }
    .toc-item { margin: 0.375rem 0; }
    .toc-link { color: var(--muted-foreground); text-decoration: none; display: block; border-left: 2px solid transparent; padding-left: 0.75rem; transition: color 0.2s, border-color 0.2s; }
    .toc-link.h3 { padding-left: 1.75rem; }
    .toc-link:hover { color: var(--foreground); border-color: var(--border); }
    .toc-link.active { color: var(--foreground); border-color: var(--foreground); font-weight: 600; }

    /* ── Chip / Pill filters ── */
    .chip {
      display: inline-block; padding: 0.375rem 1rem;
      font-size: 0.8125rem; font-weight: 500;
      background: var(--card); color: var(--foreground);
      border: 1.5px solid var(--border); text-decoration: none;
      transition: background 0.15s, color 0.15s, border-color 0.15s;
    }
    .chip:hover { border-color: var(--foreground); color: var(--foreground); }
    .chip-active { background: var(--foreground); color: #ffffff; border-color: var(--foreground); }
    .pill {
      display: inline-block; padding: 0.375rem 1rem;
      font-size: 0.8125rem; font-weight: 500;
      background: var(--muted); color: var(--muted-foreground);
      text-decoration: none; transition: background 0.15s, color 0.15s;
    }
    .pill:hover { background: var(--border); color: var(--foreground); }
    .pill-active { background: var(--foreground); color: #ffffff; }

    /* ── Search discovery ── */
    .search-discovery { margin-top: 2rem; }
    .discovery-section { margin-bottom: 2rem; }
    .discovery-label { font-size: 0.6875rem; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.875rem; }
    .search-tags, .quick-categories { display: flex; gap: 0.5rem; flex-wrap: wrap; }
    .search-tag, .category-chip {
      display: inline-block; padding: 0.375rem 0.875rem;
      font-size: 0.8125rem; background: var(--card); color: var(--foreground);
      border: 1px solid var(--border); text-decoration: none;
      transition: border-color 0.15s, color 0.15s;
    }
    .search-tag:hover, .category-chip:hover { border-color: var(--foreground); color: var(--foreground); }
    .poi-bubble { display: flex; flex-direction: column; align-items: center; cursor: pointer; }
    .poi-bubble-img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.3); object-fit: cover; background: #e5e7eb; }
    .poi-bubble-name { margin-top: 2px; padding: 1px 6px; font-size: 11px; font-weight: 600; color: #1a1a1a; background: rgba(255,255,255,0.92); border-radius: 4px; white-space: nowrap; max-width: 100px; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 1px 3px rgba(0,0,0,0.15); line-height: 1.4; }
    .poi-bubble-popup-img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
    .poi-bubble-popup-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
    .poi-bubble-popup-articles { list-style: none; padding: 0; margin: 0; }
    .poi-bubble-popup-articles li { margin-bottom: 4px; }
    .poi-bubble-popup-articles a { color: #2563eb; text-decoration: none; font-size: 13px; }
    .poi-bubble-popup-articles a:hover { text-decoration: underline; }

    /* ── POI marker clustering (TOU-1699) ── */
    .poi-cluster-icon { box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #2563eb; color: #fff; font-weight: 700; font-size: 13px; border: 3px solid rgba(255,255,255,0.9); box-shadow: 0 2px 8px rgba(37,99,235,0.45); text-align: center; }
    .poi-popup-actions { margin-top: 8px; }
    .poi-gmaps-nav { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: #fff; background: #1a73e8; border-radius: 6px; text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
    .poi-gmaps-nav:hover { background: #1666d0; text-decoration: none; }
    .poi-gmaps-nav-icon { font-size: 13px; line-height: 1; }

    /* ── Account Page ── */
    .account-page { max-width: 56rem; }
    .account-profile { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
    .account-avatar-wrap { flex-shrink: 0; }
    .account-avatar { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
    .account-avatar-placeholder { width: 5rem; height: 5rem; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; font-weight: 700; text-transform: uppercase; }
    .account-profile-info { flex: 1; min-width: 0; }
    .account-name { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
    .account-email { color: var(--muted-foreground); font-size: 0.875rem; margin-bottom: 0.75rem; }
    .account-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
    .account-action-btn { font-size: 0.75rem; padding: 0.5rem 1rem; }
    .account-section { margin-bottom: 2.5rem; }
    .account-section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.25rem; border-bottom: 2px solid var(--foreground); padding-bottom: 0.625rem; }
    .account-section-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; }
    .account-card { text-decoration: none; color: inherit; }
    .account-stats { display: flex; gap: 2rem; }
    .account-stat { display: flex; flex-direction: column; align-items: center; padding: 1.5rem 2rem; background: var(--muted); flex: 1; }
    .account-stat-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; line-height: 1; margin-bottom: 0.25rem; }
    .account-stat-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
    .account-empty-hint { color: var(--muted-foreground); font-size: 0.875rem; padding: 1.5rem 0; }
    .account-cta { text-align: center; padding: 6rem 2rem; max-width: 36rem; margin: 0 auto; }
    .account-cta-icon { color: var(--muted-foreground); margin-bottom: 1.5rem; }
    .account-cta-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin-bottom: 1rem; }
    .account-cta-subtitle { color: var(--muted-foreground); font-size: 1.125rem; line-height: 1.6; margin-bottom: 2rem; }
    .account-cta-buttons { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
    @media (max-width: 767px) {
      .account-profile { flex-direction: column; text-align: center; }
      .account-actions { justify-content: center; }
      .account-stats { flex-direction: column; gap: 0.75rem; }
      .account-stat { flex-direction: row; gap: 0.75rem; padding: 1rem 1.5rem; justify-content: center; }
      .account-cta { padding: 4rem 1.5rem; }
    }

    /* ── Saved Page Empty State ── */
    .saved-header { margin-bottom: 1.5rem; }
    .saved-empty { text-align: center; padding: 5rem 2rem; }
    .saved-empty-icon { color: var(--muted-foreground); margin-bottom: 1.25rem; }
    .saved-empty-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
    .saved-empty-desc { color: var(--muted-foreground); font-size: 0.9375rem; margin-bottom: 1.5rem; max-width: 28rem; margin-left: auto; margin-right: auto; }

    /* ── Reading Progress Bar ── */
    #reading-progress{position:fixed;top:0;left:0;z-index:9999;width:var(--reading-progress,0%);height:3px;background:var(--primary);transition:width .1s linear;pointer-events:none}

    /* ── Image Zoom Lightbox (image-zoom.js) ── */
    .article-content img.img-zoomable{cursor:zoom-in}
    .img-lightbox{position:fixed;inset:0;z-index:10000;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.92);touch-action:none;overscroll-behavior:contain}
    .img-lightbox.open{display:flex}
    .img-lightbox-img{max-width:100%;max-height:100%;transform-origin:center center;transition:transform .05s linear;will-change:transform;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
    .img-lightbox-close{position:absolute;top:12px;right:12px;z-index:1;width:40px;height:40px;border:none;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;font-size:1.25rem;line-height:1;cursor:pointer}
    .img-lightbox-close:hover{background:rgba(0,0,0,.75)}

    /* ── Pull To Refresh (pull-refresh.js) ── */
    .ptr-indicator{height:0;opacity:0;overflow:hidden;display:flex;align-items:center;justify-content:center;transition:height .15s ease,opacity .15s ease;pointer-events:none}
    .ptr-spinner{width:22px;height:22px;border:2px solid var(--muted-foreground);border-top-color:var(--primary);border-radius:50%}
    .ptr-indicator.ptr-loading .ptr-spinner{animation:ptr-spin .7s linear infinite}
    @keyframes ptr-spin{to{transform:rotate(360deg)}}

    /* ── SEO Interlink Styling ── */
    .article-content a.interlink{color:inherit;text-decoration:none;border-bottom:1px dashed var(--muted-foreground);transition:border-color .15s,color .15s}
    .article-content a.interlink:hover{color:var(--primary);border-bottom-color:var(--primary);border-bottom-style:solid}

    /* ── Article POI Map Magazine Section ── */
    .poi-map-section {
      margin-top: 3rem;
      padding-top: 2.5rem;
      border-top: 1px solid var(--border);
    }
    .poi-map-header {
      display: flex;
      align-items: baseline;
      gap: 1rem;
      margin-bottom: 1.25rem;
    }
    .poi-map-header h2 {
      font-family: var(--font-display);
      font-size: 1.75rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin: 0;
    }
    .poi-map-frame {
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--card);
    }
    .poi-map-container {
      width: 100%;
      height: 340px;
    }

    /* ── POI Cards Magazine Grid ── */
    .poi-cards-section {
      margin-top: 3rem;
      padding-top: 2.5rem;
      border-top: 1px solid var(--border);
    }
    .poi-cards-header {
      margin-bottom: 1.25rem;
    }
    .poi-cards-header h2 {
      font-family: var(--font-display);
      font-size: 1.75rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin: 0;
    }

    /* ── Continue Reading ── */
    .related-section {
      margin-top: 3rem;
      padding-top: 2.5rem;
      border-top: 1px solid var(--border);
    }
    .related-header {
      margin-bottom: 1.25rem;
    }
    .related-header h2 {
      font-family: var(--font-display);
      font-size: 1.75rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin: 0;
    }
    .related-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      margin-bottom: 1.5rem;
    }
    .related-meta {
      display: flex;
      gap: 0.5rem;
      margin-top: 0.5rem;
      flex-wrap: wrap;
      align-items: center;
    }
    .related-dest {
      font-size: 0.75rem;
      background: var(--muted);
      padding: 0.125rem 0.5rem;
      border-radius: 999px;
      color: var(--muted-foreground);
    }
    @media (max-width: 767px) {
      .related-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 0.5rem;
      }
      .related-grid .card {
        flex: 0 0 78%;
        min-width: 240px;
        scroll-snap-align: start;
      }
    }

    /* ── CSS Star Rating ── */
    .rating-stars-css {
      display: inline-flex;
      gap: 0.1rem;
      font-size: 1.1rem;
      line-height: 1;
      vertical-align: middle;
    }
    .rating-stars-css .star {
      color: #d1d5db;
    }
    .rating-stars-css .star-full {
      color: #f59e0b;
    }
    .rating-stars-css .star-half {
      background: linear-gradient(90deg, #f59e0b 50%, #d1d5db 50%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* ── Author Block ── */
    .author-block {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin: 1rem 0;
    }
    .author-avatar {
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 50%;
      background: var(--primary);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1rem;
      flex-shrink: 0;
      text-transform: uppercase;
    }
    .author-name {
      font-weight: 600;
      font-size: 0.9375rem;
      color: var(--foreground);
    }
    .author-label {
      font-size: 0.75rem;
      color: var(--muted-foreground);
    }

    /* ── More Guides Section ── */
    .more-guides-section {
      margin-top: 3rem;
      padding-top: 2.5rem;
      border-top: 1px solid var(--border);
    }
    .more-guides-header {
      margin-bottom: 1.25rem;
    }
    .more-guides-header h2 {
      font-family: var(--font-display);
      font-size: 1.75rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin: 0;
    }
    .more-guides-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
    }
    @media (max-width: 767px) {
      .more-guides-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 0.5rem;
      }
      .more-guides-grid .card {
        flex: 0 0 78%;
        min-width: 240px;
        scroll-snap-align: start;
      }
    }

    /* ── Rating Distribution Chart ── */
    .rating-dist-chart {
      margin: 1.25rem 0;
      max-width: 360px;
    }
    .rating-dist-row {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 0.375rem;
      font-size: 0.8125rem;
    }
    .rating-dist-label {
      flex-shrink: 0;
      width: 3.5rem;
      text-align: right;
      color: var(--muted-foreground);
    }
    .rating-dist-bar-bg {
      flex: 1;
      height: 0.5rem;
      background: var(--muted, #e5e7eb);
      border-radius: 0.25rem;
      overflow: hidden;
    }
    .rating-dist-bar-fill {
      height: 100%;
      background: #f59e0b;
      border-radius: 0.25rem;
      transition: width 0.3s ease;
    }
    .rating-dist-count {
      flex-shrink: 0;
      width: 2rem;
      text-align: right;
      color: var(--muted-foreground);
      font-size: 0.75rem;
    }

    /* ── Article Action Bar ── */
    .article-action-bar {
      display: flex;
      gap: 0.5rem;
      align-items: center;
      margin-top: 1rem;
      overflow-x: auto;
      flex-wrap: nowrap;
      -webkit-overflow-scrolling: touch;
      max-width: 100%;
    }
    .article-action-bar .btn {
      white-space: nowrap;
      flex-shrink: 0;
    }
    .article-action-bar-label {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--muted-foreground);
      white-space: nowrap;
      flex-shrink: 0;
    }
    .article-detail-main {
      min-width: 0;
    }
    .share-count {
      font-size: 0.75rem;
      color: var(--muted-foreground);
      margin-left: 0.25rem;
      flex-shrink: 0;
    }
    .share-bar-mobile {
      display: none;
      margin-top: 1rem;
    }
    @media (max-width: 767px) {
      .share-bar-mobile { display: block; }
    }

    /* ── Itinerary Section ── */
    .itin-section{margin-top:3rem;padding-top:2.5rem;border-top:1px solid var(--border)}
    .itin-header{display:flex;align-items:baseline;gap:1rem;margin-bottom:1.25rem}
    .itin-header h2{font-family:var(--font-display);font-size:1.75rem;font-weight:700;letter-spacing:-0.02em;margin:0}
    .itin-header-sub{font-size:0.6875rem;font-weight:600;letter-spacing:0.1em;text-transform:uppercase;color:var(--muted-foreground)}
    .itin-frame{display:grid;grid-template-columns:1fr;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--card)}
    @media(min-width:768px){.itin-frame{grid-template-columns:3fr 2fr;height:520px}}
    .itin-map{width:100%;height:280px}
    @media(min-width:768px){.itin-map{height:100%}}
    .itin-stops{overflow-y:auto;padding:1rem 1.25rem;border-top:1px solid var(--border)}
    @media(min-width:768px){.itin-stops{border-top:none;border-left:1px solid var(--border)}}
    .itin-day{font-size:0.6875rem;font-weight:600;letter-spacing:0.12em;text-transform:uppercase;color:var(--primary);padding:0.625rem 0 0.375rem}
    .itin-day:first-child{padding-top:0}
    .itin-stop{display:flex;gap:0.625rem;align-items:flex-start;padding:0.5rem 0.375rem;cursor:pointer;transition:background 0.15s;border-bottom:1px solid var(--border)}
    .itin-stop:last-child{border-bottom:none}
    .itin-stop:hover,.itin-stop.active{background:var(--muted)}
    .itin-stop-num{flex-shrink:0;width:24px;height:24px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:11px;margin-top:1px}
    .itin-stop-body{flex:1;min-width:0}
    .itin-stop-name{font-weight:600;font-size:0.875rem;line-height:1.35}
    .itin-stop-meta{display:flex;gap:0.375rem;flex-wrap:wrap;margin-top:2px;align-items:center}
    .itin-stop-cat{font-size:0.6875rem;padding:1px 6px;background:var(--muted);color:var(--muted-foreground)}
    .itin-stop-time{font-size:0.6875rem;color:var(--muted-foreground)}
    .itin-stop-notes{font-size:0.75rem;color:var(--muted-foreground);margin-top:2px;line-height:1.4}
    .itin-stop-thumb{width:48px;height:48px;object-fit:cover;border-radius:2px;flex-shrink:0}

    /* ── Planner page ── */
    .planner-hero {
      position: relative;
      padding: 5.5rem 0 4rem;
      background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1a1a2e 100%);
      overflow: hidden;
      margin-bottom: 3rem;
    }
    .planner-hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(232,52,28,0.12) 0%, transparent 65%),
        radial-gradient(ellipse 50% 80% at 20% 80%, rgba(100,116,139,0.15) 0%, transparent 60%);
      pointer-events: none;
    }
    .planner-hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, transparent 60%, rgba(255,255,255,0.04) 100%);
      pointer-events: none;
    }
    .planner-hero-content {
      position: relative;
      z-index: 1;
      max-width: 80rem;
      margin: 0 auto;
      padding: 0 2rem;
    }
    .planner-hero-kicker {
      display: inline-block;
      font-size: 0.6875rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--primary);
      background: rgba(232,52,28,0.12);
      border: 1px solid rgba(232,52,28,0.25);
      padding: 0.3rem 0.875rem;
      margin-bottom: 1.25rem;
    }
    .planner-hero-title {
      font-family: var(--font-display);
      font-size: clamp(2.5rem, 6vw, 4.5rem);
      font-weight: 900;
      line-height: 1.05;
      letter-spacing: -0.025em;
      color: #ffffff;
      margin-bottom: 1rem;
      max-width: 20ch;
    }
    .planner-hero-desc {
      font-size: clamp(1rem, 1.5vw, 1.125rem);
      color: rgba(255,255,255,0.65);
      max-width: 44ch;
      line-height: 1.65;
      margin: 0;
    }
    .label-opt { font-weight:400; color:var(--muted-foreground); }
    .planner-days-input { width:4rem; }
    .planner-empty-title { font-weight:600; font-size:1.125rem; color:var(--foreground); margin-bottom:0.25rem; }
    #results-content { display:none; }
    #view-tabs { display:none; }
    #planner-map-no-data { display:none; }
    .planner-layout { display: grid; gap: 2rem; }
    @media (min-width: 900px) { .planner-layout { grid-template-columns: 22rem 1fr; align-items: start; } }

    /* Form card with elevated depth */
    .planner-form-card {
      background: var(--card);
      border-radius: 0.75rem;
      box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
      border: 1px solid var(--border);
      padding: 1.5rem;
      position: sticky;
      top: 4.5rem;
    }
    .planner-form-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; letter-spacing: -0.01em; }

    /* Scoped focus styles for planner form inputs */
    .planner-form-card select:focus,
    .planner-form-card input[type=number]:focus,
    .planner-form-card input[type=text]:focus {
      border-color: var(--primary);
      outline: 2px solid color-mix(in srgb, var(--primary) 25%, transparent);
      outline-offset: 0;
    }

    .city-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; min-height: 2rem; }
    .city-chip {
      display: inline-flex; align-items: center; gap: 0.375rem;
      padding: 0.3rem 0.75rem; border-radius: 2rem; font-size: 0.8rem;
      background: var(--muted); color: var(--foreground);
      border: 1.5px solid var(--border); cursor: pointer;
      transition: background 0.15s, border-color 0.15s, transform 0.1s;
      user-select: none;
    }
    .city-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
    .city-chip.selected { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
    .city-chip-empty { font-size: 0.8rem; color: var(--muted-foreground); padding: 0.3rem 0; }
    .travel-types { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
    .type-chip {
      display: inline-flex; align-items: center; gap: 0.375rem;
      padding: 0.375rem 0.875rem; border-radius: 2rem; font-size: 0.8125rem;
      background: var(--card); color: var(--foreground);
      border: 1.5px solid var(--border); cursor: pointer;
      transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
      user-select: none; box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    }
    .type-chip:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,0.10); }
    .type-chip.selected { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); box-shadow: 0 2px 6px rgba(232,52,28,0.35); }

    /* Generate button with hover/active animations */
    .generate-btn {
      width: 100%; padding: 0.875rem;
      background: var(--primary); color: var(--primary-foreground);
      border: none; border-radius: 0.5rem;
      font-size: 1rem; font-weight: 600; cursor: pointer;
      margin-top: 0.75rem;
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
      display: flex; align-items: center; justify-content: center; gap: 0.5rem;
      box-shadow: 0 2px 8px rgba(232,52,28,0.3);
    }
    .generate-btn:hover { background: #c82a14; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(232,52,28,0.4); }
    .generate-btn:active { transform: translateY(0); box-shadow: 0 2px 6px rgba(232,52,28,0.25); }
    .generate-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }

    /* Stop generation button */
    .stop-btn {
      width: 100%; padding: 0.75rem;
      background: var(--muted); color: var(--foreground);
      border: 1.5px solid var(--border); border-radius: 0.5rem;
      font-size: 0.9375rem; font-weight: 600; cursor: pointer;
      margin-top: 0.5rem;
      transition: background 0.15s, border-color 0.15s, transform 0.1s;
      display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    }
    .stop-btn:hover { background: #fef2f2; border-color: #fca5a5; color: #dc2626; transform: translateY(-1px); }
    .stop-btn:active { transform: translateY(0); }

    .spinner { display: inline-block; width: 1.125rem; height: 1.125rem; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }
    .input-error { border-color: #dc2626 !important; box-shadow: 0 0 0 2px rgba(220,38,38,0.25) !important; }
    .results-panel { min-height: 12rem; }
    .results-empty {
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 1.25rem; padding: 4rem 2rem; color: var(--muted-foreground); text-align: center;
      border: 1px solid var(--border); border-radius: 0.75rem;
      background: linear-gradient(135deg, var(--muted) 0%, var(--card) 100%);
    }
    .results-empty-icon {
      width: 3.5rem; height: 3.5rem; border-radius: 50%;
      background: linear-gradient(135deg, #e8341c22 0%, #1e293b22 100%);
      border: 2px solid var(--border);
      flex-shrink: 0;
    }
    .itinerary-header { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
    .itinerary-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; }
    .itinerary-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
    .itinerary-tag { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 100rem; font-size: 0.75rem; font-weight: 500; background: var(--muted); color: var(--muted-foreground); }

    /* Save button with hover animation */
    .save-btn {
      display: inline-flex; align-items: center; gap: 0.5rem;
      padding: 0.625rem 1.25rem;
      background: var(--primary); color: var(--primary-foreground);
      border: none; border-radius: 0.5rem;
      font-size: 0.875rem; font-weight: 600; cursor: pointer;
      transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
      white-space: nowrap;
      box-shadow: 0 2px 6px rgba(232,52,28,0.25);
    }
    .save-btn:hover { background: #c82a14; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232,52,28,0.35); }
    .save-btn:active { transform: translateY(0); }
    .save-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
    .save-btn.saved { background: #16a34a; box-shadow: 0 2px 6px rgba(22,163,74,0.25); }
    .save-btn.saved:hover { background: #15803d; box-shadow: 0 4px 12px rgba(22,163,74,0.35); }

    .day-list { display: flex; flex-direction: column; gap: 1.25rem; }
    .day-card {
      background: var(--card); border-radius: 0.75rem;
      box-shadow: 0 2px 8px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.05);
      border: 1px solid var(--border);
      overflow: hidden; position: relative;
      transition: box-shadow 0.2s, transform 0.15s;
    }
    .day-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06); transform: translateY(-1px); }
    .day-card-header {
      display: flex; align-items: center; gap: 1rem;
      padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
      background: linear-gradient(135deg, var(--muted) 0%, #f0ede8 100%);
    }
    .day-badge { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: var(--primary-foreground); font-weight: 700; font-size: 0.875rem; flex-shrink: 0; box-shadow: 0 1px 4px rgba(232,52,28,0.3); }
    .day-city { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
    .day-activities { padding: 1rem 1.25rem; }
    .activity-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; flex-wrap: wrap; }
    .activity-item:last-child { border-bottom: none; }
    .activity-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 0.45rem; }
    .share-box { margin-top: 1.5rem; display: none; background: var(--muted); border-radius: 0.75rem; padding: 1rem 1.25rem; border: 1px solid var(--border); }
    .share-box.visible { display: block; }
    .share-label { font-size: 0.8125rem; font-weight: 600; color: var(--muted-foreground); margin-bottom: 0.5rem; }
    .share-row { display: flex; gap: 0.5rem; }
    .share-input { flex: 1; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 0.75rem; font-size: 0.8125rem; background: var(--card); color: var(--foreground); }
    .copy-btn { padding: 0.5rem 1rem; background: var(--foreground); color: var(--card); border: none; border-radius: 0.75rem; font-size: 0.8125rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s, transform 0.1s; }
    .copy-btn:hover { background: #333; transform: translateY(-1px); }
    .copy-btn:active { transform: translateY(0); }
    .error-msg { padding: 0.75rem 1rem; background: #fef2f2; border: 1px solid #fca5a5; border-radius: 0.5rem; color: #dc2626; font-size: 0.875rem; margin-bottom: 1rem; display: none; }
    .error-msg.visible { display: block; }
    .days-row { display: flex; align-items: center; gap: 0.75rem; }
    .days-row input[type=range] { flex: 1; accent-color: var(--primary); }
    .days-val { font-weight: 700; font-size: 1rem; min-width: 1.5rem; text-align: center; color: var(--primary); }
    .related-articles { padding: 0.75rem 1.25rem 1rem; border-top: 1px solid var(--border); background: var(--muted); }
    .related-articles-label { font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.625rem; }
    .related-articles-list { display: flex; flex-direction: column; gap: 0.5rem; }
    .related-article-card { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; background: var(--card); border-radius: 0.5rem; padding: 0.5rem 0.625rem; border: 1px solid var(--border); transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s; }
    .related-article-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.10); border-color: var(--primary); transform: translateY(-1px); }
    .related-article-thumb { width: 3rem; height: 3rem; border-radius: 0.375rem; object-fit: cover; flex-shrink: 0; background: var(--border); }
    .related-article-thumb-placeholder { width: 3rem; height: 3rem; border-radius: 0.375rem; background: var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
    .related-article-title { font-size: 0.8125rem; font-weight: 500; line-height: 1.35; color: var(--foreground); }
    .ai-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: 100rem; font-size: 0.75rem; font-weight: 600; background: linear-gradient(135deg, #7c3aed, #2563eb); color: #fff; margin-left: 0.75rem; vertical-align: middle; }
    .day-tips { margin: 0.5rem 1.25rem 0.75rem; padding: 0.625rem 0.875rem; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 0.625rem; font-size: 0.8125rem; color: #92400e; display: flex; align-items: flex-start; gap: 0.5rem; }
    .day-tips-icon { flex-shrink: 0; font-size: 1rem; line-height: 1.4; }
    .day-tips-text { line-height: 1.5; }
    .view-tabs { display: flex; gap: 0; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 0.5rem; overflow: hidden; width: fit-content; }
    .view-tab { padding: 0.5rem 1.25rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; background: var(--card); color: var(--muted-foreground); border: none; transition: background 0.15s, color 0.15s; display: inline-flex; align-items: center; gap: 0.375rem; }
    .view-tab:not(:last-child) { border-right: 1px solid var(--border); }
    .view-tab:hover { background: var(--muted); color: var(--foreground); }
    .view-tab.active { background: var(--primary); color: var(--primary-foreground); }
    #planner-map-container { width: 100%; height: 400px; border-radius: 0.75rem; overflow: hidden; }
    #planner-map-container:not(.map-visible) { display: none; }
    @media (min-width: 900px) { #planner-map-container { height: 500px; } }
    .map-no-data { text-align: center; padding: 3rem 2rem; color: var(--muted-foreground); font-size: 0.9rem; }
    .activity-timeslot { font-size: 0.75rem; font-weight: 600; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); padding: 0.1rem 0.45rem; border-radius: 0.375rem; white-space: nowrap; flex-shrink: 0; }
    .transit-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0 0.25rem 1.25rem; font-size: 0.78rem; color: var(--muted-foreground); }
    .transit-icon { font-size: 0.875rem; }
    .transit-text { font-style: italic; }
    .daily-cost { margin: 0.25rem 1.25rem 0.75rem; padding: 0.75rem 1rem; background: var(--muted); border-radius: 0.625rem; border: 1px solid var(--border); }
    .daily-cost-label { font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
    .daily-cost-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 1rem; font-size: 0.8125rem; }
    .daily-cost-row { display: flex; justify-content: space-between; gap: 0.5rem; }
    .daily-cost-row.total { font-weight: 700; border-top: 1px solid var(--border); padding-top: 0.375rem; margin-top: 0.125rem; grid-column: 1 / -1; }
    .daily-cost-key { color: var(--muted-foreground); }
    .daily-cost-val { font-weight: 500; color: var(--foreground); }
    .total-cost-section { margin-top: 1.5rem; padding: 1rem 1.25rem; background: var(--card); border-radius: 0.75rem; border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
    .total-cost-label { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
    .total-cost-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.5rem; }
    .total-cost-item { display: flex; flex-direction: column; gap: 0.125rem; }
    .total-cost-item-key { font-size: 0.75rem; color: var(--muted-foreground); }
    .total-cost-item-val { font-size: 0.9375rem; font-weight: 700; color: var(--foreground); }
    .total-cost-item.highlight .total-cost-item-val { color: var(--primary); font-size: 1.0625rem; }
    .generation-warning { padding: 0.75rem 1rem; background: #fffbeb; border: 1px solid #fcd34d; border-radius: 0.5rem; color: #92400e; font-size: 0.875rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
    .generation-warning.visible { display: flex; }
    .generation-warning:not(.visible) { display: none; }
    .generation-warning-text { flex: 1; }
    .generation-warning-retry { padding: 0.375rem 0.875rem; background: #f59e0b; color: #fff; border: none; border-radius: 0.625rem; font-size: 0.8125rem; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
    .generation-warning-retry:hover { background: #d97706; }
    .login-required-banner { padding: 1rem; background: #fff3cd; border: 1px solid #ffc107; border-radius: 0.5rem; margin-bottom: 1rem; font-size: 0.9rem; }
    .partial-results-banner { padding: 0.75rem 1rem; background: #f0f9ff; border: 1px solid #7dd3fc; border-radius: 0.5rem; color: #0c4a6e; font-size: 0.875rem; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
    .partial-results-banner.hidden { display: none; }
    .partial-results-text { flex: 1; font-weight: 500; }
    .partial-results-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
    .partial-results-btn { padding: 0.375rem 0.875rem; border: none; border-radius: 0.625rem; font-size: 0.8125rem; font-weight: 600; cursor: pointer; transition: background 0.15s; }
    .partial-results-continue { background: #0ea5e9; color: #fff; }
    .partial-results-continue:hover { background: #0284c7; }
    .partial-results-regen { background: #e2e8f0; color: #334155; }
    .partial-results-regen:hover { background: #cbd5e1; }
    .results-generating { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 3rem 2rem; color: var(--muted-foreground); border: 2px dashed var(--border); border-radius: 0.75rem; margin-bottom: 1rem; }
    .generating-spinner { display: inline-block; width: 1.75rem; height: 1.75rem; border: 2.5px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
    .generating-text { font-size: 0.9375rem; font-weight: 500; }

    /* Skeleton loading placeholders */
    .day-skeleton {
      background: var(--card); border-radius: 0.75rem;
      border: 1px solid var(--border);
      padding: 1rem 1.25rem;
      animation: skeleton-pulse 1.5s ease-in-out infinite;
    }
    .skeleton-title { height: 1.5rem; background: var(--border); border-radius: 0.375rem; margin-bottom: 1rem; width: 60%; }
    .skeleton-line { height: 0.875rem; background: var(--border); border-radius: 0.25rem; margin-bottom: 0.625rem; }
    .skeleton-line-short { width: 40%; }
    .img-skeleton { background: linear-gradient(90deg, var(--border) 25%, color-mix(in srgb, var(--border) 60%, var(--card)) 50%, var(--border) 75%); background-size: 200% 100%; animation: skeleton-pulse 1.5s infinite linear; border-radius: 0.375rem; }
    @keyframes skeleton-pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.6; }
    }

    /* Booking CTA section */
    .planner-booking-cta {
      margin-top: 1.75rem; padding: 1.25rem;
      background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
      border-radius: 0.75rem; color: #fff;
    }
    .planner-booking-cta-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: #fff; }
    .planner-booking-cta-links { display: flex; flex-wrap: wrap; gap: 0.625rem; }
    .booking-provider-btn {
      display: inline-flex; align-items: center; gap: 0.5rem;
      padding: 0.6rem 1rem; border-radius: 0.5rem;
      font-size: 0.8125rem; font-weight: 600; text-decoration: none;
      transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
      white-space: nowrap;
    }
    .booking-provider-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.25); }
    .booking-provider-btn:active { transform: translateY(0); }
    .booking-provider-flights { background: #0ea5e9; color: #fff; }
    .booking-provider-flights:hover { background: #0284c7; }
    .booking-provider-hotels { background: #8b5cf6; color: #fff; }
    .booking-provider-hotels:hover { background: #7c3aed; }
    .booking-provider-gyg { background: #f97316; color: #fff; }
    .booking-provider-gyg:hover { background: #ea6c0e; }
    .booking-provider-klook { background: #e11d48; color: #fff; }
    .booking-provider-klook:hover { background: #be123c; }

    /* Related trips section */
    .related-trips-section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
    .related-trips-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.01em; }
    .related-trips-list { display: flex; flex-direction: column; gap: 0.75rem; }
    /* Preserved from TOU-1969/1970 */
    .planner-toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(1rem); background: #1e293b; color: #f8fafc; padding: 0.625rem 1.25rem; border-radius: 2rem; font-size: 0.875rem; font-weight: 500; pointer-events: none; opacity: 0; transition: opacity 0.25s, transform 0.25s; z-index: 9999; white-space: nowrap; }
    .planner-toast.planner-toast-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
    .planner-toast.planner-toast-success { background: #166534; }
    .planner-toast.planner-toast-error { background: #991b1b; }
    .country-loading { opacity: 0.7; pointer-events: none; }

    /* ── Hamburger notification badge ── */
    .hamburger { position: relative; }
    .hamburger-notif-badge { position: absolute; top: 0; right: 0; min-width: 0.875rem; height: 0.875rem; background: var(--primary, #e8341c); color: #fff; border-radius: 100rem; font-size: 0.55rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 0.2rem; transform: translate(30%, -30%); pointer-events: none; }
    .filter-active-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.25rem; height: 1.25rem; background: var(--primary); color: #fff; border-radius: 100rem; font-size: 0.7rem; font-weight: 700; padding: 0 0.3rem; margin-left: 0.25rem; }

    /* ── Shared mobile bottom sheet ── */
    .mobile-filter-overlay, .mobile-bottom-sheet-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; }
    .mobile-filter-overlay.open, .mobile-bottom-sheet-overlay.open { display: block; }
    .mobile-bottom-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: var(--background); border-radius: 1rem 1rem 0 0; padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 201; transform: translateY(100%); transition: transform 0.3s ease; max-height: 80vh; overflow-y: auto; }
    .mobile-bottom-sheet.open { transform: translateY(0); }
    .mobile-bottom-sheet-handle { width: 2.5rem; height: 4px; background: var(--border); border-radius: 100rem; margin: 0 auto 1rem; }
    .mobile-bottom-sheet-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--foreground); }
    .mobile-bottom-sheet-section { margin-bottom: 1rem; }
    .mobile-bottom-sheet-section-label { font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
    .mobile-bottom-sheet-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .mobile-filter-badge { display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--primary-foreground); border-radius: 100rem; font-size: 0.65rem; font-weight: 700; min-width: 1.25rem; height: 1.25rem; padding: 0 0.3rem; margin-left: 0.4rem; }
    /* Chip variant used inside bottom sheets: pill-shaped, primary-active */
    .mobile-bottom-sheet-chips .chip, .itin-chips-wrap .chip { padding: 0.35rem 0.75rem; border-radius: 100rem; font-size: 0.875rem; border-width: 1px; background: var(--background); color: var(--foreground); white-space: nowrap; }
    .mobile-bottom-sheet-chips .chip-active, .itin-chips-wrap .chip-active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

    /* ── TOU-1585 Utility classes (inline-CSS cleanup round 2) ── */
    .text-nowrap { white-space: nowrap; }
    .mb-2rem { margin-bottom: 2rem; }
    .mb-3rem { margin-bottom: 3rem; }
    .mb-1-5rem { margin-bottom: 1.5rem; }
    .mb-1rem { margin-bottom: 1rem; }
    .mb-075rem { margin-bottom: 0.75rem; }
    .mt-1rem { margin-top: 1rem; }
    .mt-05rem { margin-top: 0.5rem; }
    .mt-2rem { margin-top: 2rem; }
    .mt-3rem { margin-top: 3rem; }
    .m-0 { margin: 0; }
    .card-img-box { position: relative; overflow: hidden; aspect-ratio: 4/3; }
    .card-img-box-34 { position: relative; overflow: hidden; aspect-ratio: 3/4; }
    .card-img-fill { width: 100%; height: 100%; background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%); }
    .card-img-overlay-dark { position: absolute; top: 0; left: 0; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); width: 100%; height: 100%; }
    .card-title-txt { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.25; color: #fff; margin-bottom: 0.3rem; }
    .card-excerpt { font-size: 0.8125rem; color: rgba(255,255,255,0.75); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .chip-scroll-row { display: flex; gap: 0.5rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; -webkit-overflow-scrolling: touch; padding-right: 2rem; }
    .chip-fade-overlay { position: absolute; right: 0; top: 0; bottom: 0.25rem; width: 3rem; background: linear-gradient(to right, transparent, var(--background)); pointer-events: none; display: flex; align-items: center; justify-content: flex-end; padding-right: 0.25rem; }
    .chip-fade-inner { font-size: 0.75rem; color: var(--muted-foreground); }
    .chip-scroll-wrap { position: relative; margin-bottom: 0.75rem; }
    .chip-scroll-wrap-1rem { position: relative; margin-bottom: 1rem; }
    .filter-lbl { font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 0.35rem; }
    .flex-wrap-gap-sm { display: flex; gap: 0.5rem; flex-wrap: wrap; }
    .flex-row-sb { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
    .flex-row-center-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
    .flex-col-gap-15 { display: flex; flex-direction: column; gap: 1.5rem; }
    .empty-state-sm { padding: 2rem; text-align: center; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted-foreground); }
    .empty-state-md { padding: 3rem 2rem; text-align: center; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted-foreground); }
    .empty-state-lg { padding: 4rem 2rem; text-align: center; }
    .icon-2rem { font-size: 2rem; margin-bottom: 0.5rem; }
    .icon-2-5rem { font-size: 2.5rem; margin-bottom: 0.75rem; }
    .icon-3rem { font-size: 3rem; margin-bottom: 1rem; }
    .text-muted-block { color: var(--muted-foreground); margin: 1rem 0; }
    .text-muted-xs { font-size: 0.82rem; color: var(--muted-foreground); margin-top: 0.25rem; }
    .text-muted-xs2 { font-size: 0.75rem; color: var(--muted-foreground); }
    .text-muted-085 { color: var(--muted-foreground); font-size: 0.85rem; }
    .text-primary-600 { color: var(--primary); font-weight: 600; }
    .section-heading-sm { font-size: 1.5rem; margin-bottom: 0.75rem; }
    .fw-semibold-mb-025 { font-weight: 600; margin-bottom: 0.25rem; }
    .opacity-40 { opacity: 0.4; }
    .mt-1rem-inline { margin-top: 1rem; display: inline-block; }
    .header-mb-2rem { margin-bottom: 2rem; }
    .header-mb-15rem { margin-bottom: 1.5rem; }
    .text-center-py { text-align: center; padding: 4rem 0; }
    .link-map-btn { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--muted-foreground); text-decoration: none; padding: 0.25rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
    .itin-section-border { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
    .itin-map-container { width: 100%; height: 420px; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
    .itin-stop-list-container { display: flex; flex-direction: column; gap: 1.5rem; }
    .form-filter-row { margin-bottom: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
    .form-filter-row-15 { margin-bottom: 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
    .comment-form-field { margin-bottom: 0.75rem; }
    .comment-form-input { width: 100%; padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; box-sizing: border-box; }
    .comment-form-textarea { width: 100%; padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); resize: vertical; font-size: 0.875rem; box-sizing: border-box; }
    .journal-comments-section-border { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
    .journal-header-like { margin-top: 1rem; }
    .journal-comments-header { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
    .journal-load-more-wrapper { margin-top: 1rem; text-align: center; }
    .journal-auth-prompt { display: none; margin-top: 1.5rem; }
    .journal-form-wrapper { display: none; margin-top: 1.5rem; }
    .compare-cta-mt { margin-top: 2rem; }
    .itin-header-meta { display: flex; gap: 1rem; font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.5rem; }
    .itin-header-actions { margin-top: 1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
    .city-map-wrap { height: 28rem; border-radius: var(--radius); margin-top: 1rem; }
    .city-map-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
    .grid-mt-1rem { margin-top: 1rem; }
    .dest-map-flex { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
    .search-result-bar-mb { margin-bottom: 0.75rem; }
    .mobile-suggestions-pad { padding: 0.5rem 0; }
    .privacy-para { line-height: 1.75; margin-bottom: 1.25rem; }
    .privacy-para-lg { line-height: 1.75; margin-bottom: 1.75rem; }
    .profile-card { max-width: 32rem; }
    .compare-budget-canvas { display: none; }
    .compare-th-info { width: 120px; }
    .lbs-status-wrap { display: none; margin-top: 0.75rem; color: var(--muted-foreground); }
    .lbs-tabs-wrap { display: none; margin-top: 0.75rem; }
    .lbs-results-wrap { margin-top: 1rem; }
    .section-pt0-pb25 { padding-top: 0; padding-bottom: 2.5rem; }
    .text-center-header { margin-bottom: 1.5rem; text-align: center; }
    .unsubscribe-wrap { max-width: 28rem; margin: 3rem auto; text-align: center; }
    .register-opt-label { color: var(--muted-foreground); font-weight: 400; text-transform: none; }
    .not-found-wrap { text-align: center; padding: 4rem 0; }
    .offline-muted-block { color: var(--muted-foreground); margin: 1rem 0; }
    .ms-trips-hidden { display: none; }
    .recently-updated-badge { position: absolute; top: 0.5rem; right: 0.5rem; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(16,185,129,0.85); padding: 0.15rem 0.5rem; border-radius: 3px; }
    .card-count-badge { display: inline-block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.3rem; }
    .card-title-sm { font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.25; color: #fff; }
    .coll-featured-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); }
    .coll-featured-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem 2.5rem; }
    .coll-featured-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem,4vw,2.5rem); line-height: 1.15; color: #fff; margin: 0 0 0.5rem; }
    .coll-featured-desc { font-size: 1rem; color: rgba(255,255,255,0.82); line-height: 1.5; margin: 0; max-width: 680px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .coll-featured-badge { display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); background: rgba(0,0,0,0.45); padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.6rem; }
    .coll-updated-badge { display: inline-block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: rgba(16,185,129,0.75); padding: 0.2rem 0.6rem; border-radius: 4px; margin-bottom: 0.6rem; margin-left: 0.4rem; }
    .coll-featured-count { display: inline-block; margin-top: 0.75rem; font-size: 0.8125rem; font-weight: 600; color: var(--primary); }
    .coll-group-heading { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; border-left: 4px solid var(--primary); padding-left: 0.75rem; }
    .coll-view-all-heading { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; border-left: 4px solid var(--primary); padding-left: 0.75rem; }
    .coll-featured-link { display: block; text-decoration: none; color: inherit; position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 21/9; min-height: 260px; max-height: 480px; }
    .breakout-hero-pull { margin-top: -4.5rem; }
    .mb-section-gap { margin-bottom: var(--section-gap); }
    .mb-2px { margin-bottom: 2px; }
    .mb-0 { margin-bottom: 0; }
    .mb-25rem { margin-bottom: 2.5rem; }
    .gap-125rem { gap: 1.25rem; }
    .legend-dot-peak { background: #22c55e; }
    .legend-dot-shoulder { background: #facc15; }
    .legend-dot-off { background: #e5e7eb; }
    .compare-budget-canvas { display: none; }
    .compare-cta-mt2 { margin-top: 2rem; }
    .compare-th-w120 { width: 120px; }
    .mb-125rem { margin-bottom: 1.25rem; }
    .wc-stat-date { font-size: 1.5rem; }

    /* RTL (Arabic) layout overrides */
    [dir="rtl"] {
      direction: rtl;
    }

    [dir="rtl"] .dest-page-nav {
      flex-direction: row-reverse;
    }

    [dir="rtl"] .dest-meta {
      flex-direction: row-reverse;
    }

    [dir="rtl"] .dest-meta .footprint-btn {
      margin-left: 0;
      margin-right: auto;
    }

    [dir="rtl"] .quick-info-grid-dest {
      direction: rtl;
    }

    [dir="rtl"] .month-calendar-legend {
      flex-direction: row-reverse;
    }

    [dir="rtl"] .review-card-header {
      flex-direction: row-reverse;
    }

    [dir="rtl"] .dest-card-text {
      left: auto;
      right: 0;
      text-align: right;
    }

    [dir="rtl"] .cross-promo-a {
      display: inline-block;
      direction: rtl;
    }

    [dir="rtl"] .plan-trip-cta-inner {
      flex-direction: row-reverse;
    }

    [dir="rtl"] .tool-card-toggle {
      flex-direction: row-reverse;
      text-align: right;
    }

    [dir="rtl"] .settings-form-group {
      text-align: right;
    }

    [dir="rtl"] .settings-checkboxes,
    [dir="rtl"] .settings-radios {
      flex-direction: row-reverse;
    }

    [dir="rtl"] .visa-table th,
    [dir="rtl"] .visa-table td {
      text-align: right;
    }

    [dir="rtl"] .nearby-card-body {
      text-align: right;
    }

    [dir="rtl"] .review-summary-score {
      flex-direction: row-reverse;
    }

    /* ── TOU-1891 AI Planner upgrades ── */
    /* Per-day regeneration button */
    .day-regen-btn { margin-left: auto; background: transparent; border: none; cursor: pointer; font-size: 1rem; padding: 0.25rem 0.375rem; border-radius: var(--radius); color: var(--muted-foreground); line-height: 1; transition: background 0.15s, color 0.15s; }
    .day-regen-btn:hover { background: var(--muted); color: var(--foreground); }
    .day-regen-btn:disabled { opacity: 0.4; cursor: not-allowed; }
    .day-regen-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.85); display: flex; align-items: center; justify-content: center; font-size: 0.9375rem; color: var(--muted-foreground); border-radius: var(--radius); z-index: 10; }
    .day-regen-error { margin: 0.5rem 1.25rem; padding: 0.5rem 0.75rem; background: #fef2f2; border: 1px solid #fca5a5; border-radius: var(--radius); font-size: 0.8125rem; color: #b91c1c; }

    /* Visa reminder section */
    .visa-reminder-section { margin-top: 1.5rem; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: 1rem 1.25rem; box-shadow: 0 1px 3px rgba(0,0,0,0.07); }
    .visa-reminder-title { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
    .visa-reminder-item { display: flex; align-items: center; flex-wrap: wrap; gap: 0.375rem 0.5rem; padding: 0.375rem 0; font-size: 0.8125rem; border-bottom: 1px solid var(--border); }
    .visa-reminder-item:last-child { border-bottom: none; }
    .visa-type-badge { display: inline-flex; align-items: center; padding: 0.15rem 0.55rem; border-radius: 100rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
    .visa-type-visa-free { background: #dcfce7; color: #15803d; }
    .visa-type-arrival { background: #fef9c3; color: #854d0e; }
    .visa-type-evisa { background: #dbeafe; color: #1d4ed8; }
    .visa-type-required { background: #fee2e2; color: #b91c1c; }
    .visa-type-denied { background: #f3f4f6; color: #374151; }
    .visa-type-unknown { background: #f3f4f6; color: #6b7280; }
    .visa-dest { font-weight: 600; color: var(--foreground); }
    .visa-check-link { margin-left: auto; font-size: 0.75rem; color: var(--primary); text-decoration: none; white-space: nowrap; }
    .visa-check-link:hover { text-decoration: underline; }

    /* Share image button */
    .share-image-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.25rem; background: var(--muted); color: var(--foreground); border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
    .share-image-btn:hover { background: var(--border); }

/* ===== Mobile Bottom Navigation Bar ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}

@media (max-width: 767px) {
  body.is-homepage .mobile-bottom-nav {
    display: flex;
    align-items: stretch;
  }
  /* Add bottom padding to main content to avoid overlap only on homepage */
  body.is-homepage:not(.admin-body) main,
  body.is-homepage:not(.admin-body) .main-content {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

.mobile-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 6px 4px;
  text-decoration: none;
  color: #6b7280;
  font-size: 10px;
  font-weight: 500;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  /* Touch target minimum 44x44px */
  min-width: 44px;
}

.mobile-bottom-nav__item:hover,
.mobile-bottom-nav__item.active {
  color: #2563eb;
}

.mobile-bottom-nav__icon {
  width: 24px;
  height: 24px;
  margin-bottom: 3px;
  flex-shrink: 0;
}

.mobile-bottom-nav__label {
  line-height: 1;
  white-space: nowrap;
}

/* ===== General Mobile Touch Target Fixes ===== */
@media (max-width: 767px) {
  /* Ensure all interactive elements meet 44x44px minimum */
  button, .btn, a.btn, [role="button"] {
    min-height: 44px;
  }
  /* Nav search button */
  .nav-search-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  /* Pagination touch targets */
  .pagination a,
  .pagination button,
  .page-link {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ===== Swipe Back Visual Hint ===== */
@media (max-width: 767px) {
  .page-transition-enter {
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .page-transition-enter-active {
    transform: translateX(0);
  }
}

/* ===== Keyboard Viewport Adjustment ===== */
@media (max-width: 767px) {
  .keyboard-open .mobile-bottom-nav {
    display: none;
  }
  .keyboard-open main,
  .keyboard-open .main-content {
    padding-bottom: 0;
  }
}

/* ===== TOU-2013: Hide Footer on Mobile ===== */
/* Mobile already has bottom nav for navigation; the footer is redundant and clutters small screens. */
@media (max-width: 767px) {
  .footer { display: none; }
}
