/**
 * RSGT Interactive Map Widget Styles
 * Scoped to .rsgt-saudi-map-container to avoid conflicts
 */

.rsgt-saudi-map-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.rsgt-saudi-map-container {
    font-family: inherit;
    min-height: 400px;
}

.rsgt-saudi-map-container .container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
}

/* Map Section */
.rsgt-saudi-map-container .map-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-wrapper {
    background: transparent;
    border-radius: 0;
    padding: 20px;
    box-shadow: none;
    width: 100%;
    max-width: 778px;
    overflow: visible;
}

.rsgt-saudi-map-container #interactive-map {
    width: 100%;
    height: auto;
    display: block;
}

/* Map Regions */
.rsgt-saudi-map-container .map-region {
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

/* Hover effect removed per user request */
/* .rsgt-saudi-map-container .map-region:hover {
    opacity: 1;
    filter: brightness(1.1);
    transform: scale(1.02);
    transform-origin: center;
} */

.rsgt-saudi-map-container .map-region.active {
    opacity: 1;
    fill: #8DD8F4;
}

/* Markers */
.rsgt-saudi-map-container .marker-group {
    cursor: pointer;
    pointer-events: all;
    transform-origin: center;
}

.rsgt-saudi-map-container .marker-outer,
.rsgt-saudi-map-container .marker-middle,
.rsgt-saudi-map-container .marker-inner {
    cursor: pointer;
    pointer-events: all;
    transform-origin: center;
    transition: all 0.3s ease;
}

.rsgt-saudi-map-container .marker-outer {
    stroke: #FFFFFF;
    stroke-width: 1.96929;
    fill: none;
}

.rsgt-saudi-map-container .marker-middle {
    fill: #FFFFFF;
    fill-opacity: 0.1;
}

.rsgt-saudi-map-container .marker-inner {
    fill: #FFFFFF
}

.rsgt-saudi-map-container .marker-group.active .marker-outer {
    stroke: #FFFFFF;
    stroke-width: 2.5;
    /* Pulse animation removed per user request */
}

.rsgt-saudi-map-container .marker-group.active .marker-middle {
    fill: #FFFFFF;
    fill-opacity: 0.2;
}

.rsgt-saudi-map-container .marker-group.active .marker-inner {
    fill: #FFFFFF;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Labels */
.rsgt-saudi-map-container .map-label-group {
    cursor: pointer;
    user-select: none;
    pointer-events: all;
    backface-visibility: hidden;
    isolation: isolate;
}

.rsgt-saudi-map-container .label-content {
    transform-origin: center;
    pointer-events: all;
}

.rsgt-saudi-map-container .map-label-bg {
    fill: #243445;
    pointer-events: all;
    shape-rendering: crispEdges;
}

/* Ensure markers are always visible above labels */
.rsgt-saudi-map-container .markers {
    pointer-events: none;
}

.rsgt-saudi-map-container .marker-group {
    pointer-events: all;
}

.rsgt-saudi-map-container .map-label-text {
    fill: #FFFFFF;
    font-family: "Gill Sans MT", "Gill Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 21px;
    letter-spacing: 0%;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    text-rendering: optimizeLegibility;
}

/* Removed hover effects - labels are clickable but don't show hover state */

.rsgt-saudi-map-container .map-label-group.active .map-label-bg {
    fill: #4ECDC4;
}

.rsgt-saudi-map-container .map-label-group.active .map-label-text {
    fill: #FFFFFF;
}

/* Cards Section */
.rsgt-saudi-map-container .cards-section {
    display: flex;
    flex-direction: column;
}

.rsgt-saudi-map-container .port-title {
    color: #8DD8F4;
    margin-bottom: 48px;
}

.rsgt-saudi-map-container .cards-grid {
    display: flex;
/*     grid-template-columns: repeat(2, 1fr); */
    gap: 24px;
    height: 100%;
	flex-wrap: wrap;
}

.rsgt-saudi-map-container .card {
    background: rgba(145, 220, 213, 0.1);
    border-radius: 20px;
    padding: 24px;
    width: calc(50% - 12px);
    min-height: 191px;
    border: none;
    display: flex;
    flex-direction: column;
   /* align-items: flex-end;*/
    justify-content: flex-start;
    text-align: right;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.card.active {
    background: rgba(145, 220, 213, 0.1);
}

.card.active .card-title,
.card.active .card-value,
.card.active .card-description {
    color: white;
}

.port-icons {
    width: 42px;
    height: 42px;
    background: rgba(145, 220, 213, 0.05);
    border-radius: 100%;
    margin-top: 4px;
    margin-bottom: 18px;
	margin-left: auto;
}

.port-icons svg,
.port-icons img {
    max-width: 42px;
    max-height: 42px;
    margin-top: -4px;
    display: block;
    margin-left: -17px;
}

.rsgt-saudi-map-container .card-value {
    color: #91DCD5;
    line-height: 1.4;
}

.card.active .card-value {
    color: #91DCD5;
}

.rsgt-saudi-map-container .card-description {
    font-size: 22px;
    line-height: 1.4;
}

/* Learn More Section */
.rsgt-saudi-map-container .learn-more-section {
    margin-top: 30px;
    display: flex;
    justify-content: flex-start;
}

.rsgt-saudi-map-container .learn-more-btn {
    padding: 16px 32px;
    background: #91DCD5;
    color: #1A202C;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
    width: 35%;
}

.rsgt-saudi-map-container .learn-more-btn .elementor-button-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rsgt-saudi-map-container .learn-more-btn .elementor-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.rsgt-saudi-map-container .learn-more-btn .elementor-button-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.rsgt-saudi-map-container .learn-more-btn .elementor-button-text {
    color: #1A202C;
}

.rsgt-saudi-map-container .learn-more-btn:hover {
    background: #4ECDC4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(145, 220, 213, 0.3);
}

.rsgt-saudi-map-container .learn-more-btn:hover .elementor-button-icon {
    transform: translateX(4px);
}

.rsgt-saudi-map-container .learn-more-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .rsgt-saudi-map-container .container {
        grid-template-columns: 1fr;
    }

/*     .rsgt-saudi-map-container .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
     */
    .rsgt-saudi-map-container .learn-more-btn {
        width: 50%;
    }
}

@media (max-width: 566px) {
  	.rsgt-saudi-map-container .cards-grid, .rsgt-saudi-map-container .card {
       width:100%;
    }

    .rsgt-saudi-map-container .learn-more-section {
        justify-content: center;
    }
    
    .rsgt-saudi-map-container .learn-more-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Animation for value updates - removed to prevent bouncing */
/* @keyframes valueUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        color: #667eea;
    }
    100% {
        transform: scale(1);
    }
}

.rsgt-saudi-map-container .card-value.updating {
    animation: valueUpdate 0.5s ease;
} */