/* ==========================================================================
   Components (#258): header and navigation, layout, banner, profile
   cards, form fields, buttons, footer, search bar, age verification modal.
   Loaded on every page, after base.css and before style.css.
   ========================================================================== */

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */

/* Remove default list styling from header */
header li {
    list-style: none;
}

/* --------------------------------------------------------------------------
   4.1 Header Container
   -------------------------------------------------------------------------- */

.header-top-bar {
    width: 100%;
    background: var(--secondary-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-medium);
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--gold-opac);
}

/* --------------------------------------------------------------------------
   4.2 Logo
   -------------------------------------------------------------------------- */

.header-top-bar .logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-top-bar .logo a {
    display: flex;
    align-items: center;
}

.header-top-bar .logo img {
    height: 55px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-normal);
}

.header-top-bar .logo img:hover {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   4.3 Desktop Navigation
   -------------------------------------------------------------------------- */

/* Navigation Container */
.all-drop-down {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    padding: 0;
    z-index: 3;
}

/* Mobile-only elements hidden on desktop */
.mobile-menu-close,
.mobile-menu-section-header {
    display: none;
}

/* Desktop: push Login/Advertise to right side (after nav links) */
.all-drop-down .subnav-menu-wrapper {
    order: 99;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    position: relative;
    padding: 0;
    float: none;
    display: flex;
    align-items: center;
}

/* Main Navigation Links */
/* Plain text links, not boxes (#140). The only boxed header controls are the
   Advertise/Login buttons and the round icon buttons. */
.nav-links a {
    display: block;
    padding: 15px 12px;
    color: var(--light-gray);
    font-weight: 500;
    font-size: var(--fs-sm);
    background: transparent;
    border: 0;
    border-radius: 0;
    transition: color var(--transition-normal);
}

.nav-links a:hover {
    color: var(--gold);
}

/* Active Page Styling: gold text with an underline */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
    color: var(--gold);
    box-shadow: inset 0 -2px 0 var(--gold);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   4.4 Dropdown Menus
   -------------------------------------------------------------------------- */

/* Dropdown Indicator Arrow */
.nav-links .menu-item-has-children > a::after {
    content: "\25BC";
    font-size: var(--fs-2xs);
    margin-left: 0.5rem;
    transition: transform var(--transition-normal);
}

.nav-links .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Menu Item Container */
.menu-item {
    position: relative;
}

/* Submenu/Dropdown Container */
.sub-menu {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 0;
    min-width: 250px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 999;
}

.sub-menu li {
    padding: 0;
    width: 100%;
    float: none;
}

/* Show Dropdown on Hover */
.menu-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Extend hover area to prevent dropdown from disappearing */
.menu-item::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
    z-index: 998;
}

/* Submenu Links */
.nav-links .sub-menu li a {
    width: 100%;
    margin: 0;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    font-weight: 400;
    color: var(--light-gray);
}

.sub-menu li:hover {
    background: var(--elevated-bg);
}

.sub-menu li:hover a {
    color: var(--champagne);
    transform: translateX(10px);
    background: transparent;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   4.5 Hamburger Menu Icon
   -------------------------------------------------------------------------- */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    user-select: none;
    position: relative;
    z-index: 1001;
    width: 48px;
    height: 48px;
}

/* Hamburger hover effect handled via span:hover below */

.hamburger span {
    display: block;
    width: 32px;
    height: 4px;
    background: var(--champagne);
    border-radius: 2px;
    transition: all var(--transition-normal);
    transform-origin: center;
}

.hamburger:hover span {
    background: var(--gold);
}

/* Hamburger Animation When Active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* --------------------------------------------------------------------------
   4.6 Sub Navigation (Login/Register/Icons)
   -------------------------------------------------------------------------- */


.header-top-bar .subnav-menu-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0;
    float: none;
    position: static;
}

.header-top-bar .subnav-menu {
    display: flex;
    align-items: center;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
	margin-left: 50px;
}

.header-top-bar .subnav-menu li {
	padding-left: 0;
	float: none;
	display: flex;
	align-items: center;
}

/* Neutralize parent theme float:left on subnav buttons/icons */
.header-top-bar .subnav-menu li.subnav-menu-btn a,
.header-top-bar .subnav-menu li.subnav-menu-icon a {
    float: none;
}

/* Icon Links (Profile, Messages, etc.) */
.header-top-bar .subnav-menu li.subnav-menu-icon a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    border-radius: 50%;
    padding: 0.5rem;
    transition: all var(--transition-normal);
    background: rgba(212, 175, 55, 0.1);
}

.header-top-bar .subnav-menu li.subnav-menu-icon a:hover {
    background: var(--gold);
    color: var(--black-rich);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.header-top-bar .subnav-menu li.subnav-menu-btn a {
    background: var(--gradient-champagne);
    border: 2px solid var(--gold);
    color: var(--black-rich);
    border-radius: var(--radius-full); /* pills (#245) */
    padding: 12px 20px;
    font-weight: 600;
    font-size: var(--fs-sm);
    line-height: 1.4;
    letter-spacing: 0.3px;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
    min-width: fit-content;
    box-shadow: var(--shadow-gold);
    cursor: pointer;
}
		
/* Header buttons (#140): Advertise is the primary action (the gold
   .btn-primary look, from the base rule above); Login/Logout are secondary
   (the gold-outline .btn-secondary look). */
.header-top-bar .subnav-menu li.subnav-menu-btn.login-btn a,
.header-top-bar .subnav-menu li.subnav-menu-btn.logout-btn a {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    box-shadow: none;
}

.header-top-bar .subnav-menu li.subnav-menu-btn.login-btn a:hover,
.header-top-bar .subnav-menu li.subnav-menu-btn.logout-btn a:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 2px solid var(--gold-light);
    transform: translateY(-1px);
    box-shadow: none;
}

/* 1025-1199px: the full desktop header (logo, four links, two buttons, three
   icons) was wider than the viewport, so the page scrolled sideways (#140). */
@media (min-width: 1025px) and (max-width: 1199px) {
    .header-top-bar .logo img {
        height: 44px;
        max-width: 256px;
    }

    .header-top-bar .subnav-menu {
        margin-left: 16px;
    }

    .nav-links a {
        padding: 15px 8px;
    }
}

/* --------------------------------------------------------------------------
   4.7 WordPress Admin Bar Offset (logged-in users)
   -------------------------------------------------------------------------- */

/* When WP admin bar is present, offset the sticky header */
body.admin-bar .header-top-bar {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .header-top-bar {
        top: 46px;
    }
}

@media (max-width: 1024px) {
	.header-top-bar .subnav-menu {
		margin-left: 10px;
	}
	
	.nav-links a {
		font-size: var(--fs-xs);
		padding: 8px;
	}
	
	.header-top-bar .subnav-menu li.subnav-menu-btn a {
		padding: 8px;
		font-size: var(--fs-xs);
	}
}

@media (max-width: 768px) {
    /* ----------------------------------------------------------------------
       HEADER - MOBILE
       ---------------------------------------------------------------------- */
    
    .header-top-bar {
        height: 80px;
        padding: 0 15px;
        position: sticky;
        top: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        z-index: 1000;
        background: var(--secondary-bg);
        overflow: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .header-top-bar .logo {
        flex: 0 1 auto; /* Allow logo to shrink if needed */
        min-width: 0;
        max-width: 70%; /* Don't let logo take more than 70% */
    }
    
    .header-top-bar .logo img {
        height: 48px;
        width: auto;
        max-width: 280px;
        object-fit: contain;
    }
    
    /* Subnav hidden by default on mobile (shown by 960px override) */
    .subnav-menu-wrapper {
        display: none;
    }

    /* Show Hamburger Menu */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        padding: 8px;
        width: 48px;
        height: 48px;
    }

    /* Navbar container for mobile */
    .navbar {
        position: static;
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    /* Mobile menu close button hidden on desktop */
    .mobile-menu-close {
        display: none;
    }

    /* Mobile section headers hidden on desktop */
    .mobile-menu-section-header {
        display: none;
    }

    /* Reset Navigation for Mobile */
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
        align-items: stretch;
        gap: 0;
        min-height: min-content;
    }
    
    .nav-links li {
        width: 100%;
        margin: 0;
        display: block;
        float: none;
    }
    
    .nav-links a {
        width: calc(100% - 40px);
        text-align: left;
        padding: 15px 20px;
        margin: 5px 20px;
        display: block;
        border-radius: var(--radius-md);
        font-size: var(--fs-md);
        transition: all 0.2s ease;
        transform: none;
    }
    
    .nav-links a:hover,
    .nav-links a:active {
        transform: none;
        margin-left: 20px;
    }
    
    /* ----------------------------------------------------------------------
       MOBILE DROPDOWN FUNCTIONALITY - FULLY WORKING
       ---------------------------------------------------------------------- */
    
    /* Dropdown Arrow Indicator for Mobile */
    .menu-item-has-children > a {
        position: relative;
        padding-right: 45px !important;
    }
    
    .menu-item-has-children > a::after {
        content: '\25BC';
        position: absolute;
        right: 35px;
        top: 50%;
        transform: translateY(-50%);
        font-size: var(--fs-2xs);
        margin-left: 0;
        transition: transform var(--transition-normal);
    }
    
    /* Rotate Arrow When Dropdown is Active */
    .menu-item.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* Mobile Submenu Styling */
    .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        margin: 0 20px;
        border-radius: 0;
        min-width: auto;
        width: calc(100% - 40px);
        overflow: visible;
        max-height: none;
        padding: 0;
        border: none;
    }
    
    /* Show Submenu When Parent Has Active Class */
    .menu-item.active > .sub-menu {
        display: block;
        padding: 10px 0;
        animation: slideDownSubmenu 0.3s ease-out;
    }
    
    @keyframes slideDownSubmenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .sub-menu li {
        width: 100%;
        margin: 0;
    }
    
    /* Mobile Submenu Links */
    .sub-menu li a {
        width: calc(100% - 40px);
        margin: 2px 20px;
        padding: 12px 15px;
        background: var(--champagne-subtle);
        border-radius: 6px;
        font-size: var(--fs-sm);
        border: 1px solid rgba(212, 175, 55, 0.15);
    }
    
    .sub-menu li a:hover,
    .sub-menu li a:active {
        margin-left: 20px;
        background: var(--gold);
        color: var(--black-rich);
        transform: none;
    }
    
    /* Navigation links - adequate spacing */
    .nav-links a,
    .menu-item a,
    .subnav-menu a {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding: 12px 16px;
    }

}

