/* =============================================
   Midnight Editorial — Dark Luxury Magazine Style
   ============================================= */
/* Fonts loaded via <link> in header.php for non-blocking fetch */

:root {
    /* Dark Backgrounds */
    --bg: #000000;
    --bg-alt: #121212;
    --bg-card: #181818;
    --bg-elev: #242424;
    --bg-hover: #333333;

    /* Borders */
    --border: #333333;
    --border-light: #444444;
    --border-gold: #f5c518;

    /* Gold / Amber Accents */
    --gold: #f5c518;
    --gold-bright: #e2b616;
    --gold-dim: #c99c0d;
    --amber: #f5c518;
    --gold-gradient: linear-gradient(135deg, #f5c518 0%, #e2b616 50%, #c99c0d 100%);

    /* Text */
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: #6b6b6b;
    --text-gold: #f5c518;

    /* Status */
    --red: #dc2626;
    --red-dim: #7f1d1d;
    --green: #10b981;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.6);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.7);
    --shadow-gold: 0 8px 24px rgba(212,165,116,0.15);

    /* Typography */
    --font-display: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Radii — sharp editorial corners */
    --radius-none: 0;
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;

    --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: all 0.2s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

/* Subtle film grain overlay for editorial feel */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.035;
    mix-blend-mode: overlay;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.01em;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Editorial eyebrow label */
.eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--gold);
}

/* ==================
   Header & Nav
   ================== */
.site-header {
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    padding: 0.85rem 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: var(--border-light);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    background: none;
    padding: 0 0.5rem;
    border-radius: 4px;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-style: normal;
}

.logo:hover {
    color: #f5c518;
    background: none;
}

.logo img { border-radius: var(--radius-sm); }

/* Desktop nav */
.main-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    padding: 0.6rem 1rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.3rem;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    width: 36px;
    height: 36px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text);
    position: absolute;
    left: 6px;
    transition: var(--transition);
}

.nav-toggle span:nth-child(1) { top: 11px; }
.nav-toggle span:nth-child(2) { top: 18px; width: 18px; }
.nav-toggle span:nth-child(3) { top: 25px; }

.nav-toggle.open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 18px; transform: rotate(-45deg); width: 24px; }

/* ==================
   Hero Section — Editorial
   ================== */
.hero-section {
    position: relative;
    padding: 7rem 0 5rem;
    background: var(--bg);
    margin-bottom: 0;
    overflow: hidden;
    color: var(--text);
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 50% 20%, rgba(212,165,116,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 400px 600px at 15% 80%, rgba(245,158,11,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gold) 30%, var(--gold));
    pointer-events: none;
}

.hero-overlay { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-content::before {
    content: 'DISCOVER · EXPLORE · EXPERIENCE';
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1;
    font-weight: 400;
    font-style: italic;
}

.hero-title em {
    color: var(--gold);
    font-style: italic;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 auto 2.5rem;
    max-width: 560px;
    font-weight: 300;
    line-height: 1.85;
}

/* ==================
   Main Content
   ================== */
.main-content {
    flex: 1;
    padding: 2rem 0 5rem;
    position: relative;
    z-index: 2;
}

/* ==================
   Search & Filters — Dark Minimal
   ================== */
.search-filter-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-none);
    box-shadow: var(--shadow-lg);
    margin-top: -3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
}

.search-filter-section::before {
    content: 'SEARCH';
    position: absolute;
    top: -0.65rem;
    left: 2rem;
    background: var(--bg);
    padding: 0 0.75rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    font-weight: 600;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-box {
    display: flex;
    gap: 0.75rem;
}

.search-box .form-control { flex: 1; }

.filter-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-row .filter-select {
    flex: 1;
    min-width: 160px;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-none);
    font-size: 0.92rem;
    font-family: var(--font-body);
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
    letter-spacing: 0.01em;
}

.form-control::placeholder {
    color: var(--text-dim);
    font-style: italic;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--bg-alt);
    box-shadow: 0 0 0 1px var(--gold);
}

/* Select styling for dark theme */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4a574' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 2.75rem;
    cursor: pointer;
}

select.form-control option {
    background: var(--bg-card);
    color: var(--text);
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
}

.form-group { margin-bottom: 1.5rem; }

