/* thdata.co — 2026 Modern Directory Redesign */

/* === A11y Utility === */
/* Visually hidden but readable to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === Variables === */
:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --accent: #f97316;
    --accent-light: #fff7ed;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #eab308;
    --star: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --max-width: 1200px;
    --nav-height: 64px;
}

/* === Dark Theme Variables === */
[data-theme="dark"] {
    --primary: #38bdf8;
    --primary-dark: #0ea5e9;
    --primary-light: #0c4a6e;
    --accent: #fb923c;
    --accent-light: #431407;
    --bg: #0f172a;
    --bg-alt: #1e293b;
    --bg-card: #1e293b;
    --text: #cbd5e1;
    --text-secondary: #8892a4;
    --text-light: #5b6578;
    --border: #334155;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -2px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -4px rgba(0,0,0,0.3);
}

/* Dark overrides for hardcoded colors */
[data-theme="dark"] .site-header {
    background: rgba(15,23,42,0.85);
}
[data-theme="dark"] .nav-drawer__panel {
    background: var(--bg);
    box-shadow: -4px 0 24px rgba(0,0,0,0.4);
}
[data-theme="dark"] .nav-drawer {
    background: rgba(0,0,0,0.5);
}
[data-theme="dark"] .hero {
    background: linear-gradient(160deg, var(--primary-light) 0%, #0c1829 40%, var(--bg-alt) 100%);
}
[data-theme="dark"] .search-form {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .search-input {
    color: #fff;
}
[data-theme="dark"] .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .search-form__input-wrap {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}
[data-theme="dark"] .search-form:focus-within .search-form__input-wrap {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary);
}
[data-theme="dark"] .search-form__icon {
    color: rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .tag-chip {
    border-color: var(--primary-light);
}
/* Note: .site-footer + .footer-copy dark theme rules consolidated near footer block (~line 1940) */

/* Theme-aware logo swap (light=icon.png, dark=icon2.png) */
.logo__icon--dark,
.nav-drawer__icon--dark,
.footer-logo__icon--dark { display: none; }
[data-theme="dark"] .logo__icon--light,
[data-theme="dark"] .nav-drawer__icon--light,
[data-theme="dark"] .footer-logo__icon--light { display: none; }
[data-theme="dark"] .logo__icon--dark,
[data-theme="dark"] .nav-drawer__icon--dark,
[data-theme="dark"] .footer-logo__icon--dark { display: inline-block; }

/* === Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Bai Jamjuree', sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

img, video, iframe, table {
    max-width: 100%;
}
img {
    height: auto;
    display: block;
}

/* === Container === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    flex: 1;
    width: 100%;
}

/* === Section === */
.section {
    padding: 2rem 0;
}
.section__title {
    font-size: 1.375rem;
    color: var(--text);
    margin-bottom: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ========================================
   HEADER / NAVIGATION — Glass Morphism
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}
body {
    padding-top: var(--nav-height);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    gap: 1rem;
}

.logo {
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.logo__icon {
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
}
.logo:hover {
    text-decoration: none;
    color: var(--primary);
}
.logo__text {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 1.4rem;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1;
}
.logo:hover .logo__text {
    color: var(--primary);
}
@media (min-width: 768px) {
    .logo__text {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }
}

/* Desktop nav links */
.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    text-decoration: none;
    white-space: nowrap;
}
.nav-links a:hover {
    color: var(--text);
    background: var(--bg-alt);
    text-decoration: none;
}

/* Nav right section */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Lang switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 0.8rem;
    background: var(--bg-alt);
    border-radius: var(--radius-full);
    padding: 3px;
    border: 1px solid var(--border);
}
.lang-active {
    color: var(--bg);
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    background: var(--primary);
    border-radius: var(--radius-full);
    line-height: 1;
}
.lang-link {
    color: var(--text-secondary);
    padding: 0.25rem 0.625rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}
.lang-link:hover {
    color: var(--text);
    text-decoration: none;
}

/* Theme toggle button */
.theme-toggle {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}
.theme-toggle:hover {
    background: var(--border);
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.theme-toggle__icon {
    display: block;
    pointer-events: none;
}

/* Hamburger button */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.25rem;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.nav-hamburger:hover {
    background: var(--bg-alt);
}
.nav-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
    position: relative;
}
.nav-hamburger span::before,
.nav-hamburger span::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    position: absolute;
    left: 0;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger span::before { top: -6px; }
.nav-hamburger span::after { top: 6px; }

/* Hamburger open state */
.nav-hamburger.is-open span { background: transparent; }
.nav-hamburger.is-open span::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--text);
}
.nav-hamburger.is-open span::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--text);
}

/* Mobile drawer */
.nav-drawer {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s;
}
.nav-drawer.is-open {
    opacity: 1;
}
.nav-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--bg);
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 1.5rem;
    padding-bottom: env(safe-area-inset-bottom, 1.5rem);
}
.nav-drawer.is-open .nav-drawer__panel {
    transform: translateX(0);
}
.nav-drawer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.nav-drawer__icon {
    width: 90px;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}
.nav-drawer__links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.nav-drawer__links a {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background 0.2s;
}
.nav-drawer__links a:hover {
    background: var(--bg-alt);
    text-decoration: none;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    text-align: center;
    padding: 3.5rem 1.25rem 3rem;
    background: linear-gradient(160deg, var(--primary-light) 0%, #f0f9ff 40%, var(--bg-alt) 100%);
    margin: 0 -1.25rem;
}
.hero h1 {
    font-size: 1.875rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}
.hero-stats {
    margin-top: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.hero-stats strong {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
}

/* ========================================
   SEARCH FORM
   ======================================== */
.search-form {
    display: flex;
    align-items: stretch;
    max-width: 560px;
    margin: 0 auto;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--bg);
}
.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12), var(--shadow-lg);
}
.search-form__input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}
.search-form__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem 0 0.875rem;
    color: var(--text-light);
    flex-shrink: 0;
    transition: color 0.2s;
    pointer-events: none;
}
.search-form:focus-within .search-form__icon {
    color: var(--primary);
}
.search-input {
    flex: 1;
    width: 100%;
    height: 48px;
    padding: 0 1.125rem 0 0.25rem;
    font-size: 1rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    min-width: 0;
}
.search-input::placeholder {
    color: var(--text-light);
}
.search-btn {
    padding: 0 1.5rem;
    height: 48px;
    font-size: 0.95rem;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.search-btn:hover {
    background: var(--primary-dark);
}

/* ========================================
   CATEGORY GRID
   ======================================== */
.category-section {
    padding-top: 2.5rem;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 1.125rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
    text-decoration: none;
    color: var(--text);
    text-align: center;
}
.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}
.category-card__icon {
    font-size: 1.5rem;
    line-height: 1;
}
.category-card__name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.3;
}
.category-card__count {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ========================================
   HOME SECTION (recently updated by category)
   ======================================== */
.home-section {
    padding-top: 2rem;
}
.home-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.home-section__title {
    margin: 0;
}
.home-section__more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s;
}
.home-section__more:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ========================================
   PLACE GRID
   ======================================== */
