/* =========================================================
   1. EXPLORE NEARBY LOCATIONS - BASE & LAYOUT
   ========================================================= */
.enl-section,
.enl-section * {
    box-sizing: border-box;
}

.enl-section {
    background: var(--enl-bg, #f5f1ed);
    padding: var(--enl-pt, 18px) 24px var(--enl-pb, 18px);
    font-family: var(--lumana-segoe-font);
    color: var(--enl-text, #8f827c);
    /*max-width: 1200px;*/
    width: 100%;
    margin: auto;
    overflow: hidden;
}

.enl-shell {
    width: 100%;
    max-width: var(--enl-max, 1560px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2.05fr) minmax(360px, .95fr);
    gap: 0;
    background: var(--enl-panel, #ffffff);
    min-height: var(--enl-map-h, 620px);
}

.enl-panel {
    padding: 44px 48px 38px;
    background: var(--enl-panel, #ffffff);
    min-height: var(--enl-map-h, 620px);
    display: flex;
    flex-direction: column;
}

/* =========================================================
   2. TYPOGRAPHY & TEXT CONTENT
   ========================================================= */
.enl-hotel-name {
    font-family: var(--lumana-header-font, Georgia, serif);
    font-size: clamp(28px, 2.4vw, 42px);
    line-height: 1.08;
    font-weight: 300;
    letter-spacing: .02em;
    color: var(--enl-heading, #9a8b84);
    margin: 0 0 26px;
}

.enl-contact-list {
    font-size: 15px;
    line-height: 1.9;
    color: var(--enl-text, #8f827c);
    margin-bottom: 34px;
}

.enl-contact-list a,
.enl-contact-list div {
    display: block;
    color: var(--enl-text, #8f827c);
}

.enl-contact-list a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.enl-gps {
    margin-top: 8px;
    letter-spacing: .10em;
    font-size: 12px;
    text-transform: uppercase;
}

.enl-map-link {
    display: inline-block;
    margin-top: 4px;
}

.enl-explore-label {
    font-size: 12px;
    letter-spacing: .33em;
    color: #7f736d;
    font-weight: 700;
    margin: 4px 0 12px;
    text-transform: uppercase;
}

/* =========================================================
   3. THE ACCORDION (SMOOTH ANIMATION FIX)
   ========================================================= */
/* 1. Add the Firefox rule to your existing class */
.enl-accordion {
    width: 100%;
    /*max-height: 167px;*/
    /*overflow-y: auto;*/
    /*overflow-x: hidden;*/
    
    /* Firefox: Makes the scrollbar thin */
    /*scrollbar-width: none; */
    /* Optional: sets the color of the thumb and track (thumb track) */
    /*scrollbar-color: #c8beb8 transparent; */
}

.enl-acc-head {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    text-align: left;
    color: #756a64;
    font-family: var(--lumana-header-font, Georgia, serif);
    font-size: 20px;
    line-height: 1.15;
    font-weight: 400;
    cursor: pointer;
    list-style: none; /* Native summary reset */
    pointer-events: auto !important;
    user-select: none;
    position: relative;
    z-index: 2;
}

.enl-acc-head::-webkit-details-marker {
    display: none; /* Native summary reset for Safari */
}

/* Base Closed State */
.enl-acc-body {
    display: block !important; 
    max-height: 0px; 
    opacity: 0;      
    overflow: hidden;
    padding: 0 0 0 34px !important; 
    transition: max-height .50s ease-in-out, opacity .50s ease-in-out, padding .50s ease-in-out !important;
}

/* Open State */
.enl-section .enl-acc-item.is-open > .enl-acc-body {
    max-height: 1200px; /* Must be taller than your longest list */
    opacity: 1;
    padding: 0 0 16px 34px !important; 
}

/* Accordion Interior Lists */
.enl-acc-body ol {
    list-style: none;
    margin: 0;
    padding-left: 0;
    font-size: 14px;
    line-height: 1.75;
    color: #9a8f89;
}

.enl-acc-body li span {
    margin-left: 6px;
    color: #b2a8a1;
}

.enl-acc-body a {
    color: #8f827c;
    text-decoration: none;
}

.enl-acc-body a:hover {
    text-decoration: underline;
}

/* Chevron */
.enl-chevron {
    margin-left: auto;
    font-size: 18px;
    transition: transform .25s ease;
}

/* 4. Chevron Rotation - FIXED */
.enl-section .enl-acc-item.is-open .enl-chevron {
    transform: rotate(180deg);
}

/* =========================================================
   4. LOCATION ROWS & HIGHLIGHTS
   ========================================================= */
.enl-location-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 8px;
    transition: background .2s ease, color .2s ease;
    cursor: pointer;
}

.enl-location-row.is-active {
    background: rgba(128, 216, 207, .14);
    color: var(--enl-heading, #756a64);
    padding-left: 12px; /* Slight indent when active */
}

.enl-location-row.is-active a {
    font-weight: 600;
}

.enl-location-row b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--enl-accent, #80d8cf);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-family: Arial, Helvetica, sans-serif;
}

.enl-location-focus {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.enl-location-row:hover .enl-location-focus,
.enl-location-row.is-active .enl-location-focus {
    color: var(--enl-heading);
}

/* =========================================================
   5. MAP & PINS
   ========================================================= */
.enl-map-card {
    position: relative;
    min-height: var(--enl-map-h, 620px);
    overflow: hidden;
    background: #ece6df;
}

.enl-map-card.has-exact-map {
    background: #e8e3dc;
}

.enl-live-map {
    width: 100%;
    height: var(--enl-map-h, 620px);
    min-height: var(--enl-map-h, 620px);
    z-index: 1;
}

.enl-map-frame,
.enl-map-image {
    width: 100%;
    height: 100%;
    min-height: var(--enl-map-h, 620px);
    border: 0;
    display: block;
    object-fit: cover;
    filter: saturate(.86) contrast(.98);
}

.enl-map-placeholder {
    height: var(--enl-map-h, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    color: #8f827c;
    background: linear-gradient(135deg, #f3eee8, #e9e1da);
}

/* Custom Leaflet Pins */
.enl-leaflet-pin-wrap {
    background: transparent;
    border: 0;
}

.enl-leaflet-pin,
.enl-pin::before {
    background: var(--pin, var(--enl-accent, #80d8cf));
    transform: rotate(-45deg);
    border-radius: 50% 50% 50% 0;
}

.enl-leaflet-pin {
    position: relative;
    width: 46px;
    height: 46px;
    border: 0;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 12px 26px rgba(0,0,0,.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.enl-leaflet-pin span {
    transform: rotate(45deg);
    position: relative;
    z-index: 2;
}

.enl-leaflet-pin::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.24);
}

/* Accordion Header Pin */
.enl-pin {
    width: 16px;
    height: 22px;
    position: relative;
    flex: 0 0 auto;
}

.enl-pin::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 0;
    width: 16px;
    height: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .10);
}

.enl-pin::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 5px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.78);
}

.leaflet-popup-content {
    font-family: Arial, Helvetica, sans-serif;
    color: #4b5563;
}

/* =========================================================
   6. RESPONSIVE DESIGN
   ========================================================= */
@media (max-width: 1100px) {
    .enl-section {
        padding-left: 14px;
        padding-right: 14px;
    }
    .enl-shell {
        grid-template-columns: 1fr;
    }
    .enl-panel {
        min-height: auto;
        padding: 32px 26px;
    }
    .enl-map-card,
    .enl-map-frame,
    .enl-map-image,
    .enl-map-placeholder,
    .enl-live-map {
        min-height: 430px;
    }
}

@media (max-width: 640px) {
    .enl-section {
        padding-left: 0;
        padding-right: 0;
    }
    .enl-map-card,
    .enl-map-frame,
    .enl-map-image,
    .enl-map-placeholder,
    .enl-live-map {
        min-height: 340px;
    }
    .enl-panel {
        padding: 26px 20px;
    }
    .enl-acc-head {
        font-size: 20px;
    }
}