/* ==========================================================
   Verdant Retreat — Theme Override
   Re-skins the Travisa template (blue/pink) into a warm
   forest-green & gold "Verdant Retreat" palette by
   overriding the Bootstrap CSS custom properties the
   template already builds its components from.
   ========================================================== */

:root {
    --bs-primary: #1f273d;
    /* deep forest green (was #003A66) */
    --bs-secondary: #C08A3E;
    /* warm gold accent   (was #E02454) */
    --bs-light: #F4F7F1;
    /* soft sage-white     (was #F0F5FB) */
    --bs-dark: #16291C;
}

/* Fix a couple of spots the template hard-codes rgba() of the old
   blue instead of referencing the variable, so the override reaches
   every corner (buttons already use var(), these are the outliers) */
.bg-breadcrumb {
    background: linear-gradient(rgba(31, 61, 43, 0.88), rgba(31, 61, 43, 0.88)), url(../img/breadcrumb.png) center center no-repeat;
    background-size: cover;
}

.topbar a i.text-secondary,
.sub-title,
.text-secondary {
    color: var(--bs-secondary) !important;
}

/* Brand wordmark next to the logo image */
.navbar-brand h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-brand img {
    height: 55px;
    width: auto;
    margin-right: 12px;
    border-radius: 6px;
    object-fit: cover;
}

/* Section eyebrow tweak */
.sub-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 15px;
    font-weight: 600;
}

/* ---------- Cards used by dynamic (Firebase) sections ---------- */
.vr-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(31, 61, 43, 0.08);
    transition: transform .35s ease, box-shadow .35s ease;
    height: 100%;
}

.vr-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(31, 61, 43, 0.16);
}

.vr-card .vr-card-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    display: block;
    background: var(--bs-light);
}

.vr-card .vr-card-body {
    padding: 22px 24px 26px;
}

.vr-card .vr-price {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: var(--bs-primary);
}

.vr-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--bs-secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .5px;
    padding: 5px 12px;
    border-radius: 30px;
    z-index: 2;
}

.vr-card-img-wrap {
    position: relative;
}

/* Gallery grid */
.vr-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 24px;
    display: block;
}

.vr-gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform .5s ease;
}

.vr-gallery-item:hover img {
    transform: scale(1.08);
}

.vr-gallery-item .vr-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(31, 61, 43, .75), transparent 55%);
    opacity: 0;
    transition: opacity .35s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.vr-gallery-item:hover .vr-gallery-overlay {
    opacity: 1;
}

.vr-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #8a9a8f;
}

/* Simple lightbox */
#vrLightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 26, 18, .92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

#vrLightbox.show {
    display: flex;
}

#vrLightbox img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

#vrLightbox .vr-lightbox-close {
    position: absolute;
    top: 24px;
    right: 34px;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
    line-height: 1;
}

/* Loading text used while Firestore data streams in */
.vr-loading {
    text-align: center;
    padding: 50px 0;
    color: var(--bs-primary);
}

/* Facilities / experience icon boxes reuse .we-choose from style.css but
   we add a plain fallback in case markup differs */
.vr-icon-box {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(31, 61, 43, .08);
    height: 100%;
}

.vr-icon-box i {
    font-size: 42px;
    color: var(--bs-secondary);
    margin-bottom: 18px;
    display: inline-block;
}

/* WhatsApp floating button */
.vr-whatsapp-float {
    position: fixed;
    left: 25px;
    bottom: 25px;
    background: #25D366;
    color: #fff;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    z-index: 999;
}

.vr-whatsapp-float:hover {
    color: #fff;
    transform: scale(1.06);
}

/* Admin panel */
.vr-admin-body {
    background: var(--bs-light);
    min-height: 100vh;
}

.vr-admin-login {
    max-width: 420px;
    margin: 90px auto;
    background: #fff;
    padding: 40px 36px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(31, 61, 43, .12);
}

.vr-admin-shell {
    display: none;
}

.vr-admin-shell.show {
    display: block;
}

.vr-admin-topbar {
    background: var(--bs-primary);
    color: #fff;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vr-admin-nav {
    display: flex;
    gap: 8px;
    padding: 18px 28px 0;
    flex-wrap: wrap;
}

.vr-admin-nav button {
    border: none;
    background: #e7ede4;
    color: var(--bs-primary);
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    transition: .25s;
}

.vr-admin-nav button.active,
.vr-admin-nav button:hover {
    background: var(--bs-primary);
    color: #fff;
}

.vr-admin-panel {
    padding: 28px;
}

.vr-admin-tabpanel {
    display: none;
}

.vr-admin-tabpanel.active {
    display: block;
}

.vr-admin-item {
    background: #fff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 4px 16px rgba(31, 61, 43, .08);
    margin-bottom: 16px;
}

.vr-admin-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    background: var(--bs-light);
}

.vr-admin-form label {
    font-weight: 600;
    font-size: 14px;
    color: var(--bs-primary);
}

.vr-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.vr-progress-wrap {
    height: 6px;
    background: #e7ede4;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.vr-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--bs-secondary);
    transition: width .2s ease;
}

.vr-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bs-primary);
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    z-index: 3000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    display: none;
}

.vr-toast.show {
    display: block;
}

#vrLightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

#vrLightbox.show {
    display: flex;
}

#vrLightboxImg {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 10px;
}

.vr-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    cursor: pointer;
}

.vr-prev,
.vr-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    cursor: pointer;
    user-select: none;
    padding: 15px;
}

.vr-prev {
    left: 20px;
}

.vr-next {
    right: 20px;
}

#vrLightboxCaption {
    position: absolute;
    bottom: 25px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 18px;
}


/*  */
.vr-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.vr-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.vr-price {
    margin-top: 12px;
    font-weight: 600;
    color: #0d6efd;
}

/* Push button to bottom */
.vr-card-body .mt-3 {
    margin-top: auto !important;
}