/* ========================================================
   TABLE OF CONTENTS
   1. Root Variables
   2. Global Styles & Typography
   3. Navbar
   4. Buttons
   5. Hero Section
   6. Cards / Accommodations
   7. Gallery (main page)
   8. Testimonials
   9. Footer
  10. Back to Top Button
  11. Skeleton Loading
  12. Utility & Misc
  13. Image Gallery Overlay Button
  14. Modal & Lightbox
  15. Breadcrumbs
  16. Skip‑to‑content Link (NEW)
  17. Responsive Adjustments
   ======================================================== */

/* ========== 1. ROOT VARIABLES ========== */
:root {
    --sand: #f5e6d3;
    --terracotta: #cd7a4d;
    --olive: #7c8a4a;
    --sage: #b7b87a;
    --warm-brown: #8b5a2b;
    --cream: #fef8ed;
    --charcoal: #3e3a35;
}

/* ========== 2. GLOBAL STYLES & TYPOGRAPHY ========== */
body {
    font-family: 'Quicksand', 'Poppins', 'Segoe UI', sans-serif;
    background-color: var(--cream);
    color: var(--charcoal);
    padding-top: 76px;
}

/* Headings – Quicksand by default */
h1, h2, h3, h5, h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

/* Paragraphs – soft and relaxing */
p {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
}

/* ---------- Great Vibes Script (only used where needed) ---------- */
.great-vibes,
.about-section h2,
.card-premium h4,
.experience-title {
    font-family: 'Great Vibes', cursive;
    font-weight: normal;
    color: var(--warm-brown);
    letter-spacing: 1px;
}

/* Removed duplicate .about-section h2 / .card-premium h4 block */

/* ========== 3. NAVBAR ========== */
#mainNav {
    background: var(--cream) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139, 90, 43, 0.15);
    transition: none;
}
.navbar-brand .brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warm-brown);
}
.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--charcoal);
}
.navbar-nav .nav-link:hover {
    color: var(--terracotta);
}
.text-gold {
    color: var(--terracotta);
}

/* Navbar responsive fixes */
@media (max-width: 991px) {
    .navbar-brand {
        max-width: 80%;
    }
    .navbar-brand .brand-text {
        font-size: 1.1rem;
        white-space: normal;
        line-height: 1.2;
    }
    .navbar-toggler {
        position: relative;
        right: 0;
    }
    .navbar-collapse {
        margin-top: 0.75rem;
    }
}
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        text-align: center;
    }
}

/* ========== 4. BUTTONS ========== */
.btn-gold {
    background: var(--terracotta);
    color: white;
    border-radius: 50px;
    padding: 10px 25px;
    transition: 0.3s;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.btn-gold:hover {
    background: var(--warm-brown);
    color: white;
    transform: translateY(-2px);
}
.btn-reserve {
    background: var(--terracotta);
    color: white !important;
    border-radius: 50px;
    padding: 0.5rem 1.5rem !important;
}
.price-badge {
    background: var(--terracotta);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 50px;
}
.btn-outline-gold {
    border: 2px solid var(--terracotta);
    background: transparent;
    color: var(--terracotta);
    border-radius: 50px;
    padding: 0.3rem 1rem;
    transition: 0.3s;
}
.btn-outline-gold:hover {
    background: var(--terracotta);
    color: white;
}

/* ========== 5. HERO SECTION ========== */
.hero {
    min-height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/homehero.jpg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;        /* desktop only */
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%);
    z-index: 1;
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
}
.staycation-script {
    font-family: 'Great Vibes', cursive;
    font-weight: normal;
    color: inherit;
    letter-spacing: 1px;
    font-size: 100px;
}

/* ---------- Mobile: disable fixed background for performance ---------- */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
}

/* ========== 6. CARDS / ACCOMMODATIONS ========== */
.card-premium {
    border: none;
    border-radius: 32px;
    overflow: hidden;
    background: #f9efdf;
    box-shadow: 0 15px 30px -12px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 40px -16px rgba(0,0,0,0.2);
}
/* Carousel inside cards – square aspect */
.card-premium .carousel-inner,
.card-premium .carousel-item {
    aspect-ratio: 1 / 1;
    width: 100%;
}
.card-premium .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .card-premium .carousel-inner,
    .card-premium .carousel-item {
        aspect-ratio: 1 / 1;
    }
}

/* ========== 7. GALLERY (MAIN PAGE) ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    overflow: hidden;
    border-radius: 24px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: 0.5s;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* ========== 8. TESTIMONIALS ========== */
.testimonial-card {
    background: #fef8ed;
    border-radius: 32px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* ========== 9. FOOTER ========== */
.footer {
    background: #2e2b27;
    color: #e6dccf;
    padding: 60px 0 20px;
    margin-top: 60px;
    border-top: 4px solid var(--terracotta);
}
.footer h5 {
    font-weight: 500;
    letter-spacing: 1px;
    color: #f0cfb0;
}
.footer-links a {
    color: #cfc5b8;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--terracotta);
}
.footer-logo-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 250px;
    margin: 0 auto 1rem auto;
}
.footer-logo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ========== 10. BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--terracotta);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    cursor: pointer;
    z-index: 1000;
}

