/* ---------------------------------
   Section 1: Map Container & Grid
--------------------------------- */
.cpl-map-section {
    width: 100%;
    font-family: 'Outfit', sans-serif;
}

.cpl-map-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 650px;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 55px rgba(0,0,0,.10);
}

.cpl-map-left {
    min-width: 0;
    position: relative;
}

#cpl-interactive-map {
    width: 100%;
    min-height: 520px;
    background: #f5f5f5;
    z-index: 1;
}

/* ---------------------------------
   Section 2: Sidebar
--------------------------------- */
.cpl-map-sidebar {
    padding: 50px;
    background: #fff;
    border-left: 1px solid #eee;
}

.cpl-sidebar-kicker {
    display: block;
    margin-bottom: 12px;
    color: #9B2C2C;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.cpl-map-sidebar h2 {
    margin: 0;
    color: #1C1B29;
    font-size: 28px;
    line-height: 39px;
    font-weight: 500;
    text-transform: uppercase;
	width: 90%;
}

.cpl-sidebar-line {
    width: 52px;
    height: 3px;
    margin: 18px 0 22px;
    background: #B24238;
    border-radius: 30px;
}

.cpl-map-sidebar p {
    margin: 0 0 26px;
    color: #666666;
    font-size: 16px;
    line-height: 1.65;
}

/* ---------------------------------
   Section 3: Filter Buttons
--------------------------------- */
.cpl-filter-list {
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex-wrap: wrap;
}

.cpl-filter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto;
    min-height: 54px;
    padding: 9px 14px;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    background: #fff;
    color: #1C1B29;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: .25s ease;
    text-align: left;
    box-shadow: 0 5px 14px rgba(0,0,0,.04);
    text-transform: uppercase;
}

.cpl-filter-btn:hover,
.cpl-filter-btn.is-active {
    background: #9B2C2C;
    border-color: #9B2C2C;
    color: #fff;
    box-shadow: 0 10px 24px rgba(178,66,56,.25);
}

.cpl-filter-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #9B2C2C;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(178,66,56,.24);
}

.cpl-filter-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.cpl-filter-btn em {
    margin-left: auto;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 30px;
    background: #f2f2f2;
    color: #1C1B29;
    font-style: normal;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpl-filter-btn.is-active em,
.cpl-filter-btn:hover em {
    background: rgba(255,255,255,.22);
    color: #fff;
}

/* ---------------------------------
   Section 4: Marker Pins
--------------------------------- */
.cpl-marker-wrap {
    background: transparent !important;
    border: 0 !important;
}

.cpl-marker-pin {
    width: 46px;
    height: 60px;
    position: relative;
    display: flex;
    justify-content: center;
}

.cpl-marker-pin:before {
    content: "";
    width: 46px;
    height: 46px;
    background: #9B2C2C;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: absolute;
    left: 0;
    top: 0;
    box-shadow: 0 8px 18px rgba(0,0,0,.30);
    border: 2px solid #fff;
}

.cpl-marker-pin:after {
    content: "";
    width: 28px;
    height: 10px;
    background: rgba(0,0,0,.30);
    border-radius: 50%;
    position: absolute;
    left: 9px;
    bottom: 0;
    filter: blur(1px);
}

.cpl-marker-icon {
    width: 46px;
    height: 46px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpl-marker-icon img {
    width: 23px;
    height: 23px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ---------------------------------
   Section 5: Popups
--------------------------------- */
.cpl-map-popup {
    width: 390px;
    display: flex;
    gap: 18px;
    align-items: center;
    font-family: 'Outfit', sans-serif;
}

.cpl-map-popup:not(.has-image){
    width: 320px;
    display: block;
}

.cpl-popup-img {
    width: 130px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    flex: 0 0 130px;
}

.cpl-popup-content {
    min-width: 0;
}

.cpl-map-popup h3 {
    margin: 0 0 10px;
    color: #1C1B29;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
}

.cpl-map-popup p {
    margin: 0 0 16px;
    color: #666666;
    font-size: 14px;
    line-height: 1.55;
}

.cpl-popup-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cpl-map-popup a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 8px;
    background: #9B2C2C;
    color: #fff !important;
    font-size: 14px;
    text-decoration: none;
}

.cpl-map-popup a:hover {
    background: #8f3029;
}

/* ---------------------------------
   Section 6: Mobile Overlay (Two-Finger Message)
--------------------------------- */
.cpl-map-touch-overlay {
    display: none;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    color: #1C1B29;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    z-index: 22;
    text-align: center;
}

/* ---------------------------------
   Section 7: Responsive
--------------------------------- */
@media(max-width:991px){
    .cpl-map-grid{grid-template-columns:1fr;}
    .cpl-map-sidebar{border-left:0;border-top:1px solid #eee;padding:28px 22px;}
    #cpl-interactive-map{height:460px !important;min-height:460px;}
    .cpl-map-sidebar h2{font-size:23px; line-height: 33px; width: 100%;}
}

@media(max-width:575px){
    .cpl-map-grid{border-radius:14px;}
    #cpl-interactive-map{height:380px !important;min-height:380px;}
    .cpl-map-sidebar{padding:24px 18px;}
    .cpl-map-popup,.cpl-map-popup:not(.has-image){width:245px;display:block;}
    .cpl-popup-img{width:100%;height:130px;margin-bottom:14px;}
    .cpl-filter-btn{font-size:15px;}
    .cpl-filter-list{gap:10px;zoom:80%;padding:35px 15px;}
    #cpl-interactive-map {
    touch-action: pan-y; /* only vertical scroll allowed */
}
}