/* ════════════════════════════════════════════
   EventsREZ Homepage — dedicated stylesheet
   Loaded only on home.blade.php
   ════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────── */
:root {
    /* Burgundy palette */
    --er-burgundy:        #6B2737;
    --er-burgundy-deep:   #4D1B26;
    --er-burgundy-light:  #8B3C4D;
    --er-burgundy-tint:   #F8F0F2;

    /* Warm neutrals */
    --er-cream:           #FAF7F2;
    --er-bone:            #F5EFE6;
    --er-stone:           #E8E0D3;
    --er-charcoal:        #1A1612;
    --er-graphite:        #4A453E;
    --er-mist:            #8B847B;

    /* Accents */
    --er-gold:            #C8A464;
    --er-orange:          #ec724b;  /* Brand primary orange (from original gradient) */
    --er-orange-deep:     #e94261;  /* Brand gradient endpoint (pink-red) */
    --er-orange-light:    #f0946d;  /* Lighter tint for glows/hovers */
    --er-brand-gradient:  linear-gradient(94.33deg, #ec724b, #e94261);
    --er-white:           #FFFFFF;

    /* Typography scale */
    --font-display:       'Fraunces', Georgia, serif;
    --font-body:          'Inter', -apple-system, sans-serif;

    /* Spacing scale */
    --space-3xs:          4px;
    --space-2xs:          8px;
    --space-xs:           12px;
    --space-sm:           16px;
    --space-md:           24px;
    --space-lg:           40px;
    --space-xl:           64px;
    --space-2xl:          96px;
    --space-3xl:          128px;

    /* Layout */
    --max-content:        1280px;
    --radius-sm:          4px;
    --radius-md:          8px;
    --radius-lg:          16px;

    /* Motion */
    --ease-out:           cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:        cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── Body wrapper (added by homepage.js or PHP body class) ─── */
body.eventsrez-home {
    font-family: var(--font-body);
    color: var(--er-charcoal);
    background: var(--er-cream);
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

/* Hide the global page spinner more gracefully on this page */
body.eventsrez-home .spinner-box { display: none; }

/* ─── Transparent nav over hero ─────────────── */
body.eventsrez-home .rental-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 28px 0 !important;
    transition: background 0.4s var(--ease-out),
                border-color 0.4s var(--ease-out),
                box-shadow 0.4s var(--ease-out),
                padding 0.4s var(--ease-out);
}

/* Over the transparent hero header, show the white variant of the wordmark.
   Once .nav-scrolled kicks in (solid cream header), we swap back to the dark one. */
body.eventsrez-home .rental-header .logo .logo-dark { display: none; }
body.eventsrez-home .rental-header .logo .logo-light { display: inline-block; }
body.eventsrez-home .rental-header .logo img {
    /* Subtle drop-shadow keeps the white wordmark readable even if the hero
       happens to render a light section behind it */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
    transition: filter 0.4s var(--ease-out);
}

body.eventsrez-home .rental-header ul.nav-list-right > li > a,
body.eventsrez-home .rental-header ul.nav-list-right > li > a span,
body.eventsrez-home .rental-header ul.nav-list-right > li > a i {
    color: var(--er-white) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
body.eventsrez-home .rental-header ul.nav-list-right > li > a:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--er-white) !important;
}

/* Sign in (text) — white over hero */
body.eventsrez-home .rental-header li.signup a {
    color: var(--er-white) !important;
}

/* Register button — outlined glass over hero */
body.eventsrez-home .rental-header li.register a {
    background: rgba(255, 255, 255, 0.12) !important;
    color: var(--er-white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: none;
}
body.eventsrez-home .rental-header li.register a:hover {
    background: var(--er-white) !important;
    color: var(--er-burgundy) !important;
    border-color: var(--er-white);
}

/* User dropdown button — white border over hero */
body.eventsrez-home .dropdown.user-menu #dropdownMenuButton {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: var(--er-white) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body.eventsrez-home .dropdown.user-menu #dropdownMenuButton:hover {
    border-color: var(--er-white) !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

/* "Add a Restaurant" / "Switch To Hosting" pill — glassy over hero to match user-menu */
body.eventsrez-home .rental-header ul.nav-list-right > li.add-venue > a {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: var(--er-white) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
body.eventsrez-home .rental-header ul.nav-list-right > li.add-venue > a:hover {
    border-color: var(--er-white) !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: var(--er-white) !important;
}
body.eventsrez-home .rental-header .add-venue-icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--er-white);
}
body.eventsrez-home .rental-header ul.nav-list-right > li.add-venue > a:hover .add-venue-icon {
    background: rgba(255, 255, 255, 0.28);
    color: var(--er-white);
}

/* Solid state after scroll — back to default refined header */
body.eventsrez-home.nav-scrolled .rental-header {
    background: var(--er-cream) !important;
    border-bottom-color: var(--er-stone) !important;
    box-shadow: 0 4px 24px rgba(26, 22, 18, 0.06);
    padding: 20px 0 !important;
}
body.eventsrez-home.nav-scrolled .rental-header .logo .logo-dark { display: inline-block; }
body.eventsrez-home.nav-scrolled .rental-header .logo .logo-light { display: none; }
body.eventsrez-home.nav-scrolled .rental-header .logo img {
    filter: none;
}
body.eventsrez-home.nav-scrolled .rental-header ul.nav-list-right > li > a,
body.eventsrez-home.nav-scrolled .rental-header ul.nav-list-right > li > a span,
body.eventsrez-home.nav-scrolled .rental-header ul.nav-list-right > li > a i {
    color: var(--er-charcoal) !important;
    text-shadow: none;
}
body.eventsrez-home.nav-scrolled .rental-header ul.nav-list-right > li > a:hover {
    background: rgba(107, 39, 55, 0.06) !important;
    color: var(--er-burgundy) !important;
}
body.eventsrez-home.nav-scrolled .rental-header li.signup a {
    color: var(--er-charcoal) !important;
}
body.eventsrez-home.nav-scrolled .rental-header li.register a {
    background: var(--er-burgundy) !important;
    color: var(--er-white) !important;
    border-color: var(--er-burgundy);
    backdrop-filter: none;
    box-shadow: 0 4px 14px -4px rgba(107, 39, 55, 0.4);
}
body.eventsrez-home.nav-scrolled .rental-header li.register a:hover {
    background: var(--er-burgundy-deep) !important;
}
body.eventsrez-home.nav-scrolled .dropdown.user-menu #dropdownMenuButton {
    border-color: var(--er-stone) !important;
    color: var(--er-charcoal) !important;
    background: transparent !important;
    backdrop-filter: none;
}
body.eventsrez-home.nav-scrolled .rental-header ul.nav-list-right > li.add-venue > a {
    border-color: var(--er-stone) !important;
    color: var(--er-charcoal) !important;
    background: transparent !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.eventsrez-home.nav-scrolled .rental-header ul.nav-list-right > li.add-venue > a:hover {
    border-color: var(--er-burgundy) !important;
    background: var(--er-cream) !important;
    color: var(--er-burgundy) !important;
}
body.eventsrez-home.nav-scrolled .rental-header .add-venue-icon {
    background: var(--er-bone);
    color: var(--er-burgundy);
}


/* ════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════ */
.er-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 var(--space-2xl);
    overflow: hidden;
    isolation: isolate;
    color: var(--er-white);
}

