:root {
    --primary-color: #00f2ff;
    --primary-glow: rgba(0, 242, 255, 0.5);
    --accent-color: #0072ff;
    --bg-dark: #000000;
    --sidebar-bg: rgba(0, 0, 0, 0.8);
    --text-main: #ffffff;
    --text-dim: #8899a6;
    --glass-border: rgba(0, 242, 255, 0.2);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.d3-globe-wrapper {
    display: flex;
    width: 100%;
    height: 800px;
    color: var(--text-main);
    font-family: var(--font-family);
    position: relative;
    overflow: visible;
    /* Changed from hidden to allow cards to pop out */
}

/* Sidebar Styling */
.d3-globe-sidebar {
    width: 400px;
    /*background: var(--sidebar-bg);
    backdrop-filter: blur(20px);*/
   /* border-right: 1px solid var(--glass-border);*/
    display: flex;
    flex-direction: column;
    z-index: 0;
}

.sidebar-header {
    padding: 32px 24px;
    /*border-bottom: 1px solid var(--glass-border);*/
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: none;
    line-height: 1.2;
}

.country-list-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 24px;
    height: calc(100% - 100px); /* Adjust based on header height */
}
div#d3-globe-container {
    max-width: 1400px;
    margin: 0 auto;
}
.region-group {
    margin-bottom: 32px;
}
.country-header span {
    font-size: 24px;
    line-height:32px;
}
.region-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.9);
    text-transform: none;
    letter-spacing: normal;
    line-height:32px;
}

.country-group {
    margin-bottom: 8px;
}

.country-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 400;
    color: #ffffff;
    transition: all 0.3s;
}

.country-header:hover {
    color: var(--primary-color);
}
.country-header::after {
    background: url(https://lemtechlocation.baycustomweb.com/wp-content/uploads/2026/01/Chevron-Right-1.png);
    content: '';
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    background-size: 100%;
}
.country-header.active::after {background: url(https://lemtechlocation.baycustomweb.com/wp-content/uploads/2026/01/Chevron-arrow.png);
}
/*.country-header::after {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2.5px solid #ffffff;
    border-right: 2.5px solid #ffffff;
    transform: rotate(45deg);
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 4px;
}*/

.city-list {
    margin-left: 0;
    padding-left: 16px;
    border-left: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 500px;
    /* Large enough for any list */
}

.city-list.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.city-item {
    padding: 8px 0;
    font-size: 0.9rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-item:hover {
    color: var(--primary-color);
}

.city-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.country-header.active {
    color: var(--primary-color);
}

.country-header.active::after {
    border-color: var(--primary-color);
}

/* Rotate arrow when expanded */
.country-group:has(.city-list:not(.collapsed)) .country-header::after {
    transform: rotate(90deg);
}

/* Main Display Area */
.d3-globe-main {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    overflow: visible;
    /* Changed from hidden */
}

/* Star Background Effect Removed */

#globe-canvas-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

#globe-canvas {
    max-width: 100%;
    max-height: 100%;
}

#globe-canvas.allow-interaction {
    cursor: grab;
}

#globe-canvas.allow-interaction:active {
    cursor: grabbing;
}

/* Info Card Styling */
#info-card-container {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100;
    width: 100%;
    height: 100%;
}

