/* --- Premium Wedding Venues Design System --- */

:root {
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --secondary: #db2777;
    --secondary-hover: #be185d;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --muted: #64748b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,0) 50%, hsla(255,100%,96%,1) 100%),
                      radial-gradient(at 50% 0%, hsla(225,39%,30%,0) 50%, hsla(330,100%,97%,1) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

button, .btn {
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Glassmorphism Card Utility --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* --- Header / Navigation --- */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    font-weight: 300;
    color: var(--muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(219, 39, 119, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(219, 39, 119, 0.4);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.08);
}

.btn-text {
    background: transparent;
    color: var(--muted);
}

.btn-text:hover {
    color: var(--dark);
    background: rgba(0, 0, 0, 0.04);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* --- Footer --- */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
}

/* --- Main Layout: Welcome/Search --- */
.hero-section {
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--dark-light) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    color: var(--muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Search panel layout */
.search-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    margin-bottom: 60px;
    align-items: start;
}

.filters-sidebar {
    padding: 24px;
}

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

.filter-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--dark-light);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--dark-light);
    outline: none;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Map area */
.map-wrapper {
    height: 450px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

#map, #venue-map, #settings-map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.map-btn-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
}

/* Venues Grid */
.section-title {
    font-size: 28px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.venues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.venue-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    background: var(--white);
}

.venue-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.venue-image-container {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f3f4f6;
}

.brand-placeholder-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fbcfe8 0%, #db2777 100%);
    color: white;
    padding: 20px;
    text-align: center;
    z-index: 1;
}

.brand-placeholder-wrapper i {
    font-size: 32px;
    margin-bottom: 6px;
    animation: pulse 2s infinite;
}

.brand-placeholder-wrapper .brand-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: white !important;
}

.brand-placeholder-wrapper .brand-sub {
    font-size: 9px;
    font-family: var(--font-body);
    opacity: 0.9;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9) !important;
}

.venue-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s, opacity 0.4s ease;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.venue-card:hover .venue-image-container img {
    transform: scale(1.08);
}

.badge-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow);
}

.distance-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.venue-info {
    padding: 24px;
}

.venue-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.venue-address {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.venue-specs {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 16px;
}

.spec-item {
    font-size: 14px;
}

.spec-label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.spec-value {
    font-weight: 700;
    color: var(--dark-light);
}

/* --- Venue Detail Page --- */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 40px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 30px;
}

.gallery-main {
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: var(--radius-lg);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
    opacity: 0;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.gallery-sub {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.gallery-sub-item {
    width: 100%;
    height: calc(50% - 8px);
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: var(--radius-lg);
}

.gallery-sub-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
    opacity: 0;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.detail-content h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

.detail-desc {
    margin-top: 24px;
    font-size: 16px;
    color: var(--dark-light);
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.sidebar-form-panel {
    padding: 30px;
    position: sticky;
    top: 96px;
}

.sidebar-form-panel h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.booking-price {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    color: var(--primary);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.booking-price span {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
}

/* Tabs inside detail sidebar (Book vs Inquire) */
.form-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.form-tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    background: transparent;
    color: var(--muted);
    border-bottom: 2px solid transparent;
}

.form-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* --- Dashboards general --- */
.dashboard-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 72px);
}

.dashboard-sidebar {
    background: rgba(255, 255, 255, 0.9);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu button, .sidebar-menu a {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-align: left;
}

.sidebar-menu button.active, .sidebar-menu a.active,
.sidebar-menu button:hover, .sidebar-menu a:hover {
    background: rgba(124, 58, 237, 0.08);
    color: var(--primary);
}

.dashboard-main {
    padding: 40px;
    overflow-y: auto;
}

.dashboard-title {
    font-size: 32px;
    margin-bottom: 8px;
}

.dashboard-subtitle {
    color: var(--muted);
    margin-bottom: 30px;
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info h4 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.stat-info p {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-light);
    line-height: 1;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
}

/* Dashboard Sections Content */
.dashboard-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.dashboard-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tables design */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background: var(--light);
    padding: 16px 20px;
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(248, 250, 252, 0.5);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-pending { background: #fef3c7; color: #d97706; }
.badge-approved, .badge-completed, .badge-active, .badge-paid { background: #d1fae5; color: #059669; }
.badge-rejected, .badge-cancelled, .badge-suspended, .badge-failed { background: #fee2e2; color: #dc2626; }
.badge-unread { background: #dbeafe; color: #2563eb; }
.badge-replied { background: #f3e8ff; color: #7c3aed; }
.badge-hold { background: #ffedd5; color: #ea580c; }

/* Inquiries List Cards */
.inquiry-card {
    padding: 24px;
    margin-bottom: 16px;
}

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

.inquiry-meta {
    font-size: 13px;
    color: var(--muted);
}

/* Auth Screens */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    flex-grow: 1;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--muted);
}

/* Flash alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Owner Settings Location Selector */
.location-picker-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .search-container {
        grid-template-columns: 1fr;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
    }
    
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }
    
    .mobile-sidebar-header {
        display: flex !important;
    }
    
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -280px; /* Hide offscreen */
        width: 280px;
        height: 100vh;
        z-index: 1050;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column !important;
        overflow-x: visible !important;
        border-right: 1px solid var(--border);
        border-bottom: none !important;
        padding: 24px !important;
        gap: 20px !important;
    }
    
    .dashboard-sidebar.open {
        left: 0;
    }
    
    .sidebar-menu {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    #sidebar-overlay.active {
        display: block !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        height: 250px;
        grid-template-columns: 1fr;
    }
    
    .gallery-sub {
        display: none;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 12px;
    }
}


/* --- Header Search Bar --- */
.header-search-form {
    flex-grow: 1;
    max-width: 580px;
    margin: 0 20px;
}

.header-search-input-group {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 4px 6px 4px 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.header-search-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12), var(--shadow);
}

.header-search-field {
    display: flex;
    align-items: center;
    flex: 1;
    border-right: 1px solid var(--border);
    padding: 0 10px;
    min-width: 0;
}

.header-search-field:last-of-type {
    border-right: none;
}

.header-search-icon {
    color: var(--muted);
    font-size: 13px;
    margin-right: 8px;
}

.header-search-field input,
.header-search-field select {
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--dark-light);
    width: 100%;
    outline: none;
    padding: 6px 0;
}

.header-search-field input[type="date"] {
    cursor: pointer;
}

.header-search-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.header-search-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: var(--white);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 3px 6px rgba(124, 58, 237, 0.25);
    transition: transform 0.2s;
}

