/* ==========================================
   MAP CONTAINER (MapLibre map wrapper)
   ========================================== */
.map-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* ==========================================
   GOLD BORDER (popup decoration)
   ========================================== */
.map-gold-border {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    border-top: 2px solid #f7e8ac;
    border-left: 2px solid #f7e8ac;
    border-right: none;
    border-bottom: none;
    pointer-events: none;
    z-index: 3;
    -webkit-mask: linear-gradient(to bottom right, black 0%, black 20%, transparent 50%);
    mask: linear-gradient(to bottom right, black 0%, black 20%, transparent 50%);
}

/* ==========================================
   POPUP CARD
   ========================================== */
.popup-card {
    border-radius: 32px;
    background: #ece6ff33;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    padding: 24px 28px;
    position: relative;
}

.popup-title {
    font-family: "MuseoModerno", sans-serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 16px;
}

.popup-description {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    color: #fff;
    line-height: 1.2;
}

/* Collapse description when empty — no reserved space */
.popup-description:empty {
    display: none;
    margin: 0;
}

.popup-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-link:hover {
    color: #f7e8ac;
    gap: 10px;
    text-decoration: underline;
}

.popup-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.popup-link:hover svg {
    transform: translate(2px, -2px);
}

/* ==========================================
   COUNTRY TAGS (filter pills)
   ========================================== */
.country-tag {
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.country-tag:hover {
    transform: translateY(-1px);
}

/* ==========================================
   RESPONSIVE — TABLET (769px – 1024px)
   ========================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .popup-card {
        min-width: 260px;
        max-width: 300px;
    }
}

/* ==========================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================== */
@media (max-width: 768px) {
    .popup-card {
        padding: 20px 24px !important;
        border-radius: 24px;
    }

    .popup-title {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .popup-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .popup-link {
        font-size: 14px;
    }
}

/* ==========================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ========================================== */
@media (max-width: 480px) {
    .popup-title {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .popup-description {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    .popup-link {
        font-size: 13px;
    }
}


@media screen and (min-width: 1280px) and (max-width: 1300px) and (max-height: 768px) {
  #tagsPanel {
    max-width: 435px !important;
  }
  .popup-card {
    padding: 15px 20px !important;
}
.popup-title {
    font-size: 20px !important;
}
}



@media screen and (min-width: 1320px) and (max-width: 1390px) and (max-height: 768px) {
  #tagsPanel {
    width: 480px !important;
  }
    .popup-card {
    padding: 15px 20px !important;
}
.popup-title {
    font-size: 24px !important;
}
}


/* ─────────────────────────────────────────────────────────────
   Contact Section Form — Inline version of the popup form
   Uses the same CF7 form (id=6f03066) as the popup, but styled
   for inline pill-shape inputs and external submit buttons.
   ───────────────────────────────────────────────────────────── */

/* ─── Base input / select / textarea ─── */
#contact-section-form-wrap .wpcf7-form input[type="text"],
#contact-section-form-wrap .wpcf7-form input[type="email"],
#contact-section-form-wrap .wpcf7-form input[type="tel"],
#contact-section-form-wrap .wpcf7-form select,
#contact-section-form-wrap .wpcf7-form textarea,
#contact-section-form-wrap .wpcf7-text {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 40px;
    padding: 10px 20px;
    color: #fff !important;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.2px;
    margin-bottom: 14px;
    outline: none !important;
    display: block;
    box-sizing: border-box;
    background: transparent !important;
    -webkit-appearance: none;
    appearance: none;
}

#contact-section-form-wrap .wpcf7-form input[type="text"]:focus,
#contact-section-form-wrap .wpcf7-form input[type="email"]:focus,
#contact-section-form-wrap .wpcf7-form input[type="tel"]:focus,
#contact-section-form-wrap .wpcf7-form select:focus,
#contact-section-form-wrap .wpcf7-form textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #fff !important;
    outline: none !important;
}

