/* WP Regional Center Locator - Frontend Styles */

.wprc-locator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
}

.wprc-filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
    align-items: flex-end;
}

.wprc-filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wprc-filter-group label {
    font-size: 14px;
    color: #4a5568;
}

.wprc-select {
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background-color: #fff;
    font-size: 14px;
    color: #2d3748;
}

.wprc-filter-action {
    display: flex;
    align-items: flex-end;
}

.wprc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.wprc-btn-primary {
    background-color: #3182ce;
    color: #fff;
}

.wprc-btn-primary:hover {
    background-color: #2b6cb0;
}

/* Two-Column Results Layout: Results Left, Map Right */
.wprc-results-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
}

.wprc-results-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wprc-results-header-info h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #1a202c;
}

.wprc-centers-list-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wprc-results-right {
    position: relative;
}

.sticky-map {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sticky-map h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    color: #1a202c;
}

.wprc-map-container {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.wprc-leaflet-map {
    width: 100%;
    height: 450px;
    min-height: 300px;
    background: #e2e8f0;
}

.wprc-map-empty {
    margin: 0;
    padding: 12px;
    color: #718096;
    background: #f7fafc;
    font-size: 13px;
}

.wprc-map-note {
    margin-top: 8px;
    color: #718096;
    text-align: center;
}

.wprc-center-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wprc-center-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wprc-card-header {
    background: #edf2f7;
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.wprc-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.wprc-region-badge {
    background-color: #feebc8;
    color: #9c4221;
}

.wprc-city-badge {
    background-color: #e2e8f0;
    color: #2d3748;
}

.wprc-office-title {
    margin: 8px 0 0 0;
    font-size: 18px;
    color: #1a202c;
}

.wprc-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wprc-office-thumb img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}

.wprc-info-row {
    font-size: 14px;
}

.wprc-info-row strong {
    color: #4a5568;
    display: block;
    margin-bottom: 2px;
}

.wprc-info-row p, .wprc-info-row span {
    margin: 0;
    color: #2d3748;
}

.wprc-card-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px 16px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

.wprc-btn-call { background-color: #38a169; color: #fff; }
.wprc-btn-call:hover { background-color: #2f855a; }

.wprc-btn-whatsapp { background-color: #25d366; color: #fff; }
.wprc-btn-whatsapp:hover { background-color: #1ebd56; }

.wprc-btn-email { background-color: #4a5568; color: #fff; }
.wprc-btn-email:hover { background-color: #2d3748; }

.wprc-btn-directions { background-color: #dd6b20; color: #fff; }
.wprc-btn-directions:hover { background-color: #c05621; }

.wprc-card-footer {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.wprc-btn-enquiry {
    width: 100%;
    background-color: #805ad5;
    color: #fff;
}
.wprc-btn-enquiry:hover {
    background-color: #6b46c1;
}

.wprc-enquiry-form-wrap {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.wprc-enquiry-form-wrap h4 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 16px;
    color: #2d3748;
}

.wprc-form-field {
    margin-bottom: 10px;
}

.wprc-form-field input,
.wprc-form-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
}

.wprc-form-response {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
}

.wprc-notice, .wprc-placeholder-message {
    padding: 30px;
    text-align: center;
    background: #f7fafc;
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
    color: #4a5568;
}

@media (max-width: 992px) {
    .wprc-results-wrapper {
        grid-template-columns: 1fr;
    }
    .sticky-map {
        position: static;
    }
}

/* Unified center card: details on the left, map on the right. */
.wprc-results-full-width {
    width: 100%;
}

.wprc-center-card {
    display: block;
    border: 1px solid #dce3ea;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}

.wprc-card-header {
    padding: 18px 22px;
    background: linear-gradient(135deg, #f8fafc, #eef4f8);
}

.wprc-card-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 42%);
    align-items: stretch;
}

.wprc-card-details {
    min-width: 0;
}

.wprc-card-body {
    height: 100%;
    padding: 22px;
    box-sizing: border-box;
}

.wprc-card-map {
    min-height: 330px;
    padding: 16px;
    background: #f8fafc;
    border-left: 1px solid #e2e8f0;
    display: flex;
    align-items: stretch;
}

.wprc-card-map .wprc-leaflet-map,
.wprc-card-map-empty {
    width: 100%;
    min-height: 298px;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.wprc-card-map-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    color: #64748b;
    background: #e9eff4;
}

.wprc-card-map-empty .dashicons {
    width: 32px;
    height: 32px;
    font-size: 32px;
    margin-bottom: 12px;
    color: #94a3b8;
}

.wprc-card-map-empty p {
    margin: 0 0 6px;
    font-weight: 600;
    color: #475569;
}

.wprc-card-map-empty small {
    max-width: 220px;
}

.wprc-card-actions,
.wprc-card-footer {
    position: relative;
}

@media (max-width: 900px) {
    .wprc-card-content {
        grid-template-columns: 1fr;
    }

    .wprc-card-map {
        min-height: 300px;
        border-left: 0;
        border-top: 1px solid #e2e8f0;
    }
}

@media (max-width: 768px) {
    .wprc-filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .wprc-card-actions {
        grid-template-columns: 1fr;
    }
}
