.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 40px;
}

/* Booking Mode Toggle */
.booking-mode-toggle {
    display: flex;
    background: #f7f7f7;
    padding: 4px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.mode-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
}

.mode-btn:hover {
    color: #000;
    background: rgba(255, 255, 255, 0.5);
}

.mode-btn.active {
    background: white;
    color: #000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Header Section */
.property-header {
    margin-bottom: 24px;
}

.property-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-dark);
}

.meta-left span {
    margin-right: 8px;
}

.meta-right a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    margin-left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
}

.meta-right a:hover {
    background: #f7f7f7;
}

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 200px); /* Fixed height rows */
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}

.info-area {
    display: flex;
    gap: 80px; /* Space between content and sidebar */
    align-items: flex-start;
}

.main-content {
    flex: 1;
}

.sidebar {
    width: 370px; /* Fixed width sidebar like Airbnb */
    position: sticky;
    top: 100px; /* Offset for header */
    margin-bottom: 40px;
}

/* Host Info */
.host-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.host-text h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.host-text p {
    color: var(--text-dark);
}

.host-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #f8f8f8;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    border: 1px solid #ddd;
    overflow: hidden;
}

.host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Description */
.description {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    line-height: 1.6;
}

/* Amenities */
.amenities {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.amenities h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
}

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

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

/* Booking Card */
.booking-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

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

.brand-identity {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    font-weight: 700;
    color: #555;
    font-size: 18px;
}

.brand-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-price {
    font-size: 22px;
    font-weight: 600;
}

.card-price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-light);
}

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

.booking-form {
    border: 1px solid #717171;
    border-radius: 8px;
    /* overflow: hidden; Removed to allow dropdown */
    margin-bottom: 16px;
    position: relative;
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #717171;
}

.input-group {
    padding: 10px 12px;
}

.input-group:first-child {
    border-right: 1px solid #717171;
}

.input-group label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.input-group input, 
.input-group .flatpickr-input {
    border: none;
    width: 100%;
    outline: none;
    font-size: 14px;
    color: var(--text-dark);
    background: transparent;
}

.guest-input {
    padding: 10px 12px;
    position: relative;
    cursor: pointer;
}

.guest-input label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.guest-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-dark);
    margin-top: 4px;
}

/* Guest Dropdown */
.guest-dropdown {
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 16px;
    z-index: 100;
    display: none; /* Hidden by default */
}

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

.guest-type-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.guest-type-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.guest-type-info p {
    font-size: 14px;
    color: var(--text-light);
    margin: 2px 0 0;
}

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

.btn-counter {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #717171;
    transition: all 0.2s;
}

.btn-counter:hover:not(:disabled) {
    border-color: #000;
    color: #000;
}

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

.counter-value {
    font-size: 16px;
    font-weight: 400;
    min-width: 15px;
    text-align: center;
}

.dropdown-footer {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.max-guests-note {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

.btn-close-dropdown {
    align-self: flex-end;
    background: none;
    border: none;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px 0;
}

.reserve-btn {
    width: 100%;
    background: var(--primary); /* Black */
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.2s;
}

.reserve-btn:hover {
    opacity: 0.9;
}

.reserve-btn:active {
    transform: scale(0.98);
}

/* Flatpickr B&W Theme Overrides */
.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border: 1px solid #eee !important;
    font-family: inherit !important;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.prevMonthDay.selected,
.flatpickr-day.nextMonthDay.selected {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange {
    background: #f4f4f4 !important;
    border-color: transparent !important;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #ddd !important;
    text-decoration: line-through !important;
    background: transparent !important;
    border-color: transparent !important;
    cursor: not-allowed !important;
}

.booking-error-container {
    color: #c13515;
    font-size: 14px;
    margin-bottom: 12px;
    display: none;
    align-items: center;
    gap: 8px;
}

.flatpickr-months .flatpickr-month {
    color: #000 !important;
    fill: #000 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 600 !important;
}

.flatpickr-weekday {
    color: #999 !important;
    font-weight: 600 !important;
}

.price-breakdown {
    margin-top: 24px;
    font-size: 16px;
    display: none; /* Hidden by default */
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.breakdown-row.total {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid #ddd;
    font-weight: 600;
    text-decoration: none;
}

/* Image Grid Variations */
.image-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 200px); /* Default 5-image layout */
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}

/* 1 Image: Full Width */
.image-grid.grid-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 400px;
}
.image-grid.grid-1 .grid-item-main {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
}

/* 2 Images: Split 50/50 */
.image-grid.grid-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 400px;
}
.image-grid.grid-2 .grid-item-main {
    grid-column: auto;
    grid-row: auto;
}

/* 3 Images: Main Left, 2 Stacked Right */
.image-grid.grid-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 200px 200px;
}
/* grid-item-main uses default styles */

/* 4 Images: 2x2 Grid */
.image-grid.grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
}
.image-grid.grid-4 .grid-item-main {
    grid-column: auto;
    grid-row: auto;
}

.grid-item-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    height: 100%;
}
.grid-item-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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


/* Reviews */
.reviews-section {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.review-stat {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 32px;
    display: flex;
    align-items: center; 
    gap: 8px;
}

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

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

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

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #222;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
}

/* Star Rating Form */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    font-size: 24px;
    color: #ddd;
    transition: color 0.1s;
}

.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #000;
}

/* Extracted Inline Styles */
.search-bar-sm span {
    font-weight: 500;
    margin-right: 16px;
}

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

.search-icon-btn i {
    font-size: 12px;
}

.meta-right {
    display: flex;
    align-items: center;
}

.meta-right .share-btn {
    margin-right: 16px;
}

#wishlist-btn {
    border: none;
    background: transparent;
    text-decoration: underline;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0;
}

#wishlist-btn i.fa-heart.fas {
    color: #ff385c;
}

.grid-item-main.empty-state {
    grid-column: 1 / -1;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-item-main.empty-state i {
    font-size: 48px;
    color: #ccc;
}

#property-map {
    height: 480px;
    width: 100%;
    border-radius: 12px;
    z-index: 1;
    margin-bottom: 24px;
}