@media (max-width: 480px) {
    /* Header Adjustments for Small Mobile */
    .header-top-bar {
        height: 70px;
        padding: 0 10px;
    }
    
    .header-top-bar .logo img {
        height: 40px;
        width: auto;
        max-width: 220px;
    }
    
    /* Hamburger stays accessible at smaller screens */
    .hamburger {
        width: 48px !important;
        height: 48px !important;
        padding: 8px !important;
        gap: 5px !important;
    }

    .hamburger span {
        width: 28px !important;
        height: 3px !important;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(8px) !important;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px) !important;
    }
    
    /* Mobile Menu Adjustments */
    .all-drop-down {
        top: 70px;
        max-height: calc(100vh - 70px);
    }
    
    .nav-links a {
        width: calc(100% - 20px);
        margin: 5px 10px;
        padding: 12px 15px;
        font-size: var(--fs-base);
    }
    
    .menu-item-has-children > a::after {
        right: 25px;
    }
    
    .sub-menu {
        width: calc(100% - 20px);
        margin: 0 10px;
    }
    
    .sub-menu li a {
        width: calc(100% - 30px);
        margin: 2px 15px;
        padding: 10px 12px;
    }
    
}

/* ==========================================================================
   PREVENT BACKGROUND SCROLL - FIXED VERSION
   ========================================================================== */

body.menu-open {
    overflow: hidden;
    position: relative;
}

/* Ensure mobile menu stays scrollable */
body.menu-open .all-drop-down {
    overflow-y: auto;
}

/* ==========================================================================
   CRITICAL MOBILE DROPDOWN FIX - OVERRIDES PARENT THEME CONFLICTS
   ========================================================================== */

