/* ==========================================================================
   RodaGo — Tropical Modern Aesthetic
   "Where Bali meets the open road"
   ========================================================================== */

@import url('../vendor/fonts/dm-sans-playfair.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
    /* Brand accent — teal from logo, warmed slightly */
    --rg-teal: #0EB1A8;
    --rg-teal-dark: #0A9990;
    --rg-teal-light: #e2f3f1;

    /* Warm accent — golden/amber, pairs with cream */
    --rg-coral: #C9975C;
    --rg-coral-light: #f5e6d0;

    /* Warm neutrals — built from #fcf5e8 */
    --rg-cream: #fcf5e8;
    --rg-sand: #f3e8d5;
    --rg-sand-dark: #e6d7c0;
    --rg-charcoal: #2A2017;
    --rg-slate: #4D4132;
    --rg-muted: #8A7D6C;
    --rg-border: #e3d5c3;

    /* Functional */
    --rg-whatsapp: #25D366;
    --rg-whatsapp-dark: #1DA851;

    /* Typography */
    --rg-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --rg-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Shape */
    --rg-radius: 12px;
    --rg-radius-sm: 8px;
    --rg-radius-pill: 999px;

    /* Warm shadows (brown-tinted instead of blue-gray) */
    --rg-shadow-sm: 0 1px 3px rgba(42, 32, 23, 0.07), 0 1px 2px rgba(42, 32, 23, 0.04);
    --rg-shadow: 0 4px 16px rgba(42, 32, 23, 0.08), 0 2px 4px rgba(42, 32, 23, 0.04);
    --rg-shadow-lg: 0 12px 40px rgba(42, 32, 23, 0.12), 0 4px 12px rgba(42, 32, 23, 0.06);
    --rg-shadow-hover: 0 16px 48px rgba(42, 32, 23, 0.14), 0 6px 16px rgba(42, 32, 23, 0.07);

    --rg-ease: cubic-bezier(0.23, 1, 0.32, 1);
    --rg-navbar-h: 68px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--rg-font-body);
    color: var(--rg-charcoal);
    background: var(--rg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

main > .container,
main > .container-fluid {
    padding: calc(var(--rg-navbar-h) + 8px) 15px 40px;
}

a {
    color: var(--rg-teal);
    text-decoration: none;
    transition: color 0.2s var(--rg-ease);
}
a:hover { color: var(--rg-teal-dark); }

img { max-width: 100%; height: auto; }

::selection {
    background: var(--rg-teal);
    color: #fffcf7;
}

/* ---------- Typography ---------- */
h1, h2, h3, .h1, .h2, .h3 {
    font-family: var(--rg-font-display);
    font-weight: 600;
    color: var(--rg-charcoal);
    letter-spacing: -0.01em;
}
h4, h5, h6, .h4, .h5, .h6 {
    font-family: var(--rg-font-body);
    font-weight: 700;
    color: var(--rg-charcoal);
}

/* ---------- Utility Overrides ---------- */
.text-muted { color: var(--rg-muted) !important; }
.bg-light { background: var(--rg-sand) !important; }
.btn-primary {
    background: var(--rg-teal) !important;
    border-color: var(--rg-teal) !important;
    border-radius: var(--rg-radius-sm);
    font-weight: 600;
    font-family: var(--rg-font-body);
    transition: all 0.25s var(--rg-ease);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--rg-teal-dark) !important;
    border-color: var(--rg-teal-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14, 177, 168, 0.3);
}
.btn-outline-primary {
    color: var(--rg-teal) !important;
    border-color: var(--rg-teal) !important;
    border-radius: var(--rg-radius-sm);
    font-weight: 600;
}
.btn-outline-primary:hover {
    background: var(--rg-teal) !important;
    color: #fff !important;
}
.badge.bg-primary { background: var(--rg-teal) !important; }
.badge.bg-success { background: var(--rg-whatsapp) !important; }
.text-primary { color: var(--rg-teal) !important; }

/* ---------- 1. Navbar ---------- */
.navbar-rg {
    background: rgba(252, 245, 232, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    height: var(--rg-navbar-h);
    border-bottom: 1px solid rgba(227, 213, 195, 0.6);
    transition: all 0.3s var(--rg-ease);
    z-index: 1040;
    padding: 0;
}
.navbar-rg.scrolled {
    box-shadow: 0 4px 30px rgba(42, 32, 23, 0.08);
    border-bottom-color: transparent;
}
.navbar-rg .navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
}
.navbar-brand-logo {
    height: 105px;
    width: auto;
    display: block;
}
.navbar-brand-logo-short {
    height: 105px;
    width: auto;
    display: none;
}
@media (max-width: 400px) {
    .navbar-brand-logo { display: none; }
    .navbar-brand-logo-short { display: block; }
}
.navbar-rg .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--rg-slate) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--rg-radius-sm);
    transition: all 0.2s var(--rg-ease);
    position: relative;
}
.navbar-rg .nav-link:hover {
    color: var(--rg-teal) !important;
    background: var(--rg-teal-light);
}
.navbar-rg .nav-link.active-cat {
    color: var(--rg-teal) !important;
    font-weight: 600;
}
.nav-search {
    max-width: 360px;
    width: 100%;
}
.nav-search .form-control {
    border: 1.5px solid var(--rg-border);
    border-radius: var(--rg-radius-pill);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background: var(--rg-sand);
    font-family: var(--rg-font-body);
    transition: all 0.25s var(--rg-ease);
}
.nav-search .form-control:focus {
    background: #fffcf7;
    border-color: var(--rg-teal);
    box-shadow: 0 0 0 3px rgba(14, 177, 168, 0.12);
}
.nav-search .btn {
    border-radius: 0 var(--rg-radius-pill) var(--rg-radius-pill) 0;
    border: 1.5px solid var(--rg-teal);
    border-left: 0;
    background: var(--rg-teal);
    color: #fff;
    padding: 0.5rem 0.9rem;
}
.nav-search .btn:hover { background: var(--rg-teal-dark); }
.navbar-rg .btn-signup {
    background: var(--rg-teal);
    color: #fff;
    border: none;
    border-radius: var(--rg-radius-pill);
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s var(--rg-ease);
}
.navbar-rg .btn-signup:hover {
    background: var(--rg-teal-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 177, 168, 0.25);
}
.navbar-rg .nav-lang {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rg-muted) !important;
    padding: 0.35rem 0.6rem !important;
    background: var(--rg-sand);
    border-radius: 6px;
}

