:root {
    /* Premium Color Palette */
    --primary: #1e293b; /* Slate dark */
    --primary-light: #334155;
    --accent: #d4af37; /* Elegant Champagne Gold */
    --accent-hover: #bda036;
    /* Readable pairings (WCAG AA): dark text on gold backgrounds, and a
       deeper gold for gold-colored text on white */
    --on-accent: #1e293b;
    --accent-text: #8a6a12;
    --bg-main: #f8fafc; /* Very light slate/grey */
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    
    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    text-wrap: balance;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    background-color: var(--bg-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
    color: var(--primary);
}

/* The Event Pin mark (inline SVG, drawn by not-for-upload/brand/apply-logo-to-site.mjs) */
.logo a svg {
    width: 34px;
    height: 34px;
    flex: none;
}

.logo a:hover {
    color: var(--accent-text);
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-text);
}

.btn-outline {
    border: 1px solid var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white !important;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--on-accent);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

/* Hero Section - sized by its content (no fixed height), with the search
   bar sitting fully inside it on the dark background */
.hero {
    position: relative;
    padding: 4.5rem 2rem 3.5rem;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

/* Subtle decorative pattern in hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 32px 32px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 2rem;
    color: white;
}

/* Scoped to the home hero - for-venues.html reuses .hero-content */
.hero .hero-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

.hero h1 {
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    color: white;
    margin-bottom: 1rem;
    line-height: 1.12;
}

.hero p {
    font-size: 1.15rem;
    color: #cbd5e1;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

/* Search/Filter Bar */
.search-bar {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    display: flex;
    gap: 1.25rem;
    align-items: flex-end;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    text-align: left;
}

/* Desktop: the filter dropdowns sit in the same row as the search box */
.search-filters {
    display: contents;
}

.search-field {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.search-field-main {
    flex: 1.4;
}

.search-field label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.search-field select,
.search-field input[type="text"] {
    width: 100%;
    padding: 0.5rem 0;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--primary);
    background: transparent;
    outline: none;
    transition: border-color 0.2s;
}

.search-field select {
    cursor: pointer;
    text-overflow: ellipsis;
}

.search-field select:focus,
.search-field input[type="text"]:focus {
    border-bottom-color: var(--accent);
}

.search-bar .btn-primary {
    padding: 0.85rem 1.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Only used on phones, where the dropdowns are collapsed */
.filters-toggle {
    display: none;
}

/* Category Highlights */
.category-highlights {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}

.highlight-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.highlight-card {
    position: relative;
    height: 190px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.highlight-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.highlight-card:hover .highlight-bg {
    transform: scale(1.05);
}

.highlight-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.15) 100%);
}

.highlight-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 1.25rem 1.5rem;
    color: white;
    z-index: 10;
}

.highlight-content h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 0.15rem;
}

.highlight-content p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* How it Works Section (below the directory, so venues come first) */
.how-it-works {
    background-color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.how-it-works h2 {
    font-size: 2.25rem;
    margin-bottom: 2.5rem;
}

.steps-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    background-color: var(--accent);
    color: var(--on-accent);
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.step-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
}

/* Directory Grid Section */
.directory-section {
    max-width: 1200px;
    margin: 3.5rem auto 4.5rem;
    padding: 0 2rem;
    scroll-margin-top: 80px; /* clears the sticky navbar when scrolled to */
}

.section-header.directory-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: left;
}

.view-toggles {
    display: flex;
    gap: 0.5rem;
}

.view-toggles button {
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: white;
    color: var(--primary);
}

.view-toggles .btn-primary {
    background-color: var(--accent);
    color: var(--on-accent);
}

#mapContainer {
    height: 600px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.25rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.venue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 2rem;
}

/* Venue Card */
.venue-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.venue-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img-placeholder {
    height: 220px;
    background: var(--bg-main); /* Fallback */
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Premium "No Image" State */
.no-image {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: white !important;
}

.no-image::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 24px 24px;
    z-index: 1;
}

