/* =========================================================
   MAIN FEATURE TABS — MAYALUXE x VILLA EXPERIENCE STYLE
   ========================================================= */

.ve2-tabs-container {
    margin-top: 28px;
    background: transparent;
    border: none;
    box-shadow: none;
    --ve2-gold: #d1c48b;
    --ve2-text: #444;
    --ve2-heading: #111;
    --ve2-gap: 32px;
    --ve2-border: rgba(0, 0, 0, 0.08);
    --ve2-muted: #7a7a7a;
}

/* =========================================================
   1) TAB CONTAINER + PANELS – REMOVE BOX LOOK
   ========================================================= */

.ve2-tabs-panels {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 760px;
    padding-inline: clamp(16px, 4vw, 36px);
    margin: 0 auto 0 0;
    text-align: left;
    border-left: 1px solid var(--ve2-border);
    padding-left: clamp(24px, 5vw, 48px);
}

.ve2-tab-panel {
    display: none;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 28px 0;
    color: var(--ve2-text);
    font-size: 16px;
    line-height: 1.6;
    scroll-margin-top: 120px;
    text-align: left;
}

.ve2-tab-panel.active {
    display: block;
}

/* =========================================================
   2) TAB NAVIGATION – TITLES & UNDERLINE
   ========================================================= */

.ve2-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ve2-gap);
    margin-bottom: 22px;
    border-bottom: 1px solid #e8e8e8;
    padding: 8px clamp(16px, 4vw, 36px) 12px;
    max-width: 760px;
    margin-left: 0;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 78px;
    z-index: 5;
    backdrop-filter: blur(6px);
}

.ve2-tab-button {
    position: relative;
    background: transparent;
    border: none;
    font-size: 17px;
    font-weight: 600;
    color: #555;
    padding: 0 0 8px 0;
    cursor: pointer;
}

.ve2-tab-button:hover {
    color: #222;
}

.ve2-tab-button.active {
    color: var(--ve2-heading);
}

.ve2-tab-button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: transparent;
    transition: background 0.25s ease;
}

.ve2-tab-button.active::after {
    background: var(--ve2-gold); /* VE gold underline */
}

.ve2-tab-button:focus-visible {
    outline: 2px solid var(--ve2-gold);
    outline-offset: 2px;
}

/* Alias for compatibility */
.ve2-feature-tab-btn {
    font-size: 17px;
    font-weight: 600;
    color: #555;
}

.ve2-feature-tab-btn.active {
    color: #111;
}

.ve2-feature-tab-btn.active::after {
    background: var(--ve2-gold);
}

/* =========================================================
   3) GLOBAL BODY TYPOGRAPHY IN ALL TABS
   ========================================================= */

/* Base text inside all tab panels */
.ve2-tab-panel p,
.ve2-tab-panel li,
.ve2-tab-panel span {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--ve2-text);
}

/* Paragraph spacing */
.ve2-tab-panel p {
    margin: 0 0 10px;
}

/* List spacing */
.ve2-tab-panel ul {
    margin: 0 0 12px 18px;
    padding: 0;
}

.ve2-tab-panel li {
    margin-bottom: 6px;
}

.ve2-muted {
    color: var(--ve2-muted);
}

.ve2-note {
    font-size: 15px;
    color: var(--ve2-muted);
    font-style: italic;
}

.ve2-tab-panel h1,
.ve2-tab-panel h2,
.ve2-tab-panel h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--ve2-heading);
    margin: 0 0 8px;
}

.ve2-tab-panel h4,
.ve2-tab-panel h5,
.ve2-tab-panel h6 {
    font-size: 17px;
    font-weight: 600;
    color: var(--ve2-heading);
    margin: 12px 0 6px;
}

/* =========================================================
   4) BEDROOMS – FINAL POLISH (NO BOX, CLEAN)
   ========================================================= */

/* Bedroom container */
.ve2-bedrooms-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 4px;
}