#contact-section-form-wrap .wpcf7-form input:-webkit-autofill,
#contact-section-form-wrap .wpcf7-form input:-webkit-autofill:hover,
#contact-section-form-wrap .wpcf7-form input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px rgba(21, 39, 55, 0.95) inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
}

#contact-section-form-wrap .wpcf7-form input::placeholder,
#contact-section-form-wrap .wpcf7-form textarea::placeholder {
    color: rgba(255, 255, 255, 1);
    font-family: Poppins, sans-serif;
    font-size: 18px;
}

/* ─── Select arrow ─── */
#contact-section-form-wrap .wpcf7-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-color: transparent !important;
    padding-right: 48px;
    cursor: pointer;
}

#contact-section-form-wrap .wpcf7-form select option {
    background: #2a2540;
    color: #ffffff;
    font-family: Poppins, sans-serif;
}

/* ─── Textarea ─── */
#contact-section-form-wrap .wpcf7-form textarea {
    border-radius: 16px;
    resize: none;
    height: 100px;
    min-height: unset;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

#contact-section-form-wrap .wpcf7-form textarea::-webkit-scrollbar {
    width: 4px;
}
#contact-section-form-wrap .wpcf7-form textarea::-webkit-scrollbar-track {
    background: transparent;
}
#contact-section-form-wrap .wpcf7-form textarea::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* ─── Hide the CF7 internal submit (external buttons are used) ─── */
/* The form template uses <button type="submit" class="wpcf7-submit popup-submit-btn"> */
#contact-section-form-wrap .wpcf7-form input[type="submit"],
#contact-section-form-wrap .wpcf7-form button[type="submit"],
#contact-section-form-wrap .wpcf7-form .wpcf7-submit,
#contact-section-form-wrap .wpcf7-form .popup-submit-btn {
    display: none !important;
}

/* ─── Hide CF7 built-in validation messages (we render our own) ─── */
#contact-section-form-wrap .wpcf7-not-valid-tip {
    display: none !important;
}
#contact-section-form-wrap .wpcf7-response-output {
    display: none !important;
}
#contact-section-form-wrap .wpcf7-not-valid {
    border-color: inherit !important;
}

/* ─── Country Code + Phone Input Group ─── */
#contact-section-form-wrap .cf7-phone-group {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0;
}
#contact-section-form-wrap .cf7-country-code {
    flex: 0 0 auto;
    min-width: 95px;
}
#contact-section-form-wrap .cf7-country-code select {
    min-width: 95px;
    padding: 10px 16px;
    font-size: 18px;
    margin-bottom: 14px !important;
}
#contact-section-form-wrap .cf7-phone-input {
    flex: 1;
    margin-bottom: 0;
}
#contact-section-form-wrap .cf7-phone-input input {
    margin-bottom: 14px !important;
}

/* ─── Error message styling ─── */
#contact-section-form-wrap .cf7-error-message {
    color: #ff6464;
    font-size: 0.85rem;
    margin-top: 2px;
    margin-bottom: 10px;
    font-family: Poppins, sans-serif;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 20px;
    line-height: 1.3;
}
#contact-section-form-wrap .cf7-error-message::before {
    content: '⚠';
    font-size: 0.9rem;
}
#contact-section-form-wrap .cf7-field-error {
    border-color: rgba(255, 100, 100, 0.5) !important;
    background: rgba(255, 100, 100, 0.05) !important;
}

/* Reduce field bottom margin when an error message follows it */
#contact-section-form-wrap .wpcf7-form input.cf7-field-error,
#contact-section-form-wrap .wpcf7-form select.cf7-field-error,
#contact-section-form-wrap .wpcf7-form textarea.cf7-field-error {
    margin-bottom: 2px !important;
}

/* ─── Acceptance checkbox ─── */
#contact-section-form-wrap .wpcf7-acceptance {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;           /* allow error msg to push to next line */
    gap: 8px;
    margin: 4px 0 0;
    pointer-events: none !important;
}
#contact-section-form-wrap .wpcf7-form .cf7-acceptance-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: start !important;
    gap: 6px !important;
    color: #fff !important;
    font-family: Poppins !important;
    font-size: 13px !important;
    cursor: pointer !important;
    /* margin: 0px 0 8px !important;
    width: 100% !important; */
}