/* ---------- 2. Hero ---------- */
.hero {
    position: relative;
    backdrop-filter: blur(20px);
    background: linear-gradient(160deg, rgba(14,177,168,0.12) 0%, rgba(255,255,255,0.65) 35%, rgba(255,255,255,0.65) 65%, rgba(14,177,168,0.08) 100%);
    padding: 4.5rem 0 4rem;
    margin-top: var(--rg-navbar-h);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(14,177,168,0.10), transparent 55%);
    pointer-events: none;
}
.hero-image-wrap {
    /* Decorative motorcycle/car PNG sitting between the slogan and the
       filter form. Centered and mirrored so the vehicle reads naturally. */
    position: relative;
    z-index: 2;
    margin: -1.5rem auto 0.5rem;;
    line-height: 0;
    text-align: center;
}
.hero-image {
    display: inline-block;
    width: clamp(220px, 36vw, 380px);
    height: auto;
    max-height: clamp(140px, 22vw, 240px);
    object-fit: contain;
    transform: scaleX(-1);
    filter: drop-shadow(0 14px 24px rgba(42, 32, 23, 0.18));
    pointer-events: none;
    user-select: none;
}
@media (max-width: 575.98px) {
    .hero-image {
        width: 75%;
        max-height: 150px;
    }
    .hero-image-wrap {
        margin: 0.25rem auto 1rem;
    }
}
.hero--compact {
    padding: 2rem 0 2.5rem;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
    font-family: var(--rg-font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--rg-charcoal);
    margin-bottom: 0.6rem;
    line-height: 1.15;
}
.hero .lead {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--rg-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}
.hero-slogan h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.hero-slogan .lead {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.01em;
}
/* -- Navbar "Add your listing" CTA — matches .hero-filter-submit colors -- */
.btn-add-listing {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.1rem;
    background: var(--rg-teal);
    color: #fff;
    font-family: var(--rg-font-body);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    border-radius: var(--rg-radius-pill);
    transition: all 0.25s var(--rg-ease);
    border: none;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.btn-add-listing:hover,
.btn-add-listing:focus {
    background: var(--rg-teal-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14, 177, 168, 0.35);
}
.btn-add-listing i {
    font-size: 1rem;
}
@media (max-width: 991.98px) {
    /* Inside the collapsed mobile menu — full width, less ornate */
    .btn-add-listing {
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0.4rem 0;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
}
/* -- Hero Stepped Filter -- */
.hero-filter {
    background: #fffcf7;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(42, 32, 23, 0.15), 0 2px 8px rgba(42, 32, 23, 0.08);
    overflow: hidden;
}
.filter-section {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--rg-border);
}
.filter-section:last-child {
    border-bottom: none;
}
.filter-section--submit {
    display: flex;
    justify-content: center;
    padding: 0.85rem 1.25rem 1.1rem;
}
.filter-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rg-muted);
    margin-bottom: 0.6rem;
}

/* Type Cards */
.type-cards {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}
.type-card {
    flex: 0 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.5rem;
    border: 2px solid var(--rg-border);
    border-radius: var(--rg-radius);
    background: #fffcf7;
    cursor: pointer;
    transition: all 0.3s var(--rg-ease);
    color: var(--rg-slate);
}
.type-card:hover {
    border-color: var(--rg-teal);
    color: var(--rg-teal);
    box-shadow: var(--rg-shadow);
    transform: translateY(-2px);
}
.type-card.active {
    border-color: var(--rg-teal);
    background: var(--rg-teal-light);
    color: var(--rg-teal-dark);
    box-shadow: 0 0 0 3px rgba(14, 177, 168, 0.15);
}
.type-card-icon {
    display: block;
    width: 64px;
    height: 44px;
}
.type-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s var(--rg-ease);
}
.type-card:hover .type-card-icon img,
.type-card.active .type-card-icon img {
    opacity: 1;
}
.type-card-label {
    font-size: 0.88rem;
    font-weight: 700;
    font-family: var(--rg-font-body);
}