/* ==================
   Buttons — Editorial
   ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-none);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    /* iOS Safari: remove native button styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
}

.btn-primary {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245,197,24,0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}

/* ==================
   Cards
   ================== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-none);
    border: 1px solid var(--border);
    box-shadow: none;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 20;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    background: var(--bg-elev);
}

.card:hover::before { width: 100%; }

.card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    padding-top: 58%;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
    filter: brightness(0.85) saturate(1.05);
}

.card:hover .card-image {
    transform: scale(1.06);
    filter: brightness(1) saturate(1.15);
}

.card-body {
    padding: 1.75rem 1.75rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.6rem;
    line-height: 1.25;
    letter-spacing: -0.005em;
}

.card-title a {
    color: var(--text);
    position: relative;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size 0.4s ease, color 0.3s ease;
}

.card-title a:hover {
    color: var(--gold);
    background-size: 100% 1px;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.75;
    font-weight: 300;
}

.card-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.card-meta {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.card-meta::before {
    content: '';
    width: 12px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

/* Store Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem 1.75rem;
    margin-top: 2rem;
}

/* ==================
   Featured Section — Horizontal Scroll Editorial
   ================== */
.featured-section {
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-title::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
    transform: translateY(-0.75rem);
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
    transform: translateY(-0.75rem);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.featured-card {
    height: 360px;
    border-radius: var(--radius-none);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    transition: var(--transition);
    background: var(--bg-card);
}

.featured-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    filter: brightness(0.75) saturate(1.1);
}

.featured-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.9) saturate(1.2);
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 40%, rgba(0,0,0,0.1) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.75rem;
    color: var(--text);
}

.featured-overlay::before {
    content: 'FEATURED';
    font-family: var(--font-body);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.featured-overlay h3 {
    font-family: var(--font-display);
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.featured-location {
    font-family: var(--font-body);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(245, 245, 240, 0.8);
    font-weight: 500;
}

.badge-hot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 10, 10, 0.85);
    color: var(--gold);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-none);
    border: 1px solid var(--gold);
    font-size: 0.64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    backdrop-filter: blur(8px);
    z-index: 5;
}

/* ==================
   Badges — Editorial Square
   ================== */
.card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 10;
}

.card-badge {
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-none);
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--gold);
    backdrop-filter: blur(8px);
}

