/* WigProLocator — Find a Stylist directory */

.wpl-directory {
    margin: 0 auto;
    color: #121417;
    font-family: "Plus Jakarta Sans", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wpl-directory * {
    box-sizing: border-box;
}

/* ========== Shell layout ========== */
.wpl-directory-shell {
    display: flex;
    gap: 28px;
    margin: 0 auto;
    align-items: flex-start;
}

.wpl-directory-main {
    flex: 1;
    min-width: 0;
}

/* ========== Sidebar — single white card, no shadow ========== */
.wpl-directory-sidebar {
    width: 312px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
}

.wpl-sidebar-filters {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #F0F0F0;
    border-radius: 16px;
    box-shadow: none;
    overflow: hidden;
    gap: 0;
}

/* Each filter section */
.wpl-directory .wpl-sidebar-filters .wpl-filter-group {
    background: transparent;
    border: none;
    border-bottom: 1px solid #D1D5DB;
    border-radius: 0;
    padding: 18px 20px;
    box-shadow: none;
    margin: 0;
}

/* Actions row: Apply + Clear — inside the card */
.wpl-directory .wpl-filter-actions {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Section headings */
.wpl-directory .wpl-filter-group h3 {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: #121417;
    font-family: "Plus Jakarta Sans", sans-serif;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* ========== Location select ========== */
.wpl-directory .wpl-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wpl-directory .wpl-select-icon {
    position: absolute;
    left: 12px;
    color: #6B7280;
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
}

.wpl-directory .wpl-select-arrow {
    position: absolute;
    right: 12px;
    pointer-events: none;
    z-index: 1;
}

.wpl-directory .wpl-select-wrap select {
    width: 100%;
    height: 42px;
    padding: 0 36px 0 36px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    background: #ffffff;
    font-size: 14px;
    color: #121417;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease;
}

.wpl-directory .wpl-select-wrap select:focus {
    border-color: #4343ea;
}

/* ========== Service checklist ========== */
.wpl-directory .wpl-service-checklist {
    display: grid;
    gap: 11px;
}

.wpl-directory .wpl-service-check-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #121417;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    line-height: 20px;
}

/* Custom checkbox — using #D1D5DB border */
.wpl-directory .wpl-service-check-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin: 0;
    border: 1.5px solid #D1D5DB;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
    flex-shrink: 0;
    box-shadow: none;
}

.wpl-directory .wpl-service-check-item input[type="checkbox"]:checked {
    background: #121417;
    border-color: #121417;
}

/* Fixed checkmark — centred tick */
.wpl-directory .wpl-service-check-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 46%;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    display: block;
}

/* ========== Price slider ========== */
.wpl-directory .wpl-price-slider-wrap {
    position: relative;
    padding-top: 30px;
    margin-top: 4px;
}

.wpl-directory .wpl-price-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    background: #121417;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
    transition: left 0.05s linear;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.wpl-directory .wpl-price-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #121417;
}

.wpl-directory #wpl-filter-price {
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: #D1D5DB;
    border-radius: 999px;
    outline: none;
    margin: 8px 0 0;
    border: none;
    padding: 0;
    box-shadow: none;
}

.wpl-directory #wpl-filter-price::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #121417;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.wpl-directory #wpl-filter-price::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #121417;
    cursor: pointer;
    border: none;
}

.wpl-directory .wpl-range-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: #6B7280;
    font-size: 13px;
}

.wpl-directory .wpl-range-row #wpl-price-label {
    color: #121417;
    font-weight: 700;
}

/* ========== Apply / Clear buttons ========== */
.wpl-directory .wpl-sidebar-apply,
.wpl-directory button.wpl-sidebar-apply {
    display: block;
    width: 100%;
    height: 46px;
    border-radius: 999px;
    border: none !important;
    background: #121417 !important;
    color: #ffffff !important;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    text-align: center;
    line-height: 46px;
    padding: 0;
    margin: 0;
}

.wpl-directory .wpl-sidebar-apply:hover,
.wpl-directory button.wpl-sidebar-apply:hover {
    background: #2a2d33 !important;
    color: #ffffff !important;
}