.place-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}
@media (max-width: 1023px) {
    .place-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   PLACE CARD
   ======================================== */
.place-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.place-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.place-card__img-link {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}
.place-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.place-card:hover .place-card__img {
    transform: scale(1.04);
}
.place-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-alt), #e2e8f0);
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 1rem;
    text-align: center;
}
.place-card__body {
    padding: 0.875rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.place-card__bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.place-card__category {
    position: absolute;
    bottom: 0.5rem;
    left: 0.5rem;
    display: inline-block;
    font-size: 0.7rem;
    color: #fff;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.place-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(2 * 1.35em);
}
.place-card__title a {
    color: var(--text);
    text-decoration: none;
}
.place-card__title a:hover {
    color: var(--primary);
}
.place-card__rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
}
.place-card__stars {
    color: var(--star);
    font-weight: 700;
}
.place-card__stars::before {
    content: "\2B50 ";
}
.place-card__reviews {
    color: var(--text-light);
    font-size: 0.8rem;
}
.place-card__meta {
    font-size: 0.825rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.place-card__meta::before {
    content: "\1F4CD";
    font-size: 0.75rem;
}

/* ========================================
   PROVINCE GRID
   ======================================== */
.province-section {
    padding-bottom: 1rem;
}
.province-section .region-group {
    margin-bottom: 0.75rem;
}
.province-section .region-group:last-child {
    margin-bottom: 0;
}
.province-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.5rem;
}
.province-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    font-size: 0.9rem;
}
.province-card:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
    transform: translateY(-1px);
}
.province-card__name {
    font-weight: 500;
}
.province-card__count {
    color: var(--text-light);
    font-size: 0.8rem;
    background: var(--bg-alt);
    padding: 0.1rem 0.45rem;
    border-radius: var(--radius-sm);
    min-width: 2rem;
    text-align: center;
}

/* ========================================
   RATING STARS
   ======================================== */
.rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}
.rating-stars__value {
    font-weight: 700;
    color: var(--star);
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem 0 1rem;
}
.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.125rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
    min-height: 44px;
}
.pagination__link:hover {
    background: var(--primary-dark);
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}
.pagination__info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    padding: 1rem 0 0.5rem;
}
.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 0;
    font-size: 0.825rem;
}
.breadcrumb__item {
    display: flex;
    align-items: center;
    margin-top: 5px;
}
.breadcrumb__link {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb__link:hover {
    text-decoration: underline;
}
.breadcrumb__sep {
    margin: 0 0.4rem;
    color: var(--text-light);
    font-size: 0.75rem;
}
.breadcrumb__current {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

/* ========================================
   LISTING HEADER
   ======================================== */
.listing-header {
    padding: 1.5rem 0 1rem;
}
.listing-header__title {
    font-size: 1.5rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.listing-header__icon {
    margin-right: 0.35rem;
}
.listing-header__count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Listing Nav */
.listing-nav {
    margin-bottom: 1rem;
}
.listing-nav__back {
    font-size: 0.875rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
}
.listing-nav__back:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
}

/* ========================================
   FILTER CHIPS
   ======================================== */
.filter-chips {
    padding: 0.5rem 0 1.25rem;
}
.filter-chips__title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.625rem;
}
.filter-chips__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.375rem 0.875rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    font-weight: 500;
}
.filter-chip:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    text-decoration: none;
    transform: translateY(-1px);
}
.filter-chip__count {
    font-size: 0.7rem;
    color: var(--text-light);
    background: var(--bg-alt);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-full);
}

/* ========================================
   FILTER REGIONS (accordion)
   ======================================== */
.filter-regions {
    padding: 0.5rem 0 1.25rem;
}
.filter-regions__title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.625rem;
}
.region-group {
    margin-bottom: 0.5rem;
}
.region-group summary::-webkit-details-marker {
    display: none;
}
.region-group__summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text);
    transition: background 0.15s, border-color 0.15s;
}
.region-group__summary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}
.region-group__summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.region-group[open] > .region-group__summary {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom-color: transparent;
    background: var(--primary-light);
}
.region-group__name {
    flex: 1;
}
.region-group__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.region-group__count {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #ffffff;
    min-width: 1.75rem;
    text-align: center;
}
.region-group__chevron {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: inline-block;
    transition: transform 0.2s ease;
}
.region-group[open] > .region-group__summary .region-group__chevron {
    transform: rotate(90deg);
}
.region-group__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0.875rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
@media (min-width: 768px) {
    .region-group__summary {
        padding: 0.875rem 1.125rem;
    }
    .region-group__chips {
        padding: 1rem 1.125rem;
    }
}

/* ========================================
   NO RESULTS
   ======================================== */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}
.no-results__cta {
    margin-top: 1rem;
}

/* ========================================
   PLACE DETAIL
   ======================================== */
.place-detail {
    max-width: 100%;
    overflow: hidden;
}

/* Hero Image */
.place-detail__hero {
    margin: 0 -1.25rem;
    max-height: 420px;
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}
.place-detail__hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(15,23,42,0.5), transparent);
    pointer-events: none;
}
.place-detail__cover {
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.place-detail__hero--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--border) 100%);
}
.place-detail__hero--placeholder::after {
    display: none;
}
.place-detail__hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
}
.place-detail__hero-icon {
    font-size: 2.5rem;
    opacity: 0.4;
}
.place-detail__hero-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    max-width: 80%;
    line-height: 1.4;
}

/* Content area */
.place-detail__content {
    padding: 1.5rem 0 2rem;
    max-width: 100%;
    overflow: hidden;
}
.place-detail__main {
    max-width: 100%;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.place-detail__name {
    font-size: 1.75rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.625rem;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
    letter-spacing: -0.02em;
}

/* Badges */
.place-detail__badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    flex-wrap: wrap;
}
.place-detail__badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.place-detail__badge--cat {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.place-detail__badge--prov {
    background: var(--accent-light);
    color: var(--accent);
}
.place-detail__badge:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Rating */
.place-detail__rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.place-detail__stars {
    font-weight: 700;
    color: var(--star);
    font-size: 1.2rem;
}
.place-detail__star-icon {
    font-size: 1.1rem;
}
.place-detail__reviews {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Limited info banner */
.place-detail__limited {
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
}
.place-detail__limited-text {
    margin: 0 0 0.35rem;
    font-size: 0.9rem;
    color: #854d0e;
    font-weight: 500;
}
.place-detail__limited-cta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}
.place-detail__limited-cta:hover {
    text-decoration: underline;
}

/* Description */
.place-detail__desc {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: 1rem;
}

/* AI-generated Description — mobile-first readable block */
.place-detail__ai-desc {
    position: relative;
    margin: 0 0 1.5rem;
    padding: 1rem 1rem 1rem 1.15rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    word-break: break-word;
    overflow-wrap: break-word;
}
.place-detail__ai-desc-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary);
    margin: 0 0 0.5rem;
    line-height: 1.2;
}
.place-detail__ai-desc p {
    margin: 0;
    font-size: 0.975rem;
    line-height: 1.85;
    color: var(--text);
}

