        :root {
            --navy: #0f2537;
            --navy-light: #1a3a52;
            --cream: #fffbf5;
            --cream-dark: #f8f5f0;
            --gold: #c9a961;
            --text-dark: #2c3e50;
            --text-light: #6c7a89;
        }
        
        .bwgygl-root,
        .bwgygl-root *,
        .bwgygl-modal,
        .bwgygl-modal * {
            box-sizing: border-box;
        }

        .bwgygl-root *,
        .bwgygl-modal * {
            margin: 0;
            padding: 0;
        }

        .bwgygl-root {
            height: 100%;
            overflow: hidden;
            font-family: 'Montserrat', sans-serif;
            background: var(--cream);
            color: var(--text-dark);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
        }

        /* In WordPress the parent has no defined height, so the split layout
           needs an explicit viewport height to anchor the flex chain. */
        .bwgygl-layout-split {
            height: 100vh;
        }

        .bwgygl-root h1,
        .bwgygl-root h2,
        .bwgygl-root h3,
        .bwgygl-modal h1,
        .bwgygl-modal h2,
        .bwgygl-modal h3 {
            font-family: 'Cormorant Garamond', serif;
            font-weight: 600;
        }
        
        .bwgygl-container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header */
        .bwgygl-site-header {
            background: var(--navy);
            color: var(--cream);
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            z-index: 100;
            flex-shrink: 0;
        }
        
        .bwgygl-header-top {
            background: var(--navy-light);
            padding: 8px 0;
            font-size: 12px;
        }
        
        .bwgygl-header-top .bwgygl-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .bwgygl-header-contact { display: flex; gap: 20px; }
        .bwgygl-header-contact a {
            color: var(--cream);
            text-decoration: none;
            opacity: 0.9;
        }
        .bwgygl-header-contact a:hover { opacity: 1; color: var(--gold); }
        
        .bwgygl-header-main { padding: 15px 0; }
        .bwgygl-header-main .bwgygl-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .bwgygl-logo { display: flex; align-items: center; gap: 12px; }
        .bwgygl-logo-icon {
            width: 44px;
            height: 40px;
            background: var(--gold);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 700;
            color: var(--navy);
            letter-spacing: -0.5px;
        }
        
        .bwgygl-logo-text h1 { font-size: 24px; line-height: 1; }
        .bwgygl-logo-text p {
            font-size: 10px;
            letter-spacing: 2px;
            text-transform: uppercase;
            opacity: 0.8;
            color: var(--gold);
        }

        /* Navigation */
        .bwgygl-main-nav {
            display: flex;
            gap: 30px;
            align-items: center;
        }

        .bwgygl-nav-link {
            color: var(--cream);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            padding: 8px 0;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }

        .bwgygl-nav-link:hover {
            color: var(--gold);
            border-bottom-color: var(--gold);
        }

        .bwgygl-nav-link.active {
            color: var(--gold);
            border-bottom-color: var(--gold);
        }

        /* Split Container */
        .bwgygl-split-container {
            display: flex;
            flex: 1;
            overflow: hidden;
        }

        /* Map Column */
        .bwgygl-map-column {
            width: 50%;
            background: white;
            display: flex;
            flex-direction: column;
            border-right: 2px solid var(--cream-dark);
            position: relative; /* Anchor for .bwgygl-search-area-btn positioning */
        }

        #map {
            flex: 1;
            width: 100%;
        }

        .bwgygl-map-info {
            padding: 12px 20px;
            background: var(--cream-dark);
            border-top: 2px solid var(--gold);
            font-size: 12px;
            text-align: center;
            color: var(--text-light);
            flex-shrink: 0;
        }

        /* Results Column */
        .bwgygl-results-column {
            width: 50%;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: var(--cream);
        }

        /* Filter Bar - Apartments.com Style */
        .bwgygl-filter-bar {
            background: white;
            padding: 12px 16px;
            border-bottom: 2px solid var(--cream-dark);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            position: relative;
        }

        .bwgygl-filter-bar-icon {
            color: var(--text-light);
            font-size: 18px;
            padding: 8px;
        }

        .bwgygl-filter-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 16px;
            border: 2px solid var(--cream-dark);
            border-radius: 24px;
            background: white;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
            transition: all 0.2s;
            position: relative;
            user-select: none;
        }

        .bwgygl-filter-pill:hover {
            border-color: var(--navy);
            background: var(--cream);
        }

        .bwgygl-filter-pill.active {
            border-color: var(--gold);
            background: var(--gold);
            color: var(--navy);
        }

        .bwgygl-filter-pill.open {
            border-color: var(--navy);
            background: var(--cream);
        }

        .bwgygl-filter-pill .bwgygl-chevron {
            font-size: 10px;
            transition: transform 0.2s;
        }

        .bwgygl-filter-pill.open .bwgygl-chevron {
            transform: rotate(180deg);
        }

        .bwgygl-filter-pill .bwgygl-clear-btn {
            display: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--navy);
            color: white;
            border: none;
            font-size: 14px;
            line-height: 1;
            cursor: pointer;
            margin-left: 2px;
        }

        .bwgygl-filter-pill.active .bwgygl-clear-btn {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .bwgygl-filter-pill.active .bwgygl-chevron {
            display: none;
        }

        /* Filter Dropdowns */
        .bwgygl-filter-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            margin-top: 8px;
            background: white;
            border: 2px solid var(--cream-dark);
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            z-index: 1000;
            min-width: 280px;
            display: none;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.2s, transform 0.2s;
        }

        .bwgygl-filter-dropdown.open {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .bwgygl-dropdown-content {
            padding: 16px;
        }

        .bwgygl-dropdown-section {
            margin-bottom: 16px;
        }

        .bwgygl-dropdown-section:last-child {
            margin-bottom: 0;
        }

        .bwgygl-dropdown-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 10px;
            display: block;
        }

        .bwgygl-dropdown-sublabel {
            font-size: 11px;
            color: var(--text-light);
            font-weight: 400;
            margin-left: 6px;
        }

        /* Price Inputs */
        .bwgygl-price-inputs {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .bwgygl-price-input {
            flex: 1;
            padding: 10px 12px;
            border: 2px solid var(--cream-dark);
            border-radius: 8px;
            font-size: 14px;
            background: var(--cream);
        }

        .bwgygl-price-input:focus {
            outline: none;
            border-color: var(--gold);
            background: white;
        }

        .bwgygl-price-divider {
            color: var(--text-light);
            font-weight: 500;
        }

        .bwgygl-price-presets {
            display: flex;
            flex-direction: column;
            gap: 2px;
            margin-top: 12px;
            max-height: 180px;
            overflow-y: auto;
        }

        .bwgygl-price-preset {
            padding: 10px 12px;
            background: transparent;
            border: none;
            text-align: left;
            font-size: 14px;
            color: var(--text-dark);
            cursor: pointer;
            border-radius: 6px;
            transition: background 0.15s;
        }

        .bwgygl-price-preset:hover {
            background: var(--cream);
        }

        .bwgygl-price-preset.selected {
            background: var(--cream);
            color: var(--navy);
            font-weight: 600;
        }

        /* Tile Selectors (Beds/Baths) */
        .bwgygl-tile-selector {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .bwgygl-tile-btn {
            padding: 10px 16px;
            border: 2px solid var(--cream-dark);
            border-radius: 8px;
            background: white;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
            transition: all 0.15s;
            min-width: 50px;
            text-align: center;
        }

        .bwgygl-tile-btn:hover {
            border-color: var(--navy);
            background: var(--cream);
        }

        .bwgygl-tile-btn.selected {
            border-color: var(--navy);
            background: var(--navy);
            color: white;
        }

        .bwgygl-tile-btn.in-range {
            border-color: var(--navy);
            background: var(--cream);
            color: var(--text-dark);
        }

        /* Neighborhood Search */
        .bwgygl-neighborhood-search-wrap {
            padding: 8px 10px;
            border-bottom: 1px solid var(--cream-dark);
        }

        .bwgygl-neighborhood-search {
            width: 100%;
            padding: 8px 10px;
            border: 1px solid var(--cream-dark);
            border-radius: 4px;
            font-size: 14px;
            font-family: inherit;
            outline: none;
            box-sizing: border-box;
        }

        .bwgygl-neighborhood-search:focus {
            border-color: var(--navy);
        }

        /* Neighborhood List */
        .bwgygl-neighborhood-list {
            max-height: 280px;
            overflow-y: auto;
        }

        .bwgygl-neighborhood-group-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-light);
            text-transform: uppercase;
            padding: 8px 12px 4px;
            letter-spacing: 0.5px;
            background: transparent;
            border: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
            display: block;
            border-radius: 4px;
            transition: background 0.15s, color 0.15s;
        }

        .bwgygl-neighborhood-group-label:hover {
            background: var(--cream);
        }

        .bwgygl-neighborhood-group-label.selected {
            background: var(--cream);
            color: var(--navy);
        }

        .bwgygl-neighborhood-option {
            padding: 10px 12px 10px 36px;
            background: transparent;
            border: none;
            width: 100%;
            text-align: left;
            font-size: 14px;
            color: var(--text-dark);
            cursor: pointer;
            border-radius: 6px;
            transition: background 0.15s;
            display: block;
            position: relative;
        }

        .bwgygl-neighborhood-option::before {
            content: '';
            position: absolute;
            left: 10px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 16px;
            border: 2px solid var(--cream-dark);
            border-radius: 3px;
            background: transparent;
            transition: background 0.15s, border-color 0.15s;
        }

        .bwgygl-neighborhood-option:hover {
            background: var(--cream);
        }

        .bwgygl-neighborhood-option.selected {
            background: var(--cream);
            color: var(--navy);
            font-weight: 600;
        }

        .bwgygl-neighborhood-option.selected::before {
            background: var(--navy);
            border-color: var(--navy);
            content: '\2713';
            color: white;
            font-size: 11px;
            line-height: 16px;
            text-align: center;
        }

        /* Option List Buttons (Sort, Pet, Parking, Laundry dropdowns) */
        .bwgygl-option-btn {
            padding: 10px 12px;
            background: transparent;
            border: none;
            width: 100%;
            text-align: left;
            font-size: 14px;
            color: var(--text-dark);
            cursor: pointer;
            border-radius: 6px;
            transition: background 0.15s;
            display: block;
        }

        .bwgygl-option-btn:hover {
            background: var(--cream);
        }

        .bwgygl-option-btn.selected {
            background: var(--cream);
            color: var(--navy);
            font-weight: 600;
        }

        /* Date Picker */
        .bwgygl-date-picker-input {
            width: 100%;
            padding: 12px;
            border: 2px solid var(--cream-dark);
            border-radius: 8px;
            font-size: 14px;
            background: var(--cream);
            cursor: pointer;
        }

        .bwgygl-date-picker-input:focus {
            outline: none;
            border-color: var(--gold);
            background: white;
        }

        /* Dropdown Footer */
        .bwgygl-dropdown-footer {
            display: flex;
            justify-content: space-between;
            padding: 12px 16px;
            border-top: 1px solid var(--cream-dark);
            background: var(--cream);
            border-radius: 0 0 10px 10px;
        }

        .bwgygl-dropdown-clear {
            padding: 8px 16px;
            background: transparent;
            border: none;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-light);
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.15s;
        }

        .bwgygl-dropdown-clear:hover {
            color: var(--navy);
            background: white;
        }

        .bwgygl-dropdown-done {
            padding: 8px 20px;
            background: var(--navy);
            border: none;
            font-size: 14px;
            font-weight: 600;
            color: white;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.15s;
        }

        .bwgygl-dropdown-done:hover {
            background: var(--navy-light);
        }

        /* Dropdown Backdrop */
        .bwgygl-filter-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 999;
            display: none;
        }

        .bwgygl-filter-backdrop.active {
            display: block;
        }

        /* Sort control: compact, borderless */
        .bwgygl-filter-pill.bwgygl-sort-control {
            border-color: transparent;
            background: transparent;
            padding: 8px 12px;
            font-size: 13px;
            color: var(--text-dark);
            gap: 4px;
        }

        .bwgygl-filter-pill.bwgygl-sort-control:hover {
            background: var(--cream);
            border-color: transparent;
            color: var(--text-dark);
        }

        .bwgygl-filter-pill.bwgygl-sort-control.active {
            background: transparent;
            border-color: transparent;
            color: var(--gold);
        }

        .bwgygl-filter-pill.bwgygl-sort-control.active:hover {
            background: var(--cream);
        }

        .bwgygl-filter-pill.bwgygl-sort-control.open {
            background: var(--cream);
            border-color: transparent;
        }

        .bwgygl-sort-icon {
            font-size: 16px;
            line-height: 1;
        }

        /* More Filters dropdown: option groups laid out as horizontal tiles */
        .bwgygl-option-group {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .bwgygl-option-group .bwgygl-option-btn {
            width: auto;
        }

        /* Scrollable Results */
        .bwgygl-results-scroll {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }

        .bwgygl-results-summary {
            text-align: center;
            padding: 10px;
            margin-bottom: 15px;
            font-size: 13px;
            color: var(--text-light);
            background: white;
            border-radius: 6px;
            border: 1px solid var(--cream-dark);
        }

        /* Properties Grid */
        .bwgygl-properties-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
        }

        /* Pagination */
        .bwgygl-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            padding: 20px;
            flex-wrap: wrap;
        }

        .bwgygl-pagination button {
            padding: 8px 12px;
            border: 2px solid var(--cream-dark);
            background: white;
            border-radius: 6px;
            font-size: 13px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .bwgygl-pagination button:hover:not(:disabled) {
            border-color: var(--gold);
            background: var(--cream);
        }

        .bwgygl-pagination button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .bwgygl-pagination button.active {
            background: var(--navy);
            color: white;
            border-color: var(--navy);
        }

        .bwgygl-pagination .bwgygl-page-info {
            font-size: 12px;
            color: var(--text-light);
            margin: 0 10px;
        }

        /* Highlight marker for hover */
        .bwgygl-highlight-marker-inner {
            background: #c9a961;
            border: 3px solid #0f2537;
            border-radius: 50%;
            width: 30px;
            height: 30px;
            box-shadow: 0 0 10px rgba(201, 169, 97, 0.8), 0 0 20px rgba(201, 169, 97, 0.5);
            animation: pulse-highlight 0.8s ease-in-out infinite;
        }

        @keyframes pulse-highlight {
            0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(201, 169, 97, 0.8), 0 0 20px rgba(201, 169, 97, 0.5); }
            50% { transform: scale(1.2); box-shadow: 0 0 20px rgba(201, 169, 97, 1), 0 0 40px rgba(201, 169, 97, 0.7); }
        }

        .bwgygl-property-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
            transition: all 0.3s;
            cursor: pointer;
            border: 2px solid transparent;
            display: grid;
            grid-template-columns: 180px 1fr;
        }

        .bwgygl-property-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.15);
            border-color: var(--gold);
        }

        .bwgygl-property-image {
            width: 180px;
            height: 180px;
            object-fit: cover;
        }

        .bwgygl-property-content {
            padding: 15px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .bwgygl-property-price {
            font-size: 24px;
            font-weight: 700;
            color: var(--navy);
            font-family: 'Cormorant Garamond', serif;
            margin-bottom: 5px;
        }

        .bwgygl-property-price-label {
            font-size: 12px;
            color: var(--text-light);
            font-weight: 400;
            margin-left: 4px;
        }

        .bwgygl-property-address {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 8px;
            line-height: 1.3;
        }

        .bwgygl-property-details {
            display: flex;
            gap: 12px;
            font-size: 12px;
            color: var(--text-light);
            padding-top: 8px;
            border-top: 1px solid var(--cream-dark);
        }

        /* Property Card Badges */
        .bwgygl-property-badges {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin-top: 6px;
        }

        .bwgygl-badge {
            display: inline-flex;
            align-items: center;
            gap: 3px;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-weight: 500;
            line-height: 1.2;
        }

        .bwgygl-badge-pet {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .bwgygl-badge-parking {
            background: #e3f2fd;
            color: #1565c0;
        }

        .bwgygl-badge-sqft {
            background: #fff3e0;
            color: #b93d00;
        }

        .bwgygl-property-available {
            font-size: 11px;
            color: var(--text-light);
            font-style: italic;
            margin-top: 5px;
        }

        .bwgygl-loading {
            text-align: center;
            padding: 40px 20px;
        }

        .bwgygl-loading-spinner {
            width: 40px;
            height: 40px;
            border: 4px solid var(--cream-dark);
            border-top: 4px solid var(--gold);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 12px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Search This Area Button */
        .bwgygl-search-area-btn {
            position: absolute;
            top: 15px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            background: var(--navy);
            color: white;
            border: 2px solid var(--gold);
            border-radius: 25px;
            padding: 12px 24px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            transition: all 0.2s ease;
        }

        .bwgygl-search-area-btn:hover {
            background: var(--gold);
            color: var(--navy);
            transform: translateX(-50%) scale(1.05);
        }

        /* Neighborhood Selector */
        .bwgygl-neighborhood-selector {
            position: absolute;
            top: 10px;
            right: 10px;
            background: white;
            padding: 10px 14px;
            border-radius: 8px;
            border: 2px solid var(--gold);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 1000;
            min-width: 200px;
        }

        .bwgygl-neighborhood-selector label {
            display: block;
            font-size: 10px;
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 6px;
            text-transform: uppercase;
        }

        .bwgygl-neighborhood-selector select {
            width: 100%;
            padding: 8px 10px;
            border: 2px solid var(--cream-dark);
            border-radius: 6px;
            font-size: 13px;
            background: white;
            cursor: pointer;
        }

        .bwgygl-neighborhood-selector select:focus {
            outline: none;
            border-color: var(--gold);
        }

        /* Marker Cluster Styling */
        .bwgygl-map-column .marker-cluster {
            background-clip: padding-box;
            border-radius: 50%;
        }

        .bwgygl-map-column .marker-cluster div {
            width: 30px;
            height: 30px;
            margin-left: 5px;
            margin-top: 5px;
            text-align: center;
            border-radius: 50%;
            font-family: 'Montserrat', sans-serif;
            font-weight: 600;
            font-size: 12px;
            line-height: 30px;
        }

        .bwgygl-map-column .marker-cluster-small {
            background-color: rgba(201, 169, 97, 0.6);
        }

        .bwgygl-map-column .marker-cluster-small div {
            background-color: rgba(201, 169, 97, 0.9);
            color: var(--navy);
        }

        .bwgygl-map-column .marker-cluster-medium {
            background-color: rgba(15, 37, 55, 0.6);
        }

        .bwgygl-map-column .marker-cluster-medium div {
            background-color: rgba(15, 37, 55, 0.9);
            color: var(--cream);
        }

        .bwgygl-map-column .marker-cluster-large {
            background-color: rgba(15, 37, 55, 0.7);
        }

        .bwgygl-map-column .marker-cluster-large div {
            background-color: var(--navy);
            color: var(--gold);
        }

        /* Leaflet Popup */
        .bwgygl-map-column .leaflet-popup-content-wrapper {
            border-radius: 8px;
            border: 2px solid var(--gold);
        }
        
        .bwgygl-popup-content { text-align: center; }
        .bwgygl-popup-image {
            width: 100%;
            height: 140px;
            object-fit: cover;
            border-radius: 6px;
            margin-bottom: 10px;
        }
        
        .bwgygl-popup-price {
            font-size: 22px;
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 6px;
            font-family: 'Cormorant Garamond', serif;
        }
        
        .bwgygl-popup-address {
            font-size: 13px;
            color: var(--text-dark);
            margin-bottom: 8px;
        }
        
        .bwgygl-popup-details {
            font-size: 11px;
            color: var(--text-light);
            margin-bottom: 10px;
        }
        
        .bwgygl-popup-button {
            display: inline-block;
            background: var(--navy);
            color: var(--cream);
            padding: 8px 16px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            border: none;
        }
        
        .bwgygl-popup-button:hover {
            background: var(--gold);
            color: var(--navy);
        }
        
        /* Modal */
        .bwgygl-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 37, 55, 0.95);
            z-index: 10000;
            overflow-y: auto;
            font-family: 'Montserrat', sans-serif;
            color: var(--text-dark);
            line-height: 1.6;
        }
        
        .bwgygl-modal.active { display: block; }
        
        .bwgygl-modal-content {
            max-width: 1200px;
            margin: 40px auto;
            background: white;
            border-radius: 12px;
            overflow: hidden;
        }
        
        .bwgygl-modal-close {
            position: fixed;
            top: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            background: white;
            border: 3px solid var(--gold);
            border-radius: 50%;
            font-size: 28px;
            color: var(--navy);
            cursor: pointer;
            z-index: 10001;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .bwgygl-modal-close:hover {
            transform: rotate(90deg) scale(1.1);
            background: var(--gold);
        }
        
        .bwgygl-modal-gallery {
            position: relative;
            background: #000;
            height: 500px;
            overflow: hidden;
        }
        
        .bwgygl-gallery-main-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
        
        .bwgygl-gallery-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            pointer-events: none;
        }
        
        .bwgygl-gallery-nav button {
            pointer-events: all;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: white;
            color: var(--navy);
            font-size: 24px;
            border: 3px solid var(--gold);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .bwgygl-gallery-nav button:hover { background: var(--gold); }
        .bwgygl-gallery-nav button:disabled { opacity: 0.3; cursor: not-allowed; }
        
        .bwgygl-gallery-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(15, 37, 55, 0.9);
            color: var(--cream);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
        }
        
        .bwgygl-gallery-thumbnails {
            display: flex;
            gap: 8px;
            padding: 15px;
            max-width: 100%;
            overflow-x: auto;
            background: var(--cream-dark);
            justify-content: center;
        }
        
        .bwgygl-gallery-thumbnail {
            width: 70px;
            height: 50px;
            object-fit: cover;
            border-radius: 4px;
            cursor: pointer;
            opacity: 0.6;
            border: 2px solid transparent;
        }
        
        .bwgygl-gallery-thumbnail:hover {
            opacity: 0.9;
            transform: scale(1.05);
        }
        
        .bwgygl-gallery-thumbnail.active {
            opacity: 1;
            border-color: white;
        }
        
        .bwgygl-modal-details { padding: 40px; }
        
        .bwgygl-detail-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 0;
            padding-bottom: 25px;
            border-bottom: 2px solid var(--cream-dark);
        }
        
        .bwgygl-detail-title h2 {
            font-size: 42px;
            color: var(--navy);
            line-height: 1;
        }

        .bwgygl-detail-title p {
            font-size: 13px;
            color: var(--text-light);
            margin-top: 6px;
        }
        
        .bwgygl-detail-price-col {
            text-align: right;
        }

        .bwgygl-detail-price {
            font-size: 42px;
            font-weight: 600;
            color: var(--navy);
            font-family: 'Cormorant Garamond', serif;
            line-height: 1;
        }

        .bwgygl-detail-price-label {
            font-size: 13px;
            color: var(--text-light);
            margin-top: 6px;
        }

        .bwgygl-detail-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            padding: 15px 0 20px;
        }

        .bwgygl-detail-actions-buttons {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .bwgygl-detail-availability {
            font-size: 16px;
            color: var(--text-dark);
            font-weight: 500;
        }
        
        .bwgygl-detail-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        /* Two-column modal body: description (2/3) + detail cards (1/3) */
        .bwgygl-modal-body {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .bwgygl-room-notice {
            color: var(--navy);
            font-size: 22px;
            margin: 0 0 16px 0;
        }

        .bwgygl-modal-body-description h3 {
            color: var(--navy);
            font-size: 20px;
            margin-bottom: 15px;
        }

        .bwgygl-modal-body-details {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .bwgygl-modal-footer-meta {
            text-align: center;
            padding: 15px 0 0;
            margin-top: 10px;
            border-top: 1px solid var(--cream-dark);
        }
        
        .bwgygl-detail-section {
            background: var(--cream-dark);
            padding: 20px;
            border-radius: 8px;
            border-top: 3px solid var(--gold);
        }
        
        .bwgygl-detail-section h3 {
            color: var(--navy);
            font-size: 16px;
            margin-bottom: 15px;
        }
        
        .bwgygl-detail-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }
        
        .bwgygl-detail-row:last-child { border-bottom: none; }
        
        .bwgygl-detail-label {
            color: var(--text-light);
            font-size: 13px;
        }
        
        .bwgygl-detail-value {
            color: var(--text-dark);
            font-weight: 600;
            font-size: 13px;
        }
        
        /* Freshness indicator */
        .bwgygl-freshness {
            display: inline-block;
            font-size: 12px;
            color: var(--gold);
            font-weight: 500;
            margin-top: 4px;
        }

        /* Rent Includes list */
        .bwgygl-includes-list {
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .bwgygl-includes-list li {
            background: white;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 13px;
            color: var(--text-dark);
            border: 1px solid var(--cream-dark);
        }

        .bwgygl-highlights-includes {
            margin-top: 10px;
            padding-bottom: 10px;
        }

        .bwgygl-highlights-includes + .bwgygl-detail-row {
            border-top: 1px solid rgba(0,0,0,0.05);
        }

        .bwgygl-highlights-includes .bwgygl-detail-label {
            display: block;
            margin-bottom: 8px;
        }

        .bwgygl-description-section {
            margin-top: 30px;
        }
        
        .bwgygl-description-section h3 {
            color: var(--navy);
            font-size: 20px;
            margin-bottom: 15px;
        }
        
        .bwgygl-description-text {
            color: var(--text-dark);
            line-height: 1.8;
            font-size: 14px;
        }
        
        .bwgygl-contact-section {
            margin-top: 30px;
            padding: 25px;
            background: var(--navy);
            border-radius: 8px;
            color: var(--cream);
        }
        
        .bwgygl-contact-section h3 {
            font-size: 20px;
            margin-bottom: 15px;
            color: var(--gold);
        }
        
        .bwgygl-contact-details {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
        }
        
        .bwgygl-contact-item {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .bwgygl-contact-item a {
            color: var(--cream);
            text-decoration: none;
            font-weight: 600;
        }
        
        .bwgygl-contact-item a:hover { color: var(--gold); }

        /* ========== DEEP LINK / SHARE ========== */
        .bwgygl-copy-link-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 20px;
            background: var(--cream-dark);
            border: 2px solid var(--cream-dark);
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            color: var(--navy);
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
            text-decoration: none;
            line-height: 1.4;
        }

        .bwgygl-copy-link-btn:hover {
            background: var(--cream);
            border-color: var(--navy);
        }

        /* ========== ACTION BUTTONS ========== */
        .bwgygl-action-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            background: var(--navy);
            border: 2px solid var(--navy);
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            color: var(--cream);
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
            text-decoration: none;
            line-height: 1.4;
        }

        .bwgygl-action-btn:hover {
            background: var(--gold);
            border-color: var(--gold);
            color: var(--navy);
        }

        /* ========== GF SUB-MODAL ========== */
        .bwgygl-gf-submodal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 100001;
            align-items: center;
            justify-content: center;
        }

        .bwgygl-gf-submodal.active {
            display: flex;
        }

        .bwgygl-gf-submodal-backdrop {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 37, 55, 0.85);
        }

        .bwgygl-gf-submodal-panel {
            position: relative;
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            max-height: 85vh;
            overflow-y: auto;
            padding: 40px 30px 30px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
        }

        .bwgygl-gf-submodal-close {
            position: absolute;
            top: 10px;
            right: 14px;
            background: none;
            border: none;
            font-size: 28px;
            color: var(--text-light);
            cursor: pointer;
            line-height: 1;
            padding: 4px 8px;
            transition: color 0.2s;
        }

        .bwgygl-gf-submodal-close:hover {
            color: var(--navy);
        }

        .bwgygl-gf-submodal-body {
            width: 100%;
        }

        /* GF Orbital theme: override CSS custom properties inside sub-modal.
           GF injects an inline <style> scoped to #gform_wrapper_N which has
           ID-level specificity — !important is required to override. */
        .bwgygl-gf-submodal-body .gform-theme {
            --gf-color-primary: var(--navy) !important;
            --gf-color-primary-rgb: 15, 37, 55 !important;
            --gf-color-primary-contrast: #fff !important;
            --gf-color-primary-contrast-rgb: 255, 255, 255 !important;
            --gf-color-primary-darker: var(--navy-light) !important;
            --gf-color-primary-lighter: var(--gold) !important;
            --gf-color-in-ctrl: var(--cream) !important;
            --gf-color-in-ctrl-rgb: 255, 251, 245 !important;
            --gf-color-in-ctrl-contrast: var(--text-dark) !important;
            --gf-color-in-ctrl-contrast-rgb: 44, 62, 80 !important;
            --gf-color-in-ctrl-primary: var(--navy) !important;
            --gf-color-in-ctrl-primary-rgb: 15, 37, 55 !important;
            --gf-color-in-ctrl-primary-contrast: #fff !important;
            --gf-color-in-ctrl-primary-contrast-rgb: 255, 255, 255 !important;
            --gf-color-in-ctrl-primary-darker: var(--navy-light) !important;
            --gf-color-in-ctrl-primary-lighter: var(--gold) !important;
            --gf-ctrl-border-color: #ccc !important;
            --gf-color-out-ctrl-light: rgba(44, 62, 80, 0.1) !important;
            --gf-color-out-ctrl-light-darker: rgba(44, 62, 80, 0.35) !important;
            --gf-color-out-ctrl-dark: var(--text-light) !important;
            --gf-color-out-ctrl-dark-darker: var(--navy) !important;
            --gf-color-out-ctrl-dark-lighter: var(--text-light) !important;
            --gf-ctrl-label-color-primary: var(--text-dark) !important;
            --gf-ctrl-label-color-secondary: var(--text-dark) !important;
            --gf-radius: 6px !important;
        }

        /* GF form title inside sub-modal */
        .bwgygl-gf-submodal-body .gform_title {
            font-size: 22px;
            font-weight: 600;
            color: var(--navy);
            margin: 0 0 16px;
        }

        /* GF form element resets inside sub-modal (fallback for non-Orbital themes) */
        .bwgygl-gf-submodal-body .gform_wrapper input[type="text"],
        .bwgygl-gf-submodal-body .gform_wrapper input[type="email"],
        .bwgygl-gf-submodal-body .gform_wrapper input[type="tel"],
        .bwgygl-gf-submodal-body .gform_wrapper textarea,
        .bwgygl-gf-submodal-body .gform_wrapper select {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid var(--cream-dark);
            border-radius: 6px;
            font-size: 14px;
            font-family: inherit;
            background: var(--cream);
            box-sizing: border-box;
        }

        .bwgygl-gf-submodal-body .gform_wrapper input:focus,
        .bwgygl-gf-submodal-body .gform_wrapper textarea:focus,
        .bwgygl-gf-submodal-body .gform_wrapper select:focus {
            outline: none;
            border-color: var(--gold);
            background: white;
        }

        .bwgygl-gf-submodal-body .gform_wrapper .gform_button,
        .bwgygl-gf-submodal-body .gform_wrapper input[type="submit"] {
            background: var(--navy);
            color: var(--cream);
            border: none;
            padding: 12px 24px;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.2s;
        }

        .bwgygl-gf-submodal-body .gform_wrapper .gform_button:hover,
        .bwgygl-gf-submodal-body .gform_wrapper input[type="submit"]:hover {
            background: var(--gold);
            color: var(--navy);
        }

        .bwgygl-deeplink-notice {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 16px;
            background: #fef3cd;
            border: 1px solid #ffc107;
            border-radius: 8px;
            font-size: 14px;
            color: #856404;
            margin: 12px;
            animation: bwgygl-notice-fade-in 0.3s ease;
        }

        .bwgygl-deeplink-notice button {
            background: none;
            border: none;
            font-size: 20px;
            color: #856404;
            cursor: pointer;
            padding: 0 4px;
            line-height: 1;
            flex-shrink: 0;
        }

        .bwgygl-deeplink-notice button:hover {
            color: #533f03;
        }

        @keyframes bwgygl-notice-fade-in {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* ========== MODAL STAT BLOCKS ========== */
        .bwgygl-detail-stats {
            display: flex;
            gap: 24px;
        }

        .bwgygl-detail-stat {
            text-align: center;
        }

        .bwgygl-detail-stat-number {
            font-family: 'Cormorant Garamond', serif;
            font-size: 42px;
            font-weight: 600;
            color: var(--navy);
            line-height: 1;
        }

        .bwgygl-detail-stat-label {
            font-size: 13px;
            color: var(--text-light);
            margin-top: 6px;
        }

        /* ========== MODAL MINI MAP ========== */
        .bwgygl-modal-map-section {
            margin-top: 30px;
        }

        .bwgygl-modal-map-section h3 {
            color: var(--navy);
            font-size: 20px;
            margin-bottom: 15px;
        }

        #modalMiniMap {
            height: 250px;
            border-radius: 8px;
            margin-top: 15px;
            border: 2px solid var(--cream-dark);
        }

        .bwgygl-view-on-map-btn {
            display: block;
            width: 100%;
            margin-top: 15px;
            padding: 12px 24px;
            background: var(--navy);
            color: var(--cream);
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.2s;
        }

        .bwgygl-view-on-map-btn:hover {
            background: var(--gold);
            color: var(--navy);
        }

        .bwgygl-no-location {
            color: var(--text-light);
            font-size: 14px;
            font-style: italic;
            margin-top: 10px;
        }

        /* ========== LIGHTBOX ========== */
        .bwgygl-lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 100000;
            background: rgba(0, 0, 0, 0.95);
            align-items: center;
            justify-content: center;
        }

        .bwgygl-lightbox.active {
            display: flex;
        }

        .bwgygl-lightbox-image {
            max-width: 95vw;
            max-height: 95vh;
            object-fit: contain;
            border-radius: 4px;
            user-select: none;
        }

        .bwgygl-lightbox-close {
            position: absolute;
            top: 16px;
            right: 20px;
            background: none;
            border: none;
            color: #fff;
            font-size: 40px;
            cursor: pointer;
            line-height: 1;
            padding: 4px 12px;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .bwgygl-lightbox-close:hover {
            opacity: 1;
        }

        .bwgygl-lightbox-prev,
        .bwgygl-lightbox-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.15);
            border: none;
            color: #fff;
            font-size: 48px;
            cursor: pointer;
            padding: 8px 16px;
            border-radius: 4px;
            line-height: 1;
            opacity: 0.8;
            transition: opacity 0.2s, background 0.2s;
        }

        .bwgygl-lightbox-prev:hover,
        .bwgygl-lightbox-next:hover {
            opacity: 1;
            background: rgba(255, 255, 255, 0.25);
        }

        .bwgygl-lightbox-prev:disabled,
        .bwgygl-lightbox-next:disabled {
            opacity: 0.2;
            cursor: default;
        }

        .bwgygl-lightbox-prev { left: 16px; }
        .bwgygl-lightbox-next { right: 16px; }

        .bwgygl-lightbox-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: #fff;
            font-size: 14px;
            font-weight: 500;
            background: rgba(0, 0, 0, 0.5);
            padding: 6px 16px;
            border-radius: 20px;
        }

        /* ========== STACKED LAYOUT ========== */
        .bwgygl-stacked-map-wrapper {
            max-width: none;
            padding: 15px 0 0;
        }

        .bwgygl-stacked-map-wrapper .bwgygl-map-column {
            width: 100%;
            height: 500px;
            border-right: none;
            border-radius: 0;
            overflow: hidden;
        }

        .bwgygl-stacked-search-bar-wrapper {
            max-width: none;
            padding: 0;
            position: sticky;
            top: 0;
            z-index: 2000;
        }

        .bwgygl-stacked-search-bar {
            background: var(--navy);
            border-radius: 0;
            padding: 12px 16px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .bwgygl-stacked-search-bar .bwgygl-filter-bar {
            background: transparent;
            border: none;
            padding: 0;
            flex: 1;
        }

        .bwgygl-stacked-search-bar .bwgygl-filter-pill {
            background: var(--navy-light);
            border-color: var(--navy-light);
            color: var(--cream);
        }

        .bwgygl-stacked-search-bar .bwgygl-filter-pill:hover {
            background: var(--gold);
            border-color: var(--gold);
            color: var(--navy);
        }

        .bwgygl-stacked-search-bar .bwgygl-filter-pill.active {
            background: var(--gold);
            border-color: var(--gold);
            color: var(--navy);
        }

        .bwgygl-stacked-search-bar .bwgygl-filter-pill.open {
            background: var(--gold);
            border-color: var(--gold);
            color: var(--navy);
        }

        /* Sort pill hidden in stacked layout (sort control is in utility bar) */
        .bwgygl-stacked-search-bar .bwgygl-filter-pill.bwgygl-sort-control {
            display: none;
        }

        /* Utility bar: sort + results count + pagination (below green filter bar) */
        .bwgygl-utility-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 16px;
            background: var(--cream);
            border-top: 1px solid var(--cream-dark);
            font-size: 14px;
            color: var(--text-light);
            gap: 16px;
        }

        .bwgygl-utility-sort {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
        }

        .bwgygl-utility-sort-label {
            display: flex;
            align-items: center;
            gap: 2px;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
            white-space: nowrap;
        }

        .bwgygl-utility-sort-select {
            border: none;
            background: transparent;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-dark);
            cursor: pointer;
            padding: 2px 4px;
        }

        .bwgygl-utility-info {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        .bwgygl-stacked-count {
            color: var(--text-light);
            font-size: 13px;
            font-weight: 500;
            white-space: nowrap;
        }

        .bwgygl-stacked-pagination {
            display: flex;
            gap: 6px;
        }

        .bwgygl-stacked-pagination button {
            padding: 6px 10px;
            background: white;
            border: 1px solid var(--cream-dark);
            border-radius: 4px;
            color: var(--text-dark);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .bwgygl-stacked-pagination button:hover:not(:disabled) {
            background: var(--gold);
            border-color: var(--gold);
            color: var(--navy);
        }

        .bwgygl-stacked-pagination button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .bwgygl-stacked-pagination button.active {
            background: var(--navy);
            border-color: var(--navy);
            color: white;
        }

        .bwgygl-stacked-pagination .bwgygl-pagination {
            padding: 0;
            gap: 6px;
            flex-wrap: nowrap;
        }

        .bwgygl-stacked-pagination .bwgygl-page-info {
            display: none;
        }

        .bwgygl-stacked-cards-wrapper {
            max-width: none;
            padding: 8px 0 20px;
        }

        .bwgygl-stacked-cards-wrapper .bwgygl-properties-grid {
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }

        /* ========== VIRTUAL TOUR BADGE ========== */
        .bwgygl-badge-tour {
            background: #ede9fe;
            color: #7c3aed;
        }

        /* ========== TOUR THUMBNAIL CARDS (actions row) ========== */
        .bwgygl-tour-cards {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            padding: 0 0 10px;
        }

        .bwgygl-tour-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            background: #f8f8f8;
            border: 1px solid #e0e0e0;
            border-radius: 6px;
            padding: 6px;
            cursor: pointer;
            font-family: inherit;
            transition: border-color 0.15s, box-shadow 0.15s;
        }

        .bwgygl-tour-card:hover {
            border-color: #2563eb;
            box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
        }

        .bwgygl-tour-card-thumb-wrap {
            position: relative;
            width: 160px;
            height: 90px;
        }

        .bwgygl-tour-card-thumb {
            width: 160px;
            height: 90px;
            object-fit: cover;
            border-radius: 4px;
        }

        .bwgygl-tour-card-placeholder {
            background: #e5e7eb;
            border-radius: 4px;
        }

        .bwgygl-tour-card:hover .bwgygl-tour-card-placeholder {
            background: #dbeafe;
        }

        .bwgygl-tour-card-link-icon {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 36px;
            height: 36px;
            background: rgb(0 0 0 / 60%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            transition: background 0.15s;
        }

        .bwgygl-tour-card:hover .bwgygl-tour-card-link-icon {
            background: rgb(37 99 235 / 85%);
        }

        .bwgygl-tour-card-link-icon::after {
            content: '';
            display: block;
            width: 14px;
            height: 14px;
            border-top: 2.5px solid #fff;
            border-right: 2.5px solid #fff;
            border-bottom: none;
            border-left: none;
            transform: translate(-1px, 1px);
        }

        .bwgygl-tour-card-link-icon::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 16px;
            height: 2.5px;
            background: #fff;
            transform: translate(-50%, -50%) rotate(-45deg);
        }

        .bwgygl-tour-card-play {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 36px;
            height: 36px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            transition: background 0.15s;
        }

        .bwgygl-tour-card:hover .bwgygl-tour-card-play {
            background: rgba(37, 99, 235, 0.85);
        }

        .bwgygl-tour-card-play::after {
            content: '';
            display: block;
            width: 0;
            height: 0;
            border-style: solid;
            border-width: 7px 0 7px 12px;
            border-color: transparent transparent transparent #fff;
            margin-left: 2px;
        }

        .bwgygl-tour-card-label {
            font-size: 12px;
            font-weight: 600;
            color: #374151;
        }

        .bwgygl-tour-card-hidden {
            display: none;
        }

        .bwgygl-tour-cards-expanded .bwgygl-tour-card-hidden {
            display: flex;
        }

        .bwgygl-tour-cards-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            padding: 6px;
            font-size: 13px;
            font-weight: 600;
            color: #2563eb;
            background: none;
            border: 1px dashed #d0d5dd;
            border-radius: 6px;
            cursor: pointer;
            font-family: inherit;
        }

        .bwgygl-tour-cards-toggle:hover {
            background: #f0f5ff;
            border-color: #2563eb;
        }

        /* ========== MEDIA LIGHTBOX ========== */
        .bwgygl-media-lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            z-index: 50000;
            align-items: center;
            justify-content: center;
        }

        .bwgygl-media-lightbox.active {
            display: flex;
        }

        .bwgygl-media-lightbox-close {
            position: absolute;
            top: 16px;
            right: 20px;
            background: none;
            border: none;
            color: #fff;
            font-size: 40px;
            cursor: pointer;
            line-height: 1;
            padding: 4px 12px;
            opacity: 0.8;
            transition: opacity 0.2s;
            z-index: 1;
        }

        .bwgygl-media-lightbox-close:hover {
            opacity: 1;
        }

        .bwgygl-media-lightbox-container {
            position: relative;
            width: 90vw;
            max-width: 1100px;
            aspect-ratio: 16 / 9;
        }

        .bwgygl-media-lightbox-container iframe {
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 8px;
        }

        /* Mobile Responsive */
        @media (max-width: 968px) {
            .bwgygl-split-container {
                flex-direction: column;
            }

            .bwgygl-map-column, .bwgygl-results-column {
                width: 100%;
            }

            .bwgygl-map-column {
                height: 300px;
                flex-shrink: 0;
            }

            .bwgygl-property-card {
                grid-template-columns: 1fr;
            }

            .bwgygl-property-image {
                width: 100%;
                height: 200px;
            }

            .bwgygl-main-nav {
                gap: 15px;
            }

            .bwgygl-nav-link {
                font-size: 12px;
            }

            .bwgygl-modal-content { margin: 20px; }
            .bwgygl-modal-gallery { height: 300px; }
            .bwgygl-modal-details { padding: 25px; }
            .bwgygl-detail-header { flex-direction: column; gap: 15px; align-items: flex-start; }
            .bwgygl-detail-title h2 { font-size: 26px; }
            .bwgygl-detail-stat-number { font-size: 28px; }
            .bwgygl-detail-price { font-size: 28px; }
            .bwgygl-detail-actions { flex-wrap: wrap; }
            .bwgygl-detail-actions-buttons { flex-direction: column; width: 100%; }
            .bwgygl-detail-actions-buttons .bwgygl-copy-link-btn,
            .bwgygl-detail-actions-buttons .bwgygl-action-btn { width: 100%; justify-content: center; }
            .bwgygl-modal-body { grid-template-columns: 1fr; }
            .bwgygl-detail-stats { gap: 16px; }
            #modalMiniMap { height: 200px; }
            .bwgygl-gallery-thumbnails { display: none; }

            .bwgygl-gf-submodal-panel {
                width: 95%;
                max-height: 90vh;
                padding: 35px 20px 20px;
            }

            /* Stacked layout mobile */
            .bwgygl-stacked-map-wrapper .bwgygl-map-column {
                height: 350px;
            }

            .bwgygl-stacked-search-bar {
                flex-direction: column;
                align-items: stretch;
            }

            .bwgygl-stacked-cards-wrapper {
                padding: 15px;
            }

            .bwgygl-stacked-cards-wrapper .bwgygl-properties-grid {
                grid-template-columns: 1fr;
            }
        }