/* Background image layer */
.er-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=2400&q=80') center/cover no-repeat;
    transform: scale(1.04);
    animation: er-hero-zoom 14s var(--ease-out) forwards;
}

@keyframes er-hero-zoom {
    to { transform: scale(1); }
}

/* Layered gradient overlay for legibility — heavier on bottom where text sits */
.er-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg,
            rgba(26, 22, 18, 0.65) 0%,
            rgba(26, 22, 18, 0.45) 25%,
            rgba(26, 22, 18, 0.55) 50%,
            rgba(26, 22, 18, 0.92) 100%),
        radial-gradient(ellipse 70% 50% at 30% 85%,
            rgba(77, 27, 38, 0.55) 0%,
            transparent 70%);
}

/* Subtle film grain texture */
.er-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    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.85' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.12;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.er-hero__inner {
    width: 100%;
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
}

.er-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--er-orange-light);
    background: rgba(236, 114, 75, 0.12);
    border: 1px solid rgba(236, 114, 75, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 9px 18px;
    border-radius: 100px;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 18px rgba(236, 114, 75, 0.25);
    opacity: 0;
    transform: translateY(20px);
    animation: er-fade-up 1s var(--ease-out) 0.3s forwards;
}
.er-hero__eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--er-orange);
    box-shadow: 0 0 12px rgba(236, 114, 75, 0.9);
}