/* Subtype Grid */
.subtype-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.subtype-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--rg-border);
    border-radius: var(--rg-radius-sm);
    background: #fffcf7;
    cursor: pointer;
    transition: all 0.25s var(--rg-ease);
    color: var(--rg-slate);
    min-width: 80px;
}
.subtype-btn:hover {
    border-color: var(--rg-teal);
    color: var(--rg-teal);
    background: var(--rg-teal-light);
}
.subtype-btn.active {
    border-color: var(--rg-teal);
    background: var(--rg-teal-light);
    color: var(--rg-teal-dark);
}
.subtype-btn--disabled {
    opacity: 0.38;
    cursor: default;
    color: var(--rg-muted);
    background: var(--rg-sand);
    border-color: var(--rg-border);
}
.subtype-btn--disabled:hover {
    border-color: var(--rg-border);
    color: var(--rg-muted);
    background: var(--rg-sand);
}
.subtype-btn--disabled .subtype-icon img {
    opacity: 0.3;
}
.subtype-icon {
    display: block;
    width: 48px;
    height: 32px;
}
.subtype-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.55;
    transition: opacity 0.2s var(--rg-ease);
}
.subtype-btn:hover .subtype-icon img,
.subtype-btn.active .subtype-icon img {
    opacity: 1;
}
.subtype-label {
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Location Pills */
.location-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.location-pill {
    padding: 0.35rem 0.85rem;
    border-radius: var(--rg-radius-pill);
    border: 1.5px solid var(--rg-border);
    background: #fffcf7;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--rg-font-body);
    color: var(--rg-slate);
    cursor: pointer;
    transition: all 0.2s var(--rg-ease);
    white-space: nowrap;
}
.location-pill:hover:not(.active):not(.location-pill--disabled) {
    border-color: var(--rg-teal);
    color: var(--rg-teal);
    background: var(--rg-teal-light);
}
.location-pill.active {
    background: var(--rg-teal);
    border-color: var(--rg-teal);
    color: #fff;
}
.location-pill.active:hover {
    background: var(--rg-teal-dark);
    border-color: var(--rg-teal-dark);
    color: #fff;
}
.location-pill i {
    font-size: 0.78rem;
}
.location-pill-count {
    font-size: 0.68rem;
    font-weight: 700;
    opacity: 0.5;
}
.location-pill-count:empty {
    display: none;
}
.location-pill.active .location-pill-count {
    opacity: 0.75;
}
.location-pill--disabled {
    opacity: 0.38;
    cursor: default;
    color: var(--rg-muted);
    background: var(--rg-sand);
    border-color: var(--rg-border);
}
.location-pill--disabled:hover {
    border-color: var(--rg-border);
    color: var(--rg-muted);
}
.location-pill--more {
    border-style: dashed;
    color: var(--rg-teal);
}
.location-pill--more:hover {
    background: var(--rg-teal-light);
}

/* Brand & Model Pills */
.brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.brand-pill {
    padding: 0.35rem 0.85rem;
    border-radius: var(--rg-radius-pill);
    border: 1.5px solid var(--rg-border);
    background: #fffcf7;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--rg-font-body);
    color: var(--rg-slate);
    cursor: pointer;
    transition: all 0.2s var(--rg-ease);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.brand-pill:hover:not(.brand-pill--disabled):not(.active) {
    border-color: var(--rg-teal);
    color: var(--rg-teal);
    background: var(--rg-teal-light);
}
.brand-pill.active {
    background: var(--rg-teal);
    border-color: var(--rg-teal);
    color: #fff;
}
.brand-pill.active:hover {
    background: var(--rg-teal-dark);
    border-color: var(--rg-teal-dark);
    color: #fff;
}
.brand-pill.active .brand-pill-count {
    opacity: 0.75;
}
.brand-pill--disabled {
    opacity: 0.38;
    cursor: default;
    color: var(--rg-muted);
    background: var(--rg-sand);
    border-color: var(--rg-border);
}
.brand-pill-count {
    font-size: 0.68rem;
    font-weight: 700;
    opacity: 0.5;
}
.brand-pill-count:empty {
    display: none;
}
.brand-pill--more {
    border-style: dashed;
    color: var(--rg-teal);
}
.brand-pill--more:hover {
    background: var(--rg-teal-light);
}

/* Year / Brand Cascade (for year row) */
.brand-cascade {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}
.brand-cascade-field {
    flex: 1 1 0;
    min-width: 0;
    max-width: 300px;
}
.hero-filter-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rg-muted);
    margin-bottom: 0.3rem;
    white-space: nowrap;
    display: block;
}
.hero-filter-select {
    border: 1.5px solid var(--rg-border);
    border-radius: var(--rg-radius-sm);
    background: #fffcf7;
    font-size: 0.88rem;
    font-family: var(--rg-font-body);
    font-weight: 500;
    color: var(--rg-charcoal);
    padding: 0.45rem 0.75rem;
    outline: none;
    width: 100%;
    cursor: pointer;
    -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='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238E8E93' d='M6 8.5L1.5 4h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    padding-right: 1.8rem;
    transition: border-color 0.2s var(--rg-ease);
}
.hero-filter-select:focus {
    border-color: var(--rg-teal);
    box-shadow: 0 0 0 3px rgba(14, 177, 168, 0.1);
}
.hero-filter-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--rg-sand);
}
.hero-filter-pair {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.hero-filter-pair .hero-filter-select {
    flex: 1 1 0;
    min-width: 0;
}
.hero-filter-sep {
    color: var(--rg-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Submit Button */
.hero-filter-submit {
    background: var(--rg-teal);
    color: #fff;
    border: none;
    border-radius: var(--rg-radius-pill);
    padding: 0.7rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--rg-font-body);
    cursor: pointer;
    transition: all 0.25s var(--rg-ease);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    min-height: 46px;
    letter-spacing: 0.01em;
}
.hero-filter-submit:hover {
    background: var(--rg-teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(14, 177, 168, 0.35);
}
.hero-filter-submit.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Extra Filters */
.extra-filter-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: var(--rg-font-body);
    color: var(--rg-teal);
    cursor: pointer;
    transition: color 0.2s var(--rg-ease);
}
.extra-filter-toggle:hover {
    color: var(--rg-teal-dark);
}
.extra-filter-arrow {
    font-size: 0.7rem;
    transition: transform 0.25s var(--rg-ease);
}
.extra-filter-body {
    padding-top: 0.75rem;
}
.extra-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.extra-filter-grid--wide {
    grid-template-columns: repeat(4, 1fr);
}
.extra-filter-field {
    min-width: 0;
}
.extra-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.hero-filter-chip {
    cursor: pointer;
    margin: 0;
}
.hero-filter-chip input {
    display: none;
}
.hero-filter-chip span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.28rem 0.65rem;
    border-radius: var(--rg-radius-pill);
    border: 1.5px solid var(--rg-border);
    background: #fffcf7;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rg-slate);
    transition: all 0.2s var(--rg-ease);
    white-space: nowrap;
    user-select: none;
}
.hero-filter-chip span:hover {
    border-color: var(--rg-teal);
    color: var(--rg-teal);
}
.hero-filter-chip input:checked + span {
    background: var(--rg-teal-light);
    border-color: var(--rg-teal);
    color: var(--rg-teal-dark);
}

/* Active filter chips in results */
.filter-chip-active {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--rg-radius-pill);
    background: var(--rg-teal-light);
    color: var(--rg-teal-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s var(--rg-ease);
    border: 1px solid rgba(14, 177, 168, 0.15);
}
.filter-chip-active:hover {
    background: #fce8e2;
    color: #B7432F;
    border-color: rgba(183, 67, 47, 0.15);
}
.filter-chip-active .bi {
    font-size: 0.65rem;
}

/* Search results section */
.search-results-section {
    min-height: 400px;
}

/* Responsive: stack filter on mobile */
@media (max-width: 991.98px) {
    .brand-cascade {
        flex-wrap: wrap;
    }
    .brand-cascade-field {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: calc(50% - 0.5rem);
    }
    .extra-filter-grid--wide {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575.98px) {
    .type-cards {
        gap: 0.5rem;
    }
    .type-card {
        flex: 1 1 0;
        padding: 0.75rem 1rem;
    }
    .type-card-icon {
        width: 48px;
        height: 30px;
    }
    .subtype-btn {
        min-width: 70px;
        padding: 0.5rem 0.7rem;
    }
    .subtype-icon {
        width: 36px;
        height: 22px;
    }
    .brand-cascade {
        flex-direction: column;
        gap: 0.6rem;
    }
    .brand-cascade-field {
        flex: 1 1 100%;
    }
    .extra-filter-grid,
    .extra-filter-grid--wide {
        grid-template-columns: 1fr;
    }
    .filter-section {
        padding: 0.85rem 1rem;
    }
}

/* ---------- 3. Section Titles ---------- */
.section-title {
    font-family: var(--rg-font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--rg-charcoal);
    margin-bottom: 0.25rem;
}
.section-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--rg-teal);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s var(--rg-ease);
}
.section-link:hover { gap: 0.6rem; color: var(--rg-teal-dark); }

