:root {
    /* Colors from Figma */
    --primary: #C8713A;
    --primary-rgb: 200, 113, 58;
    --primary-dark: #7B3A10;
    --hero-bg: #EAF5D8;
    --primary-light: #FDF9F3;
    --secondary: #E8C18C;
    --text-main: #1A1A1A;
    --text-muted: #717171;
    --bg-main: #FFFFFF;
    --bg-secondary: #F7F7F7;
    --border: #E0E0E0;
    --error: #FF385C;
    --success: #008A05;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.15);
    
    /* Spacing */
    --nav-height: 80px;
    --bottom-nav-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

/* --- Dark Mode via Filter --- */
html.dark-mode {
    filter: invert(1) hue-rotate(180deg);
}

html.dark-mode img:not(.hero-floating-dog),
html.dark-mode video {
    filter: invert(1) hue-rotate(180deg);
}

html.dark-mode .hero-parallax-bg,
html.dark-mode .host-hero,
html.dark-mode .hero-dog-container,
html.dark-mode .hero-night-overlay {
    filter: invert(1) hue-rotate(180deg); /* Counteract global inversion */
}


input[type=number] {
    -moz-appearance: textfield;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.5;
    overflow-x: clip;
    margin: 0;
    min-height: 100vh;
}

html, body {
    width: 100%;
    position: relative;
    overflow-x: hidden; /* Standard for preventing side-scrolling without locking vertical scroll */
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Header --- */
.header {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1500;
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-bottom 0.3s ease;
}

/* Solid state: Scrolled OR on pages without a hero */
.header.scrolled,
body.hero-scrolled .header {
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.hidden-content {
    display: none !important;
}

/* --- White Label Mode --- */
body.whitelabel-mode #header,
body.whitelabel-mode .bottom-nav,
body.whitelabel-mode footer {
    display: none !important;
}

body.whitelabel-mode #main-content {
    margin-top: 0 !important;
}

body.whitelabel-mode .listing-page {
    padding-top: 20px !important;
}

body.whitelabel-mode .listing-nav {
    display: none !important;
}

body:not(.hero-scrolled) .header {
    background: transparent;
    border-bottom: 1px solid transparent;
}

body:not(.hero-scrolled) .header .logo-text {
    color: white;
}
body:not(.hero-scrolled) .header .desktop-nav-link {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

body:not(.hero-scrolled) .header .logo-tagline {
    color: rgba(255,255,255,0.9) !important;
}

body:not(.hero-scrolled) .header .logo-icon,
body:not(.hero-scrolled) .header .mobile-bell i {
    color: white !important;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
}

body:not(.hero-scrolled) .header .profile-circle-btn {
    border-color: rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.1);
}
body:not(.hero-scrolled) .header .profile-circle-btn i,
body:not(.hero-scrolled) .header .theme-toggle-btn i {
    color: white !important;
}

.header-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 20;
}
.header-top-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
}
.profile-circle-btn {
    border: 1.5px solid #ddd;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: white;
    transition: border-color 0.2s ease;
}
.profile-circle-btn i {
    width: 20px;
    height: 20px;
    color: #666;
}

/* Nav inline search — hidden until scrolled */
.nav-search-inline {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}
.nav-search-inline.visible {
    max-height: 56px;
    opacity: 1;
    margin-bottom: 12px;
}
.nav-search-inline .search-lozenge {
    max-width: 100%;
    box-shadow: none;
    border: 1px solid var(--border);
    background: #f9f9f9;
}

