/* ============================================
   Olive & Stone Luxury Suites — Theme CSS
   Matching Sandy Beach Resort 1:1 layout
   ============================================ */

/* === Custom Properties === */
:root {
    --primary: #797872;
    --secondary: #A08D54;
    --offwhite: #F5F5F5;
    --lightgray: #E2E2E2;
    --dark: #1d2327;
    --text: #797872;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* === Base === */
body {
    font-family: var(--font-body);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-offwhite {
    background-color: var(--offwhite);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.fill {
    overflow: hidden;
}

.fill img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Typography === */
.h1, h1 {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 2.8rem;
    line-height: 1.2;
}

.h2, h2 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 2rem;
    line-height: 1.3;
    font-style: italic;
}

.h3, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.6rem;
}

.h5, .main-title {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--secondary);
}

.entry-title {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--dark);
}

.text-link {
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.text-link:hover {
    border-bottom-color: var(--secondary);
    color: var(--secondary);
}

/* === Header === */
.wrapper-navbar {
    z-index: 1070;
    padding: 0;
    transition: all 0.4s ease;
}

.wrapper-navbar > .container-fluid {
    padding-left: 50px;
    padding-right: 50px;
}

.wrapper-navbar:not(.scrolled) {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.wrapper-navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 0;
}

.navbar-inner {
    min-height: 36px;
    padding-top: 4px;
}

.wrapper-navbar.scrolled .navbar-inner {
    min-height: 36px;
    padding-top: 4px;
}

/* Burger Button */
.burger-button-wrapper {
    cursor: pointer;
}

.burger-button {
    width: 30px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-button span {
    display: block;
    width: 100%;
    height: 1px;
    background: #fff;
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

.burger-button-wrapper:hover .burger-button .line-2 {
    transform: scaleX(0.6) translateX(-33%);
}

.wrapper-navbar.scrolled .burger-button span {
    background: var(--dark);
}

.burger-text {
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 2px;
    color: #fff;
    transition: color 0.4s ease;
}

.wrapper-navbar.scrolled .burger-text {
    color: var(--dark);
}

.burger-button-wrapper.active .burger-button span {
    background: var(--dark);
}

.burger-button-wrapper.active .burger-button .line-1 {
    transform: translateY(7.5px) rotate(45deg);
}

.burger-button-wrapper.active .burger-button .line-2 {
    transform: scaleX(0);
    opacity: 0;
}

.burger-button-wrapper.active .burger-button .line-3 {
    transform: translateY(-7.5px) rotate(-45deg);
}

.burger-button-wrapper.active .burger-text {
    color: var(--dark);
}

/* Language Switcher */
.lang-switcher {
    gap: 6px;
}

.lang-item {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
}

.lang-item.active {
    color: #fff;
}

.lang-sep {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.wrapper-navbar.scrolled .lang-item {
    color: var(--text);
}

.wrapper-navbar.scrolled .lang-item.active {
    color: var(--dark);
}

.wrapper-navbar.scrolled .lang-sep {
    color: var(--lightgray);
}

/* Logo */
.navbar-brand.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.logo-img-default,
.logo-img-sticky {
    max-height: 140px;
    width: auto;
    transition: all 0.3s;
}

.wrapper-navbar.scrolled .logo-img-default,
.wrapper-navbar.scrolled .logo-img-sticky {
    max-height: 80px;
}

.logo-img-sticky {
    display: none;
}

.wrapper-navbar.scrolled .logo-img-default {
    display: none;
}

.wrapper-navbar.scrolled .logo-img-sticky {
    display: block;
}

/* Header Phone */
.header-phone {
    color: #fff;
    font-size: 14px;
    font-weight: 300;
}

.wrapper-navbar.scrolled .header-phone {
    color: var(--dark);
}

.header-phone .border-end {
    border-color: rgba(255,255,255,0.3) !important;
}

.wrapper-navbar.scrolled .header-phone .border-end {
    border-color: var(--lightgray) !important;
}

/* Book Now Button */
.btn-book-now {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
    padding: 8px 25px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-book-now:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
}

.wrapper-navbar.scrolled .btn-book-now {
    color: var(--secondary);
    border-color: var(--secondary);
}

.wrapper-navbar.scrolled .btn-book-now:hover {
    background: var(--secondary);
    color: #fff;
}

/* === Hero Section === */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    z-index: 1;
}

.hero-slogan {
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 300;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    font-style: italic;
}

/* Scroll Down */
.scroll-down-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 25px;
}

.scroll-down-btn::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
    0% { top: 8px; opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* === Section Wrappers === */
.section-wrapper {
    padding: 80px 0;
}

/* === Welcome Section === */
.welcome-text-wrapper {
    max-width: 480px;
}

.welcome-text-wrapper .entry-header {
    max-width: 384px;
}

.entry-content p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 12px;
}

/* Gray Box (image background accent) */
.gray-box {
    position: relative;
    z-index: 1;
}

.gray-box::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--offwhite);
    z-index: -1;
}

