/* =========================================
   MOONSEE SEARCH — Styles
   Aesthetic: Luxury · Warmth · Trust
   Elementor compatible — header 78px
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
    --ms-black:    #000000;
    --ms-white:    #ffffff;
    --ms-cream:    #f5f2ec;
    --ms-gold:     #FFBF00;
    --ms-gold-lt:  #FFD966;
    --ms-green:    #95d7ae;
    --ms-gray-1:   #f0f0f0;
    --ms-gray-2:   #d4d4d4;
    --ms-gray-3:   #8c8c8c;
    --ms-gray-4:   #3d3d3d;
    --ms-radius:   16px;
    --ms-radius-sm: 12px;
    --ms-shadow:   0 4px 24px rgba(0,0,0,.08);
    --ms-shadow-lg: 0 12px 48px rgba(0,0,0,.14);
    --ms-font:     'Nunito', sans-serif;
    /* Hauteur header */
    --ms-header-h: 78px;
}

/* ─── NEUTRALISE LES WRAPPERS ELEMENTOR ────── 
   Elementor gratuit ajoute des paddings sur
   .elementor-section et .elementor-widget-wrap.
   On les neutralise uniquement dans nos pages.
*/
.moonsee-results-page .elementor-section,
.moonsee-results-page .elementor-container,
.moonsee-results-page .elementor-row,
.moonsee-results-page .elementor-col-100,
.moonsee-results-page .elementor-widget-wrap,
.moonsee-results-page .elementor-widget-container,
.moonsee-results-page .elementor-widget-shortcode {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Neutralise aussi le padding du thème sur entry-content */
.moonsee-results-page .entry-content,
.moonsee-results-page .site-content,
.moonsee-results-page #content,
.moonsee-results-page main,
.moonsee-results-page article {
    padding: 0 !important;
    margin: 0 !important;
}

/* ─── RESET SCOPED ──────────────────────────── */
.moonsee-home *,
.moonsee-results * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.moonsee-home,
.moonsee-results {
    font-family: var(--ms-font);
    color: var(--ms-black);
    background: var(--ms-white);
    -webkit-font-smoothing: antialiased;
}

/* ─── HERO ──────────────────────────────────── */
.ms-hero {
    background: var(--ms-black);
    padding: 80px 24px 90px;
    position: relative;
    overflow: hidden;
}

.ms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 80% 50%, #2a1f0e 0%, transparent 70%),
                radial-gradient(ellipse 40% 60% at 20% 80%, #1a0f00 0%, transparent 60%);
    pointer-events: none;
}

.ms-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ms-hero-eyebrow {
    font-family: var(--ms-font);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ms-gold);
    margin-bottom: 20px;
}

.ms-hero-title {
    font-family: var(--ms-font);
    font-size: clamp(38px, 6vw, 60px);
    font-weight: 500;
    line-height: 1.12;
    color: var(--ms-white);
    margin-bottom: 18px;
}

.ms-hero-title em {
    font-style: italic;
    color: var(--ms-gold);
}

.ms-hero-sub {
    font-size: 15px;
    font-weight: 300;
    color: rgba(255,255,255,.55);
    margin-bottom: 44px;
    line-height: 1.6;
}

/* ─── SEARCH BOX ────────────────────────────── */
.ms-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 60px;
    padding: 7px 7px 7px 20px;
    backdrop-filter: blur(12px);
    position: relative;
}

.ms-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ms-search-icon {
    width: 18px;
    height: 18px;
    color: var(--ms-gold);
    flex-shrink: 0;
}

.ms-search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--ms-font);
    font-size: 15px;
    color: var(--ms-white);
    font-weight: 400;
}

.ms-search-box input::placeholder {
    color: rgba(255,255,255,.35);
}