/* Clear Filters — only rendered in PHP when filters active */
.wpl-directory .wpl-sidebar-clear,
.wpl-directory a.wpl-sidebar-clear {
    display: block;
    width: 100%;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #D1D5DB !important;
    background: transparent !important;
    color: #6B7280 !important;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    line-height: 38px;
    text-decoration: none !important;
    transition: all 0.15s ease;
    margin: 0;
    padding: 0;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

.wpl-directory .wpl-sidebar-clear:hover,
.wpl-directory a.wpl-sidebar-clear:hover {
    background: #f5f5f5 !important;
    color: #121417 !important;
    border-color: #9CA3AF !important;
}

/* ========== Topbar ========== */
.wpl-directory-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.wpl-directory-topbar h1 {
    margin: 0;
    font-size: 28px;
    line-height: 36px;
    font-weight: 700;
    color: #121417;
    font-family: "Plus Jakarta Sans", sans-serif;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Divider under heading row */
.wpl-directory .wpl-topbar-divider {
    border: none;
    border-top: 1px solid #e8eaed;
    margin: 0 0 16px;
}

/* ========== View toggle — Figma: #E2E2E2 bg, #5A5A5A text, white active pill ========== */
.wpl-directory .wpl-view-toggle,
div.wpl-directory .wpl-view-toggle {
    display: inline-flex !important;
    align-items: center !important;
    background: #E2E2E2 !important;
    border: none !important;
    border-radius: 999px !important;
    padding: 4px !important;
    gap: 2px !important;
    box-shadow: none !important;
}

.wpl-directory .wpl-view-btn,
.wpl-directory button.wpl-view-btn {
    border: none !important;
    background: transparent !important;
    color: #5A5A5A !important;
    cursor: pointer !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 14px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
    border-radius: 999px !important;
    padding: 8px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.15s ease !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    outline: none !important;
}

.wpl-directory .wpl-view-btn svg {
    flex-shrink: 0;
    stroke: currentColor;
}

/* Active = white pill */
.wpl-directory .wpl-view-btn.active,
.wpl-directory button.wpl-view-btn.active {
    background: #ffffff !important;
    color: #121417 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10) !important;
    border: none !important;
}

/* ========== List head: count + sort ========== */
.wpl-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.wpl-list-head p {
    margin: 0;
    color: #121417;
    font-size: 15px;
}

.wpl-list-head p strong {
    font-weight: 700;
}

.wpl-sort-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wpl-sort-form label {
    color: #414651;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 500;
}

/* Sort dropdown — border #D5D7DA, text #414651 */
.wpl-directory .wpl-sort-form select {
    min-width: 130px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #D5D7DA;
    background: #fff;
    padding: 0 36px 0 14px;
    color: #414651;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23414651' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* ========== Directory views ========== */
.wpl-directory-view { display: none; }
.wpl-directory-view.active { display: block; }

/* ========== Stylist cards ========== */
.wpl-list-cards {
    display: grid;
    gap: 16px;
}

.wpl-list-card {
    display: grid;
    grid-template-columns: 328px minmax(0, 1fr);
    background: #fff;
    border: 1px solid #F0F0F0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(17,17,17,0.05);
    transition: box-shadow 0.2s ease;
}

.wpl-list-card:hover {
    box-shadow: 0 6px 20px rgba(17,17,17,0.09);
}

/* ========== Portfolio slider ========== */
.wpl-directory .wpl-list-card-image {
    position: relative;
    overflow: hidden;
    background: #e9ebee;
    height: 260px;
    min-height: 260px;
}

.wpl-directory .wpl-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.wpl-directory .wpl-slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.wpl-directory .wpl-slider-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.wpl-directory .wpl-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider arrows */
.wpl-directory .wpl-slider-arrow,
.wpl-directory button.wpl-slider-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    outline: none !important;
    background: rgba(255,255,255,0.92) !important;
    color: #121417 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
    transition: background 0.15s ease !important;
    z-index: 3 !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.wpl-directory .wpl-slider-arrow:hover,
.wpl-directory button.wpl-slider-arrow:hover {
    background: #ffffff !important;
}

.wpl-directory .wpl-slider-arrow svg {
    width: 14px !important;
    height: 14px !important;
    display: block;
    stroke: #121417 !important;
}

.wpl-directory .wpl-slider-prev { left: 10px !important; right: auto !important; }
.wpl-directory .wpl-slider-next { right: 10px !important; left: auto !important; }

/* Dots */
.wpl-directory .wpl-slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    gap: 5px;
    z-index: 3;
}

.wpl-directory .wpl-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    border: none;
    display: block;
}

.wpl-directory .wpl-slider-dot.is-active {
    background: #fff;
    width: 16px;
    border-radius: 999px;
}

/* ========== Card body ========== */
.wpl-directory .wpl-list-card-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Head row */
.wpl-directory .wpl-list-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 14px;
    border-bottom: none;
    margin-bottom: 14px;
}

.wpl-directory .wpl-list-card-person {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wpl-directory .wpl-list-card-person img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #F0F0F0;
}