/* ---------- 4. Category Shortcuts ---------- */
.category-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.category-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: #fff;
    border: 1.5px solid var(--rg-border);
    border-radius: var(--rg-radius);
    padding: 1.1rem 1.4rem;
    text-align: center;
    min-width: 128px;
    transition: all 0.3s var(--rg-ease);
    cursor: pointer;
    text-decoration: none;
    color: var(--rg-charcoal);
}
.category-card:hover {
    border-color: var(--rg-teal);
    box-shadow: var(--rg-shadow);
    transform: translateY(-3px);
    color: var(--rg-teal);
}
.category-card .cat-icon {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    display: block;
    color: var(--rg-teal);
}
.category-card .cat-label {
    font-size: 0.78rem;
    font-weight: 700;
    display: block;
    white-space: nowrap;
}

/* ---------- 5. Location Cards ---------- */
.location-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
}
.location-card {
    position: relative;
    border-radius: var(--rg-radius);
    overflow: hidden;
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: #fff;
    transition: transform 0.4s var(--rg-ease), box-shadow 0.4s var(--rg-ease);
}
.location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rg-shadow-lg);
    color: #fff;
}
.location-card .loc-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.5s var(--rg-ease);
}
.location-card:hover .loc-bg {
    transform: scale(1.06);
}
.location-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(42, 32, 23, 0.72) 0%, rgba(42, 32, 23, 0.1) 55%, transparent 100%);
    z-index: 1;
}
.location-card .loc-info {
    position: relative;
    z-index: 2;
    padding: 0.9rem;
    width: 100%;
}
.location-card .loc-name {
    font-family: var(--rg-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    display: block;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.location-card .loc-count {
    font-size: 0.72rem;
    opacity: 0.8;
    font-weight: 500;
}

/* ---------- 6. Listing Cards ---------- */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
}
.listing-card {
    background: #fffcf7;
    border-radius: var(--rg-radius);
    overflow: hidden;
    border: 1px solid var(--rg-border);
    transition: all 0.35s var(--rg-ease);
    display: flex;
    flex-direction: column;
}
.listing-card:hover {
    box-shadow: var(--rg-shadow-hover);
    transform: translateY(-4px);
    border-color: transparent;
}
.listing-card-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--rg-sand);
}
.listing-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s var(--rg-ease);
}
.listing-card:hover .listing-card-photo img {
    transform: scale(1.05);
}
.listing-card-photo .favorite-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 252, 247, 0.92);
    backdrop-filter: blur(8px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s var(--rg-ease);
    color: var(--rg-muted);
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(42, 32, 23, 0.1);
}
.listing-card-photo .favorite-btn:hover { color: var(--rg-coral); transform: scale(1.1); }
.listing-card-photo .favorite-btn.active { color: var(--rg-coral); }
.listing-card-photo .photo-count {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(42, 32, 23, 0.65);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: var(--rg-radius-pill);
}
.listing-card-photo .badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.03em;
}