.ms-btn-primary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ms-white);
    color: var(--ms-black);
    border: none;
    border-radius: 50px;
    padding: 13px 24px;
    font-family: var(--ms-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.ms-btn-primary svg {
    width: 16px;
    height: 16px;
}

.ms-btn-primary:hover {
    background: var(--ms-gold-lt);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* ─── AUTOCOMPLETE ──────────────────────────── */
.ms-autocomplete-list {
    position: absolute;
    top: calc(100% + 16px);
    left: -20px;
    right: -8px;
    background: var(--ms-white);
    border-radius: var(--ms-radius);
    box-shadow: var(--ms-shadow-lg);
    border: 1px solid var(--ms-gray-1);
    overflow: hidden;
    z-index: 1000;
    display: none;
}

.ms-autocomplete-list.open {
    display: block;
}

.ms-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--ms-gray-4);
    transition: background .15s;
    border-bottom: 1px solid var(--ms-gray-1);
}

.ms-autocomplete-item:last-child { border-bottom: none; }
.ms-autocomplete-item:hover { background: var(--ms-cream); }

.ms-autocomplete-item svg {
    width: 14px;
    height: 14px;
    color: var(--ms-gray-3);
    flex-shrink: 0;
}

/* ─── CITIES SECTION ────────────────────────── */
.ms-cities-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

.ms-cities-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ms-gray-3);
    margin-bottom: 20px;
}

.ms-cities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ms-city-card {
    position: relative;
    height: 200px;
    border-radius: var(--ms-radius);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform .3s ease, box-shadow .3s ease;
}

.ms-city-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ms-shadow-lg);
}

.ms-city-card:hover .ms-city-card-bg {
    transform: scale(1.05);
}

.ms-city-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .4s ease;
}

.ms-city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,.1) 0%, rgba(0,0,0,.65) 100%);
}

.ms-city-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
}

.ms-city-name {
    display: block;
    font-family: var(--ms-font);
    font-size: 26px;
    font-weight: 500;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.ms-city-sub {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.65);
    font-weight: 400;
    letter-spacing: .04em;
}

/* ─── RESULTS PAGE ──────────────────────────── */
.moonsee-results {
    display: flex;
    flex-direction: column;
    /* 78px header + éventuelle admin bar WP (32px) gérée via JS */
    height: calc(100vh - var(--ms-header-h));
    overflow: hidden;
    /* Annule tout margin/padding hérité d'Elementor ou du thème */
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
}

/* ─── RESULTS HEADER ────────────────────────── */
.ms-results-header {
    padding: 16px 24px;
    background: var(--ms-white);
    border-bottom: 1px solid var(--ms-gray-1);
    z-index: 100;
    flex-shrink: 0;
}

.ms-results-title h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ms-black);
    margin: 0;
}

/* ─── MAP SEARCH (above map) ─────────────────── */
.ms-map-search {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ms-white);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    max-width: 37.5rem;
    width: calc(100% - 32px);
}

.ms-map-search .material-symbols-rounded {
    font-size: 20px;
    color: var(--ms-gray-3);
    flex-shrink: 0;
}

.ms-map-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--ms-font);
    font-size: 15px;
    color: var(--ms-black);
}

.ms-map-search input::placeholder {
    color: var(--ms-gray-3);
}

.ms-map-search #ms-results-autocomplete {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--ms-white);
    border-radius: 16px;
}

/* ─── MAIN LAYOUT ───────────────────────────── */
.ms-results-layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ─── PROFILES PANEL ────────────────────────── */
.ms-profiles-panel {
    width: 420px;
    flex-shrink: 0;
    overflow-y: auto;
    background: var(--ms-white);
    border-right: 1px solid var(--ms-gray-1);
    padding: 16px;
    scroll-behavior: smooth;
}

.ms-profiles-panel::-webkit-scrollbar { width: 4px; }
.ms-profiles-panel::-webkit-scrollbar-track { background: transparent; }
.ms-profiles-panel::-webkit-scrollbar-thumb { background: var(--ms-gray-2); border-radius: 4px; }