.wpl-directory .wpl-list-card-person h3 {
    margin: 0;
    font-size: 17px;
    line-height: 22px;
    font-weight: 700;
    color: #121417;
    font-family: "Plus Jakarta Sans", sans-serif;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.wpl-directory .wpl-list-card-location {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 4px 0 0;
    color: #6B7280;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.wpl-directory .wpl-list-card-location svg {
    color: #6B7280;
    flex-shrink: 0;
}

/* Services section */
.wpl-directory .wpl-list-card-services {
    padding-bottom: 14px;
    border-bottom: none;
    margin-bottom: 14px;
}

.wpl-directory .wpl-list-card-services p {
    margin: 0 0 8px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
}

.wpl-directory .wpl-list-card-services > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* Service chips */
.wpl-directory .wpl-list-card-services span {
    display: inline-flex;
    align-items: center;
    border-radius: 40px;
    background: #F5F5F5;
    border: none;
    color: #1F2A44;
    font-size: 13px;
    font-weight: 400;
    padding: 8px 16px;
    line-height: 1;
}

/* Footer */
.wpl-directory .wpl-list-card-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.wpl-directory .wpl-list-card-price p {
    margin: 0 0 2px;
    color: #6B7280;
    font-size: 13px;
}

.wpl-directory .wpl-list-card-price strong {
    display: block;
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    color: #121417;
    font-family: "Plus Jakarta Sans", sans-serif;
}

/* View Profile button */
.wpl-directory .wpl-list-card-btn,
.wpl-directory a.wpl-list-card-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 40px !important;
    padding: 0 20px !important;
    border-radius: 999px !important;
    border: 1px solid #D1D5DB !important;
    background: #fff !important;
    color: #121417 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

.wpl-directory .wpl-list-card-btn:hover,
.wpl-directory a.wpl-list-card-btn:hover {
    background: #121417 !important;
    color: #fff !important;
    border-color: #121417 !important;
}

/* ========== Map view — filter bar (top of map view) ========== */
.wpl-directory .wpl-map-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 18px;
    padding: 0;
    position: relative;
}

.wpl-directory .wpl-mfb-item {
    flex: 1;
    min-width: 0;
    position: relative;
}

.wpl-directory .wpl-mfb-trigger {
    width: 100%;
    height: 48px;
    background: #ffffff !important;
    border: 1px solid #D5D7DA !important;
    border-radius: 10px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #414651 !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wpl-directory .wpl-mfb-trigger:hover {
    border-color: #9CA3AF !important;
}

.wpl-directory .wpl-mfb-item.is-open .wpl-mfb-trigger {
    border-color: #4343ea !important;
    box-shadow: 0 0 0 3px rgba(67,67,234,0.1) !important;
}

.wpl-directory .wpl-mfb-trigger > svg {
    color: #6B7280;
    flex-shrink: 0;
}

.wpl-directory .wpl-mfb-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wpl-directory .wpl-mfb-caret {
    color: #6B7280;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.wpl-directory .wpl-mfb-item.is-open .wpl-mfb-caret {
    transform: rotate(180deg);
}

/* Location panel — radio options list */
.wpl-directory .wpl-mfb-panel-location { min-width: 240px; }

.wpl-directory .wpl-mfb-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}

.wpl-directory .wpl-mfb-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #121417;
    font-size: 14px;
    line-height: 18px;
    user-select: none;
    transition: background 0.12s ease;
}

.wpl-directory .wpl-mfb-option:hover {
    background: #F5F5F5;
}

.wpl-directory .wpl-mfb-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    border: 1.5px solid #D1D5DB;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.wpl-directory .wpl-mfb-option input[type="radio"]:checked {
    border-color: #121417;
    background: #fff;
}

.wpl-directory .wpl-mfb-option input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #121417;
}

.wpl-directory .wpl-mfb-option input[type="radio"]:checked + span {
    font-weight: 600;
    color: #121417;
}

/* Service & Price popover panels */
.wpl-directory .wpl-mfb-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #F0F0F0;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(17,17,17,0.12);
    padding: 16px 18px;
    z-index: 30;
    display: none;
}

.wpl-directory .wpl-mfb-item.is-open .wpl-mfb-panel {
    display: block;
}

.wpl-directory .wpl-mfb-panel h4 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #121417;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.wpl-directory .wpl-mfb-panel-service { min-width: 240px; }
.wpl-directory .wpl-mfb-panel-price { min-width: 280px; }

.wpl-directory .wpl-mfb-apply {
    display: block !important;
    width: 100% !important;
    margin-top: 14px !important;
    height: 40px !important;
    border-radius: 999px !important;
    background: #121417 !important;
    color: #ffffff !important;
    border: none !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

.wpl-directory .wpl-mfb-apply:hover {
    background: #2a2d33 !important;
}

.wpl-directory .wpl-mfb-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #F5F5F5;
    color: #6B7280;
    text-decoration: none;
    flex-shrink: 0;
}

.wpl-directory .wpl-mfb-clear:hover {
    background: #e8e8e8;
    color: #121417;
}

/* ========== Map layout ========== */
.wpl-map-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
}