.card-badge.featured { color: var(--gold); border-color: var(--gold); }
.card-badge.hot { color: #fb923c; border-color: #fb923c; }
.card-badge.recommended { color: var(--gold-bright); border-color: var(--gold-bright); }

/* ==================
   Back Link
   ================== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0;
    background: transparent;
    color: var(--text-muted);
    border: none;
    border-radius: 0;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 2rem;
    transition: var(--transition);
    position: relative;
}

.back-link::before {
    content: '←';
    color: var(--gold);
    font-size: 1rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--gold);
    transform: translateX(-4px);
    background: transparent;
}

/* ==================
   Store Detail — Editorial Layout
   ================== */
.store-detail {
    background: var(--bg-card);
    border-radius: var(--radius-none);
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.store-image-large {
    width: 100%;
    height: 480px;
    object-fit: cover;
    filter: brightness(0.9);
}

.store-info {
    padding: 3rem 2.5rem 2.5rem;
}

.store-name {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-style: italic;
}

.store-description {
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 300;
    max-width: 680px;
}

.store-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    padding: 0;
    background: transparent;
    border-radius: var(--radius-none);
    margin: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.store-meta-item {
    padding: 1.5rem 1.5rem 1.5rem 0;
    border-right: 1px solid var(--border);
}

.store-meta-item:last-child { border-right: none; }

.store-meta-item strong {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.store-meta-item span,
.store-meta-item a {
    font-family: var(--font-display);
    font-weight: 400;
    color: var(--text);
    font-size: 1.05rem;
}

.store-meta-item a:hover { color: var(--gold); }

/* ==================
   Social Share — Minimal
   ================== */
.social-share {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 1.5rem;
}

.social-share-title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-right: 0.5rem;
}

.social-btn {
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius-none);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: none;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}

.social-btn.facebook:hover { border-color: #1877f2; color: #1877f2; }
.social-btn.twitter:hover { border-color: var(--text); color: var(--text); }
.social-btn.youtube:hover { border-color: #ef4444; color: #ef4444; }
.social-btn.xiaohongshu:hover { border-color: #fe2c55; color: #fe2c55; }
.social-btn.tiktok:hover { border-color: var(--gold-bright); color: var(--gold-bright); }

/* ==================
   Comments
   ================== */
.comments-section {
    max-width: 880px;
    margin: 0 auto;
}

.comment-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-none);
    box-shadow: none;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
    border-left: 2px solid var(--gold);
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comment-item {
    background: transparent;
    padding: 1.75rem 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.comment-item:first-child { padding-top: 0.5rem; }
.comment-item:last-child { border-bottom: none; }

.comment-item:hover {
    box-shadow: none;
    background: transparent;
}

.comment-item:hover .comment-author {
    color: var(--gold);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.comment-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.comment-author {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--text);
    font-size: 1.1rem;
    font-style: italic;
    transition: var(--transition);
}

.comment-date {
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.comment-content {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.85;
    font-weight: 300;
}

.comment-store-name {
    margin-top: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.comment-store-icon { line-height: 1; font-size: 0.85rem; color: var(--gold); }
.comment-store-text { font-weight: 600; color: var(--gold-dim); }

/* ==================
   Star Rating Display
   ================== */
.store-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.star-rating-display {
    display: flex;
    gap: 2px;
}

.star { font-size: 1.15rem; color: var(--text-dim); }
.star.filled { color: var(--gold); text-shadow: 0 0 8px rgba(245, 197, 24, 0.3); }
.star.empty { color: var(--border-light); }

.rating-text {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* Star Rating Input */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating-input input { display: none; }

.star-rating-input label {
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--border-light);
    transition: color 0.15s, transform 0.15s;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: var(--gold);
    transform: scale(1.1);
    text-shadow: 0 0 12px rgba(212,165,116,0.4);
}

/* Mini Rating in Cards */
.store-rating-mini .star { color: var(--text-dim); }
.store-rating-mini .star.filled { color: var(--gold); }

/* ==================
   No Image
   ================== */
.no-image {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, var(--bg-elev) 0%, var(--bg-card) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(212,165,116,0.03) 10px, rgba(212,165,116,0.03) 11px);
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-dim);
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-style: italic;
}

.no-image::after {
    content: 'N/A';
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-dim);
    text-transform: uppercase;
    position: absolute;
    margin-top: 3.5rem;
}

/* ==================
   Empty State
   ================== */
.empty-state {
    text-align: center;
    padding: 5rem 1.5rem;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    opacity: 0.6;
    color: var(--gold);
    font-family: var(--font-display);
    font-style: italic;
}

.empty-state h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.92rem;
    font-weight: 300;
}

/* ==================
   Search Results Info
   ================== */
.search-results-info {
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-none);
    border: 1px solid var(--border);
    border-left: 2px solid var(--gold);
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.search-results-info strong {
    color: var(--gold);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
}

/* ==================
   Alerts
   ================== */
@keyframes slideDown {
    from { transform: translateY(-16px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-none);
    animation: slideDown 0.4s ease-out forwards;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.alert-success {
    background: var(--bg-card);
    color: var(--green);
    border-left: 2px solid var(--green);
}

.alert-error {
    background: var(--bg-card);
    color: #fca5a5;
    border-left: 2px solid var(--red);
}

/* ==================
   Pagination
   ================== */
.pagination,
.comment-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ==================
   Footer
   ================== */
.site-footer {
    background: var(--bg);
    padding: 3.5rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
    text-align: center;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.site-footer::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 1.5rem;
}

/* ==================
   Quick Comment Buttons — Editorial Chips
   ================== */
.quick-comment-btn {
    font-family: var(--font-body) !important;
    font-size: 0.68rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.22em !important;
    font-weight: 500 !important;
    border-radius: var(--radius-none) !important;
    padding: 0.5rem 1rem !important;
    border: 1px solid var(--border-light) !important;
    background: transparent !important;
    color: var(--text-muted) !important;
    transition: var(--transition);
}

.quick-comment-btn:hover {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
    background: transparent !important;
}

/* ==================
   Toast Modal
   ================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.toast-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

.toast-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
}

.toast-content {
    position: relative;
    background: var(--bg-card);
    padding: 3rem 2.5rem 2.5rem;
    border-radius: var(--radius-none);
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    box-shadow: 0 25px 80px -12px rgba(0,0,0,0.8);
    text-align: center;
    max-width: 420px;
    width: 90%;
    animation: scaleIn 0.3s ease;
}

.toast-icon { margin-bottom: 1.25rem; }
.toast-success .toast-icon { color: var(--gold); }
.toast-error .toast-icon { color: var(--red); }

.toast-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0.6rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.toast-message {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.75;
    font-weight: 300;
}

.toast-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.5rem;
    background: var(--gold);
    color: var(--bg);
    border: 1px solid var(--gold);
    border-radius: var(--radius-none);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: none;
    /* iOS Safari fix */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.toast-btn:hover {
    transform: translateY(-2px);
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    box-shadow: var(--shadow-gold);
}

.toast-error .toast-btn {
    background: var(--red);
    border-color: var(--red);
    color: var(--text);
    box-shadow: none;
}

.toast-error .toast-btn:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    box-shadow: 0 8px 22px rgba(220,38,38,0.35);
}

.toast-modal.closing { animation: fadeOut 0.2s ease forwards; }
.toast-modal.closing .toast-content { animation: scaleOut 0.2s ease forwards; }

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes scaleOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.92); }
}

