/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

/* Smaller Highlights heading */
#highlights .title h2 {
    font-size: 30px;
}
@media (max-width: 767px) {
    #highlights .title h2 { font-size: 24px; }
}

/* Smaller amenity images */
#amenities ~ .row img.icon-img,
.box_facilities img.icon-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}
@media (max-width: 767px) {
    .box_facilities img.icon-img { height: 110px; }
}

/* Smaller navbar logo on mobile */
@media (max-width: 767px) {
    .destop-logo-sec img {
        width: 70px;
        height: auto;
    }
    a.logo-m {
        width: 40px;
    }
}

/* Mobile menu close (×) button */
.closebt {
    font-size: 40px;
    line-height: 1;
    color: #333;
    top: 10px;
    right: 20px;
    z-index: 10;
    text-decoration: none;
}
.closebt:hover { color: #000; }

/* Navbar hidden on the hero, shown after scroll */
header.fixed_header {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: all .3s ease;
}
header.fixed_header.sticky {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Commercial amenities (icon cards) */
.comm-title { margin: 30px 0 20px; }
.comm-box { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px 15px; }
.comm-box svg { width: 52px; height: 52px; margin-bottom: 12px; fill: none; stroke: #b18e4e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.comm-box h5 { margin: 0; font-size: 16px; }
@media (max-width: 767px) {
    .comm-box svg { width: 40px; height: 40px; }
    .comm-box h5 { font-size: 14px; }
}

/* ===== Register Now: fixed vertical tab, right edge, shown after 300px scroll ===== */
.query-btn.banner-popup-btn {
    position: fixed;
    top: 50%;
    right: 0;
    left: auto;
    margin: 0;
    z-index: 1040;
    writing-mode: vertical-rl;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 22px 13px;
    border: 1px solid rgba(227, 194, 122, .6);
    border-left: 0; /* left side faces the screen edge after rotate(180deg) */
    border-radius: 0 14px 14px 0;
    background: linear-gradient(180deg, #0f1f3d 0%, #1b2f57 100%);
    color: #f3dca6;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    box-shadow: -6px 10px 28px rgba(15, 31, 61, .35);
    /* hidden by default: tucked off-screen to the right */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(110%, -50%) rotate(180deg);
    transition: transform .55s cubic-bezier(.2, .8, .2, 1.2), opacity .35s ease, visibility .35s,
                background .3s ease, color .3s ease, padding .3s ease;
}
.query-btn.banner-popup-btn.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, -50%) rotate(180deg);
    animation: regGlow 2.4s ease-in-out .6s infinite;
}
/* gold dot pulse */
.query-btn.banner-popup-btn::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e3c27a;
    box-shadow: 0 0 0 0 rgba(227, 194, 122, .7);
    animation: regDot 1.6s ease-out infinite;
}
/* light sweep */
.query-btn.banner-popup-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 45%;
    top: -60%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .28), transparent);
    animation: regShine 3.2s ease-in-out infinite;
    pointer-events: none;
}
.query-btn.banner-popup-btn:hover,
.query-btn.banner-popup-btn:focus-visible {
    background: linear-gradient(180deg, #c9a24b 0%, #e3c27a 100%);
    color: #0f1f3d;
    padding-right: 17px;
    outline: none;
}
.query-btn.banner-popup-btn:hover::before { background: #0f1f3d; }

@keyframes regGlow {
    0%, 100% { box-shadow: -6px 10px 28px rgba(15, 31, 61, .35), 0 0 0 0 rgba(201, 162, 75, 0); }
    50%      { box-shadow: -6px 10px 28px rgba(15, 31, 61, .35), 0 0 0 6px rgba(201, 162, 75, .25); }
}
@keyframes regDot {
    0%   { box-shadow: 0 0 0 0 rgba(227, 194, 122, .7); }
    100% { box-shadow: 0 0 0 9px rgba(227, 194, 122, 0); }
}
@keyframes regShine {
    0%, 55% { top: -60%; }
    100%    { top: 120%; }
}
@media (max-width: 767px) {
    .query-btn.banner-popup-btn {font-size: 11px;padding: 16px 10px;letter-spacing: .18em;display: none;}
}
@media (prefers-reduced-motion: reduce) {
    .query-btn.banner-popup-btn,
    .query-btn.banner-popup-btn::before,
    .query-btn.banner-popup-btn::after { animation: none; transition: opacity .2s; }
}

/* Header: logo left, nav links pushed to the right (desktop) */
@media (min-width: 992px) {
    header.fixed_header .container > .row { justify-content: space-between; flex-wrap: nowrap; }
    header.fixed_header .container > .row > .col-md-2 { flex: 0 0 auto; width: auto; }
    header.fixed_header .container > .row > .col-md-10 { flex: 1 1 auto; width: auto; display: flex; justify-content: flex-end; }
    header.fixed_header .main-menu { margin-left: auto; }
    header.fixed_header .main-menu #mainNav ul {
        display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 4px; margin: 0; padding: 0;
    }
}

/* ===================== Navbar redesign ===================== */
header.fixed_header.sticky {
    /* no backdrop-filter here: it would trap the fixed mobile .main-menu inside the header */
    background: transparent !important;
    border-bottom: 1px solid rgba(201, 162, 75, .25) !important;
    box-shadow: 0 10px 30px rgba(15, 31, 61, .08);
}
header.fixed_header.sticky::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #c9a24b, transparent);
    opacity: .7;
}
header.fixed_header .container > .row { min-height: 74px; }
header.fixed_header .destop-logo-sec img { height: 54px; width: auto; transition: transform .3s ease; }
header.fixed_header .destop-logo-sec:hover img { transform: scale(1.03); }

