/* ==========================================================================
   Apartment Search System - Main Styles
   ========================================================================== */

/* Wrapper */
.apartment-search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Search Bar Container */
.apartment-search-bar {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
}

/* Search Fields */
.search-field {
    flex: 1;
    min-width: 150px;
    position: relative;
}

.search-field label {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field select,
.search-field input[type="text"],
.search-field input[type="date"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-field select:focus,
.search-field input[type="text"]:focus,
.search-field input[type="date"]:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.search-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.search-field select option {
    background: #222;
    color: #fff;
}

.search-field input[type="text"]::placeholder,
.search-field input[type="date"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Guests Selector */
.guests-selector {
    position: relative;
    overflow: visible;
}

.guests-display {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.guests-display:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Guests Popup */
.guests-popup {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 20px;
    z-index: 1000;
    min-width: 300px;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.guests-popup.open {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}

.guest-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.guest-row:last-of-type {
    border-bottom: none;
}

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

.guest-type {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin-bottom: 3px;
}

.guest-description {
    font-size: 13px;
    color: #888;
}

.guest-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.guest-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #222;
    background: #fff;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #222;
}

.guest-btn:hover {
    background: #222;
    color: #fff;
}

.guest-btn:disabled {
    border-color: #ddd;
    color: #ddd;
    cursor: not-allowed;
}

.guest-btn:disabled:hover {
    background: #fff;
    color: #ddd;
}

.guest-value {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    min-width: 20px;
    text-align: center;
}


/* Search Button */
.search-button-wrapper {
    flex-shrink: 0;
}

.search-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 12px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.search-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn:disabled {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.search-btn:disabled:hover {
    background: #fff;
    transform: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Results Wrapper */
.apartment-results-wrapper {
    margin-top: 40px;
}

/* Loading Spinner */
.apartment-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #000;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.apartment-loading p {
    font-size: 16px;
    color: #666;
}

/* Results Grid */
.apartment-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Apartment Card */
.apartment-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.apartment-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.apartment-content {
    padding: 20px;
}

.apartment-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
}

.apartment-location {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.apartment-location:before {
    content: "📍";
}

.book-now-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.book-now-btn:hover {
    background: #333;
    transform: scale(1.05);
}

/* No Results Message */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 20px;
    margin: 20px 0;
}

.no-results-message h3 {
    font-size: 24px;
    color: #222;
    margin-bottom: 10px;
}

.no-results-message p {
    font-size: 16px;
    color: #666;
}

/* Flatpickr Custom Styling */
.flatpickr-calendar {
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: none;
}

.flatpickr-day.selected {
    background: #000;
    border-color: #000;
}

.flatpickr-day.selected:hover {
    background: #333;
    border-color: #333;
}

/* Responsive Design */
@media (max-width: 992px) {
    .apartment-search-bar {
        border-radius: 30px;
        padding: 15px;
    }
    
    .search-field {
        min-width: 130px;
    }
}

@media (max-width: 768px) {
    .apartment-search-bar {
        flex-direction: column;
        border-radius: 20px;
        gap: 15px;
    }
    
    .search-field,
    .search-button-wrapper {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .apartment-results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Fix popup positioning on mobile */
    .guests-selector {
        position: relative;
        overflow: visible;
    }
    
    .guests-popup {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: translateY(0);
        z-index: 9999;
    }
    
    .guests-popup.open {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .apartment-search-wrapper {
        padding: 15px;
    }
    
    .apartment-image {
        height: 200px;
    }
    
    .apartment-content {
        padding: 15px;
    }
}

/* ==========================================================================
   Apartment SEH Grid - WooCommerce Style Layout
   ========================================================================== */

/* Grid Container */
.apartment-seh-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
    padding: 0;
}

/* Card */
.apartment-seh-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.apartment-seh-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: #ccc;
}

/* Image Container */
.apartment-seh-image-link {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.apartment-seh-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 aspect ratio like WooCommerce */
    overflow: hidden;
    background: #f5f5f5;
}

.apartment-seh-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover effect controlled by Elementor setting */
.apartment-seh-grid.has-hover-effect .apartment-seh-card:hover .apartment-seh-image img {
    transform: scale(1.05);
}

.apartment-seh-grid.no-hover-effect .apartment-seh-card:hover .apartment-seh-image img {
    transform: none;
}

/* Default hover effect for shortcode (backward compatibility) */
.apartment-seh-card:hover .apartment-seh-image img {
    transform: scale(1.05);
}

/* Override for Elementor widget */
.elementor-widget-apartments_grid .apartment-seh-card:hover .apartment-seh-image img {
    transform: none; /* Controlled by widget settings */
}

/* Content Area */
.apartment-seh-content {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}

/* Title */
.apartment-seh-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Book Now Button - Square Black Button */
.apartment-seh-button {
    display: inline-block;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: auto;
}

.apartment-seh-button:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.apartment-seh-button:active {
    transform: translateY(0);
}

/* No Results Message */
.apartment-seh-no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 40px 0;
}

/* Responsive Design - Tablet (3 columns) */
@media (max-width: 1200px) {
    .apartment-seh-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* Responsive Design - Tablet (2 columns) */
@media (max-width: 768px) {
    .apartment-seh-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .apartment-seh-content {
        padding: 15px;
    }
    
    .apartment-seh-title {
        font-size: 15px;
        min-height: 40px;
    }
    
    .apartment-seh-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Responsive Design - Mobile (1 column) */
@media (max-width: 480px) {
    .apartment-seh-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .apartment-seh-content {
        padding: 15px;
    }
    
    .apartment-seh-title {
        font-size: 16px;
        min-height: auto;
    }
    
    .apartment-seh-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ==========================================================================
   UI Overrides (v2.0.1) - Search bar + Apartments Grid match reference
   Reference screenshots:
   - Search bar layout: https://www.genspark.ai/api/files/s/3xw8B0Bl
   - Grid card layout: https://www.genspark.ai/api/files/s/kpNNBt8q
   ========================================================================== */

/* --- Search Bar: keep Search button inline with Guests --- */
.apartment-search-bar {
    background: rgba(52, 69, 80, 0.92);
    border-radius: 9999px;
    padding: 16px 18px;
    gap: 18px;
    flex-wrap: nowrap;
}

.search-field label {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.78);
}

.search-field select,
.search-field input[type="text"],
.guests-display {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    height: 42px;
    padding: 0 14px;
    display: flex;
    align-items: center;
}

/* Guests + Search grouped on the right */
.ass-guests-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex: 1;
    min-width: 260px;
}

.ass-guests-actions .guests-field {
    flex: 1;
    min-width: 180px;
}

.ass-guests-actions .search-button-wrapper {
    flex: 0 0 auto;
}

.search-btn {
    height: 42px;
    padding: 0 18px;
    background: #fff;
    color: #111;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none;
}

.search-btn:hover {
    background: #f7f7f7;
    transform: none;
    box-shadow: none;
}

/* Popup width on desktop */
.guests-popup {
    min-width: 320px;
}

@media (max-width: 992px) {
    .apartment-search-bar {
        flex-wrap: wrap;
        border-radius: 28px;
    }

    .ass-guests-actions {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .apartment-search-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
        gap: 14px;
        overflow: visible;
    }

    .ass-guests-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ass-guests-actions .search-btn {
        width: 100%;
    }
    
    /* Ensure guests field wrapper allows popup overflow */
    .ass-guests-actions .guests-field {
        position: relative;
        overflow: visible;
    }
    
    /* Mobile popup positioning fix */
    .guests-selector {
        position: relative;
        overflow: visible;
    }
    
    .guests-popup {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: translateY(0);
        margin-top: 10px;
        z-index: 9999;
    }
    
    .guests-popup.open {
        transform: translateY(0);
    }
}

/* --- Apartments Grid: match card design (image, title, location, rounded button) --- */
.apartment-results-grid,
.apartment-seh-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    margin: 28px 0;
}

/* Keep 4 columns until tablet breakpoint (override legacy 3-col rule) */
@media (max-width: 1200px) {
    .apartment-results-grid,
    .apartment-seh-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Tablet 2 cols, Mobile 1 col (as requested) */
@media (max-width: 1024px) {
    .apartment-results-grid,
    .apartment-seh-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .apartment-results-grid,
    .apartment-seh-grid {
        grid-template-columns: 1fr;
    }
}

.apartment-seh-card {
    background: #fff;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.apartment-seh-card:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    border-color: transparent;
}

.apartment-seh-image {
    position: relative;
    width: 100%;
    height: 220px;
    padding-bottom: 0;
    overflow: hidden;
    background: #f3f4f6;
}

.apartment-seh-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

.apartment-seh-content {
    padding: 14px;
    text-align: left;
    gap: 10px;
}

.apartment-seh-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    min-height: 0;
}

.apartment-seh-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

/* Red map-pin icon (inline) */
.ass-location-icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e11d48'%3E%3Cpath d='M12 2C8.134 2 5 5.134 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.866-3.134-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.apartment-seh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    background: #000;
    color: #fff;
    text-decoration: none;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 9999px;
    margin-top: 2px;
}

.apartment-seh-button:hover {
    background: #111;
    color: #fff;
    transform: none;
    box-shadow: none;
}

/* ==========================================================================
   Booking System Extensions
   ========================================================================== */
.apartment-seh-card[data-ass-card-link] {
    cursor: pointer;
}

.apartment-seh-title a {
    color: inherit;
    text-decoration: none;
}

.apartment-seh-price {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.apartment-seh-price span {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.ass-single-apartment-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.ass-single-apartment {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 420px);
    gap: 32px;
    align-items: start;
}

.ass-single-main,
.ass-booking-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.ass-single-main {
    padding: 28px;
}

.ass-single-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.ass-single-title {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.15;
}

.ass-single-location {
    color: #6c6c6c;
    font-size: 15px;
}

.ass-single-price-box {
    min-width: 180px;
    text-align: right;
}

.ass-single-price-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7a7a7a;
    margin-bottom: 8px;
}

.ass-single-price {
    font-size: 28px;
    line-height: 1;
}

.ass-gallery-stage {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
    min-height: 460px;
}

.ass-gallery-slide {
    display: none;
    margin: 0;
    position: relative;
    height: 100%;
}

.ass-gallery-slide.is-active {
    display: block;
}

.ass-gallery-slide img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.ass-gallery-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 18px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    font-size: 14px;
}

.ass-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.ass-gallery-prev { left: 16px; }
.ass-gallery-next { right: 16px; }

.ass-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ass-gallery-thumb {
    border: 2px solid transparent;
    background: #fff;
    border-radius: 12px;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
}

.ass-gallery-thumb.is-active {
    border-color: #111;
}

.ass-gallery-thumb img {
    width: 100%;
    height: 78px;
    object-fit: cover;
    display: block;
}

.ass-featured-image {
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.ass-featured-image img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.ass-single-section {
    margin-top: 32px;
}

.ass-single-section h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.ass-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
}

.ass-amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #e9e9e9;
    border-radius: 14px;
    background: #fafafa;
    font-weight: 600;
}