/* Each bedroom block: no box, just spacing */
.ve2-bedroom-block {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

/* Bedroom title */
.ve2-bedroom-title {
    font-size: 17px;
    font-weight: 600;
    color: #b79d52; /* VE gold */
    margin: 0 0 4px;
}

/* Bedroom description */
.ve2-bedroom-desc {
    font-size: 16px;
    font-weight: 400;
    color: #444;
    line-height: 1.6;
    margin: 0;
    max-width: 900px;
}

/* =========================================================
   5) STAFF & SERVICES – STRUCTURED, READABLE
   ========================================================= */

/* Stack lines with nice spacing */
.ve2-staff-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Base line style */
.ve2-staff-line {
    font-size: 16px;
    font-weight: 400;
    color: var(--ve2-text);
    margin: 0;
    line-height: 1.6;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ve2-staff-line.is-intro {
    font-weight: 600;
    color: var(--ve2-heading);
}

.ve2-staff-label {
    font-weight: 600;
    color: var(--ve2-heading);
    min-width: 140px;
    position: relative;
}

.ve2-staff-label::after {
    content: ":";
    margin-left: 4px;
}

.ve2-staff-value {
    color: var(--ve2-text);
    flex: 1;
}

.ve2-staff-line.is-heading {
    border-top: 1px solid var(--ve2-border);
    padding-top: 12px;
    margin-top: 8px;
}

/* =========================================================
   6) INDOOR / OUTDOOR – FIX TWO-COLUMN LAYOUT
   ========================================================= */

.ve2-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    column-gap: 40px;
    row-gap: 14px;
    margin-top: 4px;
}

.ve2-amenity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Gold dot */
.ve2-amenity-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #d1c48b;
    margin-top: 0.55em;
    flex-shrink: 0;
    align-self: flex-start;
}

/* Text */
.ve2-amenity-label {
    font-size: 16px;
    font-weight: 400;
    color: #444;
}

/* Mobile fallback: single column */
@media (max-width: 768px) {
    .ve2-amenities-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   7) NEED TO KNOW – BLACK HEADINGS, GOLD BULLETS
   ========================================================= */

/* Base wrapper */
.ve2-need-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Main heading and subsections – always black */
.ve2-need-sub {
    font-size: 17px;
    font-weight: 600;
    color: #222;
    margin-top: 16px;
    margin-bottom: 4px;
}

/* First heading can have slightly more top spacing if needed */
.ve2-need-sub:first-of-type {
    margin-top: 0;
}

.ve2-need-wrapper > *:first-child {
    margin-top: 0;
}

.ve2-need-sub:not(:first-of-type) {
    border-top: 1px solid var(--ve2-border);
    padding-top: 14px;
    margin-top: 18px;
}

/* Charges line */
.ve2-need-charges {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    margin-bottom: 8px;
}

/* Bullet points */
.ve2-need-bullet {
    position: relative;
    padding-left: 20px;
    margin: 0 0 8px;
}

/* Gold bullet dot */
.ve2-need-bullet::before {
    content: "•";
    position: absolute;
    left: 0;
    top: -2px;
    font-size: 20px;
    color: #d1c48b;
}

/* =========================================================
   8) FINAL CLEANUP – ENSURE NO OLD BOX STYLES REMAIN
   ========================================================= */

/* Remove any remaining box styles from these elements */
.ve2-tab-panel,
.ve2-bedroom-block,
.ve2-staff-group,
.ve2-amenities-grid,
.ve2-need-wrapper {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* =========================================================
   MAP OVERLAY (UNCHANGED)
   ========================================================= */

.google_map_on_list_wrapper {
    position: relative;
}

.ve2-map-overlay-container {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff;
    padding: 20px 24px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-radius: 12px;
    z-index: 999999 !important;
    width: 460px;
}

.ve2-location-box {
    display: flex;
    gap: 20px;
}

.ve2-location-col {
    flex: 1;
}

.ve2-location-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ve2-location-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ve2-location-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d1c48b;
    margin-top: 6px;
}

.ve2-location-text {
    color: #555;
    font-size: 14px;
}

@media (max-width: 768px) {
    .ve2-map-overlay-container {
        position: static;
        width: 100% !important;
        margin-bottom: 16px;
    }

    .ve2-location-box {
        flex-direction: column;
    }
}

/* ===========================================
   LOCATION / DISTANCES MINI TABS (MAP OVERLAY)
   =========================================== */