@media (min-width: 992px) {
    header.fixed_header #mainNav ul li a.custom_nav_link,
    header.fixed_header #mainNav ul li a[href^="#"] {
        position: relative;
        display: inline-block;
        padding: 10px 16px !important;
        font-family: "Jost", system-ui, sans-serif;
        font-size: 13.5px;
        font-weight: 500;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: #0f1f3d !important;
        transition: color .3s ease;
    }
    header.fixed_header #mainNav ul li a.custom_nav_link::after {
        content: "";
        position: absolute;
        left: 16px; right: 16px; bottom: 4px;
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(90deg, #c9a24b, #e3c27a);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    }
    header.fixed_header #mainNav ul li a.custom_nav_link:hover,
    header.fixed_header #mainNav ul li a.custom_nav_link.active { color: #b18e4e !important; }
    header.fixed_header #mainNav ul li a.custom_nav_link:hover::after,
    header.fixed_header #mainNav ul li a.custom_nav_link.active::after { transform: scaleX(1); }
    header.fixed_header #mainNav ul li a.custom_nav_link:focus-visible { outline: 2px solid #c9a24b; outline-offset: 2px; border-radius: 6px; }

    /* Phone: gold pill */
    header.fixed_header #mainNav ul li a.head-call {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        margin-left: 12px;
        padding: 10px 20px !important;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: .04em;
        color: #0f1f3d !important;
        background: linear-gradient(135deg, #c9a24b, #e3c27a) !important;
        border: 0 !important;
        box-shadow: 0 8px 18px rgba(201, 162, 75, .35);
        transition: all .3s ease;
    }
    header.fixed_header #mainNav ul li a.head-call:hover {
        color: #fff !important;
        background: linear-gradient(135deg, #0f1f3d, #1b2f57) !important;
        box-shadow: 0 8px 18px rgba(15, 31, 61, .3);
    }
    header.fixed_header #mainNav ul li.logo-d { margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(15, 31, 61, .12); }
    header.fixed_header #mainNav ul li.logo-d img { height: 42px; margin: 0; }
}

/* Phone icon before number (all sizes) */
header.fixed_header #mainNav ul li a.head-call::before {
    content: "";
    display: inline-block !important;
    width: 15px; height: 15px;
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
    position: static !important;
}