@media (max-width: 768px) {
    .menu-item.active > .sub-menu,
    .menu-item.open > .sub-menu {
        display: block !important;
        max-height: 1000px !important;
        padding: 10px 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        overflow: visible !important;
    }
    
    .nav-links .sub-menu {
        transition: max-height 0.3s ease, padding 0.3s ease !important;
    }
    
    .menu-item.active .sub-menu li,
    .menu-item.open .sub-menu li {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ==========================================================================
   6. CONTENT LAYOUT
   ========================================================================== */

/* --------------------------------------------------------------------------
   6.1 Body & Sidebar Structure
   -------------------------------------------------------------------------- */

/* Remove default backgrounds and borders */
.sidebar-left .states,
.bodybox,
.widgetbox-wrapper,
.body,
body {
    background-color: transparent;
    border: none;
}

/* Content Wrapper - Better Width Utilization */
.contentwrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    float: none;
    overflow: hidden;
}

/* Override parent theme .all container if present */
.all,
.all-body {
    max-width: 100%;
    width: 100%;
}

/* Main Content Area */
.body {
    margin: 0;
    width: 75%;
    float: left;
    padding-right: 30px;
}

/* Right Sidebar */
.sidebar-right {
    margin-left: 0;
    float: left;
    width: 25%;
}

/* --------------------------------------------------------------------------
   6.2.1 Homepage Full Width Layout
   Hide sidebar on homepage, make content full width
   -------------------------------------------------------------------------- */

body.home .body,
body.blog .body,
body.page-template-front-page .body,
body.front-page .body,
body.page-template-default.page .body {
    width: 100% !important;
    padding-right: 0 !important;
    float: none !important;
}

body.home .sidebar-right,
body.blog .sidebar-right,
body.page-template-front-page .sidebar-right,
body.front-page .sidebar-right,
body.page-template-default.page .sidebar-right {
    display: none !important;
}

/* The homepage profile grid is a CSS grid (.ae-home-grid, section 16), so
   the float column widths that used to sit here are gone (#245). */

/* --------------------------------------------------------------------------
   6.2.2 Logged-Out Full Width Layout
   Match homepage alignment on taxonomy & single profile pages when not signed in
   -------------------------------------------------------------------------- */

body.logged-out .body {
    width: 100% !important;
    padding-right: 0 !important;
    float: none !important;
}

body.logged-out .sidebar-right,
body.logged-out .sidebar-left {
    display: none !important;
}

/* Profile grid on logged-out pages - match homepage 5-column layout */
body.logged-out .girl {
    width: calc(20% - 16px);
}

@media (max-width: 1200px) {
    body.logged-out .girl {
        width: calc(25% - 16px);
    }
}

@media (max-width: 992px) {
    body.logged-out .girl {
        width: calc(33.333% - 16px);
    }
}

@media (max-width: 768px) {
    body.logged-out .girl {
        width: calc(50% - 8px);
    }
}

@media (max-width: 400px) {
    body.logged-out .girl {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   6.2 Section Containers
   -------------------------------------------------------------------------- */

.bodybox {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
    color: var(--off-white);
}

/* --------------------------------------------------------------------------
   6.3 Page Titles
   -------------------------------------------------------------------------- */

/* Section Headings */
.bodybox h2.l,
.bodybox h3 {
    font-family: var(--font-heading);
    font-size: clamp(var(--fs-2xl), 3vw, var(--fs-3xl));
    font-weight: 700;
    color: var(--champagne);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(244, 232, 193, 0.1);
    position: relative;
}

/* Accent Line Under Headings */
.bodybox h2.l::after,
.bodybox h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 999px;
}

/* Main Page Title */
.bodybox h1,
.pagetitle {
    font-family: var(--font-heading);
    font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
    font-weight: 700;
    color: var(--champagne);
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 1024px) { /* lint-ok: section 14.1 rules re-wrapped per component (#258) */
    .contentwrapper {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .body {
        width: 70%;
        padding-right: 20px;
    }
    
    .sidebar-right {
        width: 30%;
    }
}


/* Large Desktop - Better Width Utilization */
@media (min-width: 1400px) {
    .contentwrapper {
        max-width: 1800px;
    }
}

/* Extra Large Desktop */
@media (min-width: 1920px) {
    .contentwrapper {
        max-width: 2000px;
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .body {
        width: 100%;
        float: none;
    }
    
    .sidebar-right {
        width: 100%;
        float: none;
        margin-left: 0;
    }
    
    .bodybox {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
}

/* ==========================================================================
   15. LAYOUT ALIGNMENT FIX
   ========================================================================== */

/* --------------------------------------------------------------------------
   15.1 Parent Theme Container Overrides
   -------------------------------------------------------------------------- */

.all,
.all-body,
body .all,
body .all-body {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Full-width wrappers - prevent white bars on resize */
header,
footer {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.contentwrapper {
    width: 100%;
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   15.2 Header Alignment
   -------------------------------------------------------------------------- */

.header-top-bar,
header .header-top-bar,
body header .header-top-bar {
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   15.4 Body Content Alignment - CRITICAL FIX
   -------------------------------------------------------------------------- */

.body,
div.body,
body .body {
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   15.5 Bodybox Fixes
   -------------------------------------------------------------------------- */

.bodybox,
div.bodybox,
.body .bodybox {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   15.6 Profile Grid Fixes
   -------------------------------------------------------------------------- */

.girl,
div.girl,
.bodybox .girl {
    box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   15.7 Responsive Alignment Adjustments
   -------------------------------------------------------------------------- */

@media (min-width: 1920px) {
    .header-top-bar,
    header .header-top-bar,
    body header .header-top-bar {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
    
    .body,
    div.body,
    body .body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .bodybox,
    div.bodybox {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

}

@media (max-width: 1024px) { /* lint-ok: section 14.1 rules re-wrapped per component (#258) */
    .header-top-bar,
    header .header-top-bar,
    body header .header-top-bar {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .body,
    div.body,
    body .body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .bodybox,
    div.bodybox {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

}

@media (max-width: 960px) {
    .all-body,
    div.all-body,
    body .all-body {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .sidebar-left,
    .sidebar-right,
    div.sidebar-left,
    div.sidebar-right {
        width: 100% !important;
        float: none !important;
        order: -1 !important;
        margin: 0 !important;
    }
    
    .body,
    div.body,
    body .body {
        width: 100% !important;
        float: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }
    
    .bodybox,
    div.bodybox {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .header-top-bar,
    header .header-top-bar,
    body header .header-top-bar {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .body,
    div.body,
    body .body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .bodybox,
    div.bodybox {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

}

@media (max-width: 480px) {
    .header-top-bar,
    header .header-top-bar,
    body header .header-top-bar {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .body,
    div.body,
    body .body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .bodybox,
    div.bodybox {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

}

/* ==========================================================================
   5. BANNER
   ========================================================================== */

/* --------------------------------------------------------------------------
   5.1 Main Banner
   -------------------------------------------------------------------------- */

.banner-img {
    background: var(--gradient-plum);
    height: 160px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-bottom: 3px solid var(--gold);
    padding: 20px;
    box-sizing: border-box;
}

/* Category pages: auto height to fit description text */
body.category .banner-img {
    height: auto;
    min-height: 160px;
    padding: 30px 20px 40px;
}

body.category .banner-img p {
    margin-top: 10px;
    margin-bottom: 0;
    max-width: 640px;
}

/* Banner Title */
.banner-img h1 {
    text-align: center;
    color: var(--champagne);
    font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

/* Banner Tagline */
.banner-img p {
    text-align: center;
    color: var(--off-white);
    font-size: clamp(var(--fs-base), 2.5vw, var(--fs-lg));
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.01em;
    margin: 0;
    max-width: 700px;
}

@media (max-width: 768px) {
    /* ----------------------------------------------------------------------
       OTHER MOBILE SECTIONS (Banner, Content, etc.)
       ---------------------------------------------------------------------- */
    
    .banner-img {
        height: 100px;
        background-attachment: scroll;
        padding: 15px;
    }
    
    .banner-img p {
        font-size: clamp(var(--fs-base), 4vw, var(--fs-lg));
        padding: 0 15px;
    }
    
    .coming-soon-banner div {
        width: 90%;
        padding: 1.5rem;
        margin: 20px auto;
    }
    
}

@media (max-width: 480px) {
    /* Banner Adjustments */
    .banner-img {
        height: 90px;
        padding: 10px;
    }
    
    .banner-img h1 {
        font-size: clamp(var(--fs-2xl), 5vw, var(--fs-3xl));
        margin-bottom: 0.5rem;
    }
    
    .banner-img p {
        font-size: var(--fs-base);
    }
    
}

/* ==========================================================================
   19. BANNER H1 FIX - SEO & ACCESSIBILITY IMPROVEMENT
   Fixes duplicate H1 issue by styling banner paragraph like heading
   Date Added: 2025-10-23
   ========================================================================== */

/* --------------------------------------------------------------------------
   19.1 Banner Title Styling
   -------------------------------------------------------------------------- */

/* 
 * Banner title paragraph - styled to look identical to previous H1
 * Maintains visual consistency while fixing SEO structure
 */
.banner-img .banner-title {
    text-align: center;
    color: var(--champagne);
    font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

/* --------------------------------------------------------------------------
   19.2 Main Content H1 Styling
   -------------------------------------------------------------------------- */

/* 
 * Primary page heading - now the main H1
 * Updated from H3 to H1 for proper SEO hierarchy
 */
.bodybox h1 {
    font-family: var(--font-heading);
    font-size: clamp(var(--fs-3xl), 4vw, var(--fs-4xl));
    font-weight: 700;
    color: var(--champagne);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(244, 232, 193, 0.1);
    position: relative;
    text-align: left;
}

/* Accent line under main H1 */
.bodybox h1::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 999px;
}

/* --------------------------------------------------------------------------
   19.3 H2 Subsection Styling
   -------------------------------------------------------------------------- */

/* 
 * Subsection headings - proper hierarchy under H1
 * Tours, reviews, and other subsections
 */
.bodybox h2 {
    font-family: var(--font-heading);
    font-size: clamp(var(--fs-2xl), 3vw, var(--fs-3xl));
    font-weight: 700;
    color: var(--champagne);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid rgba(244, 232, 193, 0.1);
    position: relative;
    text-align: left;
}

/* Accent line under H2 */
.bodybox h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 999px;
}

/* --------------------------------------------------------------------------
   19.4 Responsive Adjustments
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .banner-img .banner-title {
        font-size: clamp(var(--fs-2xl), 5vw, var(--fs-3xl));
        margin-bottom: 0.5rem;
    }
    
    .bodybox h1 {
        font-size: clamp(var(--fs-2xl), 5vw, var(--fs-3xl));
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .bodybox h2 {
        font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .banner-img .banner-title {
        font-size: clamp(var(--fs-xl), 5vw, var(--fs-2xl));
    }
    
    .bodybox h1 {
        font-size: clamp(var(--fs-2xl), 5vw, var(--fs-3xl));
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .bodybox h1::after,
    .bodybox h2::after {
        width: 60px;
        height: 2px;
    }
    
    .bodybox h2 {
        font-size: clamp(var(--fs-xl), 4vw, var(--fs-2xl));
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
}

/* --------------------------------------------------------------------------
   19.5 Override Conflicts
   -------------------------------------------------------------------------- */

/* Pagetitle styling (if used elsewhere) */
.pagetitle {
    font-family: var(--font-heading);
    font-size: clamp(var(--fs-3xl), 4vw, var(--fs-4xl));
    font-weight: 700;
    color: var(--champagne);
    margin-bottom: 20px;
    text-align: center;
}

/* End of Banner H1 Fix */

/* ==========================================================================
   7. PROFILE CARDS & LISTINGS
   ========================================================================== */

/* --------------------------------------------------------------------------
   7.1 Slider
   -------------------------------------------------------------------------- */

.sliderall {
    min-height: 380px;
    background: var(--primary-bg);
    padding: 20px 0;
}

/* All header slider container */
.all-header-slider {
    padding: 10px 0 20px;
}

.all-header-slider .sliderall {
    min-height: 380px;
}

/* Slider images - proper display */
.slider .slide img,
.slider .slide .girlimg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center !important; /* Always show top of image where faces are */
    min-height: 300px;
}

.slider .slide .girlimg {
    display: block;
    overflow: hidden;
    position: relative;
    height: 300px; /* Fixed height for consistent cards */
}

/* Owl carousel item sizing */
.slider.owl-carousel .owl-item {
    min-height: 350px;
}

.slider.owl-carousel .owl-item .slide {
    height: 100%;
}

/* Slider container - more height for better image display */
.slider .slide {
    min-height: 350px;
}

.slider .slide .girlinfo .modelinfo .modelname,
.icon-location:before {
    color: var(--off-white);
}

.icon-left-open,
.icon-right-open {
    color: var(--gold-opac);
    text-shadow: none;
}

.girl .desc,
.slider .slide .girlinfo .modelinfo {
    background: var(--gradient-card);
    border-top: 2px solid var(--gold-opac);
}

.girl a:hover .desc,
.slider .slide .girlimg:hover .girlinfo .modelinfo {
    background: var(--elevated-bg);
    border-top-color: var(--gold);
}

/* --------------------------------------------------------------------------
   7.1.1 Profile Card Spacing Fix - Reduce Dead Space
   -------------------------------------------------------------------------- */

/* Float-clearing separator divs: keep them in flow so `clear: both` actually
   starts a new row, but strip their box so they add no vertical dead space.
   `display: none` removed them from flow entirely, which left holes in the
   grid once taglines made some cards taller than others. */
.show-separator {
    display: none !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden !important;
}

/* Show only the separator matching the current column count */
@media (min-width: 1401px) {
    .show-separator.show5profiles {
        display: block !important;
    }
}

@media (min-width: 769px) and (max-width: 1400px) {
    .show-separator.show3profiles {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .show-separator.show2profiles {
        display: block !important;
    }
}

/* Prevent .clear divs inside .girl from adding vertical space */
.girl > .clear,
.girl .thumb + .clear {
    height: 0;
    margin: 0;
    padding: 0;
    line-height: 0;
    font-size: 0;
}

/* --------------------------------------------------------------------------
   7.2 Profile Cards
   -------------------------------------------------------------------------- */

.girl .thumb .thumbwrapper,
.slider .slide {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
}

/* thumbwrapper needs to clip card-img-wrap corners but show card-info */
.girl .thumb .thumbwrapper {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.girl .thumb .thumbwrapper > a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

/* Override parent .thumb border/bg to prevent double-frame on all cards */
.girl .thumb {
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    float: none;
}

/* Premium thumb: override parent orange bg, clip content — card styling
   comes from .thumbwrapper only to avoid double-frame on mobile */
.girl .thumb.girlpremium {
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.slider .slide:hover,
.girl .thumb:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}

/* Ensure images stay within rounded container */
.slider .slide .girlimg {
    border-radius: 0;
}

/* --------------------------------------------------------------------------
   7.3 Premium Labels
   -------------------------------------------------------------------------- */

.slider .slide .girlimg .premiumlabel span,
.girl .girlpremium .premiumlabel span {
    background: var(--gold);
    color: var(--black-rich);
    font-weight: 600;
}

.girl .girlpremium .premiumlabel span::before,
.girl .girlpremium .premiumlabel span::after {
    background: var(--champagne);
}

/* --------------------------------------------------------------------------
   7.4 Loading Skeleton Animation
   -------------------------------------------------------------------------- */

/* Skeleton shimmer animation */
@keyframes skeleton-shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Apply to images while loading */
.girl .thumb img[loading="lazy"]:not([src]),
.girl .thumb img.loading {
    background: linear-gradient(
        90deg,
        var(--card-bg) 0px,
        var(--elevated-bg) 50px,
        var(--card-bg) 100px
    );
    background-size: 200px 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

/* Skeleton placeholder for content */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--card-bg) 0px,
        var(--elevated-bg) 50px,
        var(--card-bg) 100px
    );
    background-size: 200px 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

.skeleton-card {
    aspect-ratio: 2/3;
    border-radius: var(--radius-lg);
}

.skeleton-text {
    height: 1em;
    margin: 8px 0;
}

.skeleton-text-short {
    width: 60%;
}

/* --------------------------------------------------------------------------
   7.5 Mobile Profile Cards Optimization
   -------------------------------------------------------------------------- */

/* Base image styling for profile cards */
.girl .thumb img,
.girl .thumb .mobile-ready-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: top center !important; /* Always show top of image where faces are */
}

/* Profile card labels - base styling */
.girl .thumb .thumbwrapper .label,
.slider .slide .labels .label {
    font-size: var(--fs-2xs);
    padding: 4px 8px;
    line-height: 1.3;
    border-radius: var(--radius-sm);
}

/* AI User label - gradient badge for AI-generated profiles */
.ai-user-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Digital Services label - lavender, distinct from the gold NEW/FEATURED
   badges and in the palette (was the site's only green, #142) */
.digital-services-gradient {
    background: linear-gradient(135deg, var(--plum-light) 0%, var(--plum-accent) 100%);
    color: var(--black-rich);
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* AI User label on single profile page */
.girlsinglelabels .label-ai-user {
    display: inline-block;
    padding: 6px 14px;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 25px;
}

/* Digital Services label on single profile page */
.girlsinglelabels .label-digital-services {
    display: inline-block;
    padding: 6px 14px;
    font-size: var(--fs-sm);
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 25px;
}

/* Premium diagonal banner positioning */
.girl .premiumlabel {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 5;
}

/* Image wrapper: position:relative so overlays position correctly */
.card-img-wrap {
    position: relative;
    overflow: hidden;
    line-height: 0; /* removes gap between img and card-info */
}

/* Top-left labels overlay */
.girl .model-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 4;
    padding: 5px;
    pointer-events: none;
}

.card-labels-top {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: flex-start;
}

/* Bottom-left: Verified badge */
.card-label-verified {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 5px;
    z-index: 4;
    pointer-events: none;
}

/* Card info section below image */
/* The .thumb wraps the photo AND the .card-info text. The parent theme locks .thumb to the
   photo's 2:3 ratio, which clipped the info area whenever a tagline added a line. Let the card
   grow to fit its content instead; the photo keeps its own ratio via .girl .thumb img below. */
.girl .thumb {
    aspect-ratio: auto !important;
}

.card-info {
    background: var(--card-bg);
    padding: 9px 10px;
    border-top: 1px solid var(--border-color);
    line-height: 1.4;
    box-sizing: border-box;
}

/* #228: every card has this one line (tour, tagline or empty) at a fixed height, so cards in a
   row are the same height whatever they contain. */
.card-info .card-line {
    font-size: var(--fs-xs);
    line-height: 1.25;
    height: 1.25em;
    margin-bottom: 3px;
    overflow: hidden;
}

.card-info .card-tagline {
    color: var(--gold-light);
    font-size: var(--fs-xs);
    font-style: italic;
    font-weight: 500;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-info .girl-name {
    color: var(--champagne);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* girl-name is now an <h3> (issue #12) — reset heading default margin so the
       card layout is unchanged. */
    margin-top: 0;
    margin-bottom: 3px;
}

.card-info .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.card-info .girl-desc-location {
    color: var(--light-gray);
    font-size: var(--fs-2xs);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.card-meta-right {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.card-info .girl-age {
    color: var(--light-gray);
    font-size: var(--fs-2xs);
}

.card-info .girl-rate-info {
    color: var(--gold);
    font-size: var(--fs-xs);
    font-weight: 600;
    white-space: nowrap;
}

/* Reduce desktop card spacing */
.girl {
    padding-bottom: 8px;
}

/* Mobile-specific profile card optimizations */
@media (max-width: 768px) {
    /* ----------------------------------------------------------------
       SLIDER (Premium Profiles) - Mobile Fix
       ---------------------------------------------------------------- */
    .sliderall {
        min-height: 200px;
        padding: 15px 10px;
    }

    .slider .slide {
        margin: 0 5px;
    }

    .slider .slide img {
        min-height: 200px;
        max-height: 300px;
        object-position: top center !important;
    }

    .slider .slide .girlinfo .modelinfo {
        padding: 8px;
    }

    .slider .slide .girlinfo .modelinfo .modelname {
        font-size: var(--fs-xs);
    }

    .slider .slide .girlinfo .modelinfo .modelinfo-location {
        font-size: var(--fs-2xs);
    }



    /* ----------------------------------------------------------------
       PROFILE CARDS - Single Column, Edge-to-Edge (Competitor Style)
       ---------------------------------------------------------------- */

    /* 2-column grid on mobile (matches RealBabes/EAB/SB density on ≤768px) */
    .girl {
        width: 50% !important;
        margin: 0 !important;
        padding: 0 !important;
        padding-bottom: 4px !important;
        float: left !important;
        box-sizing: border-box !important;
    }

    /* Row clearfix dividers are handled by the breakpoint rules in 7.1.1 —
       only .show2profiles is shown at this width. */

    .girl .thumb,
    .girl .thumb .thumbwrapper {
        border-radius: 0;
    }

    /* Large image display - fill width, show faces */
    .girl .thumb img,
    .girl .thumb .mobile-ready-img {
        object-position: top center !important;
        aspect-ratio: 3 / 4;
        width: 100%;
    }

    /* Corner labels (FEATURED, NEW, PRIVATE, AI, DIGITAL, VERIFIED) - sized for 2-up cards.
       These are decorative badges, not body text, so smaller than 12px is fine. */
    .girl .label,
    .girl .model-info .label {
        font-size: var(--fs-2xs) !important;
        padding: 2px 6px !important;
        line-height: 1.3;
        letter-spacing: 0.3px;
    }

    /* Premium diagonal banner - shrunk so it doesn't dominate 2-up cards */
    .girl .premiumlabel {
        transform: scale(0.55);
        transform-origin: top right;
    }

    /* Card info below image - mobile */
    .card-info {
        padding: 8px 10px;
    }

    .card-info .girl-name {
        font-size: var(--fs-sm) !important;
        line-height: 1.2;
        margin-bottom: 3px;
    }

    /* Stack location on its own row so it isn't truncated to "..." at 2-up width.
       Row 1: location | Row 2: age (left) + rate (right) */
    .card-info .card-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .card-info .girl-desc-location {
        font-size: var(--fs-2xs) !important;
        flex: none;
        width: 100%;
    }

    .card-meta-right {
        width: 100%;
        justify-content: space-between;
    }

    .card-info .girl-age {
        font-size: var(--fs-2xs) !important;
    }

    .card-info .girl-rate-info {
        font-size: var(--fs-xs) !important;
    }

    /* Labels row on mobile */
    .card-labels-top {
        gap: 2px;
    }

    /* Reduce label container spacing */
    .girl .model-info .labels,
    .girl .labels {
        gap: 3px;
    }

    /* Remove hover lift on mobile - not needed for touch */
    .girl .thumb:hover {
        transform: none;
    }
}

/* Very small mobile (<=400px) - tighter still */
@media (max-width: 400px) {
    /* ----------------------------------------------------------------
       SLIDER - Very Small Mobile
       ---------------------------------------------------------------- */
    .sliderall {
        min-height: 180px;
        padding: 10px 5px;
    }

    .slider .slide img {
        min-height: 160px;
        max-height: 220px;
    }



    /* ----------------------------------------------------------------
       PROFILE CARDS - Even tighter on very small screens
       ---------------------------------------------------------------- */
    .girl {
        padding-bottom: 2px !important;
    }

    .girl .thumb img,
    .girl .thumb .mobile-ready-img {
        aspect-ratio: 3 / 4;
    }

    /* Premium banner even smaller on ≤400px (card width ~150px) */
    .girl .premiumlabel {
        transform: scale(0.45);
    }

    /* Corner labels tighter still on smallest phones */
    .girl .label,
    .girl .model-info .label {
        font-size: var(--fs-2xs) !important;
        padding: 2px 5px !important;
    }

    /* Tighter card-info padding & smaller name on very small screens */
    .card-info {
        padding: 6px 8px;
    }

    .card-info .girl-name {
        font-size: var(--fs-sm) !important;
    }
}

/* Tablet - 3 column grid */
@media (min-width: 769px) and (max-width: 1024px) {
    .girl {
        width: calc(33.333% - 12px) !important;
        margin: 6px !important;
    }
}

/* --------------------------------------------------------------------------
   7.x Pagination (dolce_pagination(): listings, all profiles, agencies,
   tours, reviews): 44px targets, obvious current page (issue #122)
   -------------------------------------------------------------------------- */
.escort-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.escort-pagination li {
    display: block;
    padding: 0;
}

.escort-pagination li a,
.escort-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px !important;
    border-radius: 22px !important;
    font-size: var(--fs-base);
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.escort-pagination li a {
    background: var(--gradient-champagne) !important;
    color: var(--black-rich) !important;
}

.escort-pagination li span.current {
    background: var(--gold) !important;
    color: var(--black-rich) !important;
    border: 2px solid var(--champagne) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}

.escort-pagination li span.dots {
    color: var(--light-gray);
}

/* ==========================================================================
   9. FORMS
   ========================================================================== */

/* --------------------------------------------------------------------------
   9.1 Form Styling
   -------------------------------------------------------------------------- */

.form-styling .form-label,
.form-styling .form-input {
    float: none;
    width: auto;
}

/* Label, hint and field looks live in the shared block at the end of this
   file ("UI-9 Shared form fields", #144). Only widths stay here. */

.form-styling .form-input label,
.form-input {
    color: var(--off-white);
}

/* Form Inputs (:valid kept: its specificity is what sets these widths) */
.form-styling .form-input .input,
.form-styling .form-input select,
.form-styling .form-input select:valid {
    width: 80%;
}

.input-field,
.select2 .select2-selection.select2-selection--single {
    border: 0;
    z-index: 1;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--gold);
    font: inherit;
    font-size: var(--fs-lg);
    padding: 0.25rem 0;
    width: 80%;
    color: var(--off-white);
    border-radius: 0;
}

.select2-container {
    width: 100%;
}

.input-field .input-label {
    color: var(--gold);
    transform: translateY(-1.5rem);
}

/* --------------------------------------------------------------------------
   9.3 Select2 Dropdowns - ENHANCED
   -------------------------------------------------------------------------- */

/* Selection display (closed state) */
.select2-container--default .select2-selection--single {
    height: 38px;
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 12px;
    color: var(--off-white) !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--text-gray) !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    top: 1px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--light-gray) transparent transparent transparent;
}

/* Dropdown (open state) */
.select2-dropdown {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

.select2-results__option {
    background-color: var(--card-bg);
    color: var(--off-white) !important;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--gold) !important;
    color: var(--black-rich) !important;
}

.select2-results__option[aria-selected=true] {
    background-color: var(--elevated-bg) !important;
    color: var(--off-white) !important;
}

/* Search field in dropdown */
.select2-search--dropdown .select2-search__field {
    background-color: var(--elevated-bg);
    border-color: var(--border-color);
    color: var(--off-white);
}

/* Multiple select */
.select2-container--default .select2-selection--multiple {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    color: var(--off-white) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--gold);
    border-color: var(--champagne-dark);
    color: var(--black-rich);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--black-rich);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: var(--gold-light);
}

/* Disabled state */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: var(--secondary-bg) !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__rendered {
    color: var(--text-gray) !important;
}

@media (max-width: 768px) {
    /* Form inputs - larger touch area */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        min-height: 48px;
        font-size: var(--fs-md); /* Prevents iOS zoom on focus */
        padding: 12px;
    }

    /* Form labels - WCAG minimum readability */
    .form-styling .form-label label,
    .form-styling label,
    label {
        font-size: var(--fs-sm);
        min-height: 44px;
    }

    /* Checkbox and radio - larger touch area */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
    }

    /* Labels with checkboxes - full touch target */
    label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 8px 0;
    }

}

@media (max-width: 480px) {
    /* Form inputs - Prevent iOS zoom on focus (must be 16px+) */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    input[type="number"],
    input[type="search"],
    textarea,
    select {
        font-size: var(--fs-md);
        min-height: 44px;
    }

    /* Checkbox and radio - maintain touch area at small screens */
    input[type="checkbox"],
    input[type="radio"] {
        min-width: 24px;
        min-height: 24px;
    }
}

/* ==========================================================================
   UI-9 Shared form fields (#144)
   One field look for every .form-styling form: the independent and agency
   sign-up wizards, edit profile, the search page and listing filter panel,
   the sidebar quick search and the profile enquiry form. It copies the
   wp-login.php skin (escortwp_child_login_styles() in functions.php): dark
   filled box, faint gold border, gold border and ring on focus, cream labels.
   Change the look through the custom properties; widths and layout stay with
   each form's own rules.
   ========================================================================== */
.form-styling {
    --ae-field-bg: var(--secondary-bg);
    --ae-field-text: var(--off-white);
    --ae-field-placeholder: rgba(250, 249, 246, 0.6); /* 4.5:1 on the field fill */
    --ae-field-border: rgba(212, 175, 55, 0.45); /* visible outline at rest (WCAG 1.4.11) */
    --ae-field-border-hover: rgba(212, 175, 55, 0.7);
    --ae-field-border-focus: var(--gold);
    --ae-field-ring: 0 0 0 3px var(--gold-opac);
    --ae-field-error: #e74c3c;
    --ae-field-error-ring: 0 0 0 3px rgba(231, 76, 60, 0.3);
    --ae-field-radius: var(--radius-md);
    --ae-field-pad-y: 10px;
    --ae-field-pad-x: 14px;
    --ae-field-min-h: 44px; /* tap target */
    --ae-label-color: var(--off-white);
    --ae-label-size: var(--fs-base);
    --ae-label-weight: 500;
    --ae-hint-color: var(--text-gray);
}

/* Labels and hints */
.form-styling .form-label label {
    color: var(--ae-label-color);
    font-size: var(--ae-label-size);
    font-weight: var(--ae-label-weight);
}

.form-styling .form-label small,
.form-styling .form-input small {
    color: var(--ae-hint-color);
    line-height: 1.45;
}

/* Fields */
.form-styling .form-input .input,
.form-styling .form-input .textarea,
.form-styling .form-input select {
    box-sizing: border-box;
    min-height: var(--ae-field-min-h);
    height: auto;
    padding: var(--ae-field-pad-y) var(--ae-field-pad-x);
    font-family: inherit;
    font-size: var(--fs-md); /* 16px: no iOS zoom on focus */
    line-height: 1.4;
    color: var(--ae-field-text);
    background-color: var(--ae-field-bg);
    border: 1px solid var(--ae-field-border);
    border-radius: var(--ae-field-radius);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* #223: the front-end admin settings forms wrap fields in .fieldset, where the
   parent's border:none (escortwp/style.css ~2320) out-ranks the rule above. */
.form-styling .fieldset .form-input :is(.input, .textarea, select, textarea) {
    border: 1px solid var(--ae-field-border);
}
.form-styling .fieldset .form-input :is(.input, .textarea, select, textarea):hover {
    border-color: var(--ae-field-border-hover);
}
.form-styling .fieldset .form-input :is(.input, .textarea, select, textarea):focus {
    border-color: var(--ae-field-border-focus);
}

.form-styling .form-input .input::placeholder,
.form-styling .form-input .textarea::placeholder {
    color: var(--ae-field-placeholder);
    opacity: 1;
}

.form-styling .form-input select option {
    background-color: var(--primary-bg);
    color: var(--ae-field-text);
}

/* Select2 pickers (State). The parent theme and section 9.3 style them with
   !important, so the sizes and colours here need it too. */
.form-styling .select2-container,
.form-styling .select2-container .selection {
    display: block;
}

/* Without a fixed height the search grid sized the State cell 4px short. */
.form-styling .select2-container .selection:has(> .select2-selection--single) {
    height: var(--ae-field-min-h);
}

.form-styling .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: var(--ae-field-min-h) !important;
    line-height: 1.4 !important;
    padding: 0 32px 0 var(--ae-field-pad-x);
    font-size: var(--fs-md);
    background: var(--ae-field-bg) !important;
    border: 1px solid var(--ae-field-border) !important;
    border-radius: var(--ae-field-radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-styling .select2-container .select2-selection--single .select2-selection__rendered {
    height: auto !important;
    padding: 0;
    line-height: 1.4 !important;
    color: var(--ae-field-text) !important;
}

.form-styling .select2-container .select2-selection--single .select2-selection__arrow {
    top: 0;
    right: 8px;
    height: 100% !important;
}

/* Room for the Show/Hide password button */
.form-styling .ae-password-field .input {
    padding-right: 70px;
}

/* Above 960px the parent theme leaves inputs at 80% width, which left the
   Show button floating outside the box. Size the wrapper instead. */
@media (min-width: 961px) {
    .form-styling .form-input .ae-password-field {
        width: 80%;
    }

    .form-styling .form-input .ae-password-field .input {
        width: 100%;
    }
}

/* Hover, focus, error (in that order, so focus beats hover and error beats both) */
.form-styling .form-input .input:hover,
.form-styling .form-input .textarea:hover,
.form-styling .form-input select:hover {
    border-color: var(--ae-field-border-hover);
}

.form-styling .select2-container:not(.select2-container--disabled):hover .select2-selection--single {
    border-color: var(--ae-field-border-hover) !important;
}

.form-styling .form-input .input:focus,
.form-styling .form-input .textarea:focus,
.form-styling .form-input select:focus {
    outline: none; /* the gold border and ring are the focus indicator */
    border-color: var(--ae-field-border-focus);
    box-shadow: var(--ae-field-ring);
}

.form-styling .select2-container--focus .select2-selection--single,
.form-styling .select2-container--open .select2-selection--single {
    outline: none;
    border-color: var(--ae-field-border-focus) !important;
    box-shadow: var(--ae-field-ring);
}

.form-styling .form-input .input.wizard-field-error,
.form-styling .form-input .textarea.wizard-field-error,
.form-styling .form-input select.wizard-field-error,
.form-styling .form-input [aria-invalid="true"] {
    border-color: var(--ae-field-error);
    box-shadow: var(--ae-field-error-ring);
}

/* Separate rule: a browser without :user-invalid drops the whole rule. */
.form-styling .form-input .input:user-invalid,
.form-styling .form-input .textarea:user-invalid,
.form-styling .form-input select:user-invalid {
    border-color: var(--ae-field-error);
    box-shadow: var(--ae-field-error-ring);
}

/* A field in error keeps its red look, so focus needs its own marker. */
.form-styling .form-input .input.wizard-field-error:focus,
.form-styling .form-input .textarea.wizard-field-error:focus,
.form-styling .form-input select.wizard-field-error:focus,
.form-styling .form-input [aria-invalid="true"]:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
.form-styling .form-input .input:user-invalid:focus,
.form-styling .form-input .textarea:user-invalid:focus,
.form-styling .form-input select:user-invalid:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ==========================================================================
   10. BUTTONS
   ========================================================================== */

/* --------------------------------------------------------------------------
   10.1 The three button components (#140)

   Every clickable control outside the header is one of these. Don't add a
   fourth; map new controls onto them.
   - .btn-primary   gold (champagne gradient), dark text: the main action
   - .btn-secondary gold outline, gold text: every other action
   - .chip          small tinted pill: locations, categories, filters
   Radius scale: 8px buttons (--radius-md), pills (--radius-full) for chips,
   12-16px for cards. One font (--font-primary), one height (44px buttons,
   36px chips, 44px on phones).
   The legacy class names are kept so old templates don't all need editing:
   .pinkbutton and the form submits are primary; .hero-cta-button is secondary.
   -------------------------------------------------------------------------- */

.btn-primary,
.btn-secondary,
.pinkbutton,
.hero-cta-button,
.ae-verify-cta-button,
.ae-contact-bar .ae-contact-bar-call,
.ae-contact-bar .ae-contact-bar-sms {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 22px;
    box-sizing: border-box;
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.2px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
}

/* Inputs and buttons carry parent font rules: input.pinkbutton (1em) and
   .form-styling input[type=submit] (1.2em, 25px radius). */
input.pinkbutton,
button.pinkbutton,
.form-styling input.pinkbutton[type="submit"] {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: 600;
    line-height: 1.2;
    padding: 0 22px;
    border-radius: var(--radius-md);
}

/* Primary */
.btn-primary,
.pinkbutton,
.ae-verify-cta-button,
.ae-contact-bar .ae-contact-bar-call {
    background: var(--gradient-champagne);
    color: var(--black-rich);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover,
.pinkbutton:hover,
.ae-verify-cta-button:hover,
.ae-verify-cta-button:focus-visible,
.header-top-bar .subnav-menu li.subnav-menu-btn a:hover {
    background: var(--gold);
    color: var(--black-rich);
    border: 2px solid var(--gold-light);
    transform: translateY(-1px);
    box-shadow: var(--glow-gold);
    text-decoration: none;
}

/* .pinkdegrade is the parent's gold-fill utility (card labels, notices,
   titles), not a button, so it keeps its pre-#140 rules. */
.pinkdegrade {
    background: var(--gradient-champagne);
    border: 2px solid var(--gold);
    color: var(--black-rich);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-weight: 600;
    font-size: var(--fs-sm);
    line-height: 1.4;
    letter-spacing: 0.3px;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
    min-width: fit-content;
    box-shadow: var(--shadow-gold);
    cursor: pointer;
}

.pinkdegrade:hover {
    background: var(--gold);
    color: var(--black-rich);
    border: 2px solid var(--gold-light);
    transform: translateY(-1px);
    box-shadow: var(--glow-gold);
}

/* Secondary (after primary, so .pinkbutton.reg-wizard-back ends up outlined) */
.btn-secondary,
.hero-cta-button,
.ae-contact-bar .ae-contact-bar-sms,
.reg-wizard-back {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: none;
}

.btn-secondary:hover,
.hero-cta-button:hover,
.reg-wizard-back:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-light);
    color: var(--gold);
    transform: translateY(-1px);
    box-shadow: none;
    text-decoration: none;
}

/* Icons inside a primary button take the button's dark text colour; the
   profile-page span colour rule otherwise paints them cream on cream. */
.btn-primary [class*="icon-"],
.pinkbutton [class*="icon-"],
.girlsingle .pinkbutton [class*="icon-"] {
    color: inherit !important;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.pinkbutton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* These classes set display, which would otherwise beat the parent's .hide. */
.btn-primary.hide,
.btn-secondary.hide,
.pinkbutton.hide,
.hero-cta-button.hide,
.chip.hide {
    display: none;
}

/* Chip */
.chip,
.related-location-link,
.ae-service-chips a,
.ae-404 .ae-404-cities a,
.search-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 14px;
    box-sizing: border-box;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--radius-full);
    color: var(--champagne);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.chip:hover,
.chip:focus-visible,
.related-location-link:hover,
.ae-service-chips a:hover,
.ae-404 .ae-404-cities a:hover,
.ae-404 .ae-404-cities a:focus-visible,
.search-filter-chip:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: var(--gold);
    color: var(--champagne);
    text-decoration: none;
}

/* Selected chip: the current location, the active service filter */
.chip--current,
.related-location-link--current,
.ae-service-chips a.is-active {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    color: var(--champagne);
}

/* Listing filter row (all-profiles.php): beat the parent's
   .bodybox .pagetitle-menu li a padding/display and its border-less hover. */
.bodybox .pagetitle-menu li {
    padding: 0 3px 6px;
    line-height: normal;
}

.bodybox .pagetitle-menu li a.chip {
    display: inline-flex;
    padding: 0 14px;
}

.bodybox .pagetitle-menu li a.chip:hover {
    border-color: var(--gold);
}

/* 44px touch targets on phones */
@media (max-width: 768px) {
    .chip,
    .related-location-link,
    .ae-service-chips a,
    .ae-404 .ae-404-cities a,
    .search-filter-chip {
        min-height: 44px;
    }
}


/* --------------------------------------------------------------------------
   10.3 Green & Red Buttons
   -------------------------------------------------------------------------- */

/* closebtn() prints real <button>s since #140 (keyboard access), so drop the
   native button font and box. */
button.closebtn,
button.closebtn_box {
    font-family: inherit;
    line-height: inherit;
    cursor: pointer;
}

button.closebtn {
    font-size: inherit;
}

button.closebtn_box {
    padding: 0;
    border: 0;
}

.greenbutton,
.greendegrade {
    background: var(--success);
    border: 2px solid var(--success);
    color: var(--white);
}

.redbutton,
.reddegrade {
    background: var(--error);
    color: var(--white);
}

/* Orange/Premium Button */
.orangebutton,
.orangedegrade {
    background: var(--gold);
    color: var(--black-rich);
    border: 2px solid var(--gold-light);
    font-weight: 600;
}

.orangebutton:hover,
.orangedegrade:hover {
    background: var(--gold-light);
    box-shadow: var(--glow-gold);
}

/* Blue Button */
.bluebutton,
.blueishbutton,
.blueishdegrade {
    background: var(--plum-accent);
    color: var(--white);
    border: 2px solid var(--plum-light);
}

.bluebutton:hover,
.blueishbutton:hover,
.blueishdegrade:hover {
    background: var(--plum-light);
    box-shadow: 0 4px 12px rgba(139, 95, 191, 0.3);
}

/* --------------------------------------------------------------------------
   10.4 Button Container
   -------------------------------------------------------------------------- */

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

@media (max-width: 768px) {
    .pinkdegrade,
    .header-top-bar .subnav-menu li.subnav-menu-btn a {
        padding: 8px 12px;
        font-size: var(--fs-xs);
        letter-spacing: 0.1px;
        line-height: 1.1;
        display: block;
        width: auto;
        margin: 2px 0;
        text-align: center;
    }
    
    .button-container {
        flex-direction: column;
        align-items: stretch;
    }

    /* ----------------------------------------------------------------------
       MOBILE TOUCH TARGETS - WCAG 2.1 AA Compliance (min 44x44px)
       ---------------------------------------------------------------------- */

    /* Ensure all interactive elements have adequate touch targets */
    a,
    button,
    input[type="button"],
    input[type="submit"],
    .greenbutton,
    .redbutton,
    .whitebutton,
    .orangebutton {
        min-height: 44px;
        min-width: 44px;
        padding: 12px 16px;
    }

}

@media (max-width: 480px) {
    /* Button Adjustments */
    .pinkdegrade,
    .header-top-bar .subnav-menu li.subnav-menu-btn a {
        padding: 6px 10px;
        font-size: var(--fs-2xs);
        letter-spacing: 0;
        line-height: 1;
    }

}

/* ==========================================================================
   20. REGISTER BUTTON OVERRIDE - Champagne Gold with rad25
   ========================================================================== */

.registerpage .usertype .usertype-bottom .registerbutton {
    background: linear-gradient(to bottom, #e6c55f 0%, #d4af37 100%) !important;
    border-radius: 25px !important;
    color: var(--primary-bg) !important;
    box-shadow: var(--shadow-gold) !important;
    transition: all var(--transition-normal) !important;
}

.registerpage .usertype .usertype-bottom .registerbutton:hover {
    background: linear-gradient(to bottom, #f4e8c1 0%, #e6c55f 100%) !important;
    color: var(--primary-bg) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--glow-gold) !important;
}

.registerpage .usertype .usertype-bottom .registerbutton:active,
.registerpage .usertype .usertype-bottom .registerbutton:focus {
    background: var(--champagne-dark) !important;
    transform: translateY(0) !important;
    box-shadow: var(--shadow-gold) !important;
}

.registerpage .usertype .usertype-bottom .registerbutton .icon-angle-right {
    color: var(--primary-bg) !important;
    transition: transform var(--transition-fast) !important;
}

.registerpage .usertype .usertype-bottom .registerbutton:hover .icon-angle-right {
    transform: translateX(3px) !important;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */

.footer {
    background: var(--secondary-bg);
    clear: both;
    width: 100%;
    margin: 0;
    /* Full-width band background; content constrained via padding trick (auto-centers up to 1400px) */
    padding: clamp(20px, 2.5vw, 28px) max(20px, calc((100% - 1400px) / 2));
    border-top: 1px solid var(--border-color, rgba(244, 232, 193, 0.15));
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px 32px;
}

.underfooter {
    background: #12071f;
    color: var(--light-gray);
    clear: both;
    width: 100%;
    display: block;
    text-align: center;
    padding: 12px max(20px, calc((100% - 1400px) / 2));
    font-size: clamp(var(--fs-2xs), 2vw, var(--fs-xs));
    letter-spacing: 0.3px;
    border-top: 1px solid var(--border-color, rgba(244, 232, 193, 0.15));
    word-wrap: break-word;
    opacity: 0.85;
}

.underfooter-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
    margin-bottom: 8px;
}

.underfooter-links a {
    color: var(--champagne);
    text-decoration: none;
}

.underfooter-links a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.underfooter a[href^="tel:"] {
    color: var(--champagne);
    text-decoration: none;
    white-space: nowrap;
}

.underfooter a[href^="tel:"]:hover {
    color: var(--gold);
}

#block-3 p,
#block-6 p {
    color: var(--gold);
}

#menu-footer {
    margin-top: 0;
    text-align: left;
}

/* Footer widget columns */
.footer .widgetbox,
.footer > div[id^="block-"] {
    flex: 1 1 200px;
    min-width: 180px;
    max-width: 320px;
    padding: 0;
    box-sizing: border-box;
}

/* Logo block - align right */
#block-2 {
    flex: 0 0 auto;
    text-align: right;
    margin-left: auto;
}

#block-2 img {
    max-width: 180px;
    height: auto;
    opacity: 0.95;
}

.widgettitle {
    line-height: 1.3;
    font-family: var(--font-primary);
    color: var(--champagne);
    margin: 0 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-color, rgba(244, 232, 193, 0.15));
    font-weight: 600;
    font-size: var(--fs-sm);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    text-align: left;
}

.widgetbox li {
    line-height: 1.4;
    font-size: var(--fs-sm);
    margin-bottom: 3px;
}

@media (max-width: 768px) {
    /* Footer links - touch friendly (footer is dense, 32px is the WCAG 2.5.5 minimum) */
    .footer a,
    .underfooter a {
        min-height: 32px;
        display: inline-flex;
        align-items: center;
        padding: 4px 4px;
    }
}

/* ==========================================================================
   Footer redesign (#245 section 7, #247): same content, restyled to the
   design canvas. One dark band with a 1240px container: brand + mission
   letter on the left, the footer widgets on the right, the location links
   below, then a bottom bar. Scoped to footer[role="contentinfo"] so it beats
   the older .footer / .goal / .footer-locations rules above without editing
   them. Links are styled per section, not as `footer a`, so the Popular
   Locations modal (also inside the footer) keeps its own look.
   ========================================================================== */

footer[role="contentinfo"] {
    margin-top: 72px;
    background: #120a20;
    border-top: 1px solid var(--border-color);
    padding: 44px 0 28px;
}

footer[role="contentinfo"] .ae-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
        "brand  widgets"
        "goal   widgets"
        "loc    loc"
        "bottom bottom";
    grid-template-rows: auto 1fr auto auto;
    column-gap: 48px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}

/* No widget block printed: one column (class set in footer.php). Two classes
   so this outranks the max-width: 900px rule further down. */
footer[role="contentinfo"] .ae-footer-inner.ae-footer-inner--no-widgets {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "brand" "goal" "loc" "bottom";
}

/* Brand */
footer[role="contentinfo"] .footer-brand {
    grid-area: brand;
    display: block;
    padding: 0;
}

footer[role="contentinfo"] .footer-brand a {
    display: inline-block;
}

footer[role="contentinfo"] .footer-brand img {
    max-width: 150px;
    max-height: 70px;
}

/* Small uppercase gold headings, shared by every section */
footer[role="contentinfo"] .goal .goal-title,
footer[role="contentinfo"] .footer-locations-title,
footer[role="contentinfo"] .footer .widgettitle,
footer[role="contentinfo"] .footer #block-3 > p > strong:first-child {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-light);
    text-align: left;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    max-width: none;
}

footer[role="contentinfo"] .goal .goal-title::after,
footer[role="contentinfo"] .footer-locations-title::after {
    content: none;
}

/* Mission letter + Advertise CTA */
footer[role="contentinfo"] .goal {
    grid-area: goal;
    background: none;
    border: 0;
    padding: 0;
    margin: 18px 0 0;
    text-align: left;
    color: var(--text-muted);
}

footer[role="contentinfo"] .goal > div {
    max-width: 460px;
    margin: 0;
}

footer[role="contentinfo"] .goal p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 8px;
}

footer[role="contentinfo"] .goal .signature {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 18px;
    color: var(--champagne);
    margin: 0 !important;
}

footer[role="contentinfo"] .goal .bottom-cta {
    text-align: left;
    margin: 16px 0 0;
}

/* Footer widgets (Info menu, Escort Resources) */
footer[role="contentinfo"] .footer {
    grid-area: widgets;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    align-content: start;
}

footer[role="contentinfo"] .footer .widgetbox,
footer[role="contentinfo"] .footer > div[id^="block-"] {
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    text-align: left;
}

footer[role="contentinfo"] .footer .widgetbox ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

footer[role="contentinfo"] .footer .widgetbox li,
footer[role="contentinfo"] .footer #block-3 > p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}

footer[role="contentinfo"] .footer #block-3 > p > strong:first-child {
    display: block;
}

/* Location links */
footer[role="contentinfo"] .footer-locations {
    grid-area: loc;
    background: none;
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 36px 0 0;
    padding: 28px 0 0;
}

footer[role="contentinfo"] .footer-locations-columns {
    max-width: none;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px 32px;
}

footer[role="contentinfo"] .footer-location-state {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border: 0;
    padding: 0;
    margin: 0 0 6px;
}

footer[role="contentinfo"] .footer-location-cities {
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-muted);
    opacity: 1;
}

/* Bottom bar */
footer[role="contentinfo"] .underfooter {
    grid-area: bottom;
    background: none;
    opacity: 1;
    margin: 32px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 24px;
    text-align: left;
    font-size: 13px;
    letter-spacing: 0;
    color: var(--text-muted);
}

footer[role="contentinfo"] .underfooter > .clear {
    display: none;
}

footer[role="contentinfo"] .underfooter-links {
    justify-content: flex-start;
    gap: 6px 20px;
    margin: 0;
}

/* Link colours: --text-gray, champagne on hover; state names a step lighter.
   !important because the 17.7 footer rule sets every footer link with it. */
footer[role="contentinfo"] .goal a:not(.hero-cta-button),
footer[role="contentinfo"] .footer a,
footer[role="contentinfo"] .footer-location-cities a,
footer[role="contentinfo"] .underfooter a {
    color: var(--text-gray) !important;
    text-decoration: none;
}

footer[role="contentinfo"] .footer-location-state a {
    color: var(--light-gray) !important;
    text-decoration: none;
}

footer[role="contentinfo"] .goal a:not(.hero-cta-button):hover,
footer[role="contentinfo"] .footer a:hover,
footer[role="contentinfo"] .footer-location-cities a:hover,
footer[role="contentinfo"] .footer-location-state a:hover,
footer[role="contentinfo"] .underfooter a:hover {
    color: var(--champagne) !important;
    text-decoration: underline;
}

/* Tablet and phone: one column, widgets in two columns */
@media (max-width: 900px) {
    footer[role="contentinfo"] .ae-footer-inner {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: "brand" "goal" "widgets" "loc" "bottom";
    }

    footer[role="contentinfo"] .goal > div {
        max-width: none;
    }

    footer[role="contentinfo"] .footer {
        margin-top: 28px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 768px) {
    footer[role="contentinfo"] {
        margin-top: 40px !important;
        padding: 30px 0 24px !important;
    }

    footer[role="contentinfo"] .ae-footer-inner {
        padding: 0 14px !important;
    }

    footer[role="contentinfo"] .footer {
        flex-direction: unset;
        padding: 0 !important;
    }

    footer[role="contentinfo"] .footer .widgetbox,
    footer[role="contentinfo"] .footer > div[id^="block-"] {
        flex: none;
        min-width: 0 !important;
        max-width: none !important;
        margin: 0 !important;
    }

    footer[role="contentinfo"] .footer .widgetbox ul {
        gap: 0;
    }

    footer[role="contentinfo"] .footer-locations {
        margin-top: 28px;
        padding: 22px 0 0 !important;
    }

    footer[role="contentinfo"] .footer-locations-columns {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    footer[role="contentinfo"] .underfooter {
        margin-top: 24px;
        padding-top: 14px;
        font-size: 12px;
    }
}

/* --------------------------------------------------------------------------
   8.4 Footer — Mission (.goal) (was in style.css section 8)
   -------------------------------------------------------------------------- */

.goal {
    background: var(--gradient-card);
    color: var(--off-white);
    float: none;
    width: 100%;
    margin: 0;
    padding: clamp(20px, 2.5vw, 32px) 20px;
    border-top: 1px solid var(--border-color, rgba(244, 232, 193, 0.15));
    text-align: center;
    box-sizing: border-box;
}

.goal > div {
    max-width: 680px;
    margin: 0 auto;
    padding: 0;
}

.goal .goal-title {
    line-height: 1.3;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(var(--fs-xl), 2.4vw, var(--fs-2xl));
    font-weight: 600;
    color: var(--champagne);
    margin: 0 0 10px;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Gold hairline under heading */
.goal .goal-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 8px auto 0;
    opacity: 0.7;
}

.goal p {
    color: var(--light-gray);
    line-height: 1.5;
    font-size: var(--fs-sm);
    margin: 0 0 8px;
}

.goal p:last-of-type {
    margin-bottom: 0;
}

.signature {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(var(--fs-xl), 3vw, var(--fs-2xl));
    color: var(--champagne);
    margin-top: 2px !important;
    margin-bottom: 0 !important;
    line-height: 1.1;
}

.bottom-cta {
    text-align: center;
    margin: 16px 0 0;
    font-size: var(--fs-sm);
}

/* Full-width main and footer, and the footer logo: every page (they sat
   in 9.2 registration forms but are not sign-up only) */
main#main-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

footer[role="contentinfo"] {
    width: 100%;
    max-width: 100%;
}

.footer-brand {
    display: flex;
    justify-content: center;
    padding: 32px 16px 8px;
}

.footer-brand img {
    height: auto;
    width: auto;
    max-width: 180px;
    max-height: 100px;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .footer-brand {
        padding: 24px 16px 4px;
    }
    .footer-brand img {
        max-width: 140px;
        max-height: 80px;
    }
}

/* ==========================================================================
   15.5 PERSISTENT SEARCH BAR (non-sticky)
   ========================================================================== */

.persistent-search-bar {
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    position: relative;
    z-index: 99;
    width: 100%;
    box-sizing: border-box;
}

.search-bar-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: space-between;
}

/* Search Form */
.search-bar-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 800px;
    min-width: 300px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

/* --------------------------------------------------------------------------
   15.5.2 Autocomplete Dropdown
   -------------------------------------------------------------------------- */

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-heavy);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}

.autocomplete-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--elevated-bg);
}

.autocomplete-item.selected {
    background: var(--gold-opac);
}

.autocomplete-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.autocomplete-label {
    color: var(--off-white);
    font-size: var(--fs-sm);
    font-weight: 500;
}

/* Suburb hits explain which city archive they resolve to. */
.autocomplete-sub {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    line-height: 1.3;
}

.autocomplete-count {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    background: var(--primary-bg);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.autocomplete-no-results {
    padding: 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

/* Autocomplete Mobile */
@media (max-width: 768px) {
    .autocomplete-dropdown {
        max-height: 250px;
    }

    .autocomplete-item {
        padding: 14px 12px;
    }

    .autocomplete-label {
        font-size: var(--fs-sm);
    }

    .autocomplete-count {
        font-size: var(--fs-2xs);
    }

    .autocomplete-sub {
        font-size: var(--fs-2xs);
    }
}

.search-input-wrapper .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: var(--fs-lg);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--primary-bg);
    color: var(--off-white);
    font-size: var(--fs-md);
    transition: all var(--transition-fast);
}

.search-input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 3px var(--gold-opac);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Search Submit Button */
.search-submit-btn {
    padding: 14px 28px;
    background: var(--gradient-gold);
    color: var(--black-rich);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--fs-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.search-submit-btn:hover {
    background: var(--champagne);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

/* Advanced Search Link */
.advanced-search-link {
    color: var(--plum-accent);
    font-size: var(--fs-sm);
    white-space: nowrap;
    transition: color var(--transition-fast);
}

.advanced-search-link:hover {
    color: var(--champagne);
}

/* Mobile Search Toggle - Hidden on desktop */
.mobile-search-toggle {
    display: none; /* Hidden on desktop */
    width: 44px;
    height: 44px;
    background: var(--gold);
    color: var(--black-rich);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--fs-lg);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* City Quick Links
   Sized to content and kept on one line so "Browse:" stays beside the cities
   (#136: real Open Sans is wider than the fallback that used to render, and the
   old flex:1 + wrap pushed the label onto its own line). The search form takes
   the remaining width. Below 1200px the links may wrap to a second line. */
.city-quick-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
}

.browse-label {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    font-weight: 500;
    flex-shrink: 0;
}

.city-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
    justify-content: center;
}

@media (max-width: 1199px) {
    .city-quick-links {
        flex: 0 1 auto;
    }

    .city-links {
        flex-wrap: wrap;
    }
}

.city-link {
    color: var(--champagne);
    font-size: var(--fs-sm);
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.city-link:hover {
    color: var(--gold);
    background: var(--gold-opac);
}

.city-separator {
    color: var(--border-color);
    font-size: var(--fs-xs);
}

/* Mobile City Dropdown - Hidden on desktop */
.city-dropdown-mobile {
    display: none;
}

/* --------------------------------------------------------------------------
   15.5.1 Persistent Search Bar - Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .persistent-search-bar {
        padding: 10px 12px;
        position: relative;
        z-index: 99;
        overflow: visible; /* Must be visible for select dropdown to work on mobile */
    }

    .search-bar-container {
        position: relative;
        gap: 8px;
        justify-content: flex-start;
        align-items: center;
        flex-wrap: nowrap;
        padding: 0;
        max-width: 100%;
        overflow: visible;
        box-sizing: border-box;
    }

    /* Hide full search form on mobile by default */
    .search-bar-form {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-bg);
        padding: 15px;
        border-bottom: 2px solid var(--gold);
        flex-direction: column;
        z-index: 100;
        box-shadow: var(--shadow-heavy);
        box-sizing: border-box;
        max-width: 100vw;
    }

    .search-bar-form .search-input-wrapper {
        width: 100%;
        min-width: unset;
    }

    .search-bar-form .search-submit-btn {
        width: 100%;
        padding: 16px;
        font-size: var(--fs-md);
    }

    .search-bar-form .advanced-search-link {
        text-align: center;
        padding: 12px;
        display: block;
    }

    /* Show mobile toggle */
    .mobile-search-toggle {
        display: flex !important;
        flex-shrink: 0;
        margin-right: 10px;
    }

    /* When hamburger menu is open: hide search bar entirely to prevent overlap */
    body.menu-open .persistent-search-bar {
        display: none;
    }

    /* When search is expanded */
    .persistent-search-bar.search-expanded .search-bar-form {
        display: flex;
    }

    .persistent-search-bar.search-expanded .mobile-search-toggle {
        background: var(--champagne);
    }

    /* City navigation - Show dropdown, hide tiles on mobile */
    .city-quick-links {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
        max-width: calc(100% - 120px); /* Leave room for hamburger */
    }

    /* Hide tile-style links on mobile */
    .city-links {
        display: none;
    }

    .city-separator {
        display: none;
    }

    /* Show and style the dropdown on mobile */
    .city-dropdown-mobile {
        display: block;
        width: 100%;
        padding: 10px 14px;
        font-size: var(--fs-md); /* 16px prevents iOS zoom on focus */
        color: var(--champagne);
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        padding-right: 36px;
        min-width: 0;
        min-height: 44px; /* WCAG touch target */
        position: relative;
        z-index: 2;
    }

    .city-dropdown-mobile:focus {
        outline: none;
        border-color: var(--gold);
        box-shadow: 0 0 0 2px var(--gold-opac);
    }

    .city-dropdown-mobile option {
        background: var(--card-bg);
        color: var(--text-primary);
        padding: 10px;
    }

    .browse-label {
        flex-shrink: 0;
        font-size: var(--fs-sm);
    }
}

@media (max-width: 480px) {
    .persistent-search-bar {
        padding: 8px 10px;
    }

    .search-bar-container {
        gap: 8px;
    }

    .city-quick-links {
        margin: 0;
        gap: 8px;
    }

    /* Hide "Browse:" label on very small screens to save space */
    .browse-label {
        display: none;
    }

    .city-dropdown-mobile {
        font-size: var(--fs-sm);
        padding: 8px 12px;
        padding-right: 32px;
    }

    .mobile-search-toggle {
        width: 44px;
        height: 44px;
        font-size: var(--fs-md);
    }
}

/* ==========================================================================
   AGE VERIFICATION MODAL (was css/age-verification-modal.css)
   ========================================================================== */

/**
 * Age Verification Modal - Elite & Exclusive Design
 * Matches Aussie Escorts branding with Plum, Champagne & Black theme
 * Version: 2.0.0-elite-exclusive
 */

/* Overlay Background */
.tosdisclaimer-overlay {
	background: rgba(10, 10, 10, 0.95);
	backdrop-filter: blur(8px);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999998;
	animation: fadeIn 0.3s ease-in;
}

/* Modal Wrapper - Centers the modal */
.tosdisclaimer-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: fadeIn 0.3s ease-in;
}

/* Modal Container */
.tosdisclaimer {
	background: linear-gradient(135deg, #1a0f2e 0%, #2a1b3d 100%);
	border: 2px solid rgba(212, 175, 55, 0.3);
	border-radius: 24px;
	max-width: 500px;
	width: 100%;
	padding: 50px 40px;
	text-align: center;
	position: relative;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
	            0 0 0 1px rgba(212, 175, 55, 0.2),
	            0 0 30px rgba(212, 175, 55, 0.15);
	animation: slideUp 0.4s ease-out;
}

/* Logo */
.tosdisclaimer .disclaimer-logo {
	width: 100%;
	text-align: center;
	margin-bottom: 30px;
}

.tosdisclaimer .disclaimer-logo img {
	max-height: 80px;
	width: auto;
	display: inline-block;
}

/* Title */
.tosdisclaimer .disclaimer-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: var(--fs-2xl);
	font-weight: 700;
	color: #f4e8c1;
	margin: 0 0 25px 0;
	padding: 0;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Text Content */
.tosdisclaimer .disclaimer-text,
.tosdisclaimer .disclaimer-requirement {
	font-family: var(--font-primary);
	font-size: var(--fs-md);
	line-height: 1.6;
	color: rgba(250, 249, 246, 0.9);
	margin: 0 0 15px 0;
	padding: 0;
}

.tosdisclaimer .disclaimer-requirement {
	font-weight: 600;
	font-size: var(--fs-lg);
	color: #faf9f6;
	margin-bottom: 35px;
}

/* Button Container */
.tosdisclaimer .tosdisclaimerbuttons {
	display: flex;
	gap: 15px;
	justify-content: center;
	align-items: center;
	margin-top: 35px;
}

/* Gold "I'm 18 or older" Button */
.tosdisclaimer .entertosdisclaimer {
	background: linear-gradient(135deg, #f4e8c1 0%, #d4c5a0 100%);
	border: 2px solid #d4af37;
	color: #0a0a0a;
	font-family: var(--font-primary);
	font-size: var(--fs-md);
	font-weight: 600;
	padding: 14px 32px;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
	flex: 1;
	max-width: 200px;
}

.tosdisclaimer .entertosdisclaimer:hover {
	background: linear-gradient(135deg, #d4af37 0%, #e6c55f 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5),
	            0 0 20px rgba(212, 175, 55, 0.4);
	border-color: #e6c55f;
}

.tosdisclaimer .entertosdisclaimer:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

/* White "Leave" Button */
.tosdisclaimer .closetosdisclaimer {
	background: transparent;
	border: 2px solid rgba(250, 249, 246, 0.3);
	color: rgba(250, 249, 246, 0.9);
	font-family: var(--font-primary);
	font-size: var(--fs-md);
	font-weight: 500;
	padding: 14px 32px;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	flex: 1;
	max-width: 200px;
}

.tosdisclaimer .closetosdisclaimer:hover {
	background: rgba(250, 249, 246, 0.1);
	border-color: rgba(250, 249, 246, 0.5);
	color: #ffffff;
	transform: translateY(-2px);
}

.tosdisclaimer .closetosdisclaimer:active {
	transform: translateY(0);
	background: rgba(250, 249, 246, 0.05);
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.tosdisclaimer {
		padding: 40px 30px;
		max-width: 90%;
	}
	
	.tosdisclaimer .disclaimer-title {
		font-size: var(--fs-2xl);
	}
	
	.tosdisclaimer .disclaimer-text,
	.tosdisclaimer .disclaimer-requirement {
		font-size: var(--fs-base);
	}
	
	.tosdisclaimer .tosdisclaimerbuttons {
		flex-direction: column;
		gap: 12px;
	}
	
	.tosdisclaimer .entertosdisclaimer,
	.tosdisclaimer .closetosdisclaimer {
		max-width: 100%;
		width: 100%;
		font-size: var(--fs-base);
		padding: 12px 24px;
	}

	/* Override parent theme's margin-right: 30px on .entertosdisclaimer
	   (parent specificity 0,3,0 — must match to reset) */
	.tosdisclaimer .tosdisclaimerbuttons .entertosdisclaimer {
		margin-right: 0;
	}
	
	.tosdisclaimer .disclaimer-logo img {
		max-height: 60px;
	}
}

@media (max-width: 480px) {
	.tosdisclaimer {
		padding: 30px 20px;
	}
	
	.tosdisclaimer .disclaimer-title {
		font-size: var(--fs-xl);
		margin-bottom: 20px;
	}
	
	.tosdisclaimer .disclaimer-logo {
		margin-bottom: 20px;
	}
	
	.tosdisclaimer .disclaimer-requirement {
		margin-bottom: 25px;
	}
}