.er-hero__headline {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(40px, 7vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin: 0 0 var(--space-md);
    max-width: 18ch;
    color: var(--er-white);
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateY(30px);
    animation: er-fade-up 1.2s var(--ease-out) 0.5s forwards;

    /* Fraunces optical sizing */
    font-variation-settings: "opsz" 144, "SOFT" 50;
}

.er-hero__headline em {
    font-style: italic;
    font-weight: 400;
    color: #F0D49A;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.er-hero__sub {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    color: #FFFFFF;
    max-width: 52ch;
    margin: 0 0 var(--space-xl);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(20px);
    animation: er-fade-up 1s var(--ease-out) 0.75s forwards;
}

@keyframes er-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

/* ─── Search bar ────────────────────────────── */
.er-search {
    background: var(--er-cream);
    border-radius: var(--radius-lg);
    box-shadow:
        0 30px 60px -15px rgba(26, 22, 18, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr auto;
    align-items: stretch;
    overflow: hidden;
    max-width: 880px;
    opacity: 0;
    transform: translateY(30px);
    animation: er-fade-up 1.1s var(--ease-out) 1s forwards;
}

/* Simplified single-input variant */
.er-search--simple {
    grid-template-columns: 1fr auto;
    max-width: 720px;
}

.er-search__field {
    padding: 18px 24px;
    border-right: 1px solid var(--er-stone);
    cursor: text;
    transition: background 0.2s var(--ease-out);
    text-align: left;
    min-width: 0;
}
.er-search__field:hover { background: var(--er-bone); }
.er-search__field:last-of-type { border-right: none; }

.er-search__label {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--er-burgundy);
    margin-bottom: 4px;
}

.er-search__field input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--er-charcoal);
    padding: 0;
    outline: none;
}
.er-search__field input::placeholder {
    color: var(--er-mist);
    font-weight: 400;
}

.er-search__submit {
    background: var(--er-brand-gradient);
    color: var(--er-white);
    border: none;
    padding: 0 36px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: filter 0.25s var(--ease-out), transform 0.15s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.er-search__submit:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.er-search__submit svg {
    width: 18px;
    height: 18px;
}

/* Hero scroll indicator */
.er-hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: er-fade-up 1s var(--ease-out) 1.5s forwards;
}
.er-hero__scroll::after {
    content: '';
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, var(--er-gold), transparent);
    animation: er-scroll-line 2s ease-in-out infinite;
}
@keyframes er-scroll-line {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50%      { opacity: 1; transform: scaleY(1); }
}


/* ════════════════════════════════════════════
   CATEGORY BROWSE (informational only)
   ════════════════════════════════════════════ */
.er-categories {
    background: var(--er-cream);
    padding: var(--space-2xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Decorative paper texture */
.er-categories::before {
    content: '';
    position: absolute;
    inset: 0;
    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.65' 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.04;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.er-categories__inner {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
}

.er-categories__header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--er-stone);
}

.er-categories__header--centered {
    grid-template-columns: 1fr;
    text-align: center;
}
.er-categories__header--centered .er-categories__heading-block {
    margin: 0 auto;
}

.er-categories__heading-block {
    max-width: 620px;
}

.er-categories__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--er-burgundy);
    margin-bottom: var(--space-sm);
}
.er-categories__eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--er-burgundy);
}

.er-categories__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--er-charcoal);
    margin: 0;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.er-categories__title em {
    font-style: italic;
    color: var(--er-burgundy);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}


/* ─── Grid (5 uniform cards in one row on desktop) ─── */
.er-categories__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 200px;
    gap: var(--space-sm);
}

.er-cat-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--er-burgundy-deep);
    isolation: isolate;
    box-shadow: 0 2px 10px rgba(26, 22, 18, 0.06);
}

/* Image */
.er-cat-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease-out);
    z-index: 0;
}
.er-cat-card:hover .er-cat-card__img {
    transform: scale(1.04);
}

/* Gradient overlay */
.er-cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(26, 22, 18, 0) 30%,
        rgba(26, 22, 18, 0.85) 100%);
    z-index: 1;
}

/* Content */
.er-cat-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-sm) var(--space-sm) var(--space-sm);
    z-index: 2;
    color: var(--er-white);
}

.er-cat-card__name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    font-variation-settings: "opsz" 144, "SOFT" 50;
}


