:root {
    --bg: #f6f1e8;
    --surface: rgba(255, 252, 245, 0.84);
    --text: #1f2a2c;
    --muted: #60706f;
    --line: rgba(31, 42, 44, 0.12);
    --accent: #bf5a36;
    --accent-dark: #8f3f22;
    --success: #1e7b5f;
    --shadow: 0 20px 60px rgba(35, 28, 19, 0.12);
    --radius-lg: 28px;
    --container: min(1120px, calc(100vw - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(191, 90, 54, 0.18), transparent 30%),
        radial-gradient(circle at right 20%, rgba(43, 97, 92, 0.18), transparent 22%),
        linear-gradient(180deg, #fbf7ef 0%, var(--bg) 55%, #f3ece0 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
.container { width: var(--container); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(246, 241, 232, 0.72);
    border-bottom: 1px solid rgba(31, 42, 44, 0.08);
}

.nav-bar, .section-head, .room-meta, .card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.card-actions {
    margin-top: 20px;
}

.nav-bar { padding: 18px 0; }
.brand { display: inline-flex; gap: 14px; align-items: center; }

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1d6e69, #bf5a36);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand strong,
.hero-copy h1,
.section-title,
.room-card h3,
.detail-card h1,
.checkout-card h2,
.booking-card h1,
.confirmation-card h1,
.admin-table h1 {
    font-family: "Playfair Display", serif;
}

.brand small, .nav-links a, .eyebrow, .helper-text { color: var(--muted); }
.nav-links { display: flex; gap: 22px; font-weight: 600; }

.hero { padding: 64px 0 38px; }

.hero-shell,
.info-grid,
.rooms-grid,
.detail-layout,
.checkout-layout,
.booking-layout,
.search-form,
.booking-form,
.payment-form {
    display: grid;
    gap: 22px;
}

.hero-shell { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
.rooms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-grid, .detail-layout, .checkout-layout, .booking-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search-form, .booking-form, .payment-form { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.hero-copy,
.hero-panel,
.detail-layout,
.checkout-layout,
.booking-layout,
.admin-shell {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-copy {
    padding: 54px;
    border-radius: 38px;
}

.hero-panel { border-radius: 38px; overflow: hidden; }
.hero-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.info-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    margin-bottom: 18px;
    display: block;
}

.info-grid {
    align-items: stretch;
}

.info-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 420px;
}

.experience-reviews {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

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

.experience-card {
    min-height: 0;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 252, 246, 0.96), rgba(248, 239, 226, 0.92));
    border: 1px solid rgba(191, 90, 54, 0.22);
    position: relative;
}

.experience-card h3 {
    margin-top: 10px;
}

.experience-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, #1d6e69, #bf5a36);
    box-shadow: 0 10px 20px rgba(29, 110, 105, 0.25);
}

.review-pill {
    background: linear-gradient(160deg, rgba(255, 251, 244, 0.96), rgba(248, 239, 226, 0.92));
    border: 1px solid rgba(31, 42, 44, 0.12);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow);
}

.review-pill p {
    margin: 0;
    color: var(--text);
}

.review-pill span {
    margin-top: 10px;
    display: inline-block;
    font-size: 0.88rem;
    color: var(--muted);
    font-weight: 700;
}

#contact .info-card {
    min-height: 0;
    padding: 16px;
    border-radius: 20px;
}

#location .info-card {
    min-height: 0;
    padding: 16px;
    border-radius: 20px;
}


.eyebrow {
    display: inline-flex;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 800;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.95;
    margin: 18px 0;
}

.hero-stats { display: flex; gap: 16px; margin-top: 26px; flex-wrap: wrap; }

.stat, .search-panel, .room-card, .info-card, .summary-card, .booking-card, .checkout-card, .confirmation-card, .admin-table {
    background: rgba(255, 250, 241, 0.9);
    border: 1px solid rgba(31, 42, 44, 0.08);
    box-shadow: var(--shadow);
}

.stat {
    min-width: 120px;
    padding: 14px 16px;
    border-radius: 18px;
}

.search-panel {
    width: var(--container);
    margin: 0 auto 50px;
    padding: 22px;
    border-radius: 30px;
    overflow: hidden;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 700; }