.ass-amenity-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    color: #111;
}

.ass-amenity-icon svg {
    width: 20px;
    height: 20px;
}

.ass-single-description p:last-child {
    margin-bottom: 0;
}

.ass-booking-card {
    padding: 24px;
    position: sticky;
    top: 24px;
}

.ass-booking-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.ass-booking-price-line {
    margin: 0 0 18px;
    color: #555;
}

.ass-booking-step {
    display: none;
}

.ass-booking-step.is-active {
    display: block;
}

.ass-booking-field {
    margin-bottom: 16px;
}

.ass-booking-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    color: #555;
}

.ass-booking-field input {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    color: #111;
}

.ass-booking-summary,
.ass-booking-review {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    border-radius: 14px;
    background: #f8f8f8;
    border: 1px solid #ececec;
}

.ass-booking-summary div,
.ass-booking-review div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.ass-booking-next,
.ass-booking-submit,
.ass-booking-back,
.ass-download-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
}

.ass-booking-next,
.ass-booking-submit,
.ass-download-pdf {
    background: #111;
    color: #fff;
}

.ass-booking-back {
    background: #f1f1f1;
    color: #111;
}

.ass-booking-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ass-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ass-booking-field-full {
    grid-column: 1 / -1;
}

.ass-booking-coupon {
    margin: 18px 0;
}

