/* ============================================
   Global Presence Page Styles
   ============================================ */

.global-presence-section {
    padding: 0;
    background: #ffffff;
    min-height: 80vh;
    border-top: 1px solid #EAEAEA;
}

.global-presence-wrapper {
    display: flex;
    min-height: 80vh;
}

/* ---- Left: Map Area ---- */
.gp-map-area {
    flex: 1;
    background: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 40px 20px;
}

.gp-map-container {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* jVectorMap overrides */
.gp-map-container .jvectormap-container {
    background: transparent !important;
}

.gp-map-container .jvectormap-zoomin,
.gp-map-container .jvectormap-zoomout {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 16px;
    background: #22232B;
    color: #fff;
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    position: absolute;
    left: 12px;
}

.gp-map-container .jvectormap-zoomin {
    top: 12px;
}

.gp-map-container .jvectormap-zoomout {
    top: 48px;
}

.gp-map-container .jvectormap-zoomin:hover,
.gp-map-container .jvectormap-zoomout:hover {
    background: #D81324;
}

/* ---- Right: Data Panel ---- */
.gp-data-panel {
    width: 420px;
    min-width: 380px;
    background: #22232B;
    padding: 30px 30px;
    display: flex;
    flex-direction: column;
    min-height: 745px;
}

.gp-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c8102e;
    margin-bottom: 10px;
}

.gp-panel-badge .line {
    display: inline-block;
    width: 20px;
    height: 3px;
    background: #c8102e;
}

.gp-panel-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    line-height: 1.1;
}

/* Dropdowns */
.gp-dropdown-wrapper {
    margin-bottom: 12px;
}

.gp-dropdown {
    width: 100%;
    padding: 14px 20px;
    padding-right: 45px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #2d2d3d;
    border: none;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    transition: background-color 0.2s;
}

.gp-dropdown:hover {
    background-color: #3a3a4d;
}

.gp-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.4);
}

.gp-dropdown option {
    background: #2d2d3d;
    color: #fff;
    padding: 10px;
}

/* Select2 Dark Theme for Global Presence Panel */
.gp-data-panel .select2-container--default .select2-selection--single {
    background: #2d2d3d;
    border: none;
    border-radius: 8px;
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.gp-data-panel .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 50px;
    padding-left: 0;
    padding-right: 30px;
}

.gp-data-panel .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.gp-data-panel .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px;
    right: 18px;
}

.gp-data-panel .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #fff transparent transparent transparent;
}

.gp-data-panel .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #fff transparent;
}

.gp-data-panel .select2-container--default.select2-container--open .select2-selection--single,
.gp-data-panel .select2-container--default.select2-container--focus .select2-selection--single {
    box-shadow: 0 0 0 2px rgba(200, 16, 46, 0.4);
}

/* Select2 dropdown (renders at body level) - scoped by gp- select IDs */
.select2-container--default .gp-select2-dropdown .select2-search--dropdown .select2-search__field {
    background: #22232B;
    border: 1px solid #3a3a4d;
    color: #fff;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
}

.select2-container--default .gp-select2-dropdown .select2-search--dropdown .select2-search__field:focus {
    border-color: rgba(200, 16, 46, 0.6);
    outline: none;
}

.gp-select2-dropdown.select2-dropdown {
    background: #2d2d3d;
    border: 1px solid #3a3a4d;
    border-radius: 8px;
    overflow: hidden;
}

.gp-select2-dropdown .select2-results__option {
    color: #ccc;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
}

.select2-container--default .gp-select2-dropdown .select2-results__option--highlighted[aria-selected] {
    background: #D81324;
    color: #fff;
}

.select2-container--default .gp-select2-dropdown .select2-results__option[aria-selected=true] {
    background: #3a3a4d;
    color: #fff;
}

.gp-select2-dropdown .select2-results__option .fi {
    vertical-align: middle;
}

/* Swiper Carousel */
.gp-swiper-wrap {
    margin-top: 20px;
}

.gp-swiper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.gp-swiper .swiper-wrapper {
    align-items: stretch;
}

.gp-swiper .swiper-slide {
    background: #2d2d44;
    border-radius: 12px;
    overflow: hidden;
    height: auto;
}

/* Slide Image */
.gp-slide-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #3a3a55 0%, #2d2d44 100%);
    flex-shrink: 0;
}