/* ════════════════════════════════════════════
   FEATURED VENUES (dark, horizontal carousel)
   ════════════════════════════════════════════ */
.er-featured {
    background: var(--er-charcoal);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
    color: var(--er-white);
}

/* Subtle grain over dark */
.er-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    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.85' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.06;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* Burgundy radial glow for warmth */
.er-featured::after {
    content: '';
    position: absolute;
    top: 30%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(ellipse at center,
        rgba(107, 39, 55, 0.4) 0%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.er-featured__inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.er-featured__header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.er-featured__heading-block {
    max-width: 620px;
}

.er-featured__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #E8C988;
    margin-bottom: var(--space-sm);
}
.er-featured__eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: #E8C988;
}

.er-featured__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--er-white);
    margin: 0;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.er-featured__title em {
    font-style: italic;
    color: #F0D49A;
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* Carousel arrow controls */
.er-featured__controls {
    display: flex;
    gap: var(--space-sm);
}
.er-featured__arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--er-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-out);
}
.er-featured__arrow:hover:not(:disabled) {
    background: var(--er-burgundy);
    border-color: var(--er-burgundy);
    transform: scale(1.05);
}
.er-featured__arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.er-featured__arrow svg {
    width: 18px;
    height: 18px;
}

/* ─── Carousel track ─── */
.er-featured__track {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: var(--space-sm);
}
.er-featured__track::-webkit-scrollbar { display: none; }

.er-featured-card {
    flex: 0 0 calc((100% - var(--space-md) * 2.5) / 3.5);
    min-width: 0;
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--er-white);
    position: relative;
    transition: transform 0.4s var(--ease-out);
}
.er-featured-card:hover {
    text-decoration: none;
    color: var(--er-white);
    transform: translateY(-4px);
}

.er-featured-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--er-burgundy-deep);
    margin-bottom: var(--space-sm);
}

.er-featured-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease-out);
}
.er-featured-card:hover .er-featured-card__img {
    transform: scale(1.06);
}

.er-featured-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0) 60%,
        rgba(0,0,0,0.4) 100%);
}

/* Editorial number label */
.er-featured-card__number {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 2;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
    color: #F0D49A;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* Wishlist heart */
.er-featured-card__wishlist {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--er-white);
    font-size: 14px;
    transition: all 0.2s var(--ease-out);
}
.er-featured-card__wishlist:hover {
    background: var(--er-burgundy);
    border-color: var(--er-burgundy);
    transform: scale(1.1);
}

/* Card text content */
.er-featured-card__name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: var(--er-white);
    font-variation-settings: "opsz" 144, "SOFT" 50;
    /* clamp 1 line */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.er-featured-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}
.er-featured-card__meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.er-featured-card__price {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--er-white);
    margin-top: 6px;
}
.er-featured-card__price strong {
    font-weight: 600;
    color: #F0D49A;
}

/* Empty state */
.er-featured__empty {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
}


/* ════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════ */
.er-how {
    background: var(--er-bone);
    padding: var(--space-2xl) 0 var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Subtle paper texture */
.er-how::before {
    content: '';
    position: absolute;
    inset: 0;
    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.65' 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.05;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.er-how__inner {
    position: relative;
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.er-how__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-lg);
}

.er-how__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--er-burgundy);
    margin-bottom: var(--space-sm);
}
.er-how__eyebrow::before,
.er-how__eyebrow::after {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--er-burgundy);
}

.er-how__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--er-charcoal);
    margin: 0;
    font-variation-settings: "opsz" 144, "SOFT" 50;
}
.er-how__title em {
    font-style: italic;
    color: var(--er-burgundy);
    font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* ─── Steps ─── */
.er-how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
    padding-top: var(--space-2xs);
}

/* Connecting hairline running through the numbers */
.er-how__steps::before {
    content: '';
    position: absolute;
    top: 56px; /* aligns with center of smaller numerals */
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--er-stone) 12%,
        var(--er-stone) 88%,
        transparent 100%);
    z-index: 0;
}

.er-how__step {
    position: relative;
    text-align: center;
    padding: 0 var(--space-sm);
}

.er-how__num {
    display: inline-block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 96px;
    line-height: 1;
    color: var(--er-burgundy);
    letter-spacing: -0.04em;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
    font-variation-settings: "opsz" 144, "SOFT" 100;

    /* Bone background plate so the hairline cuts cleanly through */
    background: var(--er-bone);
    padding: 0 var(--space-sm);
}