/* ==================
   Mobile Responsive
   ================== */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }

    /* Mobile Nav */
    .nav-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1.5rem;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        gap: 0;
    }

    .main-nav.open { display: flex; }

    .main-nav a {
        padding: 1rem 0;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
        font-size: 0.8rem;
        text-align: left;
    }

    .main-nav a:last-child { border-bottom: none; }

    .main-nav a::after { display: none; }

    /* Hero */
    .hero-section { padding: 4.5rem 0 3.5rem; margin-bottom: 0; }
    .hero-content::before { font-size: 0.6rem; letter-spacing: 0.3em; margin-bottom: 1.5rem; }
    .hero-title { font-size: 2.75rem; }
    .hero-subtitle { font-size: 0.92rem; margin-bottom: 2rem; }

    /* Search */
    .search-filter-section {
        margin-top: -2rem;
        margin-bottom: 2rem;
        padding: 1.5rem 1.25rem;
    }

    .search-box { flex-direction: column; }
    .filter-row { flex-direction: column; }

    /* Grid */
    .store-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .featured-card { height: 280px; }

    /* Store Detail */
    .store-image-large { height: 260px; }
    .store-info { padding: 2rem 1.5rem; }
    .store-name { font-size: 2.1rem; }
    .store-meta { grid-template-columns: 1fr; padding: 0; }
    .store-meta-item { border-right: none; border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
    .store-meta-item:last-child { border-bottom: none; }

    /* Social share — icon-only */
    .social-btn span { display: none; }
    .social-btn { padding: 0.7rem; min-width: 44px; justify-content: center; }
    .social-share-title { width: 100%; margin-bottom: 0.5rem; }

    /* Comments */
    .comment-form { padding: 1.5rem 1.25rem; }
    .comment-item { padding: 1.5rem 0; }
    .comment-author { font-size: 1rem; }

    /* Section titles */
    .section-title { font-size: 1.85rem; gap: 1rem; }
    .section-title::before { width: 24px; }

    /* Cards */
    .card-body { padding: 1.25rem 1.25rem 1.25rem; }
    .card-title { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .hero-section { padding: 3.5rem 0 3rem; }

    .btn { padding: 0.75rem 1.5rem; font-size: 0.7rem; }
    .btn-sm { padding: 0.5rem 1rem; font-size: 0.65rem; }

    .store-grid { grid-template-columns: 1fr; }
    .card-image-link { padding-top: 60%; }

    .store-name { font-size: 1.75rem; }
    .store-image-large { height: 220px; }
}

/* Tablet tweaks */
@media (min-width: 769px) and (max-width: 1024px) {
    .store-grid { grid-template-columns: repeat(2, 1fr); }
    .featured-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 4rem; }
    .section-title { font-size: 2.25rem; }
}

/* ==================
   Selection color
   ================== */
::selection {
    background: var(--gold);
    color: var(--bg);
}

/* ==================
   Scrollbar
   ================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 0;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* ==================
   Focus styles for accessibility
   ================== */
*:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 3px;
}
