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

/* ===================== HERO ===================== */
.hero-bg {
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    background: #1a1a1a;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: -6px;
    background-image: url('../images/hero_bg.jpg');
    background-size: cover;
    background-position: center 40%;
    filter: blur(1.5px);
    transform: scale(1.02);
    z-index: 0;
}
.page-hero-bg {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    background: #1a1a1a;
}
.page-hero-bg::before {
    content: '';
    position: absolute;
    inset: -6px;
    background-image: url('../images/page_hero_bg.jpg');
    background-size: cover;
    background-position: center 30%;
    filter: blur(1.5px);
    transform: scale(1.02);
    z-index: 0;
}

/* ===================== NAV ===================== */
.nav-link {
    color: #e8be7e;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
}
.nav-link:hover, .nav-link.active {
    background-color: rgba(201, 137, 42, 0.2);
    color: #f2d9b0;
}
.mobile-nav-link {
    display: block;
    color: #e8be7e;
    padding: 0.7rem 0.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.15s;
}
.mobile-nav-link:hover {
    background: rgba(201, 137, 42, 0.15);
}

/* ===================== CARDS ===================== */
.facility-card {
    background: #fdf8f0;
    border: 1px solid #f2d9b0;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.facility-card:hover {
    border-color: #c9892a;
    box-shadow: 0 4px 15px rgba(201, 137, 42, 0.15);
}
.facility-card h4 {
    font-weight: 700;
    color: #3e2710;
    font-size: 0.9rem;
    margin: 0.5rem 0 0.25rem;
}
.facility-card p {
    color: #8b5e2a;
    font-size: 0.8rem;
    line-height: 1.4;
}

.icon-circle {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #c9892a, #8b5318);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    margin: 0 auto;
    flex-shrink: 0;
}
.icon-circle.mb-4 { margin-bottom: 1rem; }

/* ===================== RATES ===================== */
.rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f9edd8;
    font-size: 0.9rem;
    color: #5a3314;
}
.rate-row:last-of-type { border-bottom: none; }

/* ===================== TIMELINE ===================== */
.timeline-item {
    display: flex;
    gap: 1rem;
    position: relative;
    padding-left: 0.5rem;
}
.timeline-item + .timeline-item { margin-top: 1.25rem; }
.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #c9892a;
    flex-shrink: 0;
    margin-top: 0.3rem;
    border: 3px solid #fdf8f0;
    box-shadow: 0 0 0 2px #c9892a;
}
.timeline-content { flex: 1; }

/* ===================== GALLERY ===================== */
.gallery-card { cursor: pointer; }
.gallery-placeholder {
    background: linear-gradient(135deg, #5a3314 0%, #2d5616 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}
.gallery-placeholder:hover { transform: scale(1.01); }
.gallery-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255,255,255,0.7);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.gallery-caption {
    color: #6e3f16;
    font-size: 0.82rem;
    margin-top: 0.4rem;
    text-align: center;
}

/* ===================== CONTACT ===================== */
.contact-info-card {
    display: flex;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid #f0e4d4;
}
.contact-info-card:last-child { border-bottom: none; }

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3e2710;
    margin-bottom: 0.35rem;
}
.form-input {
    width: 100%;
    border: 1.5px solid #ddc4a0;
    border-radius: 0.6rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    color: #3e2710;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    font-family: inherit;
}
.form-input:focus {
    border-color: #c9892a;
    box-shadow: 0 0 0 3px rgba(201, 137, 42, 0.12);
}
textarea.form-input { resize: vertical; }

/* ===================== CHAT WIDGET ===================== */
#chatMessages {
    scroll-behavior: smooth;
}
.chat-msg {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-width: 85%;
}
.chat-msg.user { align-self: flex-end; align-items: flex-end; }
.chat-msg.bot  { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
    padding: 0.6rem 0.875rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
}
.chat-msg.user .chat-bubble {
    background: #c9892a;
    color: white;
    border-bottom-right-radius: 0.25rem;
}
.chat-msg.bot .chat-bubble {
    background: white;
    border: 1px solid #f0e4d4;
    color: #2C1A0E;
    border-bottom-left-radius: 0.25rem;
}
.chat-time {
    font-size: 0.7rem;
    color: #b07f43;
}
.chat-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #f0e4d4;
    border-radius: 1rem;
    border-bottom-left-radius: 0.25rem;
    width: fit-content;
}
.chat-typing span {
    width: 7px; height: 7px;
    background: #c9892a;
    border-radius: 50%;
    animation: typing 1s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* ===================== REVEAL BUTTON ===================== */
.reveal-btn {
    display: inline-flex;
    align-items: center;
    background: #f9edd8;
    border: 1px solid #ddc4a0;
    color: #8b5318;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}
.reveal-btn:hover {
    background: #f2d9b0;
    color: #5a3314;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 640px) {
    .hero-bg { min-height: 100svh; }

    #chatWidget { bottom: 1rem; right: 1rem; }
    #chatBox {
        width: calc(100vw - 2rem) !important;
        height: calc(100svh - 5rem) !important;
        max-height: none !important;
        right: 0 !important;
        border-radius: 1rem !important;
    }

    .page-hero-bg { min-height: 200px; }

    .mobile-nav-link {
        padding: 0.85rem 0.75rem;
        font-size: 1.05rem;
    }

    .facility-card { padding: 0.75rem; }
    .facility-card h4 { font-size: 0.8rem; }
    .facility-card p { font-size: 0.72rem; }
    .icon-circle { width: 2.5rem; height: 2.5rem; font-size: 0.95rem; }

    .rate-row { font-size: 0.82rem; padding: 0.5rem 0; }

    .form-input { padding: 0.75rem 0.9rem; font-size: 1rem; }
    select.form-input { font-size: 1rem; }

    .contact-info-card { padding: 0.75rem 0; }

    .reveal-btn { padding: 0.35rem 0.65rem; font-size: 0.75rem; }

    .gallery-thumb { aspect-ratio: 1/1; }

    #lightbox button { min-width: 44px; min-height: 44px; }
}

@media (max-width: 380px) {
    .rate-row { flex-direction: column; align-items: flex-start; gap: 0.15rem; }
}
