/* Airbnb-like Space Detail Styling */

:root {
    --airbnb-color: #ff385c;
    --text-primary: #222222;
    --text-secondary: #717171;
    --border-color: #dddddd;
    --bg-light: #f7f7f7;
}

body {
    color: var(--text-primary);
    font-family: Circular, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 600;
}

/* Layout Adjustments */
.bravo_detail_space .bravo_content {
    padding-top: 24px;
}

/* Header Section (Title above gallery) */
.space-header {
    margin-bottom: 24px;
}

.space-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.125em;
}

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

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

.space-meta-left a {
    color: var(--text-primary);
    text-decoration: underline;
    font-weight: 500;
}

.space-actions .btn-action {
    background: transparent;
    border: none;
    color: var(--text-primary);
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    padding: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.space-actions .btn-action i {
    margin-right: 8px;
}

/* Gallery Grid */
.space-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 200px 200px;
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.gallery-item.main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    height: 408px;
    /* 200 + 200 + 8 */
}

.gallery-item.sub-1 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.gallery-item.sub-2 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.gallery-item.sub-3 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    border-top-right-radius: 12px;
}

.gallery-item.sub-4 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
    border-bottom-right-radius: 12px;
}

.btn-show-all-photos {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: white;
    border: 1px solid var(--text-primary);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: transform 0.1s ease;
    z-index: 10;
}

.btn-show-all-photos:hover {
    background: #f7f7f7;
    transform: scale(1.02);
}

/* Content Layout */
.space-content-layout {
    display: flex;
    gap: 8%;
    /* Creates the gap between content and sidebar */
}

.space-main-content {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.space-sidebar {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    margin-left: auto;
}

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

.host-text h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.host-text .host-meta {
    color: var(--text-primary);
    font-size: 16px;
}

.host-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

/* Features/Highlights */
.space-features {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    font-size: 24px;
    color: var(--text-primary);
}

.feature-text h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.feature-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Description */
.space-description {
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 48px;
    font-size: 16px;
    line-height: 24px;
    color: var(--text-primary);
}

/* Amenities */
.space-amenities {
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 48px;
}

.space-amenities h3 {
    font-size: 22px;
    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;
}

.amenity-item i {
    font-size: 24px;
    width: 24px;
    text-align: center;
    color: var(--text-primary);
}

/* Booking Card (Sticky) */
.booking-card-container {
    position: sticky;
    top: 120px;
    /* Adjust based on header height */
    z-index: 10;
}

.booking-card {
    border: 1px solid rgb(221, 221, 221);
    border-radius: 12px;
    padding: 24px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 16px;
    background: white;
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

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

.booking-price small {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
}

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

.booking-rating i {
    font-size: 12px;
    margin-right: 4px;
}

.booking-form-border {
    border: 1px solid var(--text-secondary);
    border-radius: 8px;
    overflow: visible;
    margin-bottom: 16px;
}

.date-picker-wrapper {
    display: flex;
    border-bottom: 1px solid var(--text-secondary);
}

.date-input {
    flex: 1;
    padding: 10px 12px;
    border-right: 1px solid var(--text-secondary);
    position: relative;
}

.date-input:last-child {
    border-right: none;
}

.date-input label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0;
}

.date-input input {
    border: none;
    padding: 0;
    font-size: 14px;
    width: 100%;
    outline: none;
    color: var(--text-secondary);
}

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

.guests-input label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0;
}

.guests-display {
    font-size: 14px;
    color: var(--text-primary);
}

.btn-book-airbnb {
    background: linear-gradient(to right, #E61E4D 0%, #E31C5F 50%, #D80565 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 8px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: transform 0.1s ease;
    margin-bottom: 16px;
}

.btn-book-airbnb:hover {
    background: linear-gradient(to right, #D80565 0%, #E31C5F 50%, #E61E4D 100%);
}

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

.no-charge-text {
    text-align: center;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: var(--text-primary);
}

.price-item.total {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    font-weight: 600;
    margin-top: 8px;
}

.price-item span:first-child {
    text-decoration: underline;
    color: var(--text-secondary);
}

.price-item.total span:first-child {
    text-decoration: none;
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .space-gallery-grid {
        display: none;
        /* Use slider for mobile */
    }

    .space-content-layout {
        flex-direction: column;
    }

    .space-main-content,
    .space-sidebar {
        max-width: 100%;
        flex: 0 0 100%;
    }

    .booking-card-container {
        position: static;
        margin-top: 32px;
    }
}