/* Section titles */
.place-detail__section-title {
    font-size: 1.125rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.place-detail__section-title--sm {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* (Old info-row styles removed — replaced by .info-card / .info-row in DETAIL TABS section) */

/* Map Buttons (legacy) */
.place-detail__map {
    margin-bottom: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    align-items: center;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    border: none;
    min-height: 44px;
    gap: 0.35rem;
}
.btn--primary {
    background: var(--primary);
    color: #fff;
}
.btn--primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
}
.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn--outline:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Tags */
.place-detail__tags {
    margin-bottom: 1.5rem;
}
.place-detail__tags--inline {
    margin-bottom: 0.875rem;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: 100%;
}
.tag-chip {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--primary-light);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}
.tag-chip:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

/* ========================================
   DETAIL TABS — Anchor Scroll (all sections visible)
   ======================================== */
.detail-tabs {
    display: flex;
    background: var(--bg-card);
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 56px;
    z-index: 5;
    margin: 0 -1.25rem;
    padding: 0 1.25rem;
}
.detail-tab {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.detail-tab.active,
.detail-tab:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
    text-decoration: none;
}

/* Section dividers */
.detail-section {
    padding: 1rem 0;
    scroll-margin-top: 80px;
}
.detail-section + .detail-section {
    border-top: 1px solid var(--border);
}
.section-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Card — compact mobile-first */
.info-card {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    margin-bottom: 1rem;
}
.info-row {
    display: flex;
    align-items: anchor-center;
    gap: 0.6rem;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
}
.info-row:last-child {
    border-bottom: none;
}
.info-row__icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    line-height: 1;
}
.website-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    flex-shrink: 0;
    display: inline-block;
}
.info-row__label {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.1rem;
    font-weight: 600;
}
.info-row__value {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: block;
}
.info-row__link {
    color: var(--primary);
    text-decoration: none;
}
.info-row__link:hover {
    text-decoration: underline;
}

/* Map embed */
.map-embed {
    max-width: 1200px;
    margin: 1rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.map-embed iframe {
    display: block;
    width: 100%;
    height: 350px;
}

@media (max-width: 480px) {
    .map-embed {
        max-width: 100%;
    }
    .map-embed iframe {
        height: 200px;
    }
}

/* Map Buttons — compact */
.map-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.map-buttons .btn {
    flex: 1 1 0;
    text-align: center;
}
.btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    min-height: 40px;
}

/* Hours Grid — compact 2-column */
.hours-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.hours-item:last-child {
    border-bottom: none;
}
.hours-day {
    font-weight: 500;
    color: var(--text);
}
.hours-time {
    color: var(--text-secondary);
}
.hours-item.hours-today {
    background: var(--primary-light);
}
.hours-item.hours-today .hours-day {
    color: var(--primary);
    font-weight: 600;
}

/* Gallery — horizontal scroll strip */
.gallery-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}
.gallery-scroll__item {
    flex: 0 0 200px;
    scroll-snap-align: start;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-alt);
}
.gallery-scroll__img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}
.gallery-scroll__item:hover .gallery-scroll__img {
    transform: scale(1.05);
}

/* Attributes — compact chips */
.attrs-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem 1.5rem;
}
@media (max-width: 768px) {
    .attrs-compact {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .attrs-compact {
        grid-template-columns: 1fr;
    }
}
.attr-group {
    max-width: 100%;
    overflow: hidden;
}
.attr-group__title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.attr-group__values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 100%;
    overflow: hidden;
}
.attr-chip {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text);
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Desktop: tabs inline */
@media (min-width: 769px) {
    .detail-tabs {
        margin: 0 0 0;
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    }
    .detail-tab {
        font-size: 0.9rem;
        padding: 0.85rem 1.5rem;
        flex: none;
    }
    .gallery-scroll__item {
        flex: 0 0 240px;
    }
    .gallery-scroll__img {
        height: 160px;
    }
}

/* Mobile small: full width map buttons */
@media (max-width: 480px) {
    .detail-tabs {
        margin: 0 -0.875rem;
        padding: 0 0.875rem;
    }
    .map-buttons {
        flex-direction: column;
    }
    .map-buttons .btn {
        width: 100%;
        text-align: center;
    }
    .gallery-scroll__item {
        flex: 0 0 160px;
    }
    .gallery-scroll__img {
        height: 110px;
    }
}

/* ========================================
   NEARBY SECTION — Horizontal Scroll
   ======================================== */
.nearby-section {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}
.nearby-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.nearby-slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.75rem;
    scroll-behavior: smooth;
    width: 100%;
    max-width: calc(100vw - 2.5rem);
}
.nearby-slider::-webkit-scrollbar { height: 4px; }
.nearby-slider::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 2px; }
.nearby-slider::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.nearby-slider::-webkit-scrollbar-thumb:hover { background: var(--primary); }
.nearby-slider .place-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    min-width: 260px;
}

/* ========================================
   SEARCH PAGE
   ======================================== */
