.locn_popup {
    max-width: 710px;
    position: fixed;
    left: 50%;
    top: 50%;
    width: 100%;
    z-index: 99;
    margin: 0 !important;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

.locn_popup .wpb_wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.closbtn {
    position: absolute;
    right: 18px;
    top: 18px;
    display: flex;
    cursor: pointer;
    max-width: 26px
}

.figimage {
    width: 30%;
}

.figimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popncount {
    width: 70%;
    background-color: #A94931;
    padding: 80px 50px 80px 40px;
    color: #e2dac6 !important;
}

.popncount h4,
.popncount p {
    font-size: 16px;
    line-height: 24px
}

.popncount h1 {
    font-size: 36px;
    line-height: 36px;
    text-transform: uppercase;
    letter-spacing: 3.6px;
    padding: 14px 0 20px;
    font-weight: 300
}
.dark_overlay {
    position: fixed;
    background: rgba(0, 0, 0, .8);
    width: 100%;
    height: 100%;
    z-index: 80;
    left: 0;
    top: 0
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:before,
:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box
}

.rdnmore a {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: #e2dac6 !important;
    border-bottom: 1px solid #e2dac6 !important;
}

.rdnmore a:hover {
    color: #e2dac6 !important;
}



.rdnmore {
    padding-top: 14px
}

a {
    text-decoration: none;
    transition: all ease 0.5s
}

@media (max-width:767px) {
    /* Mobile: stack image and content, reduce paddings */
    .locn_popup {
        width: calc(100% - 24px);
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 92vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 12px;
    }

    .locn_popup .wpb_wrapper {
        position: relative;
        flex-direction: column;
    }

    .figimage {
        width: 100%;
        flex: 0 0 auto;
    }

    .figimage img {
        width: 100%;
        height: auto;
        max-height: 40vh;
        object-fit: cover;
    }

    .popncount {
        width: 100%;
        padding: 28px 16px;
        box-sizing: border-box;
    }

    .popncount h1 {
        font-size: 22px;
        line-height: 1.1;
        letter-spacing: 1px;
        padding: 8px 0;
    }

    .popncount h4,
    .popncount p {
        font-size: 15px;
        line-height: 1.4;
    }

    .rdnmore {
        padding-top: 12px;
    }

    .rdnmore a {
        font-size: 16px;
    }
}

@media (max-width:991px) {
    /* Tablet / small desktop tweaks */

    .figimage {
        width: 40%;
        flex: 0 0 40%;
    }

    .figimage img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 80vh;
        object-fit: cover;
    }

    .popncount {
        width: 60%;
        background-color: #A94931;
        padding: 36px;
        box-sizing: border-box;
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .popncount h1 {
        font-size: 36px;
        line-height: 50px;
    }
}

/* Admin preview */

#popup-meta-wrapper {
  display: flex;
  gap: 20px;
}
#popup-fields {
  flex: 1;
  max-width: 600px;
}
#popup-live-preview {
  flex: 1;
  border: 1px solid #ddd;
  background: #fff;
  padding: 15px;
  max-width: 400px;
  height: 600px;
  overflow-y: auto;
  position: sticky;
  top: 20px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
#popup-live-preview .locn_popup {
  display: block !important; /* force show */
}

/* Mobile-first vertical variant toggled by JS: .locn_popup.vertical */
.locn_popup.vertical {
    width: 100vw !important;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    margin: 0;
    overflow: hidden;
}

.locn_popup.vertical .wpb_wrapper {
    flex-direction: column;
    height: 100%;
}

.locn_popup.vertical .figimage {
    width: 100%;
    flex: 0 0 auto;
}

.locn_popup.vertical .figimage img {
    width: 100%;
    height: 45vh; /* image takes about half the screen */
    object-fit: cover;
}

.locn_popup.vertical .popncount {
    width: 100%;
    background-color: #A94931;
    padding: 22px 18px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: calc(55vh - 22px);
}

.locn_popup.vertical .popncount h1,
.locn_popup.vertical .popncount h3 {
    font-size: 24px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.locn_popup.vertical .popncount p,
.locn_popup.vertical .popncount h4 {
    font-size: 16px;
    line-height: 1.6;
}

/* Make close icon larger and more tappable on vertical mobile */
.locn_popup.vertical .closbtn {
    right: 18px;
    top: 18px;
    max-width: none;
}
.locn_popup.vertical .closbtn img {
    width: 42px;
    height: 42px;
}