.header-search-btn:hover {
    transform: scale(1.05);
}

/* Responsiveness for navbar search */
@media (max-width: 992px) {
    .header-search-form {
        max-width: 420px;
    }
    .header-search-field:nth-child(2) {
        display: none; /* Hide date selector on smaller tablets to fit */
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 12px 0;
        gap: 12px;
    }
    .header-search-form {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    .header-search-field:nth-child(2) {
        display: flex; /* Show date selector again on stacked layout */
    }
}


/* --- View Switcher and Results Toolbar --- */
.results-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.view-switcher {
    display: flex;
    background: var(--border);
    padding: 3px;
    border-radius: 20px;
    border: 1px solid var(--border);
    gap: 2px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover {
    color: var(--dark-light);
}

.view-btn.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

/* View Containers */
.view-container {
    display: none;
}

.view-container.active-view {
    display: block;
}

/* Grid Layout */
.grid-view-active .venues-display-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Row (List) Layout */
.row-view-active .venues-display-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.row-view-active .venue-card {
    display: flex;
    flex-direction: row;
    height: 290px; /* Increased further to ensure all detailed specs, description and button are completely visible */
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
}

.row-view-active .venue-image-container {
    width: 320px;
    height: 100%;
    flex-shrink: 0;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    position: relative;
}

.row-view-active .venue-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.row-view-active .venue-info {
    flex-grow: 1;
    padding: 16px 20px; /* Reduced slightly to optimize vertical space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.row-view-active .venue-description-text {
    height: auto;
    max-height: 48px;
    overflow: hidden;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.row-view-active .venue-action-btn {
    margin-top: 10px;
}

@media (max-width: 992px) {
    .row-view-active .venue-card {
        flex-direction: column;
        height: auto;
    }
    .row-view-active .venue-image-container {
        width: 100%;
        height: 200px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .row-view-active .venue-card img {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
}


/* --- Grid View Defaults for Card Subsections --- */
.venue-details-section {
    margin-bottom: 12px;
}

.venue-booking-section {
    border-top: 1px dashed var(--border);
    padding-top: 14px;
    margin-top: 12px;
}

.venue-specs-vertical {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.spec-item-vertical {
    display: flex;
    flex-direction: column;
}

/* --- Row (List) View Specific Horizontal Split Overrides --- */
.row-view-active .venue-info {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    padding: 0;
}

.row-view-active .venue-details-section {
    flex-grow: 1;
    padding: 20px 24px;
    margin-bottom: 0;
    overflow-y: auto;
}

.row-view-active .venue-booking-section {
    width: 220px;
    border-top: none;
    border-left: 1px solid var(--border);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(248, 250, 252, 0.4);
    flex-shrink: 0;
}

.row-view-active .venue-specs-vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 0;
}

.row-view-active .venue-description-text {
    max-height: none;
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.row-view-active .venue-action-btn {
    margin-top: 10px;
}


/* --- Lightbox Slider Modal --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95); /* Deep dark glass backdrop */
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--secondary);
}

.lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1000px;
    height: 80%;
    position: relative;
}

.lightbox-slide-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.lightbox-caption {
    margin-top: 15px;
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 24px;
    padding: 16px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    user-select: none;
    z-index: 10001;
    outline: none;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.08);
}