.search-page {
    padding: 2rem 0;
}
.search-page__header {
    margin-bottom: 1.5rem;
    position: relative;
}
.search-page__title {
    font-size: 1.375rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.search-form--page {
    max-width: 100%;
}
.search-page__count {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.search-page__count strong {
    color: var(--primary);
    font-weight: 700;
}

/* Autocomplete */
.search-bar-wrapper {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}
.search-bar-wrapper .search-form {
    margin: 0;
}
.search-autocomplete {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 560px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    max-height: 350px;
    overflow-y: auto;
    text-align: left;
}
.autocomplete-item {
    padding: 0.625rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item:hover,
.autocomplete-item--active {
    background: var(--bg-alt);
}
.autocomplete-item__name {
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--text);
}
.autocomplete-item__meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========================================
   STATIC PAGES
   ======================================== */
.static-page {
    padding: 2.5rem 0 3rem;
    max-width: 760px;
}
.static-page__title {
    font-size: 1.75rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.static-page__updated {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.static-page__section {
    margin-bottom: 2rem;
}
.static-page__section h2 {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.static-page__section h3 {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}
.static-page__section p {
    margin-bottom: 0.75rem;
    line-height: 1.75;
    color: var(--text);
}
.static-page__section ul {
    margin: 0 0 1rem 1.5rem;
    line-height: 2;
}
.static-page__section li {
    margin-bottom: 0.25rem;
    color: var(--text);
}

/* About Stats */
.about-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.about-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 140px;
    text-align: center;
    flex: 1;
}
.about-stat__number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.about-stat__label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Contact */
.contact-channels {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.contact-card {
    padding: 1.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    min-width: 250px;
    flex: 1;
}
.contact-card h3 {
    font-size: 1.05rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Coming Soon / Placeholder */
.coming-soon-section {
    text-align: center;
    padding: 4rem 1rem;
}
.coming-soon-section h2 {
    color: var(--text);
    margin-bottom: 1rem;
}
.coming-soon-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Coming Soon Card — เน้นเด่นในธีม brand */
.coming-soon-card {
    position: relative;
    padding: 2rem 1.5rem 1.75rem;
    margin: 1.5rem 0 2.5rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, rgba(14,165,233,0.06) 0%, rgba(14,165,233,0) 60%),
        var(--bg-card);
    overflow: hidden;
}
.coming-soon-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.coming-soon-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    text-transform: none;
}
.coming-soon-card__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
    animation: coming-soon-pulse 1.6s infinite ease-in-out;
}
.coming-soon-card__icon {
    position: absolute;
    top: 1.5rem;
    right: 1.25rem;
    color: var(--accent);
    opacity: 0.85;
}
.coming-soon-card h2 {
    font-size: 1.3rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.65rem;
    padding-right: 3rem;
    letter-spacing: -0.01em;
}
.coming-soon-card__lead {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}
.coming-soon-card__hint {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0 !important;
}
.coming-soon-card__hint a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted var(--primary);
}
.coming-soon-card__hint a:hover {
    color: var(--primary-dark);
    border-bottom-style: solid;
}

@keyframes coming-soon-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
    }
    50% {
        opacity: 0.55;
        transform: scale(0.85);
        box-shadow: 0 0 0 5px rgba(255,255,255,0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .coming-soon-card__dot {
        animation: none;
    }
}

/* Dark mode override */
[data-theme="dark"] .coming-soon-card {
    background:
        linear-gradient(135deg, rgba(56,189,248,0.08) 0%, rgba(56,189,248,0) 60%),
        var(--bg-card);
    border-left-color: var(--primary);
}
[data-theme="dark"] .coming-soon-card::before {
    background: radial-gradient(circle, rgba(251,146,60,0.12) 0%, transparent 70%);
}

/* Mobile */
@media (max-width: 480px) {
    .coming-soon-card {
        padding: 1.5rem 1.1rem 1.35rem;
    }
    .coming-soon-card h2 {
        font-size: 1.1rem;
        padding-right: 2.5rem;
    }
    .coming-soon-card__icon {
        top: 1.1rem;
        right: 0.9rem;
    }
    .coming-soon-card__icon svg {
        width: 28px;
        height: 28px;
    }
    .coming-soon-card__lead {
        font-size: 0.95rem;
    }
}
.placeholder-page {
    text-align: center;
    padding: 4rem 1rem;
}
.placeholder-page h1 {
    color: var(--text);
    margin-bottom: 1rem;
}
.placeholder-msg {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.5rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 600;
    min-height: 44px;
    transition: background 0.2s;
}
.back-link:hover {
    background: var(--primary-dark);
    text-decoration: none;
    color: #fff;
}

/* ========================================
   ERROR PAGE (404)
   ======================================== */
.error-page {
    text-align: center;
    padding: 3rem 1rem 4rem;
}
.error-page__icon {
    font-size: 5rem;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}
.error-page__title {
    font-size: 1.375rem;
    color: var(--text);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.error-page__desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.error-page__search {
    max-width: 480px;
    margin: 0 auto 2rem;
}
.error-page__links {
    margin-top: 1.5rem;
}
.error-page__cats {
    margin-top: 1.5rem;
}
.error-page__cats p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* ========================================
   FOOTER — SEO-rich with 4 columns
   ======================================== */
.site-footer {
    background: var(--bg-alt, #f8fafc);
    color: var(--text-secondary, #475569);
    margin-top: auto;
    padding: 3rem 0 1.5rem;
    overflow: hidden;
    word-break: break-word;
    border-top: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .site-footer {
    background: #0f172a;
    color: rgba(255,255,255,0.75);
    border-top-color: rgba(255,255,255,0.06);
}
.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    overflow: hidden;
}
.footer-brand {
    min-width: 0;
}
.footer-logo {
    font-size: 1.35rem;
    color: var(--text, #0f172a);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
[data-theme="dark"] .footer-logo {
    color: #fff;
}
.footer-logo__icon {
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
}
.footer-desc {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--text-secondary, #64748b);
}
[data-theme="dark"] .footer-desc {
    color: rgba(255,255,255,0.55);
}
.footer-col-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
[data-theme="dark"] .footer-col-title {
    color: rgba(255,255,255,0.4);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    color: var(--text-secondary, #475569);
    font-size: 0.85rem;
    transition: color 0.2s;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--primary);
    text-decoration: none;
}
[data-theme="dark"] .footer-links a {
    color: rgba(255,255,255,0.7);
}
[data-theme="dark"] .footer-links a:hover {
    color: #fff;
}
.footer-copy {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.8rem;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    color: var(--text-light, #94a3b8);
}
[data-theme="dark"] .footer-copy {
    border-top-color: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.35);
}

/* ========================================
   WCAG AA Contrast Notes
   ======================================== */
/* Primary #0ea5e9 on white: 3.3:1 (large text AA), text uses --text #0f172a: 15.4:1 AAA */
/* --text-secondary #64748b on white: 4.6:1 AA large */
/* --text-light #94a3b8 used ONLY for supplementary info (not critical text) */

/* ========================================
   RESPONSIVE — Mobile First Adjustments
   ======================================== */

/* Mobile — Search bar stacked vertical */
@media (max-width: 600px) {
    .search-form {
        flex-direction: column;
        gap: 8px;
        background: transparent;
        box-shadow: none;
        border: none;
        overflow: visible;
        border-radius: 0;
        padding: 0;
    }
    .search-form:focus-within {
        border: none;
        box-shadow: none;
    }
    .search-form__input-wrap {
        width: 100%;
        background: var(--bg-card);
        border: 2px solid var(--border);
        border-radius: 14px;
        height: 80px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    }
    .search-form:focus-within .search-form__input-wrap {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    .search-form__icon {
        padding: 0 0.5rem 0 1.125rem;
    }
    .search-form__icon svg {
        width: 26px;
        height: 26px;
    }
    .search-input {
        width: 100%;
        padding: 0 1rem 0 0.5rem;
        font-size: 18px;
        font-weight: 500;
        border-radius: 0;
        border: none;
        background: transparent;
    }
    .search-input::placeholder {
        font-size: 16px; /* prevent iOS zoom on focus */
        color: var(--text-light);
    }
    .search-btn {
        width: 100%;
        height: 50px;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(14, 165, 233, 0.2);
    }
    .search-btn:hover {
        box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
    }
}

/* Tablet and below */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .nav-drawer {
        display: block;
        pointer-events: none;
    }
    .nav-drawer.is-open {
        pointer-events: auto;
    }

    .hero {
        padding: 2.5rem 1.25rem 2rem;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section__title {
        font-size: 1.2rem;
    }
    .home-section {
        padding-top: 1.25rem;
    }
    .home-section__header {
        margin-bottom: 0.625rem;
        gap: 0.5rem;
    }
    .home-section__more {
        font-size: 0.825rem;
    }
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.5rem;
    }
    .category-card {
        padding: 0.75rem 0.5rem;
    }

    .place-grid {
        gap: 0.75rem;
    }

    .province-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    }

    /* Listing */
    .listing-header__title {
        font-size: 1.25rem;
    }

    /* Place detail */
    .place-detail__hero {
        margin: 0 -1.25rem;
    }
    .place-detail__cover {
        height: auto;
        max-height: 280px;
    }
    .place-detail__hero--placeholder {
        height: 160px;
    }
    .place-detail__hero-icon {
        font-size: 2rem;
    }
    .place-detail__hero-text {
        font-size: 0.9rem;
    }
    .place-detail__name {
        font-size: 1.375rem;
    }
    .place-detail__content {
        padding: 1rem 0;
    }
    /* info-row mobile handled by new .info-card styles */
    .place-detail__desc {
        font-size: 0.925rem;
        line-height: 1.7;
    }
    .place-detail__ai-desc {
        padding: 0.875rem 0.9rem 0.875rem 1rem;
        border-left-width: 3px;
        margin-bottom: 1.25rem;
    }
    .place-detail__ai-desc-label {
        font-size: 0.675rem;
        margin: 0 0 0.4rem;
        line-height: 1.2;
    }
    .place-detail__ai-desc p {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    .tag-chip {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    /* Nearby */
    .nearby-section {
        padding: 1.5rem 0;
    }
    .nearby-slider {
        gap: 0.75rem;
        max-width: calc(100vw - 2.5rem);
    }
    .nearby-slider .place-card {
        flex: 0 0 220px;
        min-width: 220px;
    }

    /* Card mobile adjustments */
    .place-card__body {
        padding: 0.625rem 0.875rem 0.75rem;
    }
    .place-card__category {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }
    .place-card__title { font-size: 0.925rem; min-height: calc(2 * 1.35 * 0.925rem); }
    .place-card__rating { font-size: 0.8rem; }
    .place-card__meta { font-size: 0.8rem; }

    /* Footer tablet — 2 columns */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }

    /* Search page mobile */
    .search-form--page {
        flex-direction: column;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    :root {
        --nav-height: 45px;
    }
    .container {
        padding: 0 0.875rem;
    }
    .hero {
        margin: 0 -0.875rem;
        padding: 2rem 0.875rem 1.75rem;
    }
    .section {
        padding: 1.5rem 0;
    }
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .province-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-stats {
        gap: 0.75rem;
    }
    .about-stat {
        min-width: 0;
        padding: 0.875rem;
        flex: 1 1 calc(50% - 0.375rem);
    }
    .about-stat__number {
        font-size: 1.5rem;
    }
    .error-page__icon {
        font-size: 4rem;
    }
    .static-page__title {
        font-size: 1.375rem;
    }

    .place-detail__name {
        font-size: 1.25rem;
    }
    .place-detail__cover {
        height: auto;
        max-height: 220px;
    }
    .place-detail__hero {
        margin: 0 -0.875rem;
    }
    .place-detail__hero--placeholder {
        height: 130px;
    }
    .place-detail__badges {
        gap: 0.35rem;
    }
    .place-detail__badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    .breadcrumb__current { max-width: 140px; }
    .nearby-slider {
        max-width: calc(100vw - 1.75rem);
    }
    .nearby-slider .place-card {
        flex: 0 0 200px;
        min-width: 200px;
    }

    /* Footer mobile — brand top + 2-col links + contact/copy */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
        text-align: left;
    }
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    [data-theme="dark"] .footer-brand {
        border-bottom-color: rgba(255,255,255,0.08);
    }
    .footer-logo {
        justify-content: center;
    }
    .footer-desc {
        font-size: 0.8rem;
        line-height: 1.6;
    }
    .footer-links {
        flex-direction: column;
        gap: 0.6rem;
    }
    /* Contact column (4th child after brand+2 link cols) — span full width */
    .footer-container > div:nth-of-type(4) {
        grid-column: 1 / -1;
        text-align: center;
        padding-top: 0.5rem;
    }
    .footer-copy {
        padding-top: 1.25rem;
    }
}

/* Smallest screens */
@media (max-width: 360px) {
    .nearby-slider .place-card {
        flex: 0 0 180px;
        min-width: 180px;
    }
    .category-card__icon {
        font-size: 1.25rem;
    }
    .category-card__name {
        font-size: 0.8rem;
    }
    /* Footer — collapse to single column to avoid cramped 2-col */
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-links {
        align-items: flex-start;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
    z-index: 90;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.back-to-top:active {
    transform: translateY(0);
}
@media (max-width: 480px) {
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 36px;
        height: 36px;
    }
}

/* Safe area for iPhone */
@supports(padding-bottom: env(safe-area-inset-bottom)) {
    .site-footer {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}

/* Nearby "find 20 places near me" feature */
.nearby-bar {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0 0 1rem; flex-wrap: wrap;
}
#nearbyBtn,
.nearby-btn {
  background: var(--primary); color: #fff; border: 0;
  border-radius: var(--radius-md); padding: 0.6rem 1rem;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
#nearbyBtn:disabled,
.nearby-btn:disabled { opacity: 0.6; cursor: wait; }
.nearby-status { font-size: 0.9rem; color: var(--muted); }
.nearby-reset { font-size: 0.9rem; color: var(--primary); text-decoration: underline; }
.place-detail__nearby-cta {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1rem 0; flex-wrap: wrap;
}
.place-card__distance {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
  z-index: 2;
  pointer-events: none;
  line-height: 1.1;
}
.place-card__distance::before {
  content: "\01F4CD";
  font-size: 0.8rem;
  line-height: 1;
}
@media (max-width:640px) {
  #nearbyBtn,
  .nearby-btn { width: 100%; }
  .nearby-bar { gap: 0.5rem; }
  .place-detail__nearby-cta { gap: 0.5rem; }
  .place-card__distance { font-size: 0.7rem; padding: 0.2rem 0.4rem; top: 0.4rem; right: 0.4rem; }
}

/* Near-me landing page CTA */
.near-me-hero {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  text-align: center;
}
.near-me-hero h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}
.near-me-hero p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}
#nearMeLocateBtn {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}
#nearMeLocateBtn:disabled { opacity: 0.6; cursor: wait; }
#nearMeStatus {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
/* Near-me result distance badge (reuse .place-card__distance if exists) */
.near-me-disclaimer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
.near-me-change {
  display: inline-block;
  margin: 1rem 0;
  color: var(--primary);
  text-decoration: underline;
}
@media (max-width:640px) {
  .near-me-hero { margin: 1.5rem; padding: 1.25rem; }
  .near-me-hero h1 { font-size: 1.2rem; }
  #nearMeLocateBtn { width: 100%; }
}

/* ========================================
   HERO IMAGE SLIDER (place detail)
   ======================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 420px;
    max-height: 420px;
    overflow: hidden;
    background: var(--bg-alt);
}
.hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.hero-slider__slide.is-active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}
.hero-slider__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.hero-slider__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    padding: 0;
}
.hero-slider__nav:hover { background: rgba(0, 0, 0, 0.75); }
.hero-slider__nav:focus-visible {
    outline: 2px solid #4FC3F7;
    outline-offset: 2px;
}
.hero-slider__nav--prev { left: 12px; }
.hero-slider__nav--next { right: 12px; }
.hero-slider__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}
.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s, transform 0.15s;
}
.hero-slider__dot.is-active {
    background: #fff;
    transform: scale(1.3);
}
.hero-slider__dot:focus-visible {
    outline: 2px solid #4FC3F7;
    outline-offset: 2px;
}
.hero-slider__counter {
    position: absolute;
    bottom: 14px;
    right: 14px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 13px;
    line-height: 1.2;
}
@media (max-width: 600px) {
    .hero-slider { height: 280px; }
    .hero-slider__nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
    .hero-slider__nav--prev { left: 8px; }
    .hero-slider__nav--next { right: 8px; }
    .hero-slider__counter { font-size: 12px; padding: 3px 8px; }
}

/* ===== Share Bar ===== */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.share-bar__label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-right: 4px;
}
.share-bar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1.2;
}
.share-bar__btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}
.share-bar__btn:active { transform: translateY(1px); }
.share-bar__btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.share-bar__btn--line:hover {
    background: rgba(6, 199, 85, 0.15);
    border-color: #06C755;
    color: #06C755;
}
.share-bar__btn--fb:hover {
    background: rgba(24, 119, 242, 0.15);
    border-color: #1877F2;
    color: #1877F2;
}
.share-bar__btn--copy.is-success {
    background: rgba(34, 197, 94, 0.18);
    border-color: #22c55e;
    color: #22c55e;
}
.share-bar__btn--save.is-saved {
    background: rgba(244, 63, 94, 0.18);
    border-color: #f43f5e;
    color: #f43f5e;
}
.share-bar__icon {
    font-size: 16px;
    line-height: 1;
}
@media (max-width: 600px) {
    .share-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px;
    }
    .share-bar__label { display: none; }
    .share-bar__btn {
        padding: 12px 14px;
        font-size: 14px;
        justify-content: center;
        width: 100%;
    }
}

/* ========== Saved Places page (/{lang}/saved/) ========== */
.listing-header__intro {
    margin: 8px 0 0;
    color: var(--color-muted, #666);
    font-size: 14px;
    line-height: 1.55;
}
.saved-grid {
    /* inherit .place-grid layout */
}
.saved-card {
    display: flex;
    flex-direction: column;
}
.saved-card__actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--color-border, #e0e0e0);
    display: flex;
    justify-content: flex-end;
}
.saved-card__remove {
    background: transparent;
    border: 1px solid var(--color-border, #d0d0d0);
    color: var(--color-text, #444);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.saved-card__remove:hover {
    background: #d9534f;
    color: #fff;
    border-color: #d9534f;
}
.saved-empty {
    border: 2px dashed var(--color-border, #d8d8d8);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: var(--color-muted, #777);
    font-size: 15px;
    line-height: 1.6;
    margin: 24px 0;
    background: var(--color-card-bg, #fafafa);
}
[data-theme="dark"] .saved-empty {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.65);
}
[data-theme="dark"] .saved-card__remove {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] .saved-card__remove:hover {
    background: #c9302c;
    color: #fff;
    border-color: #c9302c;
}

/* ===== Open/Closed status badge (place detail) ===== */
.open-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin: 8px 0;
    border: 1px solid;
}
.open-status--open {
    background: rgba(34,197,94,.12);
    border-color: rgba(34,197,94,.4);
    color: #22c55e;
}
.open-status--closed {
    background: rgba(239,68,68,.12);
    border-color: rgba(239,68,68,.4);
    color: #ef4444;
}
.open-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    flex-shrink: 0;
}
.open-status--open .open-status__dot {
    animation: open-status-pulse 2s infinite;
}
@keyframes open-status-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.45); }
    70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Thai holiday warning — sits under open-status block on place_detail.
   Wording: "อาจจะปิดในวันนี้" because not every business observes public holidays;
   amber tone signals "warning" not "error" (open-status--closed already owns red). */
.holiday-warning {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 8px;
    padding: 6px 12px;
    background: rgba(255,167,38,.12);
    border: 1px solid rgba(255,167,38,.35);
    border-left: 3px solid #ffa726;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #b76e00;
}
.holiday-warning__icon {
    font-size: 16px;
    flex-shrink: 0;
}
.holiday-warning__text strong {
    font-weight: 600;
}
@media (prefers-color-scheme: dark) {
    .holiday-warning {
        background: rgba(255,167,38,.14);
        color: #ffb74d;
    }
}

/* Today highlight pill in hours grid */
.hours-row__pill {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;
    vertical-align: middle;
    line-height: 1.5;
}
.hours-row__pill--open   { background: rgba(34,197,94,.15);  color: #22c55e; }
.hours-row__pill--closed { background: rgba(239,68,68,.15); color: #ef4444; }
.hours-item--today { font-weight: 600; }

/* === Category SEO intro block (CategoryHub) === */
.category-seo-intro {
    margin: 16px 0;
    padding: 18px 20px;
    background: var(--bg-alt);
    border: 2px solid var(--primary);
    border-radius: 10px;
}
.category-seo-intro__title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--primary);
}
.category-seo-intro__text {
    margin: 0;
    line-height: 1.65;
    color: var(--text);
    font-size: 15px;
}
@media (max-width: 600px) {
    .category-seo-intro { padding: 14px 16px; }
    .category-seo-intro__title { font-size: 18px; }
    .category-seo-intro__text { font-size: 14px; }
}

/* ===== Cross-Filter Intro (category x province dynamic SEO) ===== */
.cross-intro {
    margin: 16px 0 24px;
    padding: 16px 20px;
    background: var(--bg-alt);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
}
.cross-intro__h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text);
}
.cross-intro__text {
    margin: 0;
    line-height: 1.6;
    color: var(--text);
    font-size: 14px;
}
@media (max-width: 600px) {
    .cross-intro { padding: 12px 14px; }
    .cross-intro__h2 { font-size: 16px; }
    .cross-intro__text { font-size: 13px; }
}

/* ===== Expandable content (collapse/expand for SEO/intro sections) ===== */
.expandable {
    position: relative;
}
.expandable--collapsed .expandable__body {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.expandable__toggle {
    display: inline-block;
    margin-top: 0.5rem;
    background: transparent;
    border: 0;
    color: var(--primary, #2563eb);
    cursor: pointer;
    font-size: 0.95em;
    font-family: inherit;
    padding: 0.25rem 0;
    line-height: 1.4;
}
.expandable__toggle:hover {
    text-decoration: underline;
}
.expandable__toggle:focus-visible {
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 2px;
    border-radius: 2px;
}
.expandable__toggle[hidden] {
    display: none;
}

/* Home intro content (SEO copy under hero) */
.intro-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 0;
}
.intro-content__inner {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
}
.intro-content__inner p {
    margin-bottom: 0.75rem;
}
.intro-content__inner a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}
.intro-content__inner a:hover {
    border-bottom-style: solid;
}

@media (max-width: 480px) {
    .intro-content {
        padding: 1rem 0.875rem 0;
    }
    .intro-content__inner {
        font-size: 0.875rem;
    }
}

/* === FAQ Section === */
.faq-section {
    margin-top: 1.5rem;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.08);
}
.faq-item__q {
    cursor: pointer;
    padding: 0.875rem 2.75rem 0.875rem 1rem;
    font-weight: 600;
    color: var(--text);
    list-style: none;
    position: relative;
    line-height: 1.5;
    user-select: none;
}
.faq-item__q::-webkit-details-marker {
    display: none;
}
.faq-item__q::after {
    content: "+";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--primary);
    transition: transform 0.2s ease;
    font-weight: 400;
}
.faq-item[open] .faq-item__q::after {
    content: "\2212";
}
.faq-item__q:hover {
    color: var(--primary);
}
.faq-item__q:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.faq-item__a {
    padding: 0 1rem 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}