.no-image-text {
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: var(--font-heading);
    color: #cbd5e1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Monogram placeholder (venues without photos) - see venueMonogram() in
   shared.js. Four tones so a page of photo-less cards doesn't look identical. */
.no-image.tone-0 { background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important; }
.no-image.tone-1 { background: linear-gradient(135deg, #1f3a3a 0%, #0f2222 100%) !important; }
.no-image.tone-2 { background: linear-gradient(135deg, #3b2230 0%, #22121b 100%) !important; }
.no-image.tone-3 { background: linear-gradient(135deg, #2e2c45 0%, #1a1929 100%) !important; }

.monogram {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}

.monogram-ring {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 175, 55, 0.75);
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent);
}

.monogram-caption {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: #cbd5e1;
    padding: 0 1rem;
}

.popup-img.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.popup-img .monogram-ring {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

/* Profile page without photos: the hero sizes to its content, with the
   monogram in the normal flow directly above the venue name (so a long,
   wrapping name can never collide with it) */
.profile-hero.no-photo-hero {
    height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 2.5rem;
}

.no-photo-hero .profile-no-image {
    order: -1; /* added after the name by profile.js; shown above it */
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 1.25rem;
    padding: 0 2rem;
}

.no-photo-hero .monogram {
    align-items: flex-start;
    text-align: left;
}

.no-photo-hero .monogram-caption {
    padding: 0;
}

.no-photo-hero .profile-header {
    position: relative;
    width: 100%;
}

@media (max-width: 600px) {
    .profile-hero.no-photo-hero {
        padding-top: 1.75rem;
    }
    .no-photo-hero .profile-no-image {
        margin-bottom: 1rem;
    }
    .no-photo-hero .monogram-ring {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
}

.profile-no-image {
    top: 40%;
}

@media (max-width: 600px) {
    /* Smaller monogram, higher up, so it clears a two-line venue name */
    .no-photo-hero .profile-no-image {
        top: 30%;
    }
    .no-photo-hero .monogram-ring {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    .no-photo-hero .monogram {
        gap: 0.4rem;
    }
}

.profile-no-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding-bottom: 2rem; /* Keep text above the venue name overlay */
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-title a {
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--accent-text);
}

.card-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Claim button / "Login to Claim" link: sized to its text, not the card width */
.card-content > .btn-outline {
    align-self: flex-start;
    cursor: pointer;
    background: white;
    font-family: var(--font-body);
}

.card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.card-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 600;
    color: var(--primary);
}

.price span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-view {
    color: var(--accent-text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-view:hover {
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary);
    color: white;
    padding: 4.5rem 2rem;
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-container h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.cta-container p {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: var(--bg-white);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-text);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    /* Tablets: search box + button on the first row, the 4 dropdowns below */
    .search-bar {
        flex-wrap: wrap;
    }
    .search-field-main {
        flex: 1 1 60%;
    }
    .search-filters .search-field {
        flex: 1 1 20%;
        order: 1;
    }
}

@media (max-width: 900px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* In a single-column layout, a sticky contact form would pin itself
       over most of the screen while scrolling past the description below it */
    .lead-form {
        position: static;
        top: auto;
    }
    .highlight-card {
        height: 160px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 2.5rem 1.25rem 1.75rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Phones: just the search box plus [Filters] [Find Venues]; the four
       dropdowns open in a 2-column grid only when Filters is tapped */
    .search-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }
    .search-field-main {
        grid-column: 1 / -1;
    }
    .search-filters {
        display: none;
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1rem;
    }
    .search-bar.filters-open .search-filters {
        display: grid;
    }
    .search-field input[type="text"],
    .search-field select {
        font-size: 16px; /* 16px+ stops iPhones zooming in on focus */
    }
    .filters-toggle {
        display: block;
        background: white;
        color: var(--primary);
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
    }
    .search-bar .btn-primary {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    /* Category cards: all three side by side as compact tiles (title only),
       so nothing scrolls sideways and they take little height */
    .category-highlights {
        margin-top: 1.5rem;
        padding: 0 1.25rem;
    }
    .highlight-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
    .highlight-card {
        height: 104px;
        border-radius: 8px;
    }
    .highlight-content {
        padding: 0.6rem 0.65rem;
    }
    .highlight-content h3 {
        font-size: 1.05rem;
        margin-bottom: 0;
    }
    .highlight-content p {
        display: none;
    }

    .directory-section {
        margin: 2.25rem auto 3rem;
        padding: 0 1.25rem;
    }
    .section-header h2 {
        font-size: 1.75rem;
    }
    .section-header p {
        font-size: 0.95rem;
    }
    .directory-header {
        align-items: stretch;
    }
    .view-toggles {
        width: 100%;
    }
    .view-toggles button {
        flex: 1;
    }
    #mapContainer {
        height: 65vh;
    }
    .venue-grid {
        gap: 1.25rem;
    }
    .card-img-placeholder {
        height: 180px;
    }
    .card-content {
        padding: 1.25rem;
    }
    .card-title {
        font-size: 1.3rem;
    }

    /* How it works: compact rows (number beside the text) */
    .how-it-works {
        padding: 3rem 1.25rem;
    }
    .how-it-works h2 {
        font-size: 1.75rem;
        margin-bottom: 1.75rem;
    }
    .steps-container {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    /* Number on the left, title above its text on the right */
    .step-card {
        display: grid;
        grid-template-columns: 40px 1fr;
        column-gap: 1rem;
        align-items: start;
        text-align: left;
    }
    .step-number {
        grid-row: span 2;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 0;
    }
    .step-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.15rem;
    }
    .step-card p {
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 3rem 1.25rem;
    }
    .cta-container h2 {
        font-size: 1.75rem;
    }
    .cta-container p {
        font-size: 1rem;
    }
    footer {
        padding: 2.5rem 1.25rem 1.5rem;
    }
    .footer-container {
        margin-bottom: 1.5rem;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.5rem;
    }
    .nav-container {
        padding: 0 1.25rem;
    }
}

/* Very narrow phones (e.g. 360px): keep "Corporate" inside its tile */
@media (max-width: 380px) {
    .highlight-content h3 {
        font-size: 0.95rem;
    }
}
@media (max-width: 340px) {
    .highlight-content {
        padding: 0.5rem;
    }
    .highlight-content h3 {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-md);
        z-index: 99;
    }
    .nav-links.nav-open {
        display: flex;
    }
    .nav-container {
        position: relative;
    }
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        padding: 0.5rem;
        border: none;
        background: transparent;
        z-index: 101;
    }
    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--primary);
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    .footer-container { flex-direction: column; gap: 2rem; text-align: center; align-items: center; }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
    .hamburger { display: none; }
}

/* =========================================
   Premium UI Enhancements
   ========================================= */

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skeleton Loading */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: #f6f7f8;
    background-image: linear-gradient(90deg, #f6f7f8 0px, #edeef1 40px, #f6f7f8 80px);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px;
}

.skeleton-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skeleton-img {
    height: 240px;
    width: 100%;
}

.skeleton-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-title { height: 28px; width: 70%; }
.skeleton-loc { height: 16px; width: 50%; margin-bottom: 0.5rem; }
.skeleton-text { height: 16px; width: 100%; }
.skeleton-text-short { height: 16px; width: 80%; }
.skeleton-btn { height: 32px; width: 100px; margin-top: auto; border-radius: 50px; }

/* Custom Leaflet Pin & Popup */
.custom-map-pin {
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.2s;
}
.custom-map-pin:hover {
    transform: scale(1.15) !important;
    background-color: var(--primary);
}

/* Override Leaflet Popup */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 0;
    overflow: hidden;
}
.leaflet-popup-content {
    margin: 0;
    width: 200px !important;
}
.custom-popup .popup-img {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-position: center;
}
.custom-popup .popup-details {
    padding: 1rem;
}
.custom-popup h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--primary);
    font-family: var(--font-heading);
}
.custom-popup p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.custom-popup a {
    display: block;
    text-align: center;
    background: var(--accent);
    color: var(--on-accent);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s;
}
.custom-popup a:hover {
    background: var(--accent-hover);
}
.leaflet-container a.leaflet-popup-close-button {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    padding: 4px 10px 0 0;
}

/* =========================================
   Toast Notifications & Confirm Dialog
   (replace native alert()/confirm())
   ========================================= */
#toastContainer {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.toast {
    background: var(--primary);
    color: white;
    padding: 0.9rem 1.25rem;
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    max-width: 320px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }
.toast-info { background: var(--primary); }