.ms-profiles-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ─── PROFILE CARD ──────────────────────────── */
.ms-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--ms-white);
    border: 1px solid var(--ms-gray-1);
    border-radius: var(--ms-radius);
    padding: 14px;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    color: inherit;
    animation: ms-card-in .3s ease both;
}

@keyframes ms-card-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ms-profile-card:hover {
    border-color: var(--ms-gold);
    box-shadow: 0 4px 20px rgba(201,169,110,.15);
    transform: translateY(-1px);
}

.ms-profile-card.active {
    border-color: var(--ms-black);
    background: var(--ms-cream);
}

.ms-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.ms-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ms-gray-1);
    display: block;
}

.ms-profile-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--ms-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--ms-gray-3);
    border: 2px solid var(--ms-gray-1);
}

.ms-profile-info {
    flex: 1;
    min-width: 0;
}

.ms-profile-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--ms-black);
    margin-bottom: 4px;
}

.ms-profile-city {
    font-size: 12px;
    color: var(--ms-gray-3);
    margin-bottom: 6px;
}

.ms-profile-certified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--ms-white);
    border: 1px solid var(--ms-gray-2);
    color: var(--ms-black);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px 4px 6px;
    border-radius: 16px;
}

.ms-profile-certified-badge .material-symbols-rounded {
    font-size: 14px;
    color: var(--ms-black);
}

/* Material Icons helper */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.ms-profile-location {
    font-size: 12px;
    color: var(--ms-gray-3);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.ms-profile-location svg {
    width: 11px;
    height: 11px;
}

.ms-profile-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.ms-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 20px;
    background: var(--ms-gray-1);
    color: var(--ms-gray-4);
    white-space: nowrap;
}

.ms-tag-certified {
    background: #0d0d0d;
    color: var(--ms-gold);
}

.ms-profile-aside {
    flex-shrink: 0;
    text-align: right;
}

.ms-profile-price {
    font-family: var(--ms-font);
    font-size: 18px;
    font-weight: 600;
    color: var(--ms-black);
    line-height: 1;
    margin-bottom: 4px;
}

.ms-profile-price span {
    font-family: var(--ms-font);
    font-size: 11px;
    font-weight: 400;
    color: var(--ms-gray-3);
}

.ms-profile-rate {
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: flex-end;
}

.ms-star {
    color: #ffcae9;
    font-size: 12px;
}

.ms-rate-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--ms-gray-4);
}

/* ─── LOADING ───────────────────────────────── */
.ms-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 0;
    color: var(--ms-gray-3);
    font-size: 14px;
}

.ms-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--ms-gray-2);
    border-top-color: var(--ms-black);
    border-radius: 50%;
    animation: ms-spin 0.7s linear infinite;
}

.ms-spinner-sm {
    width: 22px;
    height: 22px;
    border: 2px solid var(--ms-gray-2);
    border-top-color: var(--ms-black);
    border-radius: 50%;
    animation: ms-spin 0.7s linear infinite;
    margin: 0 auto;
}

@keyframes ms-spin {
    to { transform: rotate(360deg); }
}

.ms-load-more {
    padding: 20px 0 8px;
    text-align: center;
}

.ms-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--ms-gray-3);
}

.ms-empty h3 {
    font-family: var(--ms-font);
    font-size: 22px;
    font-weight: 500;
    color: var(--ms-gray-4);
    margin-bottom: 8px;
}

.ms-empty p { font-size: 14px; }

/* ─── MAP PANEL ─────────────────────────────── */
.ms-map-panel {
    flex: 1;
    position: relative;
    z-index: 1;
}

#ms-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* ─── LEAFLET CUSTOM MARKERS ────────────────── */
.ms-marker-wrap {
    position: relative;
}

.ms-marker-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    display: block;
    cursor: pointer;
    transition: transform .2s ease;
    /* Force aspect ratio */
    aspect-ratio: 1/1;
    flex-shrink: 0;
}