.listing-card-body {
    padding: 0.9rem 1rem 0.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.listing-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rg-charcoal);
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.listing-title a { color: inherit; }
.listing-title a:hover { color: var(--rg-teal); }
.listing-meta {
    font-size: 0.78rem;
    color: var(--rg-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.listing-meta i { font-size: 0.72rem; color: var(--rg-coral); }
.listing-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}
.listing-specs .spec {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--rg-slate);
    background: var(--rg-sand);
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    white-space: nowrap;
}
.listing-specs .spec i {
    margin-right: 0.15rem;
    color: var(--rg-teal);
    font-size: 0.68rem;
}

.listing-card-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--rg-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}
.listing-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--rg-teal);
    white-space: nowrap;
    font-family: var(--rg-font-body);
    letter-spacing: -0.02em;
}
.listing-price small {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--rg-muted);
}
.btn-whatsapp {
    background: var(--rg-whatsapp);
    color: #fff;
    border: none;
    border-radius: var(--rg-radius-sm);
    padding: 0.42rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--rg-font-body);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.25s var(--rg-ease);
    white-space: nowrap;
    text-decoration: none;
}
.btn-whatsapp:hover {
    background: var(--rg-whatsapp-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

/* ---------- 7. How It Works ---------- */
.hiw-step {
    text-align: center;
    padding: 1.5rem 1rem;
}
.hiw-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--rg-coral-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--rg-coral);
    margin-bottom: 1rem;
    transition: all 0.3s var(--rg-ease);
}
.hiw-step:hover .hiw-icon {
    background: var(--rg-charcoal);
    color: #fcf5e8;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(42, 32, 23, 0.18);
}
.hiw-step h6 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}
.hiw-step p {
    font-size: 0.85rem;
    color: var(--rg-muted);
    margin: 0;
    line-height: 1.5;
}

/* ---------- 8. Trust Bar ---------- */
.trust-item {
    text-align: center;
    padding: 2rem 1rem;
}
.trust-item i {
    font-size: 2rem;
    color: var(--rg-teal);
    display: block;
    margin-bottom: 0.75rem;
}
.trust-item h6 {
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.trust-item p {
    font-size: 0.85rem;
    color: var(--rg-muted);
    margin: 0;
}

/* ---------- 9. FAQ ---------- */
.faq-section .accordion-item {
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius) !important;
    margin-bottom: 0.6rem;
    overflow: hidden;
    background: #fffcf7;
}
.faq-section .accordion-button {
    font-family: var(--rg-font-body);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--rg-charcoal);
    padding: 1rem 1.25rem;
    background: #fffcf7;
    box-shadow: none;
}
.faq-section .accordion-button:not(.collapsed) {
    background: var(--rg-sand);
}
.faq-section .accordion-button::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%230B7A6F' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}
.faq-section .accordion-body {
    font-size: 0.88rem;
    color: var(--rg-slate);
    line-height: 1.7;
}

/* ---------- 10. Footer ---------- */
.footer-rg {
    background: var(--rg-charcoal);
    color: rgba(255, 255, 255, 0.6);
}
.footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.footer-rg h5 {
    color: #fff;
    font-family: var(--rg-font-display);
}
.footer-rg h6 {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.footer-rg a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}
.footer-rg a:hover { color: #fff; }
.footer-rg .footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--rg-ease);
    font-size: 0.9rem;
}
.footer-rg .footer-social a:hover {
    border-color: var(--rg-teal);
    background: var(--rg-teal);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- 11. Breadcrumbs ---------- */
.breadcrumb {
    background: transparent;
    padding: 0.5rem 0;
    font-size: 0.82rem;
    margin-bottom: 0;
}
.breadcrumb-item > a { color: var(--rg-muted); text-decoration: none; }
.breadcrumb-item > a:hover { color: var(--rg-teal); }
.breadcrumb-item.active { color: var(--rg-charcoal); font-weight: 600; }

/* ---------- 12. Cards (general) ---------- */
.card {
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius);
    box-shadow: var(--rg-shadow-sm);
}
.card-header {
    background: var(--rg-sand);
    border-bottom: 1px solid var(--rg-border);
    font-weight: 700;
    font-size: 0.88rem;
}