.ve2-location-tabs {
    max-width: 360px;
}

.ve2-loc-tabs-nav {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.ve2-loc-tab-btn {
    position: relative;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}

.ve2-loc-tab-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.ve2-loc-tab-btn.active::after {
    background: #d1c48b; /* VE gold underline */
}

.ve2-loc-tabs-panels {
    margin-top: 4px;
}

.ve2-loc-tab-panel {
    display: none;
}

.ve2-loc-tab-panel.active {
    display: block;
}

/* Reuse existing bullet styles inside panels */
.ve2-loc-tab-panel .ve2-location-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ve2-loc-tab-panel .ve2-location-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.ve2-loc-tab-panel .ve2-location-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d1c48b;
    margin-top: 6px;
    flex-shrink: 0;
}

.ve2-loc-tab-panel .ve2-location-text {
    color: #555;
    font-size: 14px;
}

/* Mobile responsive for mini-tabs */
@media (max-width: 768px) {
    .ve2-location-tabs {
        max-width: 100%;
    }
}

/* ===========================================
   VE2 FINAL POLISH — BEDROOM TITLE REDUCTION
   =========================================== */

.ve2-bedroom-title {
    font-size: 16.5px !important;   /* lowered from ~18px */
    font-weight: 600;
    color: #b79d52;
    margin: 0 0 4px !important;      /* slightly more refined bottom spacing */
}

.ve2-bedroom-desc {
    margin-top: 2px;
}

/* =====================================================
   VE2 STAFF & SERVICES — HEADING DETECTION (SAFE MODE)
   ===================================================== */

/* Make known Staff heading lines bold & darker
   Covers all text variations used across different villas */
.ve2-staff-line[data-staff-heading="true"] {
    font-weight: 600 !important;
    color: #222 !important;
    margin-top: 8px;
    margin-bottom: 4px;
    border-top: 1px solid var(--ve2-border);
    padding-top: 12px;
}

/* If PHP didn’t inject data attributes (legacy mode),
   fall back to text-based matching via case-insensitive exact string rules */
.ve2-staff-line[title="Services included with this booking:"],
.ve2-staff-line[title="At an additional cost:"],
.ve2-staff-line[title="Additional cost:"],
.ve2-staff-line[title="At additional cost:"],
.ve2-staff-line[title="Additional costs:"],
.ve2-staff-line[title="Included:"],
.ve2-staff-line[title="Included services:"] {
    font-weight: 600 !important;
    color: #222 !important;
    margin-top: 8px;
    margin-bottom: 4px;
    border-top: 1px solid var(--ve2-border);
    padding-top: 12px;
}

.ve2-feature-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.ve2-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.ve2-feature-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.ve2-feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: #d1c48b;
    fill: none;
    display: block;
}

.ve2-feature-label {
    line-height: 1.3;
}

.ve2-feature-bar .property_header_separator {
    color: rgba(0, 0, 0, 0.2);
    font-size: 16px;
}

@media (max-width: 768px) {
    .ve2-feature-bar {
        gap: 14px;
    }
}
/* =========================================================
   STAFF & SERVICES — DOTS (ISOLATED, SAFE)
   ========================================================= */

/* Add dots ONLY inside Staff & Services tab */
#ve2-tab-staff .ve2-staff-line {
    position: relative;
    padding-left: 18px;
}

/* Gold dot */
#ve2-tab-staff .ve2-staff-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em; /* aligns with first text line */
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--ve2-gold);
}

/* Do NOT show dots on headings / intro lines */
#ve2-tab-staff .ve2-staff-line.is-intro::before,
#ve2-tab-staff .ve2-staff-line.is-heading::before,
#ve2-tab-staff .ve2-staff-line[data-staff-heading="true"]::before {
    display: none;
}
/* =========================================================
   FEATURE TABS — JS-CONTROLLED STICKY STATE
   ========================================================= */

.ve2-tabs-nav {
    position: relative;
    z-index: 5;
}

.ve2-tabs-nav.is-fixed {
    position: fixed;
    top: 78px;
    width: 100%;
    max-width: 760px;
    background: rgba(255,255,255,0.96);
}