/* ========== 11. SKELETON LOADING ========== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== 12. UTILITY / MISC ========== */
.content-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 24px;
}
.bg-about-section {
    background-color: #f9efdf;
}

/* ========== 13. IMAGE GALLERY OVERLAY BUTTON ========== */
.image-gallery-container {
    position: relative;
    display: inline-block;
    width: 100%;
}
.gallery-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border: 2px solid var(--terracotta);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
    z-index: 10;
    white-space: nowrap;
    max-width: 90%;              /* prevent overflow */
    overflow: hidden;
    text-overflow: ellipsis;
}
.image-gallery-container:hover .gallery-overlay-btn {
    opacity: 1;
}
@media (max-width: 768px) {
    .gallery-overlay-btn {
        background: rgba(0,0,0,0.8);
        font-size: 0.8rem;
        padding: 6px 12px;
        max-width: 85%;          /* slightly stricter on small screens */
    }
}

/* ========== 14. MODAL & LIGHTBOX ========== */
.modal-semi-fullscreen .modal-dialog {
    width: 90%;
    max-width: none;
    height: 90%;
    margin: 2% auto;
}
.modal-semi-fullscreen .modal-content {
    height: 100%;
    border-radius: 32px;
    background: #fffaf2;
}
.modal-semi-fullscreen .modal-body {
    overflow-y: auto;
    padding: 20px;
}
.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.gallery-img-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.gallery-img-thumb:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.lightbox.hidden {
    display: none;
}
.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 35px;
    color: white;
    cursor: pointer;
}
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 45px;
    color: white;
    cursor: pointer;
    padding: 10px;
    user-select: none;
    transition: 0.3s;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--terracotta);
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ========== 15. BREADCRUMBS ========== */
.breadcrumb-wrapper {
    background: #fef8ed;
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 90, 43, 0.1);
}
.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}
.breadcrumb-item a {
    color: var(--warm-brown);
    text-decoration: none;
    transition: 0.2s;
}
.breadcrumb-item a:hover {
    color: var(--terracotta);
}
.breadcrumb-item.active {
    color: var(--terracotta);
    font-weight: 500;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--warm-brown);
}

/* ========== 16. SKIP‑TO‑CONTENT LINK (ACCESSIBILITY) ========== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--terracotta);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid white;
    outline-offset: 2px;
}

/* ========== 17. RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    body {
        padding-top: 60px;
    }
    .footer-logo-wrapper {
        max-width: 180px;
    }
}

/* ---------- ACCORDION (FAQ) THEME OVERRIDE ---------- */
.accordion-item {
    background-color: #fef8ed;
    border: 1px solid rgba(139, 90, 43, 0.2);
}
.accordion-button {
    background-color: #fef8ed;
    color: var(--charcoal);
    font-weight: 500;
}
.accordion-button:not(.collapsed) {
    background-color: #f9efdf;
    color: var(--warm-brown);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(139, 90, 43, 0.3);
}
.accordion-button::after {
    filter: invert(0.3);
}
.accordion-body {
    background-color: #fef8ed;
    color: var(--charcoal);
}

/* ---------- HORIZONTAL SLIDER FOR ACCOMMODATION CARDS ---------- */
.accom-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    
    /* Default (mobile): 20px padding sa gilid (mas maliit sa 5%) */
    padding-left: 20px;
    padding-right: 20px;
}

/* Tablet: paliitin ang padding at adjust card width */
@media (min-width: 768px) {
    .accom-slider {
        padding-left: 30px;
        padding-right: 30px;
    }
    .accom-slide {
        flex: 0 0 45%;
    }
}

/* Desktop: konting padding lang para hindi sayang ang space, at 3 cards kita agad */
@media (min-width: 1024px) {
    .accom-slider {
        padding-left: 40px;
        padding-right: 40px;
        gap: 28px;
    }
    .accom-slide {
        flex: 0 0 30%;    /* 3 cards sa desktop */
    }
}

/* Large desktop: 4 cards */
@media (min-width: 1440px) {
    .accom-slide {
        flex: 0 0 23%;
    }
}

/* Card width sa mobile (85% para kita ang next card) */
@media (max-width: 767px) {
    .accom-slide {
        flex: 0 0 85%;
    }
}

/* Scrollbar styling (keep) */
.accom-slider::-webkit-scrollbar {
    height: 8px;
}
.accom-slider::-webkit-scrollbar-thumb {
    background: var(--terracotta);
    border-radius: 50px;
}
.accom-slider::-webkit-scrollbar-track {
    background: #f1e4d3;
}