/* ---------- 13. Listing Detail ---------- */
.pricing-sidebar {
    position: sticky;
    top: calc(var(--rg-navbar-h) + 1rem);
    background: #fffcf7;
    border: 1.5px solid var(--rg-border);
    border-radius: var(--rg-radius);
    padding: 1.5rem;
    box-shadow: var(--rg-shadow);
}
.pricing-sidebar .price-main {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--rg-teal);
    font-family: var(--rg-font-body);
    letter-spacing: -0.02em;
}
.pricing-sidebar .btn-whatsapp {
    width: 100%;
    padding: 0.7rem;
    font-size: 0.95rem;
    justify-content: center;
    border-radius: var(--rg-radius-sm);
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    background: var(--rg-sand);
    border-radius: var(--rg-radius-sm);
}
.spec-item .spec-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--rg-teal-light);
    color: var(--rg-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.spec-item .spec-label { font-size: 0.7rem; color: var(--rg-muted); display: block; }
.spec-item .spec-value { font-size: 0.85rem; font-weight: 700; display: block; }

/* ---------- 14. Filter Sidebar ---------- */
.filter-sidebar {
    background: #fffcf7;
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius);
    padding: 1rem;
    position: sticky;
    top: calc(var(--rg-navbar-h) + 1rem);
}
.filter-sidebar .filter-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--rg-muted);
    margin-bottom: 0.6rem;
}

/* ---------- 15. Dashboard ---------- */
.list-group-item.active {
    background-color: var(--rg-teal) !important;
    border-color: var(--rg-teal) !important;
}
.nav-pills .nav-link.active {
    background-color: var(--rg-teal) !important;
}
.nav-pills .nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--rg-radius-sm);
    color: var(--rg-slate);
}

/* ---------- 16. Misc ---------- */
.form-control, .form-select {
    font-family: var(--rg-font-body);
    border-radius: var(--rg-radius-sm);
    border-color: var(--rg-border);
}
.form-control:focus, .form-select:focus {
    border-color: var(--rg-teal);
    box-shadow: 0 0 0 3px rgba(14, 177, 168, 0.1);
}
.table { font-size: 0.88rem; }
.table th { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--rg-muted); }
.badge { font-family: var(--rg-font-body); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.02em; }

/* Pagination */
.pagination .page-link {
    color: var(--rg-teal);
    border-color: var(--rg-border);
    border-radius: var(--rg-radius-sm) !important;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0.15rem;
}
.pagination .page-item.active .page-link {
    background: var(--rg-teal);
    border-color: var(--rg-teal);
}

/* Flash messages */
.alert { border-radius: var(--rg-radius-sm); font-size: 0.88rem; border: none; }
.alert-success { background: var(--rg-teal-light); color: var(--rg-teal-dark); }
.alert-danger { background: #fce8e2; color: #B7432F; }

/* Yii gridview sort */
a.asc:after, a.desc:after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px;
}
a.asc:after { border-bottom: solid 7px var(--rg-teal); border-top-width: 0; }
a.desc:after { border-top: solid 7px var(--rg-teal); border-bottom-width: 0; }

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero h1 { animation: fadeUp 0.7s var(--rg-ease) both; }
.hero .lead { animation: fadeUp 0.7s 0.1s var(--rg-ease) both; }
.hero-filter { animation: fadeUp 0.7s 0.2s var(--rg-ease) both; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .location-grid { grid-template-columns: repeat(3, 1fr); }
    .listing-grid { grid-template-columns: repeat(2, 1fr); }
    .navbar-rg { height: auto; min-height: var(--rg-navbar-h); }
}
@media (max-width: 767.98px) {
    .location-grid { grid-template-columns: repeat(2, 1fr); }
    .listing-grid { grid-template-columns: 1fr; }
    .hero { padding: 3rem 0 2.5rem; }
    .hero--compact { padding: 1.5rem 0 2rem; }
    .hero h1 { font-size: 1.6rem; }
    .hero-filter { border-radius: 12px; }
    .pricing-sidebar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; border-radius: var(--rg-radius) var(--rg-radius) 0 0; border-bottom: none; box-shadow: 0 -4px 20px rgba(42,32,23,0.12); }
}
@media (max-width: 575.98px) {
    .location-grid { gap: 0.5rem; }
    .category-card { padding: 0.85rem 1rem; min-width: 110px; }
}

/* ---------- Mobile sticky "Add Listing" FAB ---------- */
.mobile-fab-add {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.3rem;
    background: var(--rg-teal);
    color: #fff;
    font-family: var(--rg-font-body);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    border-radius: var(--rg-radius-pill);
    box-shadow: 0 4px 20px rgba(14, 177, 168, 0.4), 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.25s var(--rg-ease);
    white-space: nowrap;
}
.mobile-fab-add:hover,
.mobile-fab-add:active {
    background: var(--rg-teal-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(14, 177, 168, 0.5), 0 3px 10px rgba(0,0,0,0.12);
}
.mobile-fab-add i {
    font-size: 1.15rem;
    font-weight: 700;
}
/* When listing detail pricing sidebar is fixed at bottom, push FAB above it */
@media (max-width: 767.98px) {
    body.has-pricing-sidebar .mobile-fab-add { bottom: 5.5rem; }
}

/* ---------- Dropdowns ---------- */
.dropdown-menu {
    border: 1px solid var(--rg-border);
    border-radius: var(--rg-radius-sm);
    box-shadow: var(--rg-shadow-lg);
    padding: 0.4rem;
    font-size: 0.88rem;
    background: #fff;
    min-width: 12rem;
}
.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    color: var(--rg-charcoal);
    transition: background 0.15s;
}
.dropdown-item:hover, .dropdown-item:focus {
    background: var(--rg-teal-light);
    color: var(--rg-teal-dark);
}
.dropdown-item.active, .dropdown-item:active {
    background: var(--rg-teal);
    color: #fff;
}
.dropdown-item i { font-size: 0.85rem; opacity: 0.7; }
.dropdown-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.75rem;
}
.dropdown-divider { margin: 0.3rem 0; border-color: var(--rg-border); }

