/* Font and Typography base */
body {
    background: #fff;
    color: #222222;
    -webkit-font-smoothing: antialiased;
}

/* Header & Typography */
h1 {
    font-size: 26px;
    font-weight: 600;
    line-height: 30px;
}

/* Review Badge in Title */
.title-reviews {
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.superhost-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

/* Action Buttons (Condividi/Salva) */
.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    transition: background 0.2s;
}
.action-btn:hover {
    background: #f7f7f9;
}

/* Bento Box Gallery */
.gallery-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 8px;
}

@media(max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .gallery-thumb { display: none; }
}

.gallery-grid .main-img {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    cursor: pointer;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s;
    cursor: pointer;
}
.gallery-grid img:hover {
    opacity: 0.85;
}

.gallery-thumb {
    position: relative;
    overflow: hidden;
}

/* Bottoni overlay gallery */
.show-all-photos {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: #fff;
    border: 1px solid #222;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.1s;
}
.show-all-photos:active {
    transform: scale(0.96);
}

/* Griglie Layout Principale */
.detail-grid {
    display: flex;
    flex-direction: row;
    gap: 48px;
    align-items: start;
}

.detail-grid > div:first-child {
    flex: 1;
    min-width: 0;
}

.detail-grid > div:last-child {
    width: 360px;
    flex-shrink: 0;
}

@media(max-width: 1024px) {
    .detail-grid {
        flex-direction: column;
        gap: 40px;
    }
    .detail-grid > div:last-child {
        width: 100%;
    }
}

/* Divisore Stile Airbnb */
.airbnb-divider {
    border-top: 1px solid #f1f5f9;
    margin-top: 20px;
    padding-top: 20px;
}

/* Sezioni */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

/* Booking Widget Card */
.booking-sticky {
    position: sticky;
    top: 100px;
}

.booking-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.01);
}

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

.booking-price {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.booking-price span {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
}

.booking-card input, .booking-card select {
    border: 1px solid #cbd5e1;
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
    color: #0f172a;
}
.booking-card input:focus, .booking-card select:focus {
    outline: 2px solid #2563eb;
    border-color: transparent;
}

.date-pickers {
    border: 1px solid #b0b0b0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.date-row {
    display: flex;
    border-bottom: 1px solid #b0b0b0;
}
.date-input {
    flex: 1;
    padding: 10px 12px;
}
.date-input:first-child { border-right: 1px solid #b0b0b0; }
.guest-input {
    padding: 10px 12px;
}
.label-small {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #222;
}

.btn-primary-book {
    background: #e51d53; /* Red/pink Airbnbish */
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s;
    text-align: center;
}
.btn-primary-book:hover {
    background: #d70466;
}

/* Host Row */
.host-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.host-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 24px;
}

/* Highlights */
.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.highlight-icon {
    font-size: 24px;
    color: #222;
}
.highlight-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
}
.highlight-text p {
    font-size: 14px;
    color: #717171;
    margin: 0;
}

/* Room Cards (Dove dormirai) */
.room-card-wrapper {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    snap-type: x mandatory;
}
.room-card-bento {
    flex: 0 0 calc(33% - 16px);
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 24px;
    scroll-snap-align: start;
}
@media(max-width: 768px) {
    .room-card-bento { flex: 0 0 80%; }
}
.room-card-bento i {
    font-size: 24px;
    margin-bottom: 16px;
    display: block;
}

/* Cosa Troverai - Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media(min-width: 640px) {
    .amenities-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.amenity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: #222;
}

/* Ratings & Reviews */
.review-stats-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 32px;
}
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
@media(max-width: 768px) {
    .reviews-grid { grid-template-columns: 1fr; }
}
.review-box {
    margin-bottom: 16px;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-content {
    font-size: 16px;
    line-height: 1.5;
    color: #222;
}

/* Map */
#hotel-map {
    height: 480px;
    border-radius: 12px;
}

/* Breadcrumb override */
.breadcrumb-bar {
    font-size: 14px;
    color: #222;
    margin-bottom: 24px;
}

/* Gallery Slider Styles */
.gallery-slider-wrapper {
    position: relative;
    margin-bottom: 24px;
}

#main-slider-container::-webkit-scrollbar {
    display: none;
}
#main-slider-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

#slider-thumbnails::-webkit-scrollbar {
    display: none;
}
#slider-thumbnails {
    -ms-overflow-style: none;
    scrollbar-width: none;
}