.gp-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-slide-image .gp-country-flag {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #fff;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.gp-slide-image .gp-slide-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 60px;
    padding: 10px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* Mini image carousel inside slide */
.gp-img-carousel .gp-img-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.gp-img-carousel .gp-img-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gp-img-carousel .gp-img-slide.active {
    opacity: 1;
    z-index: 1;
}
.gp-img-carousel .gp-img-prev,
.gp-img-carousel .gp-img-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.gp-img-carousel .gp-img-prev:hover,
.gp-img-carousel .gp-img-next:hover {
    background: rgba(0,0,0,0.8);
}
.gp-img-carousel .gp-img-prev { left: 6px; }
.gp-img-carousel .gp-img-next { right: 60px; }
.gp-img-carousel .gp-img-counter {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Slide Body */
.gp-slide-body {
    padding: 18px 20px;
}

/* Single Distributor Detail */
.gp-distributor-detail {
    color: #ccc;
}

.gp-dist-company {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.2;
}

.gp-distributor-detail p {
    margin: 0 0 8px;
    font-size: 13px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gp-distributor-detail p a {
    color: #bbb;
}


.gp-distributor-detail p a:hover {
    color: #fff;
}






.gp-distributor-detail p:last-child {
    margin-bottom: 0;
}

/* Function field (Manufacturing Unit) */
.gp-dist-function {
    margin: 0 0 8px;
    font-size: 13px;
    color: #bbb;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.gp-dist-function > i {
    color: var(--main-theme-red, #D81324);
    width: 14px;
    text-align: center;
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.gp-dist-function ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gp-dist-function ul li {
    font-size: 13px;
    color: #bbb;
    line-height: 1.5;
}

.gp-dist-function p {
    margin: 0;
    font-size: 13px;
    color: #bbb;
}

.gp-distributor-detail p i {
    color: var(--main-theme-red, #D81324);
    width: 14px;
    text-align: center;
    font-size: 12px;
    flex-shrink: 0;
}

/* Swiper Navigation */
.gp-swiper-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.gp-swiper-btn {
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gp-swiper-btn:hover {
    background: var(--main-theme-red, #D81324);
    border-color: var(--main-theme-red, #D81324);
}

.gp-swiper-pagination {
    display: flex;
    gap: 0px;
    align-items: center;
    justify-content: center;
    width: auto !important;
}

.gp-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.2s;
}

.gp-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--main-theme-red, #D81324);
    width: 20px;
    border-radius: 4px;
}

/* Empty / Placeholder State */
.gp-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    color: #888;
    flex: 1;
}

.gp-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #555;
}

.gp-placeholder p {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Stats Bar */
.gp-stats-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.gp-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gp-stat-item .stat-number {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    color: var(--gray-light);
    line-height: 1;
}

.gp-stat-item .stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #aaa;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Loading spinner */
.gp-loading {
    display: none;
    text-align: center;
    padding: 30px;
}

.gp-loading.active {
    display: block;
}

.gp-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #3a3a55;
    border-top-color: #c8102e;
    border-radius: 50%;
    animation: gpSpin 0.8s linear infinite;
    margin: 0 auto 10px;
}

@keyframes gpSpin {
    to { transform: rotate(360deg); }
}

/* jVectorMap tooltip */
.jvectormap-tip {
    background: #1a1a2e !important;
    color: #fff !important;
    font-family: 'Source Sans 3', sans-serif !important;
    font-size: 13px !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .global-presence-wrapper {
        flex-direction: column;
    }

    /* .gp-map-area {
        min-height: 400px;
    } */

    .gp-data-panel {
        width: 100%;
        min-width: 100%;
        max-height: none;
        padding: 30px 20px;
    }

.gp-map-container,
.gp-map-area {
     min-height: 300px;
}
}

@media (max-width: 575px) {
.gp-data-panel {
    min-height: 680px;
}

    .gp-swiper-btn {
    display: none;
}

    .gp-map-container,
.gp-map-area {
     min-height: 200px;
}

    .gp-map-area {
       
        padding: 20px 10px;
    }

    .gp-panel-title {
        font-size: 28px;
    }

    .gp-data-panel {
        padding: 20px 15px;
    }

    .gp-stats-bar {
        gap: 15px;
    }


}

/* ---- New Plant Gallery Carousel ---- */
.gp-new-plant-gallery {
    margin-top: 15px;
    border-radius: 12px;
    overflow: hidden;
}

.gp-np-carousel {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #3a3a55 0%, #2d2d44 100%);
    border-radius: 12px;
}

.gp-np-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.gp-np-slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gp-np-slides img.active {
    opacity: 1;
    z-index: 1;
}

.gp-np-prev,
.gp-np-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.gp-np-prev:hover,
.gp-np-next:hover {
    background: rgba(0,0,0,0.85);
}

.gp-np-prev { left: 8px; }
.gp-np-next { right: 8px; }

.gp-np-counter {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* ---- Become a Distributor CTA (Independent Showroom) ---- */
.gp-become-distributor-cta {
    padding: 15px 18px;
    text-align: center;
}