.ass-booking-coupon > label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
    color: #555;
}

.ass-booking-coupon-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.ass-booking-coupon-row input {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    color: #111;
}

.ass-booking-coupon-button {
    border: none;
    border-radius: 12px;
    background: #111;
    color: #fff;
    padding: 0 18px;
    min-height: 48px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.ass-booking-coupon-button:disabled,
.ass-booking-submit:disabled,
.ass-booking-next:disabled {
    opacity: 0.7;
    cursor: wait;
}

.ass-booking-message {
    display: none;
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eef5ff;
    color: #174a87;
    font-size: 14px;
}

.ass-booking-message.is-visible {
    display: block;
}

.ass-booking-message.is-error {
    background: #fff0f0;
    color: #9b2226;
}

.ass-booking-unavailable {
    padding: 14px 16px;
    background: #fff7e5;
    border: 1px solid #f1d999;
    color: #7a5a00;
    border-radius: 12px;
}

.ass-booking-success-card {
    padding: 24px;
    border-radius: 16px;
    background: #f8fff8;
    border: 1px solid #b7e3bc;
    text-align: center;
}

.ass-success-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: #22c55e;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
}

.ass-booking-success-card h3 {
    margin: 0 0 18px;
    font-size: 22px;
    color: #166534;
}

.ass-success-details {
    text-align: left;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}

.ass-success-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

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

.ass-success-row span {
    color: #6b7280;
}

.ass-success-row strong {
    color: #111;
    text-align: right;
}

.ass-success-total {
    padding-top: 12px;
    border-top: 2px solid #e5e7eb;
    font-size: 16px;
}

.ass-booking-success-card p {
    margin: 0 0 10px;
}

