/* Full width, no extra margins */
.pb-map-wrapper {
    max-width: 100%;
    line-height: 0; /* removes extra spacing below iframe */
}
.pb-map-iframe {
    vertical-align: bottom;
}

/* ============================================
   Map Component Admin Styles (Placeholders, Live Preview, Tabs)
   ============================================ */

/* Map Placeholder (same as Hero) */
.pb-map-placeholder {
    border: 2px dashed #ccd0d4;
    border-radius: 12px;
    background: #fdfdfd;
    padding: 40px 20px;
    text-align: center;
    color: #646970;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.02);
}

.pb-map-placeholder i {
    font-size: 32px;
    color: #2271b1;
    opacity: 0.6;
}

.pb-map-placeholder span {
    font-weight: 600;
    font-size: 15px;
    color: #1d2327;
}

.pb-map-placeholder p {
    margin: 0;
    font-size: 13px;
    max-width: 300px;
    line-height: 1.5;
}

/* Live preview wrapper – same as hero */
.pb-map-live-preview-wrapper {
    margin: 20px 0;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    background: #f0f0f1;
    padding: 20px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Map tabs wrapper */
.pb-map-tabs-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px 8px 0 0;
    padding: 0 10px;
    transition: padding 0.3s;
    min-width: 0;
    margin-top: 20px;
}

.pb-map-tabs-wrapper.has-slider {
    padding: 0 40px;
}

.pb-map-tabs-nav-container {
    overflow: hidden;
    width: 100%;
}

.pb-map-tabs-nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 10px 0 0 0;
    width: 100%;
}

.pb-map-tabs-nav::-webkit-scrollbar {
    display: none;
}

.pb-map-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-40%);
    width: 30px;
    height: 30px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #2271b1;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pb-map-slider-btn:hover {
    background: #f0f0f1;
    color: #135e96;
    border-color: #2271b1;
}

.pb-map-slider-btn.prev {
    left: 5px;
}

.pb-map-slider-btn.next {
    right: 5px;
}

.pb-map-slider-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.pb-map-tab-btn {
    padding: 12px 20px;
    background: #f6f7f7;
    border: 1px solid #ccd0d4;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #50575e;
    white-space: nowrap;
    transition: all 0.2s;
    position: relative;
    top: 1px;
    flex-shrink: 0;
}

.pb-map-tab-btn.active {
    background: #fff;
    color: #2271b1;
    border-bottom: 2px solid #fff;
    z-index: 5;
}

/* Map sub‑tabs navigation */
.pb-map-sub-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    margin-bottom: 15px;
}

.pb-map-sub-tab-btn {
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
    transition: all 0.2s;
    white-space: nowrap;
}

.pb-map-sub-tab-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.pb-map-sub-tab-content {
    display: none;
    padding: 15px;
}

.pb-map-sub-tab-content.active {
    display: block;
}

/* Registry item visibility */
.pb-map-registry-item {
    display: none;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 6px 6px;
    margin-bottom: 10px;
}

.pb-map-registry-item.active {
    display: block;
}

/* Map Modal Styling (same as Hero) */
#pb-map-style-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    backdrop-filter: blur(5px);
}

.pb-map-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 700px;
    max-width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pb-map-modal-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 25px;
    padding-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pb-map-modal-header h2 {
    margin: 0;
    color: #2271b1;
    font-size: 24px;
}

.pb-map-modal-header .close-modal {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #646970;
}

.pb-map-modal-header .close-modal:hover {
    color: #d63638;
}

.pb-map-style-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.pb-map-style-option {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pb-map-style-option:hover {
    border-color: #2271b1;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pb-map-style-preview {
    width: 100%;
    height: 140px;
    background: #eee;
    margin-bottom: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
}

.pb-map-style-option h4 {
    margin: 0;
    font-size: 16px;
    color: #3c434a;
}

.pb-map-style-option p {
    margin: 5px 0 0 0;
    font-size: 12px;
    color: #646970;
}