:root {
    --bg: #eef2f6;
    --card: #ffffff;
    --ink: #1c2a39;
    --muted: #607084;
    --line: #d9e1ea;
    --primary: #0d6efd;
    --primary-strong: #0a58ca;
    --danger: #dc3545;
    --success: #198754;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f9fbfd 0%, var(--bg) 100%);
}

.topbar {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    text-decoration: none;
    color: #0b2f5b;
    font-family: "Montserrat", sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
}

.demo-pill {
    background: #e9f2ff;
    color: var(--primary);
    border: 1px solid #cfe2ff;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
}

.topnav {
    display: flex;
    gap: 18px;
}

.topnav a {
    text-decoration: none;
    color: #304b67;
    font-weight: 600;
    font-size: 0.92rem;
}

.breadcrumb {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--line);
}

.gallery {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 18px 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.gallery-main {
    width: 100%;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(31, 52, 74, 0.15);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.gallery-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.gallery-thumbs img.active {
    opacity: 1;
    border-color: var(--primary);
}

.detail-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 18px 40px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
}

.sidebar-booking {
    order: 2;
}

.booking-card {
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 18px rgba(31, 52, 74, 0.1);
    position: sticky;
    top: 20px;
}

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

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

.price-label {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.price {
    margin: 4px 0;
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.price-per {
    color: var(--muted);
    font-size: 0.85rem;
}

.rating-badge {
    text-align: right;
}

.stars {
    color: #f0ad2c;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.reviews {
    color: var(--muted);
    font-size: 0.8rem;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #5c7187;
    margin-bottom: 4px;
}

.form-group input,
.form-group select {
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 11px;
    font: inherit;
    color: var(--ink);
    background: #fbfdff;
}

.price-breakdown {
    background: #f9fbfd;
    border-radius: 10px;
    padding: 12px;
    margin: 20px 0;
    font-size: 0.85rem;
}

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

.breakdown-row.total {
    border-top: 1px solid var(--line);
    padding-top: 8px;
    margin-top: 12px;
    color: var(--ink);
    font-weight: 700;
}

.btn-reserve {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: white;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
    margin-bottom: 8px;
}

.btn-reserve:hover {
    background: var(--primary-strong);
}

.btn-compare {
    width: 100%;
    height: 40px;
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.9rem;
}

.booking-note {
    margin-top: 12px;
    padding: 12px;
    background: #fef3cd;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #664d03;
}

.details-main {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail-header h1 {
    margin: 0 0 12px;
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
}

.location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.location svg {
    min-width: 16px;
}

.highlights {
    background: var(--card);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(31, 52, 74, 0.08);
}

.highlights h2 {
    margin: 0 0 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
}

.highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 12px;
}

.highlight svg {
    color: var(--primary);
}

.highlight span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}

.description {
    background: var(--card);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(31, 52, 74, 0.08);
}

.description h2 {
    margin: 0 0 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.description p {
    margin: 0 0 12px;
    line-height: 1.6;
    color: #3d4d60;
}

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

.amenities {
    background: var(--card);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(31, 52, 74, 0.08);
}

.amenities h2 {
    margin: 0 0 24px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

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

.amenity {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    background: #fafbfc;
}

.amenity strong {
    display: block;
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 0.95rem;
}

.amenity ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.amenity li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: #3d4d60;
    border-bottom: 1px solid #eef2f6;
}

.amenity li:last-child {
    border-bottom: 0;
}

.rooms {
    background: var(--card);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(31, 52, 74, 0.08);
}

.rooms h2 {
    margin: 0 0 24px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.room-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.room-card:hover {
    box-shadow: 0 8px 20px rgba(31, 52, 74, 0.15);
    transform: translateY(-4px);
}

.room-card.featured {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(13, 110, 253, 0.15);
}

.room-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff6b35;
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.room-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.room-card h3 {
    margin: 12px 12px 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
}

.room-card p {
    margin: 4px 12px;
    font-size: 0.85rem;
    color: var(--muted);
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px;
}

.room-features span {
    background: #f0f4f8;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #304b67;
}

.room-price {
    margin: 12px;
    font-weight: 700;
    color: var(--primary);
}

.btn-small {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
    height: 36px;
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-small:hover {
    background: #f0f4f8;
}

.reviews {
    background: var(--card);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(31, 52, 74, 0.08);
}

.reviews h2 {
    margin: 0 0 24px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.reviews-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.rating-display {
    text-align: center;
}

.big-rating {
    font-family: "Montserrat", sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.stars-big {
    color: #f0ad2c;
    font-size: 1.2rem;
    margin: 8px 0;
}

.rating-display p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-bar {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.rating-bar span:first-child {
    color: #f0ad2c;
}

.rating-bar span:last-child {
    color: var(--muted);
    text-align: right;
}

.bar {
    height: 8px;
    background: #e9ecf1;
    border-radius: 4px;
    overflow: hidden;
}

.bar .fill {
    height: 100%;
    background: #f0ad2c;
}

.individual-reviews {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fafbfc;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.review-header strong {
    font-size: 0.95rem;
}

.review-header .stars {
    color: #f0ad2c;
}

.review-date {
    margin: 0 0 10px;
    font-size: 0.8rem;
    color: var(--muted);
}

.review-text {
    margin: 0;
    line-height: 1.6;
    color: #3d4d60;
    font-size: 0.9rem;
}

.location-map {
    background: var(--card);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(31, 52, 74, 0.08);
}

.location-map h2 {
    margin: 0 0 16px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4f8 0%, #e9ecf1 100%);
    border: 1px solid var(--line);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.map-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

.map-placeholder .small {
    font-size: 0.8rem;
    margin-top: 8px;
}

footer {
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sidebar-booking {
        order: -1;
    }

    .booking-card {
        position: static;
    }

    .gallery-main {
        height: 350px;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .gallery-main {
        height: 250px;
    }

    .detail-header h1 {
        font-size: 1.5rem;
    }

    .price {
        font-size: 1.5rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr 1fr;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