.ms-marker-avatar:hover,
.ms-marker-avatar.active {
    border-color: var(--ms-gold, #c9a96e);
    transform: scale(1.15);
}

.ms-marker-cluster {
    background: #0d0d0d;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    cursor: pointer;
}

.ms-marker-label {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: #0d0d0d;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
}

.ms-marker-wrap:hover .ms-marker-label {
    opacity: 1;
}

/* Leaflet popup override */
.leaflet-popup-content-wrapper {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.15) !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 220px !important;
}

.ms-popup {
    display: flex;
    flex-direction: column;
    font-family: 'DM Sans', sans-serif;
}

.ms-popup-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.ms-popup-img-placeholder {
    width: 100%;
    height: 120px;
    background: #f0ede8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    color: #8c8880;
}

.ms-popup-body {
    padding: 12px 14px;
}

.ms-popup-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 600;
    color: #0d0d0d;
    margin-bottom: 2px;
}

.ms-popup-city {
    font-size: 11px;
    color: #8c8880;
    margin-bottom: 8px;
}

.ms-popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ms-popup-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: #0d0d0d;
}

.ms-popup-price small {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: #8c8880;
}

.ms-popup-rate {
    font-size: 12px;
    color: #c9a96e;
    font-weight: 600;
}

.leaflet-popup-tip-container { display: none; }

/* ─── MODAL PROFIL DÉTAILS ──────────────────── */
.ms-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
    animation: ms-fade-in .2s ease;
}

.ms-modal-overlay.open { display: flex; }

/* Block body scroll when panel open */
body.ms-modal-open {
    overflow: hidden !important;
}

@keyframes ms-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ms-modal {
    background: var(--ms-white);
    border-radius: 0;
    max-width: 480px;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    box-shadow: -4px 0 40px rgba(0,0,0,.2);
    position: fixed;
    right: 0;
    top: 0;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.2,.9,.3,1);
}

.ms-modal-overlay.open .ms-modal {
    transform: translateX(0);
}

.ms-modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(8px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: background .2s;
}

.ms-modal-close:hover { background: rgba(0,0,0,.7); }

.ms-modal-close svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

/* ─── PROFILE PHOTO CARD ────────────────────── */
.ms-profile-photo-card {
    position: relative;
    width: calc(100% - 48px);
    margin: 16px 24px 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

.ms-profile-photo-main {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    object-position: center 20%;
    display: block;
}

.ms-profile-photo-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: var(--ms-gray-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 700;
    color: var(--ms-gray-3);
}

.ms-profile-card-name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* ─── STATS ROW ─────────────────────────────── */
.ms-profile-stats {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 24px;
    padding: 20px 24px;
    margin: 0 24px 20px;
    background: var(--ms-white);
    border-radius: 16px;
    border: 1px solid var(--ms-gray-1);
}

.ms-stat {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.ms-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--ms-black);
    line-height: 1;
    margin-bottom: 6px;
}

.ms-stat-label {
    font-size: 13px;
    color: var(--ms-gray-3);
    font-weight: 500;
    white-space: nowrap;
}

.ms-stat-label .ms-star {
    font-size: 13px;
}

.ms-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--ms-gray-2);
    flex-shrink: 0;
}

/* Price badge for profiles without stats */
.ms-profile-price-badge {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--ms-black);
    padding: 16px 32px;
    margin: 0 auto 20px;
    background: var(--ms-green);
    border-radius: 16px;
    width: fit-content;
    max-width: calc(100% - 48px);
}

/* ─── MODAL INFO ────────────────────────────── */
.ms-modal-info {
    padding: 0 24px 24px;
}

.ms-modal-body {
    padding: 0;
    height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ms-modal-status {
    font-size: 15px;
    font-weight: 600;
    color: var(--ms-gray-3);
    margin-bottom: 8px;
}

.ms-modal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--ms-gray-3);
    flex-wrap: wrap;
}

.ms-modal-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ms-modal-meta .material-symbols-rounded {
    font-size: 16px;
}

.ms-modal-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--ms-gray-3);
    flex-wrap: wrap;
}

.ms-modal-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ms-modal-meta svg {
    width: 14px;
    height: 14px;
}