/* Hamburger in theme colours */
header.fixed_header.sticky .hamburger__inner,
header.fixed_header.sticky .hamburger__inner::before,
header.fixed_header.sticky .hamburger__inner::after { background-color: #0f1f3d !important; }

/* Mobile slide-out menu */
@media (max-width: 991px) {
    header.fixed_header .main-menu {
        background: #fff !important;
        border-left: 3px solid #c9a24b;
        box-shadow: -20px 0 50px rgba(15, 31, 61, .25) !important;
    }
    header.fixed_header .main-menu .logo_panel {
        padding: 22px 30px 18px;
        background: linear-gradient(135deg, #0f1f3d, #1b2f57);
    }
    header.fixed_header .main-menu .logo_panel img { height: 48px; width: auto; background: #fff; padding: 6px 12px; border-radius: 10px; }
    header.fixed_header .main-menu .closebt { color: #fff !important; z-index: 2; }
    header.fixed_header .main-menu #mainNav ul li { border-bottom: 1px solid #f0ebe0; }
    header.fixed_header .main-menu #mainNav ul li:last-child { border-bottom: 0; }
    header.fixed_header .main-menu #mainNav ul li a.custom_nav_link {
        margin: 0 !important;
        padding: 14px 4px !important;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: .12em;
        color: #0f1f3d !important;
    }
    header.fixed_header .main-menu #mainNav ul li a.custom_nav_link:hover,
    header.fixed_header .main-menu #mainNav ul li a.custom_nav_link.active { color: #b18e4e !important; padding-left: 10px !important; }
    header.fixed_header .main-menu #mainNav ul li a.head-call {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        margin: 18px 0 8px !important;
        border-radius: 999px;
        color: #0f1f3d !important;
        background: linear-gradient(135deg, #c9a24b, #e3c27a) !important;
        font-weight: 600;
    }
}

/* Frosted background on its own layer, so the fixed .main-menu can use the full screen */
header.fixed_header.sticky::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
            backdrop-filter: saturate(160%) blur(10px);
    pointer-events: none;
}
/* Mobile menu: always full height on the right, above everything */
@media (max-width: 991px) {
    header.fixed_header .main-menu { position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; height: 100vh !important; height: 100dvh !important; max-width: 86vw; z-index: 99999; }
    header.fixed_header .main-menu.show { transform: translateX(0) !important; }
}

/* ===================== Mobile bottom bar redesign ===================== */
@media (max-width: 767px) {
    .mobile-section-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100% !important;
        z-index: 1035;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
        margin: 0;
        border-radius: 16px 16px 0 0;
        background: #0f1f3d !important;
        border-top: 2px solid #c9a24b;
        box-shadow: 0 -8px 24px rgba(15, 31, 61, .28);
        animation: msfUp .45s cubic-bezier(.2, .8, .2, 1) both;
    }
    .mobile-section-footer a.btn.msf-btn {
        width: auto !important;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        height: 44px;
        padding: 0 6px;
        margin: 0;
        border: 1px solid rgba(227, 194, 122, .45) !important;
        border-radius: 11px !important;
        background: rgba(255, 255, 255, .04);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .02em;
        line-height: 1;
        white-space: nowrap;
        color: #f3dca6 !important;
        transition: background .25s ease, transform .15s ease;
    }
    .mobile-section-footer a.btn.msf-btn span { color: inherit; overflow: hidden; text-overflow: ellipsis; }
    .mobile-section-footer a.btn.msf-btn svg { flex: none; width: 18px; height: 18px; }
    .mobile-section-footer a.btn.msf-wa svg { color: #4ade80; }
    .mobile-section-footer a.btn.msf-btn:active { transform: scale(.96); }

    /* Register Now: gold main action (middle) */
    .mobile-section-footer a.btn.msf-main {
        position: relative;
        overflow: hidden;
        border: 0 !important;
        color: #0f1f3d !important;
        background: linear-gradient(135deg, #c9a24b, #e3c27a) !important;
        box-shadow: 0 6px 14px rgba(201, 162, 75, .4);
    }
    .mobile-section-footer a.btn.msf-main::after {
        content: "";
        position: absolute;
        top: 0; bottom: 0; left: -60%;
        width: 40%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
        transform: skewX(-20deg);
        animation: msfShine 3.2s ease-in-out infinite;
        pointer-events: none;
    }
    /* keep page content clear of the bar */
    body { padding-bottom: 64px; }
    a.fixedIcons.whatsapp { display: none !important; }
}
@media (max-width: 359px) {
    .mobile-section-footer { gap: 5px; padding-left: 6px !important; padding-right: 6px !important; }
    .mobile-section-footer a.btn.msf-btn { font-size: 11px; gap: 4px; padding: 0 4px; }
    .mobile-section-footer a.btn.msf-btn svg { width: 16px; height: 16px; }
}
@keyframes msfUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes msfShine { 0%, 60% { left: -60%; } 100% { left: 140%; } }
@media (prefers-reduced-motion: reduce) {
    .mobile-section-footer, .mobile-section-footer a.btn.msf-main::after { animation: none !important; }
}