/* Logout button in dropdown */
.dropdown-item[type="submit"] {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: var(--rg-font-body);
    font-size: 0.88rem;
    color: var(--rg-coral);
}
.dropdown-item[type="submit"]:hover {
    background: var(--rg-coral-light);
    color: #B7432F;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--rg-sand); }
::-webkit-scrollbar-thumb { background: var(--rg-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--rg-muted); }

/* ---------- Verification badges ---------- */
.rg-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 600; line-height: 1.4;
    background: var(--rg-sand); color: var(--rg-charcoal);
}
.rg-badge i { font-size: 12px; }
.rg-badge--verified  { background: #E8F8F5; color: #0A8F86; }
.rg-badge--business  { background: #E8F2FF; color: #1E63D6; }
.rg-badge--premium   { background: linear-gradient(135deg,#FFD86B,#FF9F4D); color: #5B3700; }
.rg-badge--featured  { background: var(--rg-coral); color: #fff; }

/* ---------- Sticky mobile CTA ---------- */
.rg-mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 1030;
    display: none;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--rg-border);
    box-shadow: 0 -8px 24px rgba(0,0,0,.08);
}
.rg-mobile-cta .rg-mobile-cta__price {
    font-weight: 700; color: var(--rg-charcoal); font-size: 15px; line-height: 1;
}
.rg-mobile-cta .rg-mobile-cta__price small { display:block; font-weight:500; color:var(--rg-muted); font-size:11px; margin-top:2px;}
.rg-mobile-cta .btn { padding: 10px 16px; font-weight: 600; }
@media (max-width: 991.98px) {
    .rg-mobile-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    body.has-mobile-cta { padding-bottom: 80px; }
}

/* ---------- Empty state ---------- */
.rg-empty {
    text-align: center;
    padding: 56px 24px;
    color: var(--rg-muted);
}
.rg-empty__icon { font-size: 48px; color: var(--rg-border); margin-bottom: 12px; }
.rg-empty__title { color: var(--rg-charcoal); font-weight: 600; margin-bottom: 4px; }
.rg-empty__hint { font-size: 14px; max-width: 420px; margin: 0 auto 16px; }

/* ---------- Skeleton loader ---------- */
.rg-skeleton {
    background: linear-gradient(90deg, var(--rg-sand) 0%, #f5f5f5 50%, var(--rg-sand) 100%);
    background-size: 200% 100%;
    animation: rg-shimmer 1.4s infinite;
    border-radius: var(--rg-radius);
}
@keyframes rg-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════ Alert / Toast Notifications ═══════════════ */
.rg-alert-stack {
    position: fixed;
    top: calc(var(--rg-navbar-h) + 12px);
    right: 16px;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 440px;
    width: calc(100% - 32px);
    pointer-events: none;
}
.rg-alert {
    pointer-events: auto;
    background: #fff;
    border-radius: var(--rg-radius);
    box-shadow: var(--rg-shadow-lg);
    overflow: hidden;
    animation: rgAlertIn 0.4s var(--rg-ease) both;
    border-left: 4px solid transparent;
}
.rg-alert--out {
    animation: rgAlertOut 0.35s var(--rg-ease) both;
}
.rg-alert__body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
}
.rg-alert__icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.rg-alert__text {
    flex: 1;
    font-family: var(--rg-font-body);
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--rg-charcoal);
}
.rg-alert__close {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--rg-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
    margin-top: 1px;
}
.rg-alert__close:hover { opacity: 1; }

/* Timer bar — shrinks over 6s */
.rg-alert__timer {
    height: 3px;
    animation: rgAlertTimer 6s linear both;
}
.rg-alert:hover .rg-alert__timer { animation-play-state: paused; }

/* ── Type variants ── */
.rg-alert--success { border-left-color: var(--rg-teal); }
.rg-alert--success .rg-alert__icon { color: var(--rg-teal); }
.rg-alert--success .rg-alert__timer { background: var(--rg-teal); }

.rg-alert--error { border-left-color: #D94F4F; }
.rg-alert--error .rg-alert__icon { color: #D94F4F; }
.rg-alert--error .rg-alert__timer { background: #D94F4F; }

.rg-alert--warning { border-left-color: var(--rg-coral); }
.rg-alert--warning .rg-alert__icon { color: var(--rg-coral); }
.rg-alert--warning .rg-alert__timer { background: var(--rg-coral); }

.rg-alert--info { border-left-color: #3B82C4; }
.rg-alert--info .rg-alert__icon { color: #3B82C4; }
.rg-alert--info .rg-alert__timer { background: #3B82C4; }

/* ── Animations ── */
@keyframes rgAlertIn {
    from { opacity: 0; transform: translateX(40px) scale(0.96); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes rgAlertOut {
    from { opacity: 1; transform: translateX(0) scale(1); max-height: 120px; margin-bottom: 0; }
    to   { opacity: 0; transform: translateX(40px) scale(0.96); max-height: 0; margin-bottom: -10px; padding: 0; }
}
@keyframes rgAlertTimer {
    from { width: 100%; }
    to   { width: 0%; }
}

/* ── Mobile: full-width, centered at top ── */
@media (max-width: 575.98px) {
    .rg-alert-stack {
        right: 8px;
        left: 8px;
        max-width: none;
        width: auto;
    }
}

/* ═══════════════ Listing Photo Lightbox ═══════════════ */
.rg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: rgLbIn 0.2s ease;
}
.rg-lightbox.active { display: flex; }
.rg-lightbox img {
    max-width: 94vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: var(--rg-radius);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    cursor: default;
    animation: rgLbZoom 0.25s var(--rg-ease);
}
.rg-lightbox__close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2001;
}
.rg-lightbox__close:hover { opacity: 1; }
.rg-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: var(--rg-radius);
    opacity: 0.6;
    transition: opacity 0.2s, background 0.2s;
    z-index: 2001;
}
.rg-lightbox__nav:hover { opacity: 1; background: rgba(0, 0, 0, 0.5); }
.rg-lightbox__prev { left: 12px; }
.rg-lightbox__next { right: 12px; }
.rg-lightbox__counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-family: var(--rg-font-body);
    z-index: 2001;
}
@keyframes rgLbIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes rgLbZoom {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
@media (max-width: 575.98px) {
    .rg-lightbox__nav { padding: 8px 12px; font-size: 1.5rem; }
}

/* ==========================================================================
   Share modal
   ========================================================================== */
.rg-share-modal .modal-content {
    border-radius: 18px;
}
.rg-share-modal__hero {
    padding: 28px 24px 22px;
    background: linear-gradient(135deg, var(--rg-teal) 0%, #0a8f88 60%, #0d766f 100%);
    position: relative;
    overflow: hidden;
}
.rg-share-modal__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.18) 0, transparent 35%),
        radial-gradient(circle at 88% 82%, rgba(255,255,255,0.12) 0, transparent 40%);
    pointer-events: none;
}
.rg-share-modal__hero > * { position: relative; z-index: 1; }
.rg-share-modal__hero .modal-title {
    font-family: var(--rg-font-display, inherit);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.rg-share-modal__badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.rg-share-modal__preview {
    background: #f6fafa;
    border: 1px solid rgba(15,185,177,0.12);
}
.rg-share-modal__thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e9ecef;
}
.rg-share-modal__preview-title {
    color: var(--rg-charcoal, #1f2d2f);
    font-size: 0.95rem;
    line-height: 1.25;
}

/* Channel tiles */
.rg-share-tile {
    color: var(--rg-charcoal, #1f2d2f);
    transition: transform 140ms var(--rg-ease, ease-out);
}
.rg-share-tile:hover {
    transform: translateY(-2px);
    color: var(--rg-charcoal, #1f2d2f);
}
.rg-share-tile__icon {
    width: 52px;
    height: 52px;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: box-shadow 140ms var(--rg-ease, ease-out);
}
.rg-share-tile:hover .rg-share-tile__icon {
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}
.rg-share-tile__label {
    color: #6c757d;
    font-size: 0.78rem;
    margin-top: 4px;
}

/* Copy input + button */
.rg-share-modal .input-group .form-control {
    border-radius: 10px 0 0 10px;
    background: #f8f9fa;
    color: #495057;
    font-size: 0.9rem;
}
.rg-share-modal .input-group .btn {
    border-radius: 0 10px 10px 0;
    padding-inline: 18px;
    transition: background-color 160ms var(--rg-ease, ease-out), transform 140ms var(--rg-ease, ease-out);
}
.rg-share-modal .input-group .btn.btn-success { background: #16a34a; border-color: #16a34a; }

@media (max-width: 419.98px) {
    .rg-share-modal__channels { --bs-gutter-x: 0.5rem; }
    .rg-share-tile__icon { width: 46px; height: 46px; font-size: 1.2rem; }
}

/* Required field marker — asterisk after label */
#verification-form .form-group.required > label.form-label::after,
#verification-form .field-verificationrequest-full_name.required > label.form-label::after,
#verification-form .required > label.form-label::after {
    content: " *";
    color: var(--rg-coral, #dc3545);
    font-weight: 700;
}

/* Verification — dashed upload box */
.verification-upload-box {
    border-color: var(--rg-teal, #0FB9B1) !important;
    border-style: dashed !important;
    transition: background-color 160ms var(--rg-ease, ease-out), border-color 160ms var(--rg-ease, ease-out);
}
.verification-upload-box:hover,
.verification-upload-box:focus-within {
    background-color: rgba(15, 185, 177, 0.06) !important;
    border-color: var(--rg-teal, #0FB9B1) !important;
}
.verification-upload-box .form-label::before {
    content: "\F1A4"; /* bi-cloud-arrow-up */
    font-family: "bootstrap-icons";
    margin-right: 6px;
    color: var(--rg-teal, #0FB9B1);
}