@media (max-width: 600px) {
    #toastContainer {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        align-items: stretch;
    }
    .toast { max-width: none; }
}

.confirm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-overlay.confirm-visible {
    opacity: 1;
}

.confirm-box {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.confirm-overlay.confirm-visible .confirm-box {
    transform: scale(1);
}

.confirm-message {
    font-family: var(--font-body);
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-actions button {
    flex: 1;
}

/* =========================================
   Listing Forms (List Your Business / Edit Listing)
   ========================================= */
.form-page {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.form-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
}

.form-card h2 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 2rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.form-card h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Baseline .form-group styling shared by pages that don't define their own
   (login.html and profile.html define page-local overrides that still win
   due to source order, since they're declared after this stylesheet) */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.checkbox-group, .radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-group label, .radio-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.address-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.address-row input { flex: 1; }

.image-uploader input[type="file"] {
    display: block;
    margin-bottom: 1rem;
}

.image-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.image-thumb {
    position: relative;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-thumb-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.75);
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 1.5rem; }
    .address-row { flex-direction: column; align-items: stretch; }
    .address-row button { width: 100%; }
}

/* Cookie notice (created by app.js) - a slim bar, not a big panel */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1e293b;
    color: #cbd5e1;
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}

.cookie-banner p {
    margin: 0;
    max-width: 900px;
}

.cookie-banner a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner button {
    background: var(--accent);
    color: var(--on-accent);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .cookie-banner {
        padding: 0.65rem 1rem;
        gap: 0.75rem;
        font-size: 0.75rem;
        line-height: 1.4;
    }
    .cookie-banner button {
        padding: 0.45rem 0.9rem;
    }
}

/* Show More pagination */
.show-more-wrapper {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 0.5rem;
}

.show-more-wrapper button {
    padding: 0.75rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    background: white;
    cursor: pointer;
}

/* Email verification reminder banner */
.verify-banner {
    background: #fef9c3;
    border: 1px solid #fde68a;
    color: #854d0e;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.verify-banner button {
    background: #854d0e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    white-space: nowrap;
}

/* Venue photo gallery on profile page */
.gallery-main {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gallery-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.75;
    transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--accent);
}

/* Honeypot field - hidden from real users, catches simple bots */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* "Claimed" badge on directory cards - top left, so it never overlaps the
   "Premium" badge on the right */
.card-badge.card-badge-claimed {
    right: auto;
    left: 1rem;
    background: #15803d;
    color: white;
    letter-spacing: 0.5px;
}