.faq-item__a p {
    margin: 0 0 0.4rem;
}
.faq-item__a p:last-child {
    margin-bottom: 0;
}
.faq-item__a a {
    color: var(--primary);
    text-decoration: none;
}
.faq-item__a a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .faq-item__q {
        font-size: 0.95rem;
        padding: 0.75rem 2.5rem 0.75rem 0.875rem;
    }
    .faq-item__a {
        font-size: 0.875rem;
        padding: 0 0.875rem 0.75rem;
    }
}

/* Privacy page callout */
.privacy-callout {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: rgba(14, 165, 233, 0.06);
    border-left: 4px solid var(--primary, #0ea5e9);
    border-radius: 8px;
}
.privacy-callout h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--primary, #0ea5e9);
}
.privacy-callout ul {
    margin: 0;
    padding-left: 1.25rem;
}
.privacy-callout li {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}
@media (prefers-color-scheme: dark) {
    .privacy-callout {
        background: rgba(56, 189, 248, 0.08);
    }
}

/* ============ Phone reverse-lookup ============ */
.phone-lookup {
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 0 3rem;
}
.phone-lookup__header {
    text-align: center;
    padding: 1.5rem 0 1rem;
}
.phone-lookup__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 0 0.5rem;
    color: var(--text, #111);
}
.phone-lookup__sub {
    color: var(--text-secondary, #555);
    font-size: 0.95rem;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}
.phone-lookup__form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    align-items: stretch;
}
.phone-lookup__input {
    flex: 1 1 220px;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    border: 2px solid var(--border, #ddd);
    border-radius: 10px;
    background: var(--bg-card, #fff);
    color: var(--text, #111);
    transition: border-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
}
.phone-lookup__input:focus {
    outline: none;
    border-color: var(--primary, #0ea5e9);
}
.phone-lookup__btn {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary, #0ea5e9);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.phone-lookup__btn:hover { background: var(--primary-hover, #0284c7); }
.phone-lookup__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.phone-lookup__results { margin-top: 2rem; }
.phone-lookup__count {
    text-align: center;
    color: var(--text-secondary, #555);
    margin: 0 0 1.5rem;
    font-size: 1rem;
}
.phone-lookup__count code,
.phone-lookup__empty-title code {
    background: var(--bg-card, #f4f4f5);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.95em;
}
.phone-lookup__empty {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-card, #fafafa);
    border: 1px dashed var(--border, #e4e4e7);
    border-radius: 12px;
    margin-top: 2rem;
}
.phone-lookup__empty-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: var(--text, #111);
}
.phone-lookup__empty-help {
    color: var(--text-secondary, #555);
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}
.phone-lookup__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}
.phone-lookup__report-link {
    background: var(--primary, #0ea5e9);
    color: #fff;
    padding: 0.6rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.phone-lookup__report-link:hover { background: var(--primary-hover, #0284c7); }
.phone-lookup__back-link {
    color: var(--text-secondary, #555);
    padding: 0.6rem 1.1rem;
    text-decoration: none;
}
.phone-lookup__intro {
    max-width: 640px;
    margin: 2rem auto 0;
    padding: 1.5rem;
    background: var(--bg-card, #fafafa);
    border-radius: 12px;
}
.phone-lookup__intro-title {
    font-size: 1.1rem;
    margin: 0 0 0.75rem;
    color: var(--text, #111);
}
.phone-lookup__steps {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text, #444);
    line-height: 1.65;
}
.phone-lookup__steps li { margin: 0.35rem 0; }
.phone-lookup__steps li strong { color: var(--text, #111); font-weight: 600; }
.phone-lookup__example {
    margin: 1rem 0 0;
    color: var(--text-secondary, #555);
    font-size: 0.95rem;
}
.phone-lookup__example a {
    color: var(--primary, #0ea5e9);
    text-decoration: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.phone-lookup__example a:hover { text-decoration: underline; }
@media (max-width: 480px) {
    .phone-lookup__btn { flex: 1 1 100%; }
}

/* Dark mode contrast boost for phone-lookup
   Reason: --text in dark = #cbd5e1 (light gray) is fine for body,
   but sub-heading / placeholder / strong need extra punch to clear WCAG AA. */
[data-theme="dark"] .phone-lookup__sub {
    color: #e2e8f0;
}
[data-theme="dark"] .phone-lookup__input::placeholder {
    color: rgba(226, 232, 240, 0.45);
}
[data-theme="dark"] .phone-lookup__intro {
    background: var(--bg-alt);
    border: 1px solid var(--border);
}
[data-theme="dark"] .phone-lookup__intro-title {
    color: #f1f5f9;
}
[data-theme="dark"] .phone-lookup__steps {
    color: #e2e8f0;
}
[data-theme="dark"] .phone-lookup__steps li strong {
    color: #ffffff;
}
[data-theme="dark"] .phone-lookup__example {
    color: #e2e8f0;
}
[data-theme="dark"] .phone-lookup__empty {
    background: var(--bg-alt);
}
[data-theme="dark"] .phone-lookup__empty-help {
    color: #e2e8f0;
}

/* === Holiday calendar page === */
.holiday-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 4rem;
}
.holiday-page__header {
    padding: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.holiday-page__title {
    font-size: 1.9rem;
    line-height: 1.25;
    margin: 0 0 .5rem;
    color: var(--text);
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: baseline;
}
.holiday-page__year-badge {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: .15rem .65rem;
    border-radius: var(--radius-full);
}
.holiday-page__year-be {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: .95rem;
}
.holiday-page__subtitle {
    color: var(--text-secondary);
    margin: 0 0 1.1rem;
    font-size: 1rem;
    line-height: 1.55;
}
.holiday-page__year-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
}
.holiday-page__year-chip {
    display: inline-block;
    padding: .35rem .85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: background .15s, color .15s, border-color .15s;
}
.holiday-page__year-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.holiday-page__year-chip--active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    cursor: default;
}
.holiday-page__stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.holiday-page__stat {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: .65rem 1rem;
    min-width: 130px;
}
.holiday-page__stat-num {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}
.holiday-page__stat-label {
    display: block;
    font-size: .82rem;
    color: var(--text-secondary);
    margin-top: .15rem;
}
.holiday-page__empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
    background: var(--bg-alt);
    border-radius: var(--radius-md);
}
.holiday-page__months {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .holiday-page__months {
        grid-template-columns: 1fr 1fr;
    }
}
.holiday-page__month {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}
.holiday-page__month-title {
    margin: 0 0 .5rem;
    font-size: 1.1rem;
    color: var(--primary);
    padding-bottom: .35rem;
    border-bottom: 1px solid var(--border);
}
.holiday-page__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.holiday-page__row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: .85rem;
    padding: .55rem 0;
    border-bottom: 1px dashed var(--border);
}
.holiday-page__row:last-child { border-bottom: none; }
.holiday-page__row-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    padding: .25rem .25rem;
    text-align: center;
}
.holiday-page__row-day {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}
.holiday-page__row-weekday {
    font-size: .72rem;
    color: var(--text-secondary);
    text-transform: none;
    margin-top: .1rem;
}
.holiday-page__row-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .25rem;
}
.holiday-page__row-name {
    font-size: .98rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
}
.holiday-page__row-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
}
.holiday-page__type-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: .14rem .55rem;
    border-radius: var(--radius-full);
    line-height: 1.35;
}
.holiday-page__type-badge--public     { background: #dbeafe; color: #1d4ed8; }
.holiday-page__type-badge--buddhist   { background: #fef3c7; color: #92400e; }
.holiday-page__type-badge--royal      { background: #ede9fe; color: #6d28d9; }
.holiday-page__type-badge--substitute { background: #f1f5f9; color: #475569; }
.holiday-page__type-badge--special    { background: #ffedd5; color: #c2410c; }
.holiday-page__type-badge--observance { background: #d1fae5; color: #047857; }
[data-theme="dark"] .holiday-page__type-badge--public     { background: rgba(29,78,216,.25);  color: #93c5fd; }
[data-theme="dark"] .holiday-page__type-badge--buddhist   { background: rgba(146,64,14,.3);   color: #fcd34d; }
[data-theme="dark"] .holiday-page__type-badge--royal      { background: rgba(109,40,217,.3);  color: #c4b5fd; }
[data-theme="dark"] .holiday-page__type-badge--substitute { background: rgba(71,85,105,.3);   color: #cbd5e1; }
[data-theme="dark"] .holiday-page__type-badge--special    { background: rgba(194,65,12,.3);   color: #fdba74; }
[data-theme="dark"] .holiday-page__type-badge--observance { background: rgba(4,120,87,.3);    color: #6ee7b7; }
.holiday-page__bank-flag {
    display: inline-block;
    font-size: .68rem;
    padding: .1rem .45rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    line-height: 1.4;
}
.holiday-page__source {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
    font-size: .85rem;
}
@media (max-width: 480px) {
    .holiday-page__title { font-size: 1.55rem; }
    .holiday-page__row { grid-template-columns: 52px 1fr; gap: .65rem; }
    .holiday-page__row-day { font-size: 1.1rem; }
}

/* ===== ISP brand buttons (category id=34 internet-isp only) ===== */
.brand-buttons {
    margin: 0 0 1rem 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.brand-buttons__title {
    margin: 0 0 .5rem 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text2, #6b7280);
    line-height: 1.25;
}
.brand-buttons__row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}
.brand-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none;
    padding: .4rem .85rem;
    border-radius: 6px;
    font-weight: 600;
    color: #fff;
    border: 0;
    line-height: 1.2;
    transition: opacity .15s ease;
}
.brand-btn:hover,
.brand-btn:focus-visible {
    opacity: .85;
    color: #fff;
    text-decoration: none;
    outline: none;
}
.brand-btn:active { opacity: .75; }
.brand-btn__name { font-size: .85rem; }
.brand-btn__hint { display: none; }
.brand-btn--ais  { background: #0a8c44; }
.brand-btn--true { background: #e60012; }
.brand-btn--3bb  { background: #0099e0; }

@media (max-width: 600px) {
    .brand-buttons__row { gap: .4rem; }
    .brand-btn { padding: .35rem .7rem; }
    .brand-btn__name { font-size: .8rem; }
}

/* ============================================================
   TL;DR direct-answer block — AEO / voice / featured snippet
   Used by Speakable JSON-LD (cssSelector: #tldr).
   ============================================================ */
.page-tldr {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text2, #6b7280);
    margin: 0.5rem 0 1rem 0;
    padding: 0.75rem 1rem;
    background: var(--bg2, rgba(255,255,255,0.03));
    border-left: 3px solid var(--primary, #0ea5e9);
    border-radius: 4px;
    max-width: 80ch;
}
[data-theme="dark"] .page-tldr {
    background: rgba(255,255,255,0.04);
    color: #cbd5e1;
}