.lightbox-prev {
    margin-right: 20px;
}

.lightbox-next {
    margin-left: 20px;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 14px;
    margin-top: 20px;
}

/* Gallery image cursor hover effect */
.gallery-main img,
.gallery-sub img {
    cursor: pointer;
    transition: filter 0.3s, transform 0.3s;
}

.gallery-main img:hover,
.gallery-sub img:hover {
    filter: brightness(0.85);
    transform: scale(1.01);
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        padding: 10px 14px;
        font-size: 18px;
    }
    .lightbox-prev {
        margin-right: 10px;
    }
    .lightbox-next {
        margin-left: 10px;
    }
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}

/* Custom Map Markers (Pink with WP Logo and Purple with Crosshair/Search Pin) */
.custom-marker-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.custom-pink-marker {
    background: var(--secondary);
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(219, 39, 119, 0.4);
    border: 2px solid #ffffff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.custom-pink-marker i {
    transform: rotate(45deg);
    color: #ffffff;
    font-size: 13px;
}

.custom-pink-marker:hover {
    transform: rotate(-45deg) scale(1.15);
    background: var(--secondary-hover);
}

.custom-purple-marker {
    background: var(--primary);
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(124, 58, 237, 0.4);
    border: 2px solid #ffffff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.custom-purple-marker i {
    transform: rotate(45deg);
    color: #ffffff;
    font-size: 13px;
}

.custom-purple-marker:hover {
    transform: rotate(-45deg) scale(1.15);
    background: var(--primary-hover);
}

/* Spinner Animation for Infinite Scroll */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(124, 58, 237, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Image Watermark Overlay --- */
.image-watermark {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 5;
    background: rgba(15, 23, 42, 0.65);
    color: white !important;
    padding: 5px 9px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(3px);
    pointer-events: none;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0.85;
}

.venue-card:hover .image-watermark {
    opacity: 1;
    background: rgba(219, 39, 119, 0.85); /* Turns brand pink on hover */
    transform: translateY(-2px);
}

/* --- Breadcrumbs --- */
.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--primary) !important;
}


/* --- Mobile sticky bottom navigation & Header adjustments --- */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 12px;
    left: 16px;
    right: 16px;
    height: 56px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    z-index: 1040;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
    gap: 4px;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
}

.mobile-nav-item i {
    font-size: 18px;
    transition: transform 0.2s;
}

.mobile-nav-item.active {
    color: var(--secondary);
}

.mobile-nav-item:hover {
    color: var(--secondary);
}

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

.mobile-header-auth {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
    
    body {
        padding-bottom: 80px !important;
    }
    
    header {
        position: sticky;
        top: 0;
        z-index: 999;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    }
    
    .navbar {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        height: 60px !important;
        padding: 0 20px !important;
        gap: 0 !important;
    }
    
    nav, .nav-auth {
        display: none !important;
    }
    
    .mobile-header-auth {
        display: flex !important;
    }
}


/* --- Mobile Filter overlay & toggle button --- */
.mobile-filter-toggle {
    display: none;
}

.mobile-filter-close {
    display: none;
}

@media (max-width: 768px) {
    .filters-sidebar {
        position: fixed !important;
        top: 0;
        left: -100% !important;
        width: 100% !important;
        height: 100vh !important;
        z-index: 1060 !important;
        background: var(--white) !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 24px !important;
        margin: 0 !important;
    }
    
    .filters-sidebar.open {
        left: 0 !important;
    }
    
    .mobile-filter-toggle {
        display: inline-flex !important;
    }
    
    .mobile-filter-close {
        display: flex !important;
    }
}


/* --- Search Page Responsiveness Optimizations --- */
@media (max-width: 768px) {
    .header-search-form {
        display: none !important;
    }
    
    .results-column {
        width: 100% !important;
        padding: 0 10px !important;
    }
    
    /* Stack row card items vertically */
    .row-view-active .venue-card {
        flex-direction: column !important;
        height: auto !important;
    }
    
    .row-view-active .venue-image-container {
        width: 100% !important;
        height: 200px !important;
    }
    
    .row-view-active .venue-info {
        padding: 20px !important;
    }
    
    #search-map {
        height: 380px !important;
    }
    
    .results-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 12px 16px !important;
    }
    
    .view-switcher {
        justify-content: center !important;
    }
    .wp-suggest-dropdown {
        min-width: 100% !important;
        width: 100% !important;
    }
}