/* Nav scrolled state */
.header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    border-bottom: none !important;
    background: white !important;
}
.header.scrolled .header-top-row {
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
    stroke-width: 2.5;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-text {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}
.logo-accent {
    color: var(--primary);
}

.logo-tagline {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 1px;
}

.paws-text {
    color: var(--secondary);
}


/* Search Bar (The "Airbnb" look) */
.search-bar-wrapper {
    flex: 0 1 400px;
    position: relative;
    z-index: 1001;
}

.search-bar {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 8px 8px 8px 24px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.search-bar:hover {
    box-shadow: var(--shadow-md);
}

.search-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.search-label {
    font-size: 12px;
    font-weight: 700;
}

.search-value {
    font-size: 14px;
    color: var(--text-muted);
}

.search-divider {
    width: 1px;
    height: 24px;
    background-color: var(--border);
    margin: 0 16px;
}

.search-icon-bg {
    background-color: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-bg svg {
    width: 16px;
    height: 16px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.host-button {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 20px;
}

.host-button:hover {
    background-color: var(--bg-secondary);
}

.menu-button {
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 5px 5px 5px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-button:hover {
    box-shadow: var(--shadow-sm);
}

.user-avatar {
    background-color: var(--text-muted);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

main, .page-view, #help-view, #host-view, #favorites-view, #bookings-view, #profile-view, #messages-view, #add-field-view, #listing-view {
    /* Remove universal margin-top as it conflicts with mobile header height variations */
}

.container.page-content {
    padding-top: calc(var(--nav-height) + 24px);
}

@media (max-width: 600px) {
    .container.page-content {
        padding-top: 96px !important; /* Increased space for taller mobile header */
    }
}

/* --- Filter Bar --- */
.filter-container {
    position: sticky;
    top: var(--nav-height);
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 999;
}

.filters {
    flex: 1;
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 4px 0;
}

.filters::-webkit-scrollbar {
    display: none;
}

.filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    transition: all 0.2s;
    min-width: fit-content;
}

.filter-item:hover, .filter-item.active {
    opacity: 1;
}

.filter-item.active {
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 8px;
}

.filter-item i {
    width: 24px;
    height: 24px;
}

.filter-item span {
    font-size: 12px;
    font-weight: 600;
}

.filter-adjust {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

/* --- Listings Grid --- */
.listings-container {
    padding: 10px 24px 60px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.listing-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    background-color: var(--bg-main);
    transition: box-shadow 0.2s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
}

.listing-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.listing-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* --- Skeleton Loading --- */
.skeleton {
    background-color: #f1f5f9;
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200px 100%;
    background-repeat: no-repeat;
    background-position: -200px 0;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

@keyframes skeleton-pulse {
    to {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: white;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 5/3;
    border-radius: 12px;
}

.skeleton-text {
    height: 18px;
    border-radius: 4px;
    width: 80%;
}

.skeleton-text.sm {
    width: 60%;
    height: 14px;
}

.skeleton-text.xs {
    width: 40%;
    height: 14px;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 5/3;
    border-radius: 12px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing-card:hover .card-image {
    transform: scale(1.05);
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-title {
    font-weight: 700;
    font-size: 15px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.card-location {
    color: var(--text-muted);
    font-size: 15px;
}

.card-price {
    margin-top: 6px;
    font-size: 15px;
}

.price-value {
    font-weight: 700;
}

/* --- Bottom Nav (Mobile Only) --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 400px;
    height: 64px;
    background: rgba(255, 245, 236, 0.94); /* Enhanced branded peach-linen */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200, 113, 58, 0.2); /* Stronger branded border */
    border-radius: 32px;
    box-shadow: 0 12px 48px rgba(200, 113, 58, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
    z-index: 1001;
}

/* Ensure dark mode inverts it gracefully */
html.dark-mode .bottom-nav {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 12px;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-width: 64px;
    position: relative;
    z-index: 1;
}

/* Sleek pill strictly behind the icon */
.nav-item::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    width: 48px;
    height: 32px;
    background: rgba(220, 107, 44, 0.15);
    border-radius: 16px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.nav-item i {
    width: 22px;
    height: 22px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-item span {
    white-space: nowrap;
}

.nav-item.active {
    color: var(--primary);
    opacity: 1;
    background: transparent;
}

.nav-item.active::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.nav-item.active i {
    transform: scale(1.15);
}

.host-hero {
    padding: 160px 24px 100px;
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

@media (max-width: 768px) {
    .host-hero {
        padding: 120px 20px 80px;
    }
}

/* Feature Boxes & Reveal Animations */
.feature-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
}

.feature-card.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
    border-color: var(--primary-light) !important;
}

.feature-card i {
    transition: transform 0.4s ease;
}

.feature-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}


/* Sticky CTA Bar */
.sticky-cta-bar {
    position: fixed;
    top: var(--nav-height, 64px);
    left: 0;
    right: 0;
    background: white;
    padding: 12px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-cta-bar.visible {
    transform: translateY(0);
}

.sticky-cta-bar .primary-btn {
    width: auto;
    max-width: 400px;
    margin: 0;
    padding: 12px 36px;
    font-size: 15px;
}


/* FAQ Accordion */
.faq-accordion {
    border-top: 1px solid var(--border);
    margin-top: 24px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.faq-item:hover {
    background: #fafafa;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 700;
}

.faq-icon {
    color: var(--primary);
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-content {
    max-height: 1000px;
    transition: all 0.3s cubic-bezier(1, 0, 1, 0);
}


.host-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.host-pill i {
    color: var(--primary);
    width: 16px;
    height: 16px;
}


/* --- Responsiveness --- */
@media (max-width: 768px) {
    .logo-text, .user-menu {
        display: none;
    }
    
    .header-container {
        padding: 0 16px;
        gap: 12px;
    }
    
    .search-bar-wrapper {
        flex: 1;
    }
    
    .search-bar {
        padding: 12px 16px;
    }
    
    .search-divider {
        display: none;
    }
    
    .search-section .search-label {
        display: none;
    }
    
    .search-value {
        color: var(--text-main);
        font-weight: 600;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    .listings-container {
        padding: 16px;
        padding-bottom: 100px; /* Space for bottom nav */
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Modal Content --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    width: 100%;
    height: 100%;
    max-width: 1032px;
    max-height: 90vh;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    border-bottom: 1px solid var(--border);
}

.close-modal {
    padding: 8px;
    border-radius: 50%;
}

.close-modal:hover {
    background: var(--bg-secondary);
}

.header-actions {
    display: flex;
    gap: 8px;
}

.header-actions button {
    padding: 8px;
    border-radius: 50%;
}

.header-actions button:hover {
    background: var(--bg-secondary);
}

.modal-body {
    padding: 24px;
}

.detail-gallery {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.detail-gallery img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.detail-info {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 48px;
}

.detail-main h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.detail-main .location {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.detail-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.detail-stats i {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.detail-stats .divider {
    color: var(--text-muted);
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.host-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.host-info h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.host-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.description {
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.6;
}

.amenity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.amenity-item i {
    color: var(--text-muted);
    width: 20px;
}

/* Booking Widget */
.widget-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 24px;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.widget-header .price .val {
    font-size: 22px;
    font-weight: 700;
}

.widget-header .price .unit {
    color: var(--text-muted);
}

.booking-inputs {
    border: 1px solid var(--text-muted);
    border-radius: 8px;
    margin-bottom: 16px;
}

.input-row {
    border-bottom: 1px solid var(--text-muted);
}

.input-row:last-child {
    border-bottom: none;
}

.input-group {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 4px;
}

.input-group input, .input-group select {
    border: none;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.book-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}

.book-btn:hover {
    background: #068F9B;
}

.no-charge {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

.price-row.total {
    font-weight: 700;
    font-size: 18px;
}

/* --- Page Views & Container --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

.page-content {
    min-height: calc(100vh - var(--nav-height) - 100px);
    padding-top: var(--nav-height);
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 32px;
}

.hidden-content {
    display: none !important;
}

/* Empty States */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    gap: 16px;
}

.empty-state i {
    width: 64px;
    height: 64px;
    color: var(--border);
    margin-bottom: 16px;
}

.empty-state h2 {
    font-size: 22px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Bookings List */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.booking-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    align-items: center;
}

.booking-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.booking-details {
    flex: 1;
}

.booking-details h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.booking-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.booking-meta i {
    width: 14px;
    height: 14px;
}

.booking-price {
    font-weight: 700;
    font-size: 16px;
}

.booking-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.primary-btn, .secondary-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.primary-btn {
    background: var(--primary);
    color: white;
}

.secondary-btn {
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

/* --- Login Screen --- */
.login-screen {
    background: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.login-header {
    padding: 24px;
}

.login-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-content h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="tel"],
.form-group input[type="time"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: white;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="time"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="date"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(200, 113, 58, 0.2);
}

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 44px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: var(--primary);
}

.input-with-icon {
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px 16px;
    gap: 12px;
}

.input-with-icon i {
    width: 20px;
    color: var(--text-muted);
}

.input-with-icon input {
    border: none;
    background: transparent;
    flex: 1;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.eye-icon {
    cursor: pointer;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.select-wrapper select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(7, 163, 178, 0.2);
}

.select-wrapper i,
.select-wrapper svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.forgot-pass {
    text-align: right;
    margin-bottom: 32px;
}

.forgot-pass a {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.role-selector {
    margin-bottom: 24px;
    text-align: center;
}

.role-buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.role-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-weight: 700;
    transition: all 0.2s;
}

.role-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.login-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 24px;
}

.divider-text {
    text-align: center;
    position: relative;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.divider-text::before, .divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border);
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.social-logins {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-weight: 600;
}

.register-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.register-link a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* --- Profile Page --- */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 16px;
}

.profile-title {
    font-size: 18px;
    font-weight: 800;
}

.user-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.user-info-card .avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid var(--primary);
    transition: all 0.3s ease;
}

.avatar-container {
    transition: all 0.3s ease;
}

.avatar-container:hover .avatar-large {
    filter: brightness(0.9);
    transform: scale(1.02);
}

.avatar-container:hover .avatar-overlay {
    background: var(--primary-dark) !important;
    transform: scale(1.1);
}

.user-info-card .details {
    flex: 1;
}

.user-info-card h2 {
    font-size: 18px;
    font-weight: 700;
}

.user-info-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.edit-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.settings-section {
    margin-bottom: 32px;
}

.settings-section h3 {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 16px;
}

.settings-list {
    display: flex;
    flex-direction: column;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--bg-secondary);
}

.settings-item i:first-child {
    width: 24px;
    color: var(--text-main);
}

.settings-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.settings-item .value {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
}

.settings-item i:last-child {
    width: 16px;
    color: var(--text-muted);
}

/* --- Host Dashboard --- */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

/* --- Reporting Metrics --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.metric-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-icon-box.green { background: #dcfce7; color: #16a34a; }
.metric-icon-box.blue { background: #dbeafe; color: #2563eb; }
.metric-icon-box.purple { background: #f3e8ff; color: #9333ea; }
.metric-icon-box.orange { background: #ffedd5; color: #ea580c; }

.metric-icon-box i {
    width: 18px;
    height: 18px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.metric-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
}

.metric-trend.up { color: #16a34a; }
.metric-trend.down { color: #dc2626; }

.metric-trend i {
    width: 14px;
    height: 14px;
}

.metric-subtext {
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

/* --- Download Bar --- */
.report-download-bar {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.report-download-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.date-range-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
}

.date-input-wrapper input[type="date"] {
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    background: transparent;
}

.date-input-wrapper i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}


.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.dashboard-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.host-fields-list, .host-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.host-field-card {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    align-items: center;
}

.host-field-card img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.host-field-card .details {
    flex: 1;
}

.host-field-card h4 {
    font-size: 16px;
    font-weight: 700;
}

.host-field-card .actions {
    display: flex;
    gap: 8px;
}

.icon-btn {
    padding: 8px;
    border-radius: 8px;
    background: var(--bg-secondary);
}

.host-booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.guest-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.guest-info .name {
    font-size: 14px;
    font-weight: 700;
}

.guest-info .meta {
    font-size: 12px;
    color: var(--text-muted);
}

.status-badge {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 12px;
}

/* Add Field Modal */
.add-field-modal {
    max-width: 800px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bg-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.image-placeholder {
    aspect-ratio: 1/1;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
}

.image-placeholder:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.rules-tags {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rules-tags label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    min-height: 80px;
    margin-top: 12px;
}

.text-error {
    color: var(--error);
    font-weight: 600;
    font-size: 14px;
}

/* --- Redesigned Detail Page (UX #3 & #4) --- */
.detail-properties .modal-header.transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    padding: 24px;
}

.close-modal.circle, .share-btn.circle {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-main);
}

.modal-body-p0 {
    padding: 0;
}

.detail-gallery-container {
    position: relative;
    width: 100%;
}

.hero-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-miniatures {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.gallery-miniatures .mini {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid transparent;
    object-fit: cover;
    cursor: pointer;
}

.gallery-miniatures .mini.active {
    border-color: var(--primary);
}

.gallery-miniatures .mini.more {
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.detail-content-wrapper {
    padding: 24px;
    padding-bottom: 120px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.title-row h1 {
    font-size: 24px;
    font-weight: 800;
}

.heart-icon {
    color: var(--error);
    cursor: pointer;
}

.location-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.rating-val {
    font-weight: 700;
}

.review-count {
    color: var(--text-muted);
}

.section {
    margin-bottom: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.see-all {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.facility-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.facility-item i {
    width: 24px;
    color: var(--primary);
}

.description-text {
    line-height: 1.6;
    color: var(--text-muted);
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* Review Scores */
.review-score-grid {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}

.score-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-num {
    font-size: 48px;
    font-weight: 800;
}

.score-total {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.score-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.bar-bg {
    flex: 1;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #FFB800;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bg-secondary);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.reviewer img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.reviewer-info {
    flex: 1;
}

.reviewer-info .name {
    font-weight: 700;
    font-size: 14px;
}

.stars {
    display: flex;
    color: #FFB800;
}

.stars i {
    width: 12px;
    fill: currentColor;
}

.reviewer .date {
    font-size: 12px;
    color: var(--text-muted);
}

.review-card .text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FDF9F3; /* Branded primary-light */
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    z-index: 100;
}

.price-info .label {
    font-size: 12px;
    color: var(--text-muted);
}

.price-info .price {
    font-size: 20px;
    font-weight: 800;
}

.price-info .unit {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.book-btn-main {
    background: var(--primary);
    color: white;
    padding: 16px 48px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
}

@media (max-width: 900px) {
    .listing-gallery-grid {
        grid-template-columns: 1fr;
        height: 300px;
    }
    
    .side-gallery {
        display: none; /* Hide side gallery on small mobile to save space */
    }
    
    /* Full Filters Modal */
    .modal {
        display: none;
    }

    .listing-body-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
    
/* --- Premium Search Lozenge --- */
.search-lozenge {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    max-width: 440px;
    margin: 0 auto;
}

.search-lozenge:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.search-input-group i {
    color: var(--primary);
    width: 20px;
}

.search-input-group input {
    border: none;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    color: var(--text-main);
    background: transparent;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.near-me-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 44px;
    background: #fdfaf6;
    border: 1px solid var(--border);
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.near-me-btn:hover {
    border-color: var(--primary);
    background: white;
    color: var(--primary);
}

.near-me-btn i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.search-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 12px;
}

.gps-lozenge-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-secondary);
    border-radius: 18px;
    color: var(--primary);
    transition: all 0.2s;
}

.gps-lozenge-btn i {
    width: 18px;
    height: 18px;
}

.gps-lozenge-btn:hover {
    background: var(--primary-light);
}

/* --- Header & Navigation --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.desktop-nav {
    display: flex;
    gap: 24px;
}

.desktop-nav-link {
    position: relative;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 24px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.desktop-nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--hero-bg);
    border: 2px solid var(--primary);
    border-radius: 30px;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    z-index: -1;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desktop-nav-link::after {
    content: '';
    position: absolute;
    top: calc(50% + 4px);
    left: calc(50% + 4px);
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    border-radius: 30px;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    z-index: -2;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desktop-nav-link:hover,
.desktop-nav-link.active,
body:not(.hero-scrolled) .header .desktop-nav-link:hover,
body:not(.hero-scrolled) .header .desktop-nav-link.active {
    color: #1a1a1a !important;
    transform: translate(-2px, -2px);
}

.desktop-nav-link:hover::before,
.desktop-nav-link.active::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.desktop-nav-link:hover::after,
.desktop-nav-link.active::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.desktop-nav-link:active {
    transform: translate(0, 0);
}

.desktop-nav-link:active::after {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
}

/* Playful pulse for primary items */
.desktop-nav-link[href*="host"] {
    color: var(--primary-dark);
}

.desktop-nav-link[href*="host"]::before {
    background: var(--primary);
    border-color: var(--primary-dark);
}

.desktop-nav-link[href*="host"]:hover {
    color: white;
}

@keyframes liquid-wobble {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 30% 70% 70% 30% / 50% 60% 40% 60%; }
    100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

.header-profile {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    background: white; /* Added white background */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}

#header-avatar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden; /* Clip the image here instead of parent */
}


.header-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    width: 240px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid var(--border);
    padding: 8px 0;
    z-index: 1000;
    display: none;
}

.header-dropdown.active {
    display: block;
}

.dropdown-item {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.dropdown-item:hover { background: var(--bg-secondary); }
.dropdown-item.logout { color: var(--error); }
.header-dropdown hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }

.listing-page {
    background: #f8fafc;
    min-height: 100vh;
    padding-top: 16px; /* Match margin-bottom of nav */
    padding-bottom: 120px;
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

.listing-content-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.03);
    margin-top: 16px;
    max-width: 100%;
    box-sizing: border-box;
}

.listing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px; /* Match the gap to the card below */
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-main);
}

.circle-btn:hover {
    background: var(--bg-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.heart-btn i.fill-current {
    fill: var(--error);
    color: var(--error);
}

.listing-header-main h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.02em; }
.header-meta { 
    display: flex; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 12px; 
    margin-bottom: 24px; 
    font-size: 14px;
    font-weight: 600;
}
.location-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.location-row i {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}
.address-prominent { 
    text-decoration: underline; 
    cursor: pointer;
}
.rating-row i.star-fill {
    width: 14px;
    height: 14px;
    fill: var(--text-main);
    color: var(--text-main);
}
.review-count {
    text-decoration: underline;
    cursor: pointer;
    margin-left: 4px;
}

.listing-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 240px);
    gap: 8px;
    margin-bottom: 48px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.listing-gallery-grid.simple-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    display: flex;
    height: 480px;
}

.listing-gallery-grid.simple-layout .hero-container {
    flex: 2;
    height: 100%;
}

.listing-gallery-grid.simple-layout .side-gallery-item {
    flex: 1;
    height: 100%;
}

/* If only 3 images, stack the two side ones */
.listing-gallery-grid.simple-layout:has(.side-gallery-item:nth-child(3)) {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.listing-gallery-grid.simple-layout:has(.side-gallery-item:nth-child(3)) .hero-container {
    grid-row: 1 / 3;
}

.hero-container {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    overflow: hidden;
    cursor: pointer;
}

.hero-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.3s ease, filter 0.3s;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.hero-container:hover img {
    filter: brightness(0.9);
}

.side-gallery-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.side-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.side-gallery-item:hover img {
    filter: brightness(0.9);
}

/* Specific corners for the asymmetric grid */
.hero-container img { border-top-left-radius: 16px; border-bottom-left-radius: 16px; }
.side-gallery-item.top-right img { border-top-right-radius: 16px; }
.side-gallery-item.bottom-right img { border-bottom-right-radius: 16px; }

.show-all-photos-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: white;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    z-index: 2;
}

.show-all-photos-btn:hover {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-md);
}

.show-all-photos-btn i {
    width: 16px;
    height: 16px;
}

/* --- Gallery Lightbox Modal --- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.lightbox-modal.hidden {
    display: none;
}

.gallery-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    color: white;
}

.circle-btn-dark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.circle-btn-dark:hover {
    background: rgba(255,255,255,0.2);
}

.gallery-counter {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.gallery-actions {
    display: flex;
    gap: 12px;
}

.gallery-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 40px 40px;
}

.main-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.2);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn.prev { left: 40px; }
.nav-btn.next { right: 40px; }

.listing-body-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.content-section { margin-bottom: 32px; }
.description-full { line-height: 1.6; color: var(--text-muted); font-size: 16px; }
.facilities-full-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.fac-item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 24px; font-size: 14px; font-weight: 500; }
.fac-item i { color: var(--primary); width: 18px; height: 18px; }
.field-rules-list { list-style: none; padding: 0; margin: 0; }
.field-rules-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; line-height: 1.5; }
.field-rules-list i { color: var(--success); }

.booking-card-sticky {
    position: sticky;
    top: 120px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.price-val { font-size: 24px; font-weight: 800; }
.price-val .unit { font-size: 16px; color: var(--text-muted); }

.calendar-month-view { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin: 16px 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.day-num { padding: 8px; cursor: pointer; border-radius: 50%; transition: all 0.2s; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.day-num:hover:not(.disabled) { background: var(--bg-secondary); }
.day-num.today { font-weight: 800; color: var(--primary); }
.day-num.selected { background: var(--primary); color: white; font-weight: 700; box-shadow: 0 4px 12px rgba(7, 163, 178, 0.3); }
.day-num.disabled { color: var(--border); cursor: not-allowed; }

.promo-toggle-row {
    display: flex;
    justify-content: flex-start;
}

.promo-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    height: 40px;
}

.terms-acceptance-row {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.terms-acceptance-row input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.terms-acceptance-row label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
    cursor: pointer;
}

.terms-acceptance-row a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.primary-btn-full {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.primary-btn-full:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.policy-footer-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
}

.policy-footer-row i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 2px;
}

.policy-footer-row span {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-muted);
}

.date-quick-picks {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.quick-pick-btn {
    flex: 1;
    min-width: 90px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: white;
    font-size: 13px;
}

.quick-pick-btn.active, .quick-pick-btn.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.quick-pick-btn:hover:not(.active) {
    background: var(--bg-secondary);
}

.calendar-month-view.hidden {
    display: none !important;
}

.calendar-month-view.hidden {
    display: none !important;
}

.calendar-header-stacked {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
}

.calendar-header-stacked .month-year {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cal-nav-stacked {
    display: flex;
    gap: 16px;
}

.cal-nav-stacked i {
    cursor: pointer;
    width: 20px;
    height: 20px;
    color: var(--text-main);
    transition: color 0.2s;
}

.cal-nav-stacked i:hover {
    color: var(--primary);
}

.time-slots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.time-slot-btn { padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: white; font-weight: 600; }
.time-slot-btn.selected { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

.primary-btn-full { width: 100%; padding: 16px; background: var(--primary); color: white; border-radius: 12px; font-weight: 800; margin-top: 24px; }

/* --- Responsive Stacking --- */
@media (max-width: 950px) {
    .listing-gallery-grid { 
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        height: 300px !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .listing-gallery-grid::-webkit-scrollbar { display: none; }
    .hero-container, .side-gallery-item {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
        height: 100% !important;
        display: block !important;
    }
    .listing-body-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
    .booking-card-sticky { position: static !important; }
    
    .page-container { padding: 0 24px; width: 100%; box-sizing: border-box; }
    .listing-header-main h1 { font-size: 24px; overflow-wrap: break-word; }
    
    /* Ensure flex/grid items can shrink */
    .listing-body-grid > *, .listing-content-card > *, .facilities-full-grid > * {
        min-width: 0;
    }
    
    /* Dashboard fixes */
    .dashboard-grid { grid-template-columns: 1fr !important; }
    .host-field-card { flex-direction: column; align-items: stretch; text-align: center; }
    .host-field-card img { width: 100%; height: 160px; object-fit: cover; }
    .host-field-card .actions { justify-content: center; margin-top: 12px; }
    .form-row { flex-direction: column; gap: 16px; }
    
    /* Session rate list */
    .session-rate-row { flex-direction: column; align-items: stretch; }
    
    .container.page-content { padding-bottom: 100px !important; }
    .container.page-content { padding-bottom: 120px !important; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 600px) {
    html, body { overflow-x: hidden; width: 100%; position: relative; }
    
    .header-container { padding: 0 16px; }
    .page-container { padding: 0 16px; width: 100%; box-sizing: border-box; }
    .container { padding: 16px; }
    
    /* Nuclear fix for horizontal overflow */
    * { max-width: 100%; box-sizing: border-box; }
    
    .booking-item {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }
    .booking-item-img {
        width: 100% !important;
        height: 180px !important;
    }
    .booking-item-actions {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    .listing-content-card { padding: 16px; border-radius: 16px; width: 100%; box-sizing: border-box; }
    .booking-card-sticky { padding: 16px !important; width: 100%; box-sizing: border-box; overflow: hidden; }
    .calendar-month-view { padding: 12px; margin: 12px 0; width: 100%; box-sizing: border-box; }
    .calendar-grid { gap: 2px; }
    .day-num { padding: 4px; font-size: 13px; }

    .facilities-full-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
    .fac-item { padding: 8px 10px; font-size: 13px; width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: flex-start; overflow-wrap: break-word; }
    
    .header { height: auto !important; padding: 0; }
    .header-top-row { height: 72px; padding: 0 16px; }
    .desktop-nav { display: none !important; }
    .mobile-bell { display: none !important; }
    .header-container { padding: 0; }
    .navbar-dog { display: none !important; }
    
    .header-dropdown { position: fixed !important; top: 64px !important; right: 16px !important; left: auto !important; width: 200px !important; z-index: 9999 !important; }
    
    .listing-header-main h1 { font-size: 22px; }
    .address-box { flex-direction: column !important; align-items: flex-start !important; padding: 16px !important; gap: 12px !important; width: 100% !important; box-sizing: border-box; }
    .address-box p { word-break: break-word; }
    
    /* Dashboard Reporting */
    .metrics-grid { grid-template-columns: 1fr !important; }
    .report-download-bar { flex-direction: column; align-items: stretch; gap: 16px; }
    .report-download-left { flex-direction: column; align-items: stretch; }
    .date-range-group { flex-direction: column; align-items: stretch; }

    /* Modals */
    .modal-overlay { padding: 0; }
    .modal-content { max-height: 95vh; border-radius: 16px 16px 0 0; position: absolute; bottom: 0; width: 100%; }
    .listing-page { width: 100%; max-width: 100vw; overflow-x: hidden; }
}

@media (max-width: 500px) {
    .logo-tagline { display: none !important; }
}

@media (max-width: 380px) {
    .header-container, .page-container, .container { padding-left: 12px; padding-right: 12px; }
    .logo-text { font-size: 18px; }
}

/* --- Auth Choice Screen --- */
.auth-choice-screen {
    background: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.auth-choice-content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.auth-choice-content .logo {
    margin-bottom: 32px;
}

.auth-choice-content h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.auth-choice-content .subtitle {
    margin-bottom: 40px;
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.choice-buttons button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

.card-footer-text.policy-mini {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-muted);
}

.card-footer-text.policy-mini i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* --- List Your Field Page --- */
.add-field-page {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 120px;
}

.add-field-header {
    margin-bottom: 32px;
}

.premium-form .form-section.card {
    padding: 32px;
    margin-bottom: 24px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.premium-form h2 {
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.form-hint {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: -8px;
    margin-bottom: 16px;
}

.image-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.upload-box {
    aspect-ratio: 1;
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.upload-box.main-upload {
    grid-column: span 2;
    grid-row: span 2;
}

.rate-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 8px;
}

.session-rate-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    margin-bottom: 24px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid var(--border);
}

@media (max-width: 600px) {
    .rate-inputs-grid {
        grid-template-columns: 1.1fr 0.9fr 0.8fr 1fr 36px;
        gap: 4px;
    }
    .session-rate-row {
        padding: 12px;
    }
    .rate-inputs-grid input {
        padding: 8px 4px !important;
        font-size: 14px !important;
    }
    .rate-inputs-grid label {
        font-size: 10px !important;
    }
}

.day-chip {
    cursor: pointer;
}

.day-chip input {
    display: none;
}

.day-chip span {
    display: inline-block;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.day-chip input:checked + span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

.input-with-label span, .input-with-label label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-muted);
    white-space: nowrap;
}

.time-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-range input {
    width: auto;
}

.amenities-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

@media (max-width: 600px) {
    .amenities-selection-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

.amenity-checkbox input {
    display: none;
}

.amenity-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.amenity-checkbox input:checked + .amenity-card {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.rules-editor .rule-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.rules-editor input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: white;
    color: var(--text-main);
    outline: none;
    transition: all 0.2s;
}

.rules-editor input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(7, 163, 178, 0.2);
}

.input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.input-with-icon-right {
    position: relative;
}

.sticky-bottom-bar {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 20px 24px;
    margin: 0 -24px 0 -24px;
    border-top: 1px solid var(--border);
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
}
.address-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 4px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    max-height: 250px;
    overflow-y: auto;
}

.address-result-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
    line-height: 1.4;
}

.address-result-item:hover {
    background: var(--bg-light);
}

.address-result-item.muted {
    cursor: default;
    color: var(--text-muted);
}

.address-result-item i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* --- Image Preview Cards --- */
.upload-preview-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #eee;
}

.upload-preview-card img {
    transition: transform 0.3s;
}

.upload-preview-card:hover img {
    transform: scale(1.05);
}

.preview-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    left: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.upload-preview-card:hover .preview-actions {
    opacity: 1;
}

.preview-actions .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    color: var(--text-main);
    transition: all 0.2s;
}

.preview-actions .action-btn:hover {
    background: var(--primary);
    color: white;
}

.preview-actions .action-btn.remove:hover {
    background: var(--error);
    color: white;
}

.preview-actions .action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cover-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Utilities --- */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spin {
    animation: spin 1s linear infinite;
}

/* Premium Pricing UI */
.day-chip {
    cursor: pointer;
}

.day-chip input {
    display: none;
}

.day-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.day-chip input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.premium-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

/* --- Custom Navbar Dog --- */
.navbar-dog {
    position: absolute;
    right: 300px; /* Start further left */
    bottom: -2px; /* Walk on the border */
    width: 40px;
    height: 32px;
    z-index: 999; /* Below dropdowns but above most things */
    pointer-events: auto;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: dog-breath 3s ease-in-out infinite;
    transition: right 3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
}

.dog-svg {
    width: 100%;
    height: 100%;
}

/* Animations */
@keyframes dog-breath {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.02); }
}

@keyframes dog-wag {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(20deg); }
}

@keyframes dog-blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0); }
}

@keyframes dog-ear {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-5deg); }
}

.dog-tail {
    transform-origin: 10px 35px;
    animation: dog-wag 0.4s ease-in-out infinite;
}

.dog-eye {
    transform-origin: center;
    animation: dog-blink 4s infinite;
}

.dog-ear {
    transform-origin: top center;
    animation: dog-ear 2s ease-in-out infinite;
}

/* Behavior Animations */
@keyframes dog-jump {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes dog-tilt {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

@keyframes dog-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dog-sniff {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

@keyframes dog-stretch {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.1); }
}

.dog-jump { animation: dog-jump 0.5s ease-in-out 2; }
.dog-tilt .dog-svg { animation: dog-tilt 0.6s ease-in-out infinite; }
.dog-spin { animation: dog-spin 0.4s linear infinite; }
.dog-sniff .dog-svg { animation: dog-sniff 0.2s linear infinite; }
.dog-stretch { animation: dog-stretch 1s ease-in-out 2; }

.navbar-dog.walking {
    transition: right 3s linear;
}

/* --- Header Scenery --- */
.header-scenery {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 32px; /* Reduced by 20% */
    z-index: 998;
    pointer-events: none;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.scenery-svg {
    width: 100%;
    height: 100%;
}

.scenery-grass {
    fill: #95C952;
    opacity: 0.9; /* More solid */
}

/* Booking Items */
.booking-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    align-items: center;
}
.booking-item-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
}
.booking-item-content {
    flex: 1;
}
.booking-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.scenery-tree {
    fill: #2D5A27;
    opacity: 1;
}

.scenery-flower {
    animation: flower-sway 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.scenery-hill-far {
    fill: #CDEBC5; /* Light pale green */
    opacity: 0.9;
}

.scenery-hill-mid {
    fill: #95C952; /* Mid vibrant grass green */
    opacity: 1;
}

.scenery-hill-front {
    fill: #558B2F; /* Deep forest green for ground */
    stroke: #33691E;
}

@keyframes flower-sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

@media (max-width: 768px) {
    .header-scenery {
        height: 20px;
    }
}



/* --- SNOOPPAWS REDESIGN STYLES --- */

/* Header styles moved to top of file for global consistency */
.desktop-nav-link { color: var(--text-main); font-weight: 500; text-decoration: none; padding: 8px 12px; }

.mobile-bell {
    display: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
}
.mobile-bell i { width: 24px; height: 24px; color: var(--text-main); }

/* Logo Override */
.logo-icon { color: var(--primary); }
.logo-tagline { color: var(--primary); font-size: 11px; font-weight: 600; text-transform: none; margin-top: 0; }
.logo-text { font-size: 22px; color: var(--primary-dark); }

/* Transparent mode overrides - applies when NOT scrolled on Home/Explore */
body.is-home .header:not(.scrolled) .logo-text,
body.is-home .header:not(.scrolled) .logo-accent,
body.is-home .header:not(.scrolled) .header-right i {
    color: white !important;
}
body.is-home .header:not(.scrolled) .desktop-nav a:not(:hover):not(.active) {
    color: black !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: visible !important; /* Allow filters dropdown to overflow */
    height: 520px !important; /* Slightly taller for better vertical balance */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000; /* Dark fallback */
    padding: 130px 24px 0px; /* Reduced top padding to move content up */
    text-align: center;
    gap: 16px; /* Reduced gap to move search box up */
    margin-top: calc(-1 * var(--nav-height)) !important; /* Force overlay behind transparent header */
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    clip-path: inset(0);
    z-index: 1;
}

.hero-parallax-bg {
    position: absolute;
    top: -5%;
    left: 0;
    width: 100%;
    height: 110%; /* Extra height for parallax movement */
    background-size: cover;
    background-position: center;
    transition: transform 0.1s ease-out;
    z-index: 1;
}

#hero-dog-container-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4; /* Moved behind hero-wave (5) */
    overflow: hidden;
}

.hero-dog-container {
    position: absolute;
    bottom: -20px;
    right: 5%;
    width: 380px;
    height: auto;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.hero-floating-dog {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
}
/* Float animation removed, scroll effect handled in JS */

.hero-night-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/Night.png');
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 3; /* Above fields (1), below dogs (6) */
    pointer-events: none;
    transition: opacity 0.5s ease;
}

html.dark-mode .hero-night-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-dog-container {
        width: 160px;
        bottom: 10px;
        right: 10px;
        opacity: 0.95;
    }
}

.hero-video-overlay {
    display: none !important;
}

.hero-content {
    position: relative !important;
    z-index: 10 !important;
    color: white !important; /* White text for video backgrounds */
}

html.dark-mode .hero-content {
    filter: invert(1) hue-rotate(180deg);
}

html.dark-mode body.is-home .header:not(.scrolled) .logo-text,
html.dark-mode body.is-home .header:not(.scrolled) .logo-tagline,
html.dark-mode body.is-home .header:not(.scrolled) .logo-icon,
html.dark-mode body.is-home .header:not(.scrolled) .desktop-nav-link,
html.dark-mode body.is-home .header:not(.scrolled) .mobile-bell i,
/* Removed dark mode override for hero-host-cta as it is now always white */

/* Ensure these icons are black before inversion so they become white */
html.dark-mode body.is-home .header:not(.scrolled) .profile-circle-btn i,
html.dark-mode body.is-home .header:not(.scrolled) .theme-toggle-btn i {
    color: #000 !important;
}

/* Bump up the theme icon visibility */
.theme-toggle-btn {
    opacity: 1 !important;
}

.hero-title {
    color: white !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    font-size: 64px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    margin-bottom: 16px !important;
    min-height: 140px; /* Stabilize height for animations */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-subtitle, .hero-tagline {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-top: 12px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.6) !important;
    position: relative !important;
    z-index: 20 !important;
}

.hero-kicker {
    color: white !important;
    font-weight: 800 !important;
    font-size: clamp(18px, 4vw, 24px) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6) !important;
    letter-spacing: 0.05em;
    margin-bottom: -4px;
}

.mobile-break {
    display: none;
}
@media (max-width: 991px) {
    .mobile-break {
        display: inline; /* Just let the BR do its thing */
    }
    .hero-nowrap {
        white-space: nowrap;
    }
    .hero-title {
        font-size: 44px !important;
    }
}

.hero-parallax-bg {
    position: absolute;
    top: -10%;
    left: -10%; /* Increased bleed */
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transform: translateZ(-50px) scale(1.1);
    filter: brightness(0.9);
    transition: transform 0.1s ease-out;
}

.hero-dog-container {
    position: absolute;
    bottom: -20px; 
    right: 5%;
    width: 420px; 
    height: 420px;
    z-index: 2;
    transform: translateZ(60px);
    pointer-events: none;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transition: transform 0.1s ease-out;
}

.hero-dog-image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

.resource-floating-cta {
    position: fixed;
    top: calc(var(--nav-height, 80px) + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    width: calc(100% - 40px);
}
.resource-floating-cta .btn-group {
    display: flex;
    gap: 12px;
    width: 100%;
}
.resource-floating-cta button {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
}
@media (max-width: 640px) {
    .resource-floating-cta {
        top: 72px; /* Mobile: measured header height */
        padding: 10px 12px;
        border-radius: 0 0 16px 16px;
        border-top: none;
        width: calc(100% - 0px);
        left: 0;
        transform: none;
        max-width: 100%;
    }
}

/* Redundant Hero styles removed to prevent conflicts */

.hero-host-cta, .hero-host-cta a {
    color: white !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.hero-search-wrapper {
    margin-top: 0;
    position: relative !important;
    z-index: 100 !important; /* Higher than the hero-wave (30) */
}
.hero-content {
    padding-top: 24px;
    opacity: 1;
    transition: opacity 0.3s ease, margin 0.4s ease;
}
.hero-content.collapsed {
    display: none !important;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}
/* Redundant Hero styles removed to prevent conflicts */
/* Consolidated above */

/* Search Lozenge pinned */
.hero-search-wrapper {
    position: relative;
    z-index: 100;
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
    transition: box-shadow 0.3s ease, transform 0.3s ease; /* Removed background-color transition */
}
.hero-search-wrapper.pinned {
    position: fixed !important;
    top: 80px !important; /* Exactly below header */
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    background-color: white !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
    border-radius: 0 !important;
    padding: 12px 24px !important;
    height: 72px !important; /* Fixed height for predictable stacking */
    z-index: 2900 !important; 
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}
.hero-search-wrapper.pinned .search-lozenge {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero-search-wrapper.pinned .hero-host-cta {
    display: none;
}

.hero-search-wrapper.pinned .search-btn .desktop-text {
    display: none;
}

.hero-search-wrapper.pinned .search-btn::after {
    content: "Search";
    font-size: 13px;
    margin-left: 4px;
}
/* Prevent jitter by ensuring the hero section keeps some height when pinned */
/* Removed override to allow fixed hero height */

.hero-host-cta {
    margin-top: 2px;
    margin-bottom: 20px;
    position: relative;
    top: 2px;
    left: -56px;
    font-size: 14px;
    color: #ffffff !important;
    opacity: 1;
    transition: opacity 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); /* Added subtle shadow for readability on light backgrounds */
}
.hero-host-cta a {
    color: #ffffff !important;
    font-weight: 700;
    text-decoration: underline;
}
.hero-search-wrapper.pinned .hero-host-cta {
    display: none;
}

.search-flex-container {
    display: flex;
    align-items: center;
    justify-content: center; /* Center items together */
    gap: 12px; /* Tight, intentional gap */
    width: auto; /* Don't force 100% width */
    max-width: none;
    margin: 0 auto;
}
.search-lozenge {
    flex: 0 1 auto; /* Don't force expansion */
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 4px 12px 4px 20px;
    min-height: 56px;
    width: 600px; /* Fixed width for the lozenge on desktop */
    box-shadow: var(--shadow-md);
}
.filter-pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 0;
}
.filter-pill-btn:hover {
    border-color: var(--primary);
    background: #fdf9f3;
}
.filter-pill-btn i {
    width: 18px;
    height: 18px;
    pointer-events: none; /* Ensure icon doesn't steal clicks */
}
.search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}
.search-input-group i {
    width: 20px; height: 20px;
}
.search-input-group input {
    border: none;
    outline: none;
    font-size: 16px;
    width: 100%;
    font-family: inherit;
    color: var(--text-main);
}
.search-btn {
    background-color: var(--primary);
    color: white;
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-btn:hover {
    background-color: var(--primary-dark);
}
.search-btn .desktop-text { display: flex; align-items: center; gap: 8px; }
.search-btn .mobile-text { display: none; }

/* Animated Scenery Strip */
.animated-scenery-strip {
    width: 100%;
    height: 30px; 
    background-color: transparent;
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}
.scenery-svg {
    width: auto;
    height: 100%;
    min-width: 1200px; /* Force the scene to stay large */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
}

/* Animations */
@keyframes sway {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(1.5deg); } /* Reduced for a gentler sway */
}
.swaying-tree {
    transform-origin: bottom center;
    /* Animation removed as requested */
}

.running-dog {
    transform-origin: center;
    cursor: pointer;
    transition: transform 1.5s ease-in-out; /* Smooth roaming transitions */
}

.running-dog.flipped {
    /* No JS-based flip needed if we handle it in roaming logic */
}

/* Enhanced dog animations */
.dog-leg {
    animation: walk 0.3s infinite ease-in-out;
    transform-box: fill-box;
    transform-origin: top center;
}
.back-leg { animation-delay: 0.15s; }

.dog-tail {
    animation: wag 0.2s infinite ease-in-out;
    transform-box: fill-box;
    transform-origin: left center;
}

.dog-head {
    animation: bob 0.6s infinite ease-in-out;
    transform-box: fill-box;
    transform-origin: bottom left;
}

@keyframes walk {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

@keyframes wag {
    0%, 100% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
}

@keyframes bob {
    0%, 100% { transform: rotate(-2deg); }
    50% { transform: rotate(2deg); }
}

/* Filters Dropdown Styles */
.filters-dropdown-wrapper {
    position: relative;
}
.filters-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    z-index: 5000;
    display: none;
    flex-direction: column;
    animation: dropdownFade 0.2s ease-out;
}
@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}
.dropdown-header span { font-weight: 700; font-size: 14px; color: var(--text-main); }
.close-dropdown { background: none; border: none; font-size: 20px; cursor: pointer; color: #999; }

.filters-grid.smaller-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    max-height: 320px;
    overflow-y: auto;
}
.modal-filter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.modal-filter-item:hover {
    border-color: var(--primary);
    background: #fdf9f3;
}
.modal-filter-item.active {
    border-color: var(--primary);
    background: #fdf9f3;
    box-shadow: 0 0 0 1px var(--primary);
}
.modal-filter-item i { width: 18px; height: 18px; color: #555; }
.modal-filter-item span { font-size: 10px; font-weight: 600; color: var(--text-main); }
.modal-filter-item.active i, .modal-filter-item.active span { color: var(--primary); }

.dropdown-footer {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}
.clear-btn { background: none; border: none; font-size: 12px; font-weight: 600; color: #666; cursor: pointer; padding: 4px 8px; }
.clear-btn:hover { color: var(--text-main); }
.apply-btn { padding: 6px 16px !important; font-size: 12px !important; border-radius: 8px !important; }

/* Mobile Dropdown Fix */
@media (max-width: 768px) {
    .filters-dropdown-wrapper {
        position: static; /* Let dropdown position relative to a larger container if needed */
    }
    .filters-dropdown {
        position: absolute;
        top: calc(100% + 12px);
        right: 10px; /* Shift in from edge */
        width: calc(100vw - 40px); /* Responsive width */
        max-width: 320px;
        z-index: 99999 !important; /* Ensure it's above everything */
        max-height: 70vh;
    }
}

/* Modal Overrides for visibility */
.modal-overlay .close-modal.circle {
    background: white !important;
    color: var(--text-main) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 1px solid var(--border) !important;
    cursor: pointer !important;
}
.modal-overlay .close-modal.circle i {
    width: 20px !important;
    height: 20px !important;
}
@media (max-width: 768px) {
    .listings-container {
        padding-top: 20px;
    }
}
.filter-container {
    position: static;
    border-bottom: 1px solid var(--border);
}
.filter-item.active {
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
}
.filter-item.active i {
    color: var(--primary);
}

/* Listing Cards - Desktop Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.listing-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: white;
    transition: box-shadow 0.2s;
}
.listing-card:hover {
    box-shadow: var(--shadow-md);
}

.card-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-bg-icon {
    width: 64px;
    height: 64px;
    color: rgba(255,255,255,0.6);
    stroke-width: 1.5;
}
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.favorite-btn i { width: 16px; height: 16px; color: var(--text-main); }

.card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}
.card-location {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.card-bottom-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.price-value {
    font-size: 15px;
    color: var(--text-main);
}
.price-unit {
    font-weight: 400;
    color: var(--text-muted);
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Mobile Overrides */
@media (max-width: 900px) {
    .listings-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Header Mobile Adjustments */
    .header {
        transition: background 0.3s ease, border-bottom 0.3s ease;
    }
    
    body.is-home .header:not(.scrolled) {
        background: transparent !important;
        border-bottom: 1px solid transparent !important;
    }

    body.is-home .header:not(.scrolled) .logo-text,
    body.is-home .header:not(.scrolled) .logo-accent {
        color: white !important;
    }

    body.is-home .header:not(.scrolled) .profile-circle-btn {
        border-color: rgba(255,255,255,0.4) !important;
        background: rgba(0,0,0,0.1) !important;
    }
    
    body.is-home .header:not(.scrolled) .profile-circle-btn i {
        color: white !important;
    }

    .header.scrolled {
        background: white !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    }
    
    .logo-text-wrapper { display: flex !important; }
    .logo-text { display: block !important; color: var(--primary-dark) !important; }
    .logo-accent { color: var(--primary) !important; }
    .logo-tagline { display: none; }
    
    .hero-title { 
        font-size: 32px !important; 
        min-height: 80px !important; /* Stabilize mobile height */
    }
    .hero-subtitle, .hero-tagline { font-size: 15px !important; }
    
    .search-btn .desktop-text { display: none; }
    .search-btn .mobile-text { display: block; }
    
    /* Listing Cards - Row Layout */
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    /* Bottom Nav icons */
    .bottom-nav {
        background: white;
        border-top: 1px solid var(--border);
    }
    .nav-item.active {
        color: var(--primary);
    }

    /* --- MOBILE HERO FULL WIDTH FIX --- */
    #main-content {
        min-height: 80vh; /* Prevent footer jump */
    }
    #main-content, .hero-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
    }

    /* Force full-width breakout for hero background */
    .hero-section {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
    }

    /* Trust Banner Mobile Fix */
    .trust-banner-container {
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 0 12px !important;
        justify-content: space-between !important;
    }
    .trust-banner-item {
        font-size: 11px !important;
        gap: 4px !important;
        text-align: center;
        flex: 1;
        justify-content: center;
    }
    .trust-banner-item i {
        width: 14px !important;
    }
    .trust-banner-item span {
        display: inline-block;
        white-space: nowrap;
    }
    .hero-section {
        width: 100% !important;
        margin: 0 !important;
        margin-top: calc(-1 * var(--nav-height)) !important; /* Force overlay behind transparent header on mobile too */
        position: relative !important;
        overflow: visible !important; /* Allow filters dropdown to overflow */        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        height: auto !important;
        min-height: 480px !important; 
        padding: 150px 20px 40px !important; /* Set to exactly 40px as requested */
        gap: 12px !important;
    }

    .hero-parallax-bg {
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important; /* Disable parallax on mobile to fix scaling */
    }

    /* Ensure text and search stay centered and padded */
    .hero-content {
        padding: 0 20px !important;
        width: 100% !important;
        /* Transform managed by JS for unified upward scroll */
    }

    .hero-search-wrapper {
        margin-top: 8px !important; 
        padding: 0 !important;
        position: relative !important;
        z-index: 100 !important;
        background-color: transparent !important;
        width: 90% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Perfect right-padding for the smaller mobile button */
    .search-lozenge {
        padding-right: 12px !important;
    }
    
    .hero-search-wrapper.pinned {
        position: fixed !important;
        top: 80px !important; 
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        background-color: white !important;
        z-index: 2900 !important;
        padding: 8px 16px !important;
        height: 64px !important; /* Slightly shorter on mobile */
        border-radius: 0 !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        border: none !important;
        border-bottom: 1px solid var(--border) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-search-wrapper.pinned ~ #main-content .filter-wrapper,
    #hero-search-wrapper.pinned ~ .filter-wrapper,
    .hero-search-wrapper.pinned + #filter-wrapper {
        top: 60px !important; 
    }

    .search-input-group input {
        font-size: 14px !important;
    }
    
    .hero-search-wrapper.pinned .search-btn::after {
        display: none; /* Icon only on mobile header */
    }

    .hero-section::after {
        display: none !important; /* Remove the background fade as requested */
    }
    .hero-content {
        position: relative !important;
        z-index: 10 !important; /* Text above the dog and fade */
    }
    .search-bar-wrapper.hero-search-wrapper {
        position: relative !important;
        z-index: 20 !important; /* Search bar above everything */
    }
    .hero-dog-container {
        display: flex !important; /* Dog shown on mobile as requested */
        width: 340px !important;
        height: auto !important;
        bottom: -10px !important;
        right: -20px !important;
        opacity: 1 !important;
    }
    .search-bar-wrapper.hero-search-wrapper:not(.pinned) {
        transform: none !important;
    }
    .hero-host-cta {
        color: #FFFFFF !important; 
        font-weight: 700 !important; 
        margin-top: 8px !important;
        top: -2px !important;
        left: 0 !important;
        font-size: 14px !important;
        display: block !important;
        text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    }
    .hero-host-cta a {
        color: var(--primary) !important;
        text-decoration: underline !important;
        font-weight: 800 !important;
    }
    .search-flex-container {
        gap: 8px !important;
        padding: 0 12px !important;
        width: 100% !important;
        z-index: 20 !important; /* Above the dog */
    }
    .filter-pill-btn {
        height: 52px !important; /* Match search lozenge height more closely */
        width: 52px !important;
        padding: 0 !important;
        border-radius: 12px !important; /* Squircle style for better presence */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
        background: white !important;
    }
    .filter-pill-btn i {
        width: 24px !important;
        height: 24px !important;
    }
    .filter-pill-btn span {
        display: none !important; /* Icon only on mobile */
    }

    .near-me-btn span {
        display: none !important; /* Icon only on mobile to save space */
    }
    
    .near-me-btn {
        width: 44px !important;
        padding: 0 !important;
        justify-content: center !important;
    }
}

/* Staggered load animation for listings */
.listing-card:nth-child(1) { transition-delay: 0.05s; }
.listing-card:nth-child(2) { transition-delay: 0.1s; }
.listing-card:nth-child(3) { transition-delay: 0.15s; }
.listing-card:nth-child(4) { transition-delay: 0.2s; }
.listing-card:nth-child(5) { transition-delay: 0.25s; }
.listing-card:nth-child(6) { transition-delay: 0.3s; }
.listing-card:nth-child(7) { transition-delay: 0.35s; }
.listing-card:nth-child(8) { transition-delay: 0.4s; }
.listing-card:nth-child(n+9) { transition-delay: 0.45s; }


/* Staggered load animation for listings */
.listing-card:nth-child(1) { transition-delay: 0.05s; }
.listing-card:nth-child(2) { transition-delay: 0.1s; }
.listing-card:nth-child(3) { transition-delay: 0.15s; }
.listing-card:nth-child(4) { transition-delay: 0.2s; }
.listing-card:nth-child(5) { transition-delay: 0.25s; }
.listing-card:nth-child(6) { transition-delay: 0.3s; }
.listing-card:nth-child(7) { transition-delay: 0.35s; }
.listing-card:nth-child(8) { transition-delay: 0.4s; }
.listing-card:nth-child(n+9) { transition-delay: 0.45s; }



/* --- NEW HOST PAGE STYLES --- */
.new-host-page-wrapper {
  --color-primary: #2D5016;
  --color-primary-light: #4A7C2F;
  --color-accent: #E8863A;
  --color-accent-hover: #D4732A;
  --color-bg: #FAFAF7;
  --color-bg-dark: #1C2E0F;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #5C5C5C;
  --color-text-light: #F5F0E8;
  --color-border: #E0DDD6;
  --color-free-bg: #F0F7E8;
  --color-free-text: #2D5016;
  --color-danger-text: #8B1A1A;
  --color-danger-bg: #FEF2F2;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
}

/* --- Premium Gallery & Ken Burns Effect --- */
.premium-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.main-image-viewport {
    width: 100%;
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    cursor: zoom-in;
    box-shadow: var(--shadow-md);
}

.main-image-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.ken-burns {
    animation: kenburns 20s infinite alternate linear;
}

@keyframes kenburns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.15) translate(-2%, -2%); }
}