.gray-box-end::before {
    right: -20px;
    bottom: -20px;
}

.gray-box-start::before {
    left: -20px;
    bottom: -20px;
}

/* Custom ratio */
.ratio-5x7 {
    --bs-aspect-ratio: 140%;
}

.ratio-12x5 {
    --bs-aspect-ratio: 41.67%;
}

.ratio-3x4 {
    --bs-aspect-ratio: 133.33%;
}

.ratio-4x5 {
    --bs-aspect-ratio: 125%;
}

.ratio-3x2 {
    --bs-aspect-ratio: 66.67%;
}

/* === Fullscreen Image === */
.fullscreen-image-wrapper {
    padding: 0;
}

.fullscreen-image-wrapper img {
    width: 100%;
}

/* === Experiences Section === */
.listing-posts-slider-wrapper {
    background: var(--offwhite);
}

.experience-card {
    position: relative;
    cursor: pointer;
}

.experience-card .card-img {
    overflow: hidden;
}

.experience-card .card-img img {
    transition: transform 0.6s ease;
}

.experience-card:hover .card-img img {
    transform: scale(1.08);
}

.custom-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.15) 100%);
}

.card-title-line {
    width: 40px;
    height: 2px;
    background: var(--secondary);
    flex-shrink: 0;
}

.experience-card .card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-style: italic;
}

/* === Rooms Section === */
.home-rooms-wrapper {
    background: #fff;
}

@media (min-width: 768px) {
    .home-rooms-wrapper .container-wide {
        max-width: 100%;
        padding-right: 0;
    }

    .home-rooms-wrapper .rooms-track-wrapper {
        overflow: visible;
    }
}

.rooms-track-wrapper {
    overflow: visible;
}

.rooms-slider {
    overflow: hidden;
}

.rooms-track {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 30px;
}

.rooms-slide {
    width: calc(55% - 15px);
    min-width: 300px;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .rooms-slide {
        width: 85%;
        margin: 0 auto;
    }

    .rooms-track {
        flex-direction: column;
        gap: 20px;
        transform: none !important;
    }

    .rooms-slider-nav {
        justify-content: center;
    }

    .home-rooms-wrapper .rooms-track-wrapper {
        margin-right: 0;
    }
}

.rooms-slider-nav {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.rooms-slider-nav button {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rooms-slider-nav button:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

.rooms-counter {
    color: var(--text);
    min-width: 40px;
    text-align: center;
}

.room-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}

.room-card .card-img img {
    transition: transform 0.6s ease;
}

.room-card:hover .card-img img {
    transform: scale(1.05);
}

.room-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.room-specs {
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--lightgray);
    padding-bottom: 12px;
}

.room-specs .list-inline-item {
    border-right: 1px solid var(--lightgray);
}

.room-specs .list-inline-item:last-child {
    border-right: none;
}

.room-card .card-body p {
    font-size: 14px;
    color: var(--text);
    line-height: 1.7;
}

/* === Attractions Section === */
.filter-grayscale {
    overflow: hidden;
}

.filter-grayscale img {
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.filter-grayscale:hover img,
.attraction-card:hover .filter-grayscale img {
    filter: grayscale(0%);
}

.attraction-overlay {
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.attraction-card:hover .attraction-overlay {
    opacity: 1;
}

.attraction-card .fs-2 {
    font-family: var(--font-heading);
    font-style: italic;
}

.attraction-card p {
    font-size: 13px;
    line-height: 1.6;
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.6);
    font-size: 12px;
    letter-spacing: 2px;
    padding: 8px 20px;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--dark);
}

/* === More Content / Location Section === */
.more-content-wrapper {
    background: #fff;
}