.info-card {
    position: absolute;
    width: 320px;
    background: #d9e4f0;
    /* Light blue/gray background from image */
    border: 1px solid #ff4d4d;
    /* Red border */
    border-radius: 4px;
    overflow: hidden;
    color: #000;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: card-appear 0.3s ease-out;
    clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 50% 100%, 0% 85%);
    padding-bottom: 20px;
    /* Space for the point */
}
.info-card:nth-child(1) {
    margin-top: -135px !important;
}
.info-card:nth-child(2) {
    margin-left: -91px;
    margin-top:60px;
}
@keyframes card-appear {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.card-image {
    width: calc(100% - 20px);
    height: 180px;
    margin: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-content {
    padding: 0 20px 10px;
    text-align: left;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: #000;
    line-height: 1.2;
}

.card-address {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.card-address i {
    margin-right: 8px;
    color: #ff0000;
    font-style: normal;
    font-size: 1.1rem;
}

.card-link {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.card-link:hover {
    opacity: 0.7;
}

.card-link::after {
    content: '→';
    margin-left: 8px;
}

/* Pagination Styles */
.card-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
}

.pag-btn {
    background: #000;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.pag-btn:hover {
    background: #ff0000;
}

.pag-info {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
}

.card-link:hover {
    color: #d32f2f;
}

.card-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s;
}

.card-link:hover::after {
    transform: translateX(5px);
}

.city-label {
    position: absolute;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    transform: translate(-50%, -100%);
    margin-top: -10px;
}

/* Overlay UI */
.globe-overlay {
    position: absolute;
    bottom: 24px;
    width: 100%;
    pointer-events: none;
    display: flex;
    justify-content: center;
}

.instruction-hint {
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-dim);
    backdrop-filter: blur(4px);
    border: 1px solid var(--glass-border);
}

/* Loading State */
.loading {
    padding: 24px;
    text-align: center;
    color: var(--text-dim);
    font-style: italic;
}

/* Scrollbar Styling */
.country-list-container::-webkit-scrollbar {
    width: 6px;
}

.country-list-container::-webkit-scrollbar-track {
    background: transparent;
}

.country-list-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.country-list-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 767px) {
    .country-header.active span {
    display: list-item;
}
.city-list {border-left: none !important;}
.city-item {
    display: list-item;
    list-style: disc !important;
}
    .country-group-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
}
.region-group:last-child .country-group-container {
    grid-template-columns: 1fr;
}
.d3-globe-sidebar {
    margin-top: 0px;
}
.info-card {
    width: 268px!important;
}
#info-card-container {left:-374px;}
.info-card:nth-child(2) {
    /*margin-left: -255px;*/
    margin-top: 50px;
}
    .d3-globe-wrapper {
        flex-direction: column-reverse;
        height: auto;
    }
.country-header span {
    font-size: 17px!important;
    line-height: 32px;
}
.region-title {
    font-size: 20px!important;
}
.country-header {
     padding: 3px 0!important; 
}

    .d3-globe-sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .d3-globe-main {
        height: 400px;
    
}
.prodservbannersec:before {
    z-index: 1!important;
}
.card-image {
     height: 122px!important;
}
.card-title {
    font-size: 14px!important!important;
    margin: 0 0 5px!important; 
}
.card-address {
    font-size: 11px!important;
    margin-bottom: 2px!important;   
}
    .info-card:nth-child(1) {
        /* margin-top: 0px !important; */
        top: 38px !important;
        left: 387px !important;
    }
}

@media only screen and (min-width:768px) and (max-width:1024PX) {

.d3-globe-sidebar {
    WIDTH: 100%;
}
.d3-globe-wrapper {
        flex-direction: column-reverse;
        height: auto;
    }
#info-card-container {
    left: -374px;
}
body .prodservbannersec:before {
    z-index: 1!important;
}
.info-card:nth-child(2) {
    margin-left: -68px;
}
}

@media only screen and (min-width:1155px) and (max-width:1485PX) {
 
.info-card:nth-child(1) {
    MARGIN-LEFT: -172PX!important;
}
.info-card:nth-child(2) {
    margin-left: -44px;
    left: 503px!important;
    margin-top: 85px;
}
}

@media only screen and (min-width:1025px) and (max-width:1154PX) {
 
body .info-card:nth-child(1) {
    MARGIN-LEFT: -235PX!important;
}
.info-card:nth-child(2) {
    margin-left: -44px;
    left: 372px!important;
    margin-top: 85px;
}
.card-image {
     height: 122px!important;
}
.card-title {
    font-size: 14px!important;
    margin: 0 0 5px!important; 
}
.card-address {
    font-size: 11px!important;
    margin-bottom: 2px!important;   
}
.info-card:nth-child(1) {
    margin-top: -48px !important;
}
.info-card {
    
    width: 268px!important;
   
}
}