#contact-section-form-wrap .wpcf7-acceptance input[type="checkbox"] {
    width: 20px;
    min-width: 20px;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: transparent;
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative;
    flex-shrink: 0;
    margin: 2px 0 0 0;
}

#contact-section-form-wrap .wpcf7-acceptance input[type="checkbox"]:checked {
    background: #FFEB87;
    border-color: #FFEB87;
}

#contact-section-form-wrap .wpcf7-acceptance input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #152737;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Label text should not steal clicks / show pointer */
#contact-section-form-wrap .wpcf7-acceptance label.cf7-acceptance-label {
    display: inline;
    width: auto;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    pointer-events: none !important;
    cursor: default !important;
}
#contact-section-form-wrap .wpcf7-acceptance label.cf7-acceptance-label span {
    pointer-events: none;
    cursor: default;
}
/* Re-enable ONLY the <a> link inside the label */
#contact-section-form-wrap .wpcf7-acceptance a,
#contact-section-form-wrap .wpcf7-form a {
    color: #FFEB87 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Acceptance error message — below the row, full width, new line */
#contact-section-form-wrap .acceptance-error-msg {
    padding-left: 0 !important;
    margin-top: 6px !important;
    width: 100% !important;
    flex-basis: 100% !important;  /* force new line in the flex row */
       justify-content: left !important;
}

/* ─── Form success / error messages ─── */
#contact-section-form-wrap .cf7-form-message {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    margin-top: 12px;
    padding: 12px 20px;
    border-radius: 12px;
}
#contact-section-form-wrap .cf7-form-message--success {
    color: #FFEB87;
    border: 1px solid #FFEB87;
    background: rgba(255, 235, 135, 0.1);
}
#contact-section-form-wrap .cf7-form-message--error {
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* ─── Success state (replaces form after submit) ─── */
#contact-section-success {
    text-align: center;
    padding: 60px 20px;
    width: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 235, 135, 0.4);
    border-radius: 24px;
    background: rgba(255, 235, 135, 0.06);
    animation: cs-success-in 0.4s ease-out;
}
@keyframes cs-success-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
#contact-section-success svg {
    display: block;
    margin: 0 auto 16px;
}
#contact-section-success .success-title {
    color: #FFEB87;
    font-family: MuseoModerno, sans-serif;
    font-size: 28px;
    font-weight: 300;
    margin: 0;
    line-height: 1.2;
}
#contact-section-success .success-subtitle {
    color: rgba(255, 255, 255, 0.75);
    font-family: Poppins, sans-serif;
    font-size: 15px;
    margin: 8px 0 0;
}
@media (max-width: 640px) {
    #contact-section-success {
        padding: 40px 16px;
        min-height: 240px;
    }
    #contact-section-success .success-title { font-size: 22px; }
    #contact-section-success .success-subtitle { font-size: 13px; }
}
textarea {
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;            /* vertical touch scroll inside */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
    #contact-section-form-wrap .wpcf7-form input[type="text"],
    #contact-section-form-wrap .wpcf7-form input[type="email"],
    #contact-section-form-wrap .wpcf7-form input[type="tel"],
    #contact-section-form-wrap .wpcf7-form select,
    #contact-section-form-wrap .wpcf7-form textarea {
        font-size: 14px;
        padding: 8px 16px;
        margin-bottom: 10px;
        border-radius: 30px;
    }
    #contact-section-form-wrap .wpcf7-form textarea {
        height: 70px;
        border-radius: 16px;
    }
    #contact-section-form-wrap .wpcf7-form input::placeholder,
    #contact-section-form-wrap .wpcf7-form textarea::placeholder {
        font-size: 14px;
    }
    #contact-section-form-wrap .cf7-phone-group {
        gap: 0.4rem;
    }
    #contact-section-form-wrap .cf7-country-code {
        min-width: 80px;
    }
    #contact-section-form-wrap .cf7-country-code select {
        font-size: 12px;
        padding: 7px 10px;
        margin-bottom: 10px !important;
    }
    #contact-section-form-wrap .cf7-phone-input input {
        margin-bottom: 10px !important;
    }
    #contact-section-form-wrap .cf7-error-message {
        font-size: 0.78rem;
        padding-left: 16px;
    }
}