/* --- Search Suggestion Autocomplete Styles --- */
.wp-suggest-wrapper {
    position: relative;
    width: 100%;
}

.wp-suggest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-top: 6px;
    max-height: 350px;
    overflow-y: auto;
    z-index: 1050;
    padding: 8px 0;
    animation: wpFadeInUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wpFadeInUp {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scrollbar Styling for suggestions */
.wp-suggest-dropdown::-webkit-scrollbar {
    width: 6px;
}
.wp-suggest-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.wp-suggest-dropdown::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.wp-suggest-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

.wp-suggest-category {
    margin-bottom: 8px;
}

.wp-suggest-category:last-child {
    margin-bottom: 0;
}

.wp-suggest-category-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 4px;
}

.wp-suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--dark-light);
    transition: all 0.15s ease;
}

.wp-suggest-item:hover,
.wp-suggest-item.active {
    background: rgba(124, 58, 237, 0.06);
    color: var(--primary);
}

.wp-suggest-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
}

/* Specific icon colors */
.wp-suggest-item-icon.city-icon {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
}

.wp-suggest-item-icon.locality-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.wp-suggest-item-icon.venue-icon {
    background: rgba(219, 39, 119, 0.1);
    color: var(--secondary);
}

.wp-suggest-item-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wp-suggest-item-title {
    font-weight: 600;
    line-height: 1.2;
}

.wp-suggest-item-subtitle {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.wp-suggest-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--muted);
    font-size: 14px;
    font-family: var(--font-body);
}

.wp-suggest-no-results {
    padding: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    font-family: var(--font-body);
}

/* --- Premium Custom Flatpickr Theme overrides --- */
.flatpickr-calendar {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    font-family: var(--font-body) !important;
    animation: fpFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 6px !important;
    width: 315px !important;
}

@keyframes fpFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.flatpickr-months {
    background: transparent !important;
}

.flatpickr-current-month {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: var(--dark-light) !important;
    font-size: 15px !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: var(--primary) !important;
}
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: var(--primary) !important;
}

.flatpickr-monthSelect-month:hover,
.flatpickr-day:hover,
.flatpickr-day.prevMonthDay:hover,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day.today:hover,
.flatpickr-day.today.prevMonthDay:hover,
.flatpickr-day.today.nextMonthDay:hover {
    background: rgba(124, 58, 237, 0.08) !important;
    border-color: transparent !important;
    color: var(--primary) !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    transform: scale(1.08) !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%) !important;
    border-color: transparent !important;
    color: var(--white) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3) !important;
    font-weight: 600 !important;
    transform: scale(1.05) !important;
}

.flatpickr-day.today {
    border-color: var(--secondary) !important;
    border-radius: 50% !important;
    color: var(--secondary) !important;
    font-weight: 700 !important;
}

.flatpickr-day.today:hover {
    background: rgba(219, 39, 119, 0.08) !important;
    color: var(--secondary) !important;
    border-color: transparent !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: rgba(0, 0, 0, 0.15) !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.flatpickr-weekdays {
    border-bottom: 1px solid var(--border) !important;
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
}

.flatpickr-weekday {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: var(--muted) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
}

.flatpickr-days {
    width: 300px !important;
}

.flatpickr-day {
    border-radius: 50% !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--dark-light) !important;
    height: 38px !important;
    line-height: 38px !important;
    max-width: 38px !important;
    margin: 2px !important;
}

/* Arrow styling */
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: var(--primary) !important;
}

.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    fill: var(--muted) !important;
    transition: fill 0.2s ease !important;
}

/* --- Header Navbar Alignment for Search Results page --- */
@media (min-width: 769px) {
    .navbar-search-layout {
        justify-content: flex-start !important;
        gap: 40px !important;
    }
    
    .navbar-search-layout .header-search-form {
        max-width: 680px !important;
        margin: 0 !important;
        flex-grow: 1 !important;
    }
    
    .navbar-search-layout .header-search-input-group {
        padding: 6px 8px 6px 20px !important;
        border-radius: 40px !important;
        height: 48px !important;
    }

    .navbar-search-layout .header-search-field input,
    .navbar-search-layout .header-search-field select {
        font-size: 14px !important;
    }
    
    .navbar-search-layout .header-search-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 14px !important;
    }
    
    .navbar-search-layout .nav-auth {
        margin-left: auto !important;
    }

    .navbar-search-layout .header-search-field:first-of-type {
        flex: 1.8 !important; /* Make city search even wider */
    }
}