.thumbnail-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none; /* Firefox */
}

.thumbnail-row::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.thumbnail-item {
    width: 100px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.thumbnail-item.active {
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .main-image-viewport {
        height: 280px;
    }
    .thumbnail-item {
        width: 80px;
        height: 60px;
    }
}

/* --- Hero Rotating Animations --- */
.hero-title {
    perspective: 1000px;
}

.hero-title span, .hero-title .word {
    display: inline-block;
    white-space: pre-wrap;
}

/* 1. Shudder Release */
@keyframes anim-shudder {
    0% { transform: translateX(0); }
    10% { transform: translateX(-8px); }
    20% { transform: translateX(8px); }
    30% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    50% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    70% { transform: translateX(0); }
    100% { transform: translateX(0); }
}
.anim-shudder {
    animation: anim-shudder 0.8s cubic-bezier(.36,.07,.19,.97) both;
}

/* 2. Stamp In */
@keyframes anim-stamp {
    0% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.anim-stamp .word {
    animation: anim-stamp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

/* 3. Drift In */
@keyframes anim-drift {
    0% { transform: translateX(30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
.anim-drift {
    animation: anim-drift 0.8s ease-out both;
}

/* 4. Streak In */
@keyframes anim-streak {
    0% { transform: translateX(-120px); opacity: 0; filter: blur(10px); }
    60% { transform: translateX(10px); opacity: 1; filter: blur(0); }
    100% { transform: translateX(0); opacity: 1; }
}
.anim-streak {
    animation: anim-streak 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* 5. Pop Expand */
@keyframes anim-pop {
    0% { transform: scale(0.3); opacity: 0; }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}
.anim-pop {
    animation: anim-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* 6. Wave Cascade */
@keyframes anim-wave {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.anim-wave .word {
    animation: anim-wave 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* 7. 3D Flip */
@keyframes anim-flip {
    0% { transform: rotateX(90deg); opacity: 0; }
    100% { transform: rotateX(0deg); opacity: 1; }
}
.anim-flip {
    animation: anim-flip 0.6s ease-out both;
    transform-origin: center top;
}

/* 8. Split and Close */
@keyframes anim-split-left {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
@keyframes anim-split-right {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}
.anim-split-left { animation: anim-split-left 0.6s ease-out both; }
.anim-split-right { animation: anim-split-right 0.6s ease-out both; }

.hero-title .word {
    display: inline-block;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --- Directory View --- */
.directory-view {
    padding: 120px 24px 60px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.directory-header {
    margin-bottom: 48px;
    text-align: center;
}

.directory-title {
    font-size: 42px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.directory-subtitle {
    font-size: 18px;
    color: #64748b;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.directory-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.directory-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.directory-card i, .directory-flag-container {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 20px;
    background: #fff7ed;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
}

.directory-flag-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.directory-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.directory-card p {
    font-size: 14px;
    color: #64748b;
}

.directory-breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 32px;
    font-size: 14px;
    color: #64748b;
}

.directory-breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.directory-breadcrumbs span {
    opacity: 0.5;
}
/* --- Embed Mode --- */
body.embed-mode {
    background: transparent !important;
    min-height: auto;
    padding: 0 !important;
}

body.embed-mode #header,
body.embed-mode footer,
body.embed-mode .bottom-nav,
body.embed-mode #home-view,
body.embed-mode #listings-grid,
body.embed-mode #filters-container,
body.embed-mode .mobile-search-trigger {
    display: none !important;
}

.embed-widget-container {
    background: white;
    border-radius: 24px;
    overflow: hidden;
}

body.embed-mode .booking-card-sticky {
    position: relative !important;
    top: 0 !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
}

.listing-sidebar {
    position: relative;
}

@media (max-width: 1024px) {
    .listing-body-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .listing-sidebar {
        order: -1; /* Move booking form to top on mobile detail view if needed, but usually it's at bottom or sticky */
    }
}

/* --- Modern Benefits Section (Unified) --- */
.trust-banner {
    background: #ffffff;
    padding: 20px 0 30px 0;
    border-bottom: 1px solid var(--border);
}

.trust-banner-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    padding: 0 24px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.3s ease;
}

.trust-icon-circle {
    background: #EAF5D8;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon-circle i {
    color: #1A1A1A;
    width: 24px;
    height: 24px;
}

.trust-text h3 {
    margin: 0 0 4px 0;
    font-size: 17px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.2;
}

.trust-desc {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

@media (max-width: 991px) {
    .trust-banner {
        padding: 15px 0 !important;
    }
    .trust-banner-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 0 !important;
        padding: 0 10px !important;
        grid-template-columns: none !important;
    }
    .desktop-only-benefit {
        display: none !important;
    }
    .trust-item {
        flex: 1 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 0 4px !important;
        position: relative !important;
    }
    /* Vertical Divider */
    .trust-item:not(:last-child)::after {
        content: '' !important;
        position: absolute !important;
        right: 0 !important;
        top: 15% !important;
        height: 70% !important;
        width: 1px !important;
        background: rgba(0,0,0,0.1) !important;
        display: block !important;
    }
    .trust-icon-circle {
        width: 42px !important;
        height: 42px !important;
    }
    .trust-icon-circle i {
        width: 18px !important;
        height: 18px !important;
    }
    .trust-text h3 {
        font-size: 11px !important;
        font-weight: 800 !important;
        max-width: 70px !important;
        white-space: normal !important;
        text-align: left !important;
    }
    .trust-desc {
        display: none !important;
    }
}

/* --- Global Loader --- */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-main);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
.global-loader.active {
    opacity: 1;
    pointer-events: all;
}
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.loader-logo-container {
    animation: pulse-grow 1.5s infinite ease-in-out;
    color: var(--primary);
}
.loader-paw {
    width: 48px;
    height: 48px;
}
.loader-text {
    text-align: center;
    animation: fade-in-up 0.5s ease-out;
}
@keyframes pulse-grow {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

html.dark-mode .global-loader {
    background-color: #121212;
}

/* --- Refined Host Page Styles --- */
.host-feature-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.host-feature-block {
    padding: 120px 24px;
    position: relative;
    overflow: hidden;
}

.host-feature-block.alt-bg {
    background: #f8fafc;
}

.host-feature-block .block-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.host-feature-block .block-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.host-feature-block .block-badge.green { background: #f0fdf4; color: #166534; }
.host-feature-block .block-badge.blue { background: #eff6ff; color: #1e40af; }
.host-feature-block .block-badge.purple { background: #f5f3ff; color: #5b21b6; }
.host-feature-block .block-badge.red { background: #fff1f2; color: #be123c; }

.host-feature-block .block-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0f172a;
}

.host-feature-block .block-desc {
    font-size: 20px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 60px;
    max-width: 800px;
}

.host-feature-block .feature-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.host-feature-block .hf-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 32px;
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    position: relative;
}

.host-feature-block .hf-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.host-feature-block .hf-item > span {
    font-size: 32px;
    flex-shrink: 0;
    background: #f8fafc;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.host-feature-block .hf-item div strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
    color: #1e293b;
}

.host-feature-block .hf-item div p {
    margin: 0;
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

.hf-free-badge {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: #f0fdf4;
    color: #166534;
    font-size: 7px;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid #dcfce7;
    pointer-events: none;
    line-height: 1;
}

.host-feature-block .dashboard-preview {
    margin-top: 64px;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 32px 64px -16px rgba(0,0,0,0.2);
    background: #0f172a;
    padding: 12px;
}

.host-feature-block .dashboard-preview img {
    width: 100%;
    display: block;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .host-feature-block {
        padding: 80px 24px;
    }
    .host-feature-block .block-title {
        font-size: 36px;
    }
    .host-feature-block .block-desc {
        font-size: 18px;
    }
    .host-feature-block .hf-item {
        padding: 24px;
    }
}

/* Scroll Reveals */
.host-feature-block, .hf-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.host-feature-block.revealed, .hf-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Responsive Footer Layout */
.footer-row-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1100px;
    flex-wrap: wrap;
    gap: 32px;
    text-align: left;
}

.footer-info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 280px;
}

.footer-info-block .logo {
    justify-content: flex-start;
}

.footer-badge-block {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex: 0 0 auto;
    min-width: 280px;
}

@media (max-width: 768px) {
    .footer-row-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }
    .footer-info-block {
        align-items: center;
    }
    .footer-info-block .logo {
        justify-content: center;
    }
    .footer-badge-block {
        justify-content: center;
    }
}