@media (max-width: 1024px) {
    .ass-single-apartment {
        grid-template-columns: 1fr;
    }

    .ass-booking-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .ass-single-apartment-wrap {
        padding: 24px 16px 40px;
    }

    .ass-single-main,
    .ass-booking-card {
        padding: 20px;
    }

    .ass-single-header {
        flex-direction: column;
    }

    .ass-single-price-box {
        text-align: left;
    }

    .ass-gallery-stage,
    .ass-gallery-slide img,
    .ass-featured-image img {
        min-height: 280px;
        height: 280px;
    }

    .ass-form-grid,
    .ass-booking-actions,
    .ass-booking-coupon-row {
        grid-template-columns: 1fr;
    }

    .ass-gallery-thumb img {
        height: 64px;
    }
}

/* ==========================================================================
   Payment Method Selector
   ========================================================================== */

.ass-booking-payment {
    margin: 18px 0;
}

.ass-booking-payment > label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
    color: #555;
}

.ass-payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ass-payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #d8d8d8;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.ass-payment-option:hover {
    border-color: #999;
    background: #fafafa;
}

.ass-payment-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #111;
    cursor: pointer;
    flex-shrink: 0;
}

.ass-payment-option input[type="radio"]:checked + .ass-payment-option-label {
    font-weight: 700;
    color: #111;
}

.ass-payment-option:has(input[type="radio"]:checked) {
    border-color: #111;
    background: #f8f8f8;
}

.ass-payment-option-label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

/* ==========================================================================
   Flatpickr Disabled Dates - Better Visual Styling
   ========================================================================== */

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay.flatpickr-disabled,
.flatpickr-day.nextMonthDay.flatpickr-disabled {
    background: transparent !important;
    color: #cbd5e1 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    border-color: transparent !important;
    opacity: 0.4;
}

.flatpickr-day.flatpickr-disabled::before,
.flatpickr-day.flatpickr-disabled::after {
    content: none !important;
    display: none !important;
}

/* ==========================================================================
   Image Aspect-Ratio Fallback for older browsers
   ========================================================================== */

@supports not (aspect-ratio: 4 / 3) {
    .apartment-seh-image {
        height: 220px;
        padding-bottom: 0;
    }

    .apartment-image {
        height: 250px;
    }
}

/* ==========================================================================
   Professional Gallery Upgrade
   ========================================================================== */
.ass-gallery {
    position: relative;
}

.ass-gallery-stage {
    position: relative;
}

.ass-gallery-slide-trigger {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.ass-gallery-slide-trigger img {
    pointer-events: none;
}

.ass-gallery-fullscreen-button {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    backdrop-filter: blur(4px);
}

.ass-gallery-fullscreen-button:hover {
    background: rgba(17, 24, 39, 0.88);
}

.ass-gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.ass-gallery-thumb {
    flex: 0 0 88px;
}

body.ass-lightbox-open {
    overflow: hidden;
}

.ass-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}

.ass-lightbox.is-open {
    display: block;
}

.ass-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.92);
}

.ass-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1400px);
    height: 100%;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.ass-lightbox-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    color: #fff;
}

.ass-lightbox-counter {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ass-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ass-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

.ass-lightbox-stage {
    position: relative;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ass-lightbox-figure {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.7);
}

.ass-lightbox-figure img {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 210px);
    object-fit: contain;
    display: block;
}

.ass-lightbox-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 22px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
    font-size: 14px;
    line-height: 1.5;
}

.ass-lightbox-caption.is-empty {
    display: none;
}

.ass-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.ass-lightbox-prev {
    left: 18px;
}

.ass-lightbox-next {
    right: 18px;
}

.ass-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.24);
}

.ass-lightbox-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.ass-lightbox-thumb {
    flex: 0 0 84px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    opacity: 0.72;
}

.ass-lightbox-thumb.is-active {
    border-color: #fff;
    opacity: 1;
}

.ass-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ass-lightbox:not(.ass-has-multiple) .ass-lightbox-nav,
.ass-lightbox:not(.ass-has-multiple) .ass-lightbox-thumbs {
    display: none;
}

@media (max-width: 767px) {
    .ass-lightbox-dialog {
        padding: 14px 12px 18px;
        gap: 12px;
    }

    .ass-lightbox-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .ass-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .ass-lightbox-prev {
        left: 10px;
    }

    .ass-lightbox-next {
        right: 10px;
    }

    .ass-lightbox-figure {
        border-radius: 14px;
    }

    .ass-lightbox-figure img {
        max-height: calc(100vh - 190px);
    }

    .ass-lightbox-caption {
        padding: 14px 16px;
        font-size: 13px;
    }

    .ass-lightbox-thumb {
        flex-basis: 72px;
        height: 54px;
    }
}