@media only screen and (min-width:1035px) and (max-width:1053PX) {
.info-card {
    width: 245px!important;
}
.info-card:nth-child(2) {
   
    left: 413px!important;
    
}
}
@media only screen and (min-width:1054px) and (max-width:1075PX) {
.info-card {
    width: 245px!important;
}
.info-card:nth-child(2) {
   
    left: 433px!important;
    
}
}
@media only screen and (min-width:1076px) and (max-width:1100PX) {
.info-card {
    width: 245px!important;
}
.info-card:nth-child(2) {
   
    left: 453px!important;
    
}
}
@media only screen and (min-width:1101px) and (max-width:1128PX) {
.info-card {
    width: 279px!important;
}
.info-card:nth-child(2) {
   
    left: 453px!important;
    
}
}
@media only screen and (min-width:1129px) and (max-width:1147PX) {
.info-card {
    width: 298px!important;
}
.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 453px!important;
    
}
}
@media only screen and (min-width:1148px) and (max-width:1162PX) {
.info-card {
    width: 280px!important;
}
.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 485px!important;
    
}
}

@media only screen and (min-width:1163px) and (max-width:1184PX) {
.info-card {
    width: 300px!important;
}
.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 487px!important;
    
}
}
@media only screen and (min-width:1185px) and (max-width:1210PX) {
.info-card {
    width: 304px!important;
}
.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 505px!important;
    
}
}

@media only screen and (min-width:1211px) and (max-width:1230PX) {
.info-card {
    width: 304px!important;
}
.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 530px!important;
    
}
}
@media only screen and (min-width:1231px) and (max-width:1250PX) {
.info-card {
    width: 304px!important;
}
.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 549px!important;
    
}
}
@media only screen and (min-width:1251px) and (max-width:1274PX) {
.info-card {
    width: 304px!important;
}
.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 573px!important;
    
}
}

@media only screen and (min-width:1275px) and (max-width:1295PX) {
.info-card {
    width: 304px!important;
}
.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 595px!important;
    
}
}
@media only screen and (min-width:1296px) and (max-width:1320PX) {
.info-card {
    width: 304px!important;
}
.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 616px!important;
    
}
}

@media only screen and (min-width:1321px) and (max-width:1342PX) {
.info-card {
    width: 304px!important;
}
.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 641px!important;
    
}
}
@media only screen and (min-width:1343px) and (max-width:1380PX) {

.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 663px!important;
    
}
}

@media only screen and (min-width:1381px) and (max-width:1402PX) {

.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 685px!important;
    
}
}
@media only screen and (min-width:1403px) and (max-width:1600PX) {

.info-card:nth-child(2) {
   margin-top: 60px!important;
    left: 685px!important;
    
}
}


@media only screen and (min-width:769px) and (max-width:1024PX) {

.info-card:nth-child(1) {
    margin-top: -100px !important;
    left: 756px!important;
}
}




@media only screen and (min-width:801px) and (max-width:840PX) {

.info-card:nth-child(1) {
    margin-top: -100px !important;
    left: 756px!important;
}
.info-card:nth-child(2) {
    margin-left: 18px;
}
.info-card {
    width: 268px!important;
}
}


@media only screen and (min-width:841px) and (max-width:860PX) {

.info-card:nth-child(1) {
    margin-top: -100px !important;
    left: 756px!important;
}
.info-card:nth-child(2) {
    margin-left: 18px;
}
.info-card {
    width: 268px!important;
}
.card-image {
    height: 122px!important;
}
}

@media only screen and (min-width:900px) and (max-width:1024PX) {

.info-card:nth-child(1) {
    margin-top: -100px !important;
    left: 856px!important;
}
.info-card:nth-child(2) {
    margin-left: 125px;
}
.info-card {
    width: 268px!important;
}
.card-image {
    height: 122px!important;
}
}