.field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffdf7;
    padding: 14px 15px;
    font: inherit;
    color: var(--text);
}

.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid rgba(191, 90, 54, 0.24);
    border-color: rgba(191, 90, 54, 0.42);
}

.search-form .action, .booking-form .action, .payment-form .action { display: flex; align-items: end; }

.btn, button {
    border: 0;
    border-radius: 14px;
    padding: 14px 20px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.card-actions .btn {
    flex: 1;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #d78352);
    color: #fff;
}

.btn-secondary {
    background: rgba(31, 42, 44, 0.08);
    color: var(--text);
}

.btn:hover, button:hover { transform: translateY(-1px); }
.section { padding: 18px 0 48px; }
.section-title { font-size: clamp(2rem, 3.3vw, 3rem); margin: 6px 0 0; }

.room-card, .info-card, .summary-card, .booking-card, .checkout-card, .confirmation-card, .admin-table {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.room-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.room-card-full-image img {
    object-fit: contain;
    background: rgba(31, 42, 44, 0.05);
}
.room-card-content, .info-card, .summary-card, .booking-card, .checkout-card, .confirmation-card, .admin-table { padding: 24px; }
.price-tag { font-weight: 800; color: var(--accent-dark); }

.room-card ul, .detail-list, .summary-list, .confirmation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.room-card ul li, .detail-list li, .summary-list li, .confirmation-list li, th, td {
    padding: 10px 0;
    border-bottom: 1px solid rgba(31, 42, 44, 0.08);
}

.detail-layout, .checkout-layout, .booking-layout, .admin-shell {
    width: var(--container);
    margin: 44px auto;
    border-radius: 34px;
    padding: 26px;
}

.detail-image { border-radius: 24px; overflow: hidden; min-height: 420px; }
.detail-image img {
    height: 100%;
    object-fit: cover;
}

.detail-image-full img {
    width: 100%;
    object-fit: contain;
    background: rgba(31, 42, 44, 0.05);
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 10px 14px;
    background: rgba(30, 123, 95, 0.12);
    color: var(--success);
    font-weight: 800;
}

.alert {
    width: var(--container);
    margin: 22px auto 0;
    padding: 15px 18px;
    border-radius: 16px;
    font-weight: 700;
}

.search-panel .alert {
    width: 100%;
    max-width: 100%;
    margin: 0 0 16px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.alert-error { background: rgba(165, 45, 45, 0.12); color: #7a2323; }
.alert-success { background: rgba(30, 123, 95, 0.12); color: var(--success); }
.payment-note { padding: 16px; border-radius: 16px; background: rgba(29, 110, 105, 0.08); color: #205957; }

table { width: 100%; border-collapse: collapse; }
th { font-size: 0.84rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); text-align: left; }
td small { color: var(--muted); }
tbody tr:hover { background: rgba(31, 42, 44, 0.03); }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
    .hero-shell, .rooms-grid, .info-grid, .detail-layout, .checkout-layout, .booking-layout, .search-form, .booking-form, .payment-form {
        grid-template-columns: 1fr;
    }

    .experience-reviews {
        grid-template-columns: 1fr;
    }

    .nav-links { display: none; }
    .hero-copy { padding: 32px; }
    .detail-image { min-height: 280px; }
}

/* AI Support Chat Widget */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: inherit;
}

#chat-button {
    width: 60px;
    height: 60px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

#chat-button:hover {
    transform: scale(1.1);
}

#chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

#chat-header {
    background: var(--accent);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
}

#chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}

.chat-message {
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
}

.chat-message.user {
    background: var(--accent);
    color: white;
    margin-left: auto;
}

.chat-message.bot {
    background: white;
    color: var(--text);
    border: 1px solid var(--line);
}

#chat-input-area {
    display: flex;
    padding: 15px;
    background: white;
    border-top: 1px solid var(--line);
}

#chat-input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px 15px;
    font: inherit;
}

#chat-send {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: 700;
}

.facility-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.facility-card:hover {
    transform: translateY(-5px);
}

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

.facility-content {
    padding: 20px;
}

.facility-content h3 {
    margin: 0 0 10px 0;
    color: var(--text);
}

.facility-content p {
    margin: 0;
    color: var(--muted);
}