/* ─── VERIFICATION SECTION ──────────────────── */
.ms-verification-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.ms-verification-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #0369a1;
    font-weight: 700;
    font-size: 15px;
}

.ms-verification-header svg {
    width: 20px;
    height: 20px;
}

.ms-verification-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ms-verification-card {
    background: var(--ms-white);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.ms-verification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ms-verification-icon .material-symbols-rounded {
    font-size: 20px;
    color: #0369a1;
}

.ms-verification-text {
    flex: 1;
}

.ms-verification-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ms-black);
    margin-bottom: 2px;
}

.ms-verification-text p {
    font-size: 12px;
    color: var(--ms-gray-3);
    margin: 0;
}

.ms-verification-check {
    font-size: 20px !important;
    color: #10b981;
    flex-shrink: 0;
}

.ms-verification-header .material-symbols-rounded {
    font-size: 20px;
}

.ms-modal-meta .material-symbols-rounded {
    font-size: 16px;
}

/* ─── MODAL SECTIONS ─────────────────────────── */

.ms-modal-section {
    margin-bottom: 20px;
    padding: 0 24px;
}

.ms-modal-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ms-black);
    margin-bottom: 8px;
}

.ms-modal-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ms-gray-4);
}

.ms-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.ms-modal-tag {
    background: var(--ms-gray-1);
    color: var(--ms-gray-4);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 16px;
}

.ms-modal-rating-large {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
}

.ms-modal-rating-large .ms-star {
    color: #ffcae9;
    font-size: 24px;
}

.ms-modal-rating-large strong {
    font-size: 20px;
    font-weight: 800;
}

.ms-modal-price-large {
    font-size: 32px;
    font-weight: 800;
    color: var(--ms-black);
    text-align: center;
    margin-bottom: 12px;
}

.ms-modal-cta-wrapper {
    margin-top: 32px;
    padding: 24px;
    border-top: 1px solid var(--ms-gray-1);
}