.more-content {
    max-width: 384px;
}

/* === Book Directly Section === */
.section-book-directly {
    position: relative;
    padding: 0;
}

.panoramic-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.panoramic-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
}

.panoramic-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) saturate(0.8);
}

.book-direct-wrapper {
    position: relative;
    z-index: 1;
}

.book-direct-items {
    background: rgba(255,255,255,0.95);
    padding: 20px;
}

.book-direct-items .fw-light {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--dark);
}

/* === Social / Gallery Section === */
.social-moments-wrapper {
    background: #fff;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    color: var(--text);
    font-size: 20px;
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--secondary);
}

.gallery-img {
    object-fit: cover;
    transition: transform 0.4s;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* === Footer === */
.site-footer {
    background: var(--offwhite);
    border-top: 1px solid var(--lightgray);
}

.footer-heading {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--dark);
}

.footer-logo-img {
    max-height: 120px;
    width: auto;
}

.contact-details {
    font-size: 14px;
    color: var(--text);
    line-height: 1.8;
}

.contact-details a {
    color: var(--secondary);
}

.footer-copyright {
    font-size: 13px;
    color: var(--text);
}

.footer-bottom-nav .nav-link {
    font-size: 12px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-bottom-nav .nav-link:hover {
    color: var(--secondary);
}

.created-by {
    font-size: 12px;
    color: var(--text);
    letter-spacing: 1px;
}

/* === Scroll Top Button === */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--secondary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 1000;
    transition: all 0.3s;
    border-radius: 0;
}

.scroll-top-btn.visible {
    display: flex;
}

.scroll-top-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* === Mobile Bottom Bar === */
.mobile-bottom-bar {
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

/* === Off-Canvas Menu === */
.offcanvas-menu {
    position: fixed;
    inset: 0;
    z-index: 1060;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.offcanvas-menu.open {
    visibility: visible;
    opacity: 1;
}

.offcanvas-content {
    height: 100vh;
}

.offcanvas-nav .nav-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--dark);
    padding: 8px 0;
    transition: color 0.3s;
}

.offcanvas-nav .nav-link:hover {
    color: var(--secondary);
}

.offcanvas-footer {
    font-size: 13px;
    color: var(--text);
}

.offcanvas-footer a {
    color: var(--secondary);
}

/* === Fade-in Animations === */
.fade-in-me {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-me.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 991px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 2.2rem;
    }

    .h1, h1 {
        font-size: 2rem;
    }

    .h2, h2 {
        font-size: 1.6rem;
    }

    .section-wrapper {
        padding: 50px 0;
    }
}

@media (max-width: 767px) {
    .wrapper-navbar {
        padding: 0;
    }

    .wrapper-navbar > .container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar-inner {
        min-height: 32px;
        padding-top: 4px;
    }

    .logo-img-default,
    .logo-img-sticky {
        max-height: 90px;
    }

    .hero-slogan {
        padding-left: 20px !important;
        padding-bottom: 80px !important;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .section-wrapper {
        padding: 40px 0;
    }

    .py-6 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    body {
        padding-bottom: 60px;
    }
}

/* === Extra Small Devices (< 576px) === */
@media (max-width: 575.98px) {
    .container-wide {
        padding: 0 20px;
    }

    .experience-card .card-title {
        font-size: 1.2rem;
    }

    .attraction-overlay .fs-2 {
        font-size: 1.4rem !important;
    }

    .attraction-overlay p {
        font-size: 0.85rem;
    }

    .rooms-track {
        gap: 15px;
    }

    .rooms-slide {
        width: 90%;
    }

    .gray-box::before {
        width: 70%;
        height: 70%;
    }

    .gray-box-start::before {
        left: -10px;
        bottom: -10px;
    }

    .gray-box-end::before {
        right: -10px;
        bottom: -10px;
    }

    .rooms-slider-nav button {
        width: 38px;
        height: 38px;
    }
}

/* === Tablet adjustments (768px - 991px) === */
@media (min-width: 768px) and (max-width: 991.98px) {
    .rooms-slide {
        width: 75%;
    }
}

/* === Utility padding === */
.py-6 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pb-6 {
    padding-bottom: 4rem;
}

.mb-6 {
    margin-bottom: 4rem;
}

.pt-6 {
    padding-top: 4rem;
}