@media (min-width: 1024px) and (max-width: 1285px) {
    #contact-section-form-wrap .cf7-country-code select {
              font-size: 18px;
        padding: 10px 15px;
    }
}

@media (min-width: 1700px) {
    #contact-section-form-wrap .wpcf7-form input[type="text"],
    #contact-section-form-wrap .wpcf7-form input[type="email"],
    #contact-section-form-wrap .wpcf7-form input[type="tel"],
    #contact-section-form-wrap .wpcf7-form select,
    #contact-section-form-wrap .wpcf7-form textarea {
        font-size: 16px;
        padding: 14px 24px;
        margin-bottom: 16px;
    }
    #contact-section-form-wrap .wpcf7-form textarea {
        height: 120px;
    }
    #contact-section-form-wrap .cf7-country-code select {
        font-size: 16px;
        padding: 14px 20px;
        margin-bottom: 16px !important;
    }
    #contact-section-form-wrap .cf7-phone-input input {
        margin-bottom: 16px !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   Submit button visibility — force correct button per breakpoint
   even if Tailwind's lg:hidden / hidden.lg:block utilities
   didn't compile or are being overridden.
   ───────────────────────────────────────────────────────────── */

/* Desktop (≥ 1024px): show only the left-side pill button */
@media (min-width: 1024px) {
    /* Hide the mobile button itself */
    #contact-section-submit-mobile {
        display: none !important;
    }
    /* Hide the wrapper div that contains it (modern browsers) */
    #contact-form-section div:has(> #contact-section-submit-mobile) {
        display: none !important;
    }
    /* Fallback via escaped Tailwind class (works even without :has) */
    #contact-form-section .lg\:hidden {
        display: none !important;
    }
}

/* Mobile (< 1024px): show only the full-width mobile button */
@media (max-width: 1023.98px) {
    #contact-section-submit {
        display: none !important;
    }
    #contact-form-section div:has(> #contact-section-submit) {
        display: none !important;
    }
    #contact-form-section .hidden.lg\:block,
    #contact-form-section .hidden {
        display: none !important;
    }
}


/* ============ OFFICE CARD ADDRESS STYLES ============ */

/* Reset WYSIWYG paragraph margins inside office cards */
.office-card .office-address-link p,
.office-card .office-address-text p {
    margin: 0;
    padding: 0;
    line-height: inherit;
    color: inherit;
}

.office-card .office-address-link p + p,
.office-card .office-address-text p + p {
    margin-top: 4px;
}

/* Address link: NO underline by default, underline ON hover only */
.office-card .office-address-link {
    text-decoration: none;
    text-underline-offset: 4px;
    transition: text-decoration 0.3s, color 0.3s;
}

.office-card .office-address-link:hover {
    text-decoration: underline;
}

.office-card .office-address-link p {
    text-decoration: inherit;
text-decoration: inherit;
}

#contact-section-form-wrap .cf7-country-code select {
   
    margin-bottom: 0px !important;
}

#contact-section-form-wrap .wpcf7-form input:-webkit-autofill,
#contact-section-form-wrap .wpcf7-form input:-webkit-autofill:hover,
#contact-section-form-wrap .wpcf7-form input:-webkit-autofill:focus,
#contact-section-form-wrap .wpcf7-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px rgb(97 82 105) inset !important;
    box-shadow: 0 0 0 1000px rgb(97 82 105) inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    color: #fff !important;
    transition: background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s;
}