.er-how__step-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--er-charcoal);
    margin: 0 0 var(--space-3xs);
    font-variation-settings: "opsz" 144, "SOFT" 50;
}

.er-how__step-desc {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.55;
    color: var(--er-graphite);
    margin: 0 auto;
    max-width: 32ch;
}


/* ════════════════════════════════════════════
   TRUST BAR
   ════════════════════════════════════════════ */
.er-trust {
    background: var(--er-burgundy);
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
    color: var(--er-white);
}

/* Diagonal etch pattern for depth */
.er-trust::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            transparent 28px,
            rgba(255, 255, 255, 0.025) 28px,
            rgba(255, 255, 255, 0.025) 29px
        );
    pointer-events: none;
}

/* Burgundy depth layer */
.er-trust::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 100% at 50% 100%,
            rgba(0, 0, 0, 0.25) 0%,
            transparent 70%);
    pointer-events: none;
}

.er-trust__inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.er-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    align-items: stretch;
}

.er-trust__item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0 var(--space-md);
    position: relative;
}

.er-trust__item + .er-trust__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 56px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 100%
    );
}

.er-trust__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(232, 201, 136, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E8C988;
}
.er-trust__icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.6;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.er-trust__text {
    min-width: 0;
}

.er-trust__label {
    display: block;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--er-white);
    letter-spacing: -0.005em;
    margin-bottom: 2px;
    line-height: 1.2;
}

.er-trust__sub {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.35;
}


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1280px) {
    .er-hero__inner { padding: 0 var(--space-md); }
    .er-categories__inner { padding: 0 var(--space-md); }
    .er-featured__inner { padding: 0 var(--space-md); }
    .er-how__inner { padding: 0 var(--space-md); }
    .er-trust__inner { padding: 0 var(--space-md); }
}

@media (max-width: 1024px) {
    .er-categories__grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 180px;
    }

    .er-featured-card {
        flex: 0 0 calc((100% - var(--space-md) * 1.5) / 2.5);
    }

    .er-trust__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md) 0;
    }
    .er-trust__item + .er-trust__item::before {
        display: none;
    }
    .er-trust__item:nth-child(2)::before {
        display: block;
    }
}

@media (max-width: 768px) {
    .er-hero {
        min-height: 88vh;
        padding-bottom: var(--space-xl);
    }
    .er-hero__headline { font-size: clamp(36px, 9vw, 56px); }
    .er-hero__sub { font-size: 16px; margin-bottom: var(--space-lg); }

    .er-search {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .er-search__field {
        border-right: none;
        border-bottom: 1px solid var(--er-stone);
        padding: 14px 20px;
    }
    .er-search__submit {
        padding: 18px;
        justify-content: center;
    }

    body.eventsrez-home .rental-header { padding: 12px 0 !important; }

    /* Categories */
    .er-categories { padding: var(--space-xl) 0 var(--space-lg); }
    .er-categories__header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: var(--space-md);
    }
    .er-categories__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }

    /* Featured Venues */
    .er-featured { padding: var(--space-2xl) 0; }
    .er-featured__header {
        grid-template-columns: 1fr;
        align-items: start;
        gap: var(--space-md);
    }
    .er-featured__title { font-size: 36px; }
    .er-featured-card {
        flex: 0 0 calc(100% - var(--space-md) * 1.5);
        max-width: 360px;
    }
    .er-featured__arrow {
        width: 44px;
        height: 44px;
    }

    /* How It Works */
    .er-how { padding: var(--space-xl) 0 var(--space-lg); }
    .er-how__steps {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    .er-how__steps::before {
        display: none;
    }
    .er-how__num {
        font-size: 80px;
    }
    .er-how__step-name { font-size: 18px; }

    /* Trust Bar */
    .er-trust { padding: var(--space-lg) 0; }
    .er-trust__grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .er-trust__item {
        padding: var(--space-2xs) 0;
    }
    .er-trust__item + .er-trust__item::before {
        display: none;
    }
    .er-trust__item:nth-child(2)::before {
        display: none;
    }
}

@media (max-width: 375px) {
    .er-hero__inner { padding: 0 var(--space-sm); }
    .er-hero__headline { font-size: 34px; }
    .er-categories__inner { padding: 0 var(--space-sm); }
}