/* ========== Preview card (left) — matches reference design ========== */
.wpl-map-preview {
    border: 1px solid #F0F0F0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}

.wpl-map-preview-image {
    width: 100%;
    height: 280px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e9ebee;
}

.wpl-map-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wpl-map-preview-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wpl-map-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wpl-map-preview-person {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wpl-map-preview-person img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #F0F0F0;
}

.wpl-map-preview-person h4 {
    margin: 0;
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    color: #121417;
    font-family: "Plus Jakarta Sans", sans-serif;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.wpl-map-preview-location {
    margin: 0;
    color: #6B7280;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.wpl-map-preview-services p {
    margin: 0 0 8px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
}

.wpl-map-preview-services > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.wpl-map-preview-services span {
    display: inline-flex;
    align-items: center;
    background: #F5F5F5;
    border: none;
    border-radius: 40px;
    color: #1F2A44;
    font-size: 13px;
    padding: 8px 16px;
    line-height: 1;
}

.wpl-map-preview-footer {
    margin-top: 6px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.wpl-map-preview-price p {
    margin: 0 0 2px;
    color: #6B7280;
    font-size: 13px;
}

.wpl-map-preview-price strong {
    display: block;
    font-size: 24px;
    line-height: 28px;
    color: #121417;
    font-weight: 700;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.wpl-map-preview-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    border-radius: 999px;
    padding: 0 20px;
    background: #121417;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.wpl-map-preview-link:hover { background: #2a2d33; color: #fff; }

/* ========== Map canvas (right) ========== */
.wpl-map-canvas-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #F0F0F0;
}

.wpl-map-canvas {
    width: 100%;
    min-height: 620px;
    height: 100%;
    background: #eef1f2;
}

/* ========== Map InfoWindow (popup on pin click) ========== */
.wpl-map-info {
    width: 240px;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: #121417;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.wpl-map-info-cover {
    width: 100%;
    height: 130px;
    overflow: hidden;
    background: #e9ebee;
    margin: 0;
    padding: 0;
    display: block;
}

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

.wpl-map-info-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wpl-map-info-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpl-map-info-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #F0F0F0;
}

.wpl-map-info-text {
    min-width: 0;
    line-height: 1.2;
}

.wpl-map-info-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #121417;
}

.wpl-map-info-text span {
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    color: #6B7280;
    font-size: 12px;
}

.wpl-map-info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    background: #121417;
    color: #ffffff !important;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: background 0.15s ease;
    align-self: flex-start;
}

.wpl-map-info-link:hover {
    background: #2a2d33;
    color: #ffffff !important;
}

/* Tame Google's default InfoWindow chrome — full-bleed content */
.gm-style .gm-style-iw,
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18) !important;
    max-width: 280px !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-d > div,
.gm-style .gm-style-iw-c > div {
    margin: 0 !important;
    padding: 0 !important;
}

/* Float the close button over the cover image */
.gm-style .gm-style-iw-c button.gm-ui-hover-effect {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 26px !important;
    height: 26px !important;
    background: rgba(255,255,255,0.95) !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
    z-index: 10 !important;
    opacity: 1 !important;
}

.gm-style .gm-style-iw-c button.gm-ui-hover-effect > span {
    margin: 6px !important;
    width: 14px !important;
    height: 14px !important;
}

/* Hide list-only chrome in map view */
.wpl-directory-shell.is-map-view .wpl-directory-sidebar,
.wpl-directory-shell.is-map-view .wpl-list-head { display: none; }

@media (max-width: 1024px) {
    .wpl-map-filter-bar { flex-wrap: wrap; }
    .wpl-mfb-item { flex: 1 1 200px; }
}

.wpl-directory-empty {
    margin: 16px 0; padding: 60px 14px; text-align: center;
    border: 1px dashed #D1D5DB; border-radius: 16px; color: #6B7280; background: #fff;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .wpl-directory-shell { flex-direction: column; }
    .wpl-directory-sidebar { position: static; width: 100%; }
    .wpl-directory-shell.is-map-view .wpl-directory-sidebar { display: block; }
    .wpl-list-card { grid-template-columns: 1fr; }
    .wpl-directory .wpl-list-card-image { height: 220px; min-height: 220px; }
    .wpl-map-layout { grid-template-columns: 1fr; }
    .wpl-map-canvas { min-height: 360px; }
}

@media (max-width: 600px) {
    .wpl-directory-topbar { flex-direction: column; align-items: flex-start; }
    .wpl-list-head { flex-direction: column; align-items: flex-start; }
    .wpl-directory .wpl-list-card-head { flex-direction: column; }
    .wpl-directory .wpl-list-card-footer { flex-direction: column; align-items: flex-start; }
    .wpl-directory .wpl-list-card-btn,
    .wpl-directory a.wpl-list-card-btn { width: 100% !important; justify-content: center !important; }
}