.ms-modal-cta-text {
    font-size: 14px;
    color: var(--ms-gray-3);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

.ms-modal-cta {
    width: 100%;
    background: var(--ms-black);
    color: var(--ms-white);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-family: var(--ms-font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.ms-modal-cta:hover {
    background: var(--ms-gray-4);
}

/* Responsive modal */
@media (max-width: 640px) {
    .ms-modal {
        max-width: 100%;
    }
    
    .ms-modal-header {
        height: 200px;
    }
    
    .ms-modal-body {
        height: calc(100vh - 200px);
    }
}

/* ─── RESPONSIVE ────────────────────────────── */

/* Mobile view toggle */
.ms-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: var(--ms-black);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

.ms-mobile-toggle button {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    font-family: var(--ms-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ms-mobile-toggle button.active {
    background: var(--ms-white);
    color: var(--ms-black);
}

.ms-mobile-toggle .material-symbols-rounded {
    font-size: 20px;
}

@media (max-width: 900px) {
    .ms-mobile-toggle {
        display: flex;
        gap: 4px;
    }
    
    .ms-results-header {
        padding: 12px 16px;
    }
    
    .ms-results-title h1 {
        font-size: 18px;
    }
    
    /* Mobile search clone styling */
    .ms-mobile-search-clone {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 16px 16px 16px 16px !important;
        width: calc(100% - 32px) !important;
        max-width: none !important;
    }
    
    .ms-results-layout {
        position: relative;
    }
    
    .ms-profiles-panel,
    .ms-map-panel {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        transition: opacity .3s, visibility .3s;
        overflow-y: auto;
    }
    
    .ms-profiles-panel {
        opacity: 1;
        visibility: visible;
        z-index: 10;
        border-right: none;
    }
    
    .ms-map-panel {
        opacity: 0;
        visibility: hidden;
        z-index: 5;
    }
    
    /* When map is shown */
    .ms-results-layout.show-map .ms-profiles-panel {
        opacity: 0;
        visibility: hidden;
    }
    
    .ms-results-layout.show-map .ms-map-panel {
        opacity: 1;
        visibility: visible;
        z-index: 10;
    }
}

@media (max-width: 640px) {
    .ms-modal {
        max-width: 100%;
    }
    
    .ms-profile-photo-card {
        margin: 16px 16px 16px;
        width: calc(100% - 32px);
    }
    
    .ms-profile-card-name {
        font-size: 26px;
        bottom: 16px;
        left: 16px;
    }
    
    .ms-profile-stats,
    .ms-profile-price-badge {
        margin-left: 16px;
        margin-right: 16px;
    }
    
    .ms-stat-value {
        font-size: 24px;
    }
    
    .ms-modal-info,
    .ms-modal-section,
    .ms-modal-cta-wrapper {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .ms-cities-grid {
        grid-template-columns: 1fr;
    }

    .ms-city-card {
        height: 150px;
    }

    .ms-search-box {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px;
        gap: 8px;
    }

    .ms-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .ms-hero-title {
        font-size: 32px;
    }
}

/* ═══════════════════════════════════════════════════
   HERO COMPACT (Elementor Homepage)
═══════════════════════════════════════════════════ */
.moonsee-hero-compact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* Search box style like main search page */
.ms-hero-search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto 60px;
    background: var(--ms-white);
    border: 1px solid var(--ms-gray-2);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.ms-hero-search-icon {
    width: 20px;
    height: 20px;
    color: var(--ms-gray-3);
    margin-left: 12px;
    flex-shrink: 0;
}

.ms-hero-search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--ms-font);
    font-size: 16px;
    color: var(--ms-black);
    min-width: 0;
    padding: 8px 4px;
}

.ms-hero-search-box input::placeholder {
    color: var(--ms-gray-3);
}

.ms-hero-search-box .ms-autocomplete-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 1000;
}

.ms-hero-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ms-green);
    color: var(--ms-black);
    font-family: var(--ms-font);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    flex-shrink: 0;
}

.ms-hero-btn svg {
    width: 18px;
    height: 18px;
}

.ms-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(149, 215, 174, .4);
}

.ms-hero-cities {
    text-align: center;
}

.ms-hero-cities-label {
    font-family: var(--ms-font);
    font-size: 15px;
    font-weight: 400;
    color: var(--ms-gray-3);
    margin: 0 0 24px;
}

.ms-hero-cities-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
    gap: 16px !important;
    max-width: 900px;
    margin: 0 auto;
}

/* City cards like Bsit */
.ms-hero-city-card {
    position: relative !important;
    display: block !important;
    height: 100px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    text-decoration: none !important;
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1) !important;
}

.ms-hero-city-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
}

.ms-hero-city-bg {
    position: absolute !important;
    inset: 0 !important;
    background-size: cover !important;
    background-position: center !important;
    transition: transform .3s;
}

.ms-hero-city-card:hover .ms-hero-city-bg {
    transform: scale(1.05) !important;
}

.ms-hero-city-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.6) 100%) !important;
}

.ms-hero-city-content {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.ms-hero-city-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 22px;
    background: rgba(255,255,255,.9);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ms-gray-4);
    flex-shrink: 0;
}

.ms-hero-city-name {
    font-family: var(--ms-font);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,.3);
}

/* Responsive Hero Compact */
@media (max-width: 768px) {
    .ms-hero-cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .moonsee-hero-compact {
        padding: 30px 16px 50px;
    }
    
    .ms-hero-search-box {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 12px;
        border-radius: 16px;
        margin-bottom: 40px;
    }
    
    .ms-hero-search-icon {
        display: none;
    }
    
    .ms-hero-search-box input {
        padding: 4px 0;
    }
    
    .ms-hero-btn {
        width: 100%;
        justify-content: center;
        padding: 14px;
    }
    
    .ms-hero-cities-grid {
        grid-template-columns: 1fr;
    }
    
    .ms-hero-city-card {
        height: 120px;
    }
}
