/* CRO Service Area Module
 * Block 13 - Flat Design with Third Accent (Green)
 * ------------------------------------------------------------------------------------------------------------------ */

.cro-service-area {
    background: var(--color-secondary-normal-bg);
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}

/* Removed decorative gradients for flat design */

.service-area-container-dark {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* 1. Header */
.section-header-dark {
    text-align: center;
    margin-bottom: 1.5rem;
}

.live-activity-badge-dark {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-green-light);
    border: 1.5px solid color-mix(in srgb, var(--brand-green) 50%, transparent);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.875rem;
    backdrop-filter: blur(10px);
}

.pulse-dot-dark {
    width: 8px;
    height: 8px;
    background: var(--brand-green);
    border-radius: 50%;
    animation: pulse-animation-dark 2s ease-in-out infinite;
}

@keyframes pulse-animation-dark {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.9);
    }
}

.section-title-dark {
    font-size: 1.75rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.counter-inline-dark {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.95rem;
}

.counter-text-dark {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.counter-number-dark {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-green);
}

.counter-suffix-dark {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary-normal-bg);
}

/* 2. City Selector */
.city-selector-dark {
    margin-bottom: 1.5rem;
}

.selector-header-dark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
}

.selector-title-dark {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.selector-coverage-badge-dark {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: color-mix(in srgb, var(--color-secondary-normal-bg) 85%, transparent);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    border: 1.5px solid color-mix(in srgb, var(--color-primary-normal-bg) 70%, transparent);
}

.city-grid-dark {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.city-card-dark {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.875rem 0.625rem;
    min-height: 75px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.city-card-dark:hover {
    border-color: color-mix(in srgb, var(--brand-green) 50%, transparent);
    background: color-mix(in srgb, var(--brand-green) 8%, transparent);
    transform: translateY(-2px);
}

.city-card-dark.selected {
    border-color: var(--brand-green);
    background: color-mix(in srgb, var(--brand-green) 12%, transparent);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--brand-green) 30%, transparent);
    transform: scale(1.02);
}

.city-name-dark {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.city-indicator-dark {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 0.95rem;
}

/* City indicator colors using Third Accent */
.city-indicator-dark.high {
    color: var(--brand-green);
}

.city-indicator-dark.medium {
    color: var(--warning);
}

.city-indicator-dark.low {
    color: rgba(255, 255, 255, 0.4);
}

.city-region-dark {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-weight: 500;
}

.expand-cities-btn-dark {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    transition: all 0.3s ease;
    min-height: 44px;
}

.expand-cities-btn-dark:hover {
    border-color: color-mix(in srgb, var(--brand-green) 50%, transparent);
    background: color-mix(in srgb, var(--brand-green) 8%, transparent);
}

.expand-text-dark {
    flex: 1;
}

.expand-icon-dark {
    transition: transform 0.3s ease;
    color: var(--brand-green);
    font-size: 0.875rem;
}

.expand-cities-btn-dark.expanded .expand-icon-dark {
    transform: rotate(180deg);
}

.city-grid-expanded-dark {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* 3. Response Panel */
.response-panel-dark {
    background: var(--brand-green-light);
    border: 2px solid color-mix(in srgb, var(--brand-green) 40%, transparent);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.response-panel-dark.visible {
    opacity: 1;
    max-height: 600px;
}

.response-header-dark {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.875rem;
}

.check-large-dark {
    font-size: 1.75rem;
    color: var(--brand-green);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-large-dark svg {
    width: 28px;
    height: 28px;
}

/* SVG Icon Colors */
.icon-svg-green {
    color: var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-svg-green svg {
    stroke: var(--brand-green);
}

.icon-svg-white {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-svg-white svg {
    stroke: rgba(255, 255, 255, 0.9) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Feature block icons - ensure visibility */
.feat-icon-block.icon-svg-white svg {
    stroke: rgba(255, 255, 255, 0.9) !important;
    width: 22px;
    height: 22px;
}

.response-text-dark {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.service-icons-dark {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-bottom: 0.875rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.service-icons-dark::-webkit-scrollbar {
    display: none;
}

.service-icon-item-dark {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 65px;
    flex-shrink: 0;
}

.icon-sm-dark {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-sm-dark svg {
    width: 24px;
    height: 24px;
}

.label-xs-dark {
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

.info-pills-grid-dark {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.info-pill-dark {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0.625rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 36px;
}

.pill-icon-dark {
    font-size: 0.95rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-icon-dark svg {
    width: 18px;
    height: 18px;
}

.pill-text-dark {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.testimonial-badge-dark {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--brand-green);
    padding: 0.625rem;
    border-radius: 8px;
    margin-bottom: 0.875rem;
}

.testimonial-quote-dark {
    display: block;
    font-size: 0.8rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.3rem;
    line-height: 1.4;
}

.testimonial-author-dark {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.response-cta-dark {
    display: block;
    width: 100%;
    background: var(--color-primary-normal-bg);
    color: white;
    padding: 0.75rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.response-cta-dark:hover {
    background: var(--color-primary-hover-bg);
}

.response-cta-dark:active {
    background: var(--color-primary-active-bg);
}

/* 4. Map Section */
.map-section-dark {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-container-dark {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    min-height: 350px;
}

.coverage-ring-overlay-dark {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 75px;
    height: 75px;
    z-index: 10;
    pointer-events: none;
}

.ring-svg-dark {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg-dark {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 6;
}

.ring-progress-dark {
    fill: none;
    stroke: var(--brand-green);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 251.2;
    stroke-dashoffset: 50.24;
    transition: stroke-dashoffset 1.5s ease-out;
}

.ring-percentage-dark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.ring-label-dark {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

/* Static Map Wrapper - full height container */
.map-static-wrapper-dark {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .map-static-wrapper-dark {
        min-height: 500px;
    }
}

@media (min-width: 1024px) {
    .map-static-wrapper-dark {
        min-height: 550px;
    }
}

/* Static Map Image - fills container by height, centers horizontally */
.map-image-dark {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100%;
    min-width: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.map-placeholder-dark {
    width: 100%;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    padding: 2rem;
    text-align: center;
}

.map-placeholder-dark p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0.25rem 0;
}

.map-toggle-btn-dark {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-primary-normal-bg);
    color: white;
    border: 2px solid var(--color-primary-normal-bg);
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20; /* Above loader overlay (z-index: 10) */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.map-toggle-btn-dark:hover {
    background: var(--color-primary-hover-bg);
    border-color: var(--color-primary-hover-bg);
}

.map-toggle-btn-dark:active {
    background: var(--color-primary-active-bg);
    border-color: var(--color-primary-active-bg);
}

.map-toggle-btn-dark.reverse {
    background: var(--color-secondary-normal-bg);
    border-color: var(--color-secondary-normal-bg);
}

.map-toggle-btn-dark.reverse:hover {
    background: var(--color-secondary-hover-bg);
    border-color: var(--color-secondary-hover-bg);
}

.toggle-icon {
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-icon svg {
    width: 18px;
    height: 18px;
}

.toggle-text {
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Sidebar Blocks */
.sidebar-blocks-dark {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-block-dark {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
}

/* Trust Badges - Modern Green Accent Theme - Clickable */
.trust-badges-block {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem;
    padding: 0.5rem;
    background: color-mix(in srgb, var(--brand-green) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand-green) 20%, transparent);
    border-radius: 12px;
}

/* Mobile: Scale down to fit in one row */
@media (max-width: 767px) {
    .trust-badges-block {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
        padding: 0.375rem;
        transform: scale(0.92);
        transform-origin: center center;
        margin: -0.25rem;
    }
    
    .trust-badge-item {
        padding: 0.4rem 0.25rem !important;
        min-height: 55px !important;
    }
    
    .badge-icon-item {
        width: 28px !important;
        height: 28px !important;
    }
    
    .badge-text-item {
        font-size: 0.6rem !important;
    }
    
    .badge-check-item {
        width: 14px !important;
        height: 14px !important;
    }
}

.trust-badge-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid color-mix(in srgb, var(--brand-green) 25%, transparent);
    border-radius: 10px;
    padding: 0.5rem 0.375rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 65px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.trust-badge-item:hover {
    background: color-mix(in srgb, var(--brand-green) 18%, transparent);
    border-color: color-mix(in srgb, var(--brand-green) 50%, transparent);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.trust-badge-item:active {
    transform: translateY(0) scale(0.98);
}

.trust-badge-item.active {
    background: color-mix(in srgb, var(--brand-green) 20%, transparent);
    border-color: var(--brand-green);
}

.badge-icon-item {
    font-size: 1.25rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: color-mix(in srgb, var(--brand-green) 20%, transparent);
    border-radius: 50%;
    margin-bottom: 0.25rem;
}

.badge-icon-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--brand-green) !important;
}

.badge-text-item {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-check-item {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    color: var(--brand-green);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: color-mix(in srgb, var(--brand-green) 25%, transparent);
    border-radius: 50%;
}

.badge-check-item svg {
    width: 10px;
    height: 10px;
}

/* Activity Ticker - Flat Design */
.activity-ticker-block-improved {
    padding: 0.875rem;
    background: color-mix(in srgb, var(--color-primary-normal-bg) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary-normal-bg) 30%, transparent);
}

.ticker-header-improved {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
}

.ticker-icon {
    font-size: 0.75rem;
    animation: pulse-ticker 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker-icon svg {
    width: 10px;
    height: 10px;
}

@keyframes pulse-ticker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.ticker-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-wrapper-improved {
    overflow: hidden;
    position: relative;
    background: rgba(10, 22, 40, 0.6);
    border-radius: 8px;
    padding: 0.625rem 0;
}

/* Professional dark fade edges for ticker */
.ticker-fade-left,
.ticker-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    z-index: 2;
    pointer-events: none;
}

.ticker-fade-left {
    left: 0;
    background: linear-gradient(to right, 
        rgba(10, 22, 40, 1) 0%, 
        rgba(10, 22, 40, 0.8) 30%,
        rgba(10, 22, 40, 0) 100%);
}

.ticker-fade-right {
    right: 0;
    background: linear-gradient(to left, 
        rgba(10, 22, 40, 1) 0%, 
        rgba(10, 22, 40, 0.8) 30%,
        rgba(10, 22, 40, 0) 100%);
}

/* Remove old pseudo-element fades */
.ticker-wrapper-improved::before,
.ticker-wrapper-improved::after {
    display: none;
}

.ticker-track-improved {
    display: flex;
    animation: ticker-scroll-improved 30s linear infinite;
    will-change: transform;
}

@keyframes ticker-scroll-improved {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item-improved {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.item-emoji {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.item-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.ticker-item-improved:not(:last-child)::after {
    content: "•";
    margin-left: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
}

/* Stats - Modern Professional Design with Icons */
.stats-block {
    display: flex;
    justify-content: space-between;
    gap: 0.375rem;
    padding: 0.625rem;
    background: color-mix(in srgb, var(--color-primary-normal-bg) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--color-primary-normal-bg) 25%, transparent);
    border-radius: 12px;
}

/* Mobile: Scale down stats */
@media (max-width: 767px) {
    .stats-block {
        transform: scale(0.95);
        transform-origin: center center;
        margin: -0.125rem;
        gap: 0.25rem;
        padding: 0.5rem;
    }
}

.stat-item-block {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    position: relative;
    transition: all 0.2s ease;
}

.stat-item-block:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Stat Icon */
.stat-icon-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-bottom: 0.125rem;
}

.stat-icon-block svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-primary-normal-bg);
}

.stat-icon-block.icon-svg-primary svg {
    stroke: var(--color-primary-normal-bg);
}

@media (max-width: 767px) {
    .stat-icon-block {
        width: 18px;
        height: 18px;
    }
}

.stat-num-block {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 767px) {
    .stat-num-block {
        font-size: 1.1rem;
    }
}

.stat-lbl-block {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

@media (max-width: 767px) {
    .stat-lbl-block {
        font-size: 0.5rem;
    }
}

/* Features */
.features-block {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding: 0.625rem;
}

.feature-item-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.25rem;
}

.feat-icon-block {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat-icon-block svg {
    width: 22px;
    height: 22px;
}

.feat-text-block {
    font-size: 0.625rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

/* Service Pills - INTERACTIVE */
.services-block-interactive {
    padding: 0.875rem;
}

.sidebar-title-block {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.5rem 0;
}

/* Facility Types / Service Pills - Grid with Icons */
.service-pills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

/* Mobile: 2x3 grid */
@media (max-width: 767px) {
    .service-pills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.375rem;
    }
}

/* Desktop: 2 columns or 3 */
@media (min-width: 768px) {
    .service-pills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

.service-pill-card {
    background: color-mix(in srgb, var(--color-primary-normal-bg) 10%, transparent);
    border: 1.5px solid color-mix(in srgb, var(--color-primary-normal-bg) 30%, transparent);
    border-radius: 10px;
    padding: 0.625rem 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    text-decoration: none;
    text-align: center;
    position: relative;
}

.service-pill-card:hover {
    background: color-mix(in srgb, var(--color-primary-normal-bg) 20%, transparent);
    border-color: color-mix(in srgb, var(--color-primary-normal-bg) 50%, transparent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 101, 232, 0.2);
}

.service-pill-card:active {
    transform: translateY(0) scale(0.98);
}

/* Pill Icon */
.pill-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: color-mix(in srgb, var(--color-primary-normal-bg) 20%, transparent);
    border-radius: 8px;
    padding: 0.375rem;
}

.pill-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--color-primary-normal-bg);
}

@media (max-width: 767px) {
    .pill-icon {
        width: 28px;
        height: 28px;
        padding: 0.3rem;
    }
}

/* Pill Text */
.pill-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.2;
}

@media (max-width: 767px) {
    .pill-text {
        font-size: 0.62rem;
    }
}

/* Pill Arrow */
.pill-arrow {
    position: absolute;
    top: 0.375rem;
    right: 0.375rem;
    font-size: 0.7rem;
    color: var(--color-primary-normal-bg);
    opacity: 0;
    transition: all 0.25s ease;
}

.service-pill-card:hover .pill-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* Legacy styles - keep for backwards compatibility */
.service-pills-block-interactive {
    display: none;
}

.pill-block-interactive,
.pill-text-main,
.pill-cta-reveal,
.pill-cta-link {
    display: none;
}

/* Metrics */
.metrics-block {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.625rem;
}

.metric-box-block {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.75rem 0.625rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.metric-num-block {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.metric-label-block {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* Testimonial Block */
.testimonial-block-fixed {
    padding: 0.875rem;
    position: relative;
}

.testimonial-header-fixed {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.quote-icon-fixed {
    font-size: 1.5rem;
    color: rgba(196, 30, 58, 0.7);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-content-wrapper {
    position: relative;
    min-height: 72px;
    height: 72px;
    overflow: hidden;
}

.testimonial-slide-fixed {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    will-change: opacity;
}

.testimonial-slide-fixed.active {
    opacity: 1;
    pointer-events: auto;
}

.quote-text-fixed {
    font-size: 0.82rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.quote-author-fixed {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-style: normal;
}

.rotation-dots-fixed {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.dot-fixed {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot-fixed.active {
    background: var(--color-primary-normal-bg);
    width: 16px;
    border-radius: 3px;
    box-shadow: 0 0 8px color-mix(in srgb, var(--color-primary-normal-bg) 50%, transparent);
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .service-area-container-dark {
        padding: 0 2rem;
    }

    .section-title-dark {
        font-size: 2rem;
    }

    .counter-number-dark {
        font-size: 2rem;
    }

    .city-grid-dark,
    .city-grid-expanded-dark {
        grid-template-columns: repeat(4, 1fr);
    }

    .service-icons-dark {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .map-section-dark {
        flex-direction: row;
        gap: 1.25rem;
        align-items: flex-start;
    }

    .map-container-dark {
        flex: 0 0 65%;
        min-height: 500px;
        max-height: 550px;
    }

    .sidebar-blocks-dark {
        flex: 0 0 calc(35% - 1.25rem);
        max-height: 550px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: color-mix(in srgb, var(--color-primary-normal-bg) 50%, transparent) rgba(255, 255, 255, 0.1);
    }

    .sidebar-blocks-dark::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-blocks-dark::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 3px;
    }

    .sidebar-blocks-dark::-webkit-scrollbar-thumb {
        background: color-mix(in srgb, var(--color-primary-normal-bg) 50%, transparent);
        border-radius: 3px;
    }

    .sidebar-blocks-dark::-webkit-scrollbar-thumb:hover {
        background: rgba(196, 30, 58, 0.7);
    }

    .trust-badges-block {
        grid-template-columns: repeat(4, 1fr);
        transform: scale(0.88);
    }

    .features-block {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-toggle-btn-dark {
        top: 1.25rem;
        right: 1.25rem;
    }

    .testimonial-content-wrapper {
        min-height: 68px;
        height: 68px;
    }

    .quote-text-fixed {
        font-size: 0.85rem;
    }

    .ticker-wrapper-improved {
        padding: 0.75rem 0;
    }

    .ticker-item-improved {
        padding: 0 2rem;
    }

    .item-text {
        font-size: 0.78rem;
    }

    .pill-block-interactive {
        padding: 0.625rem 0.875rem;
    }

    .pill-text-main {
        font-size: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .cro-service-area {
        padding: 3rem 0;
    }

    .map-container-dark {
        min-height: 550px;
        max-height: 600px;
    }

    .sidebar-blocks-dark {
        max-height: 600px;
        gap: 0.875rem;
    }

    .stat-num-block {
        font-size: 1.5rem;
    }
    
    .stat-item-block {
        padding: 0.625rem 0.375rem;
    }

    .metric-num-block {
        font-size: 1.65rem;
    }

    .quote-text-fixed {
        font-size: 0.88rem;
    }

    .ticker-wrapper-improved::before,
    .ticker-wrapper-improved::after {
        width: 40px;
    }
}

@media (min-width: 1200px) {
    .section-title-dark {
        font-size: 2.25rem;
    }
}

/* ------------------------------------------------------------------------------------------------------------------ 
 * BRANDED MAP LOADER - Professional Loading Overlay
 * Based on ScribbleMaps Branded Loader technique to hide third-party branding
 * ------------------------------------------------------------------------------------------------------------------ */

/* Map iframe wrapper - MUST have defined dimensions for overlay to work */
.map-interactive-wrapper-dark {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    overflow: hidden;
    background: #0A1628;
}

@media (min-width: 768px) {
    .map-interactive-wrapper-dark {
        min-height: 500px;
    }
}

@media (min-width: 1024px) {
    .map-interactive-wrapper-dark {
        min-height: 550px;
    }
}

/* Responsive iframe - sits BELOW the loader (z-index: 1) */
.cro-map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

/* Branded Loader Overlay - sits ABOVE iframe (z-index: 10)
 * This COMPLETELY covers the iframe during load, hiding ScribbleMaps branding
 */
.cro-map-branded-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    
    /* Flexbox centering for logo + spinner */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    
    /* Brand gradient background */
    background: linear-gradient(
        135deg, 
        var(--loader-bg-start, #15263f) 0%, 
        var(--loader-bg-end, #1e3c72) 100%
    );
    color: #ffffff;
    
    /* Smooth fade-out transition */
    transition: 
        opacity 500ms ease,
        visibility 500ms ease;
    
    /* Prevent text selection */
    user-select: none;
    -webkit-user-select: none;
}

/* Loaded state - fade out and allow clicks through to map */
.cro-map-branded-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Logo container - centered with proper sizing */
.cro-map-loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 80px;
}

.cro-map-loader-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Make logo white on dark background */
    filter: brightness(0) invert(1);
}

/* Brand name text */
.cro-map-loader-brand {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
                 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    padding: 0 16px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* CSS Spinner - GPU accelerated */
.cro-map-loader-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: cro-map-spin 0.8s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes cro-map-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading text */
.cro-map-loader-text {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Upload/Embed prompts styling */
.map-upload-prompt,
.map-embed-prompt {
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border: 2px dashed rgba(255,255,255,0.2);
}

.map-upload-prompt .upload-icon,
.map-embed-prompt .embed-icon {
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}

.map-upload-prompt .upload-title,
.map-embed-prompt .embed-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
}

.map-upload-prompt .upload-hint,
.map-embed-prompt .embed-hint {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    max-width: 300px;
    line-height: 1.5;
}

/* Tablet responsive */
@media (max-width: 768px) {
    .cro-map-loader-logo {
        max-width: 120px;
    }
    
    .cro-map-loader-logo img {
        max-height: 50px;
    }
    
    .cro-map-loader-spinner {
        width: 36px;
        height: 36px;
        border-width: 3px;
    }
    
    .cro-map-loader-brand {
        font-size: 18px;
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .cro-map-loader-logo {
        max-width: 100px;
    }
    
    .cro-map-loader-logo img {
        max-height: 40px;
    }
    
    .cro-map-loader-spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
    
    .cro-map-branded-loader {
        gap: 12px;
    }
    
    .cro-map-loader-brand {
        font-size: 16px;
    }
    
    .cro-map-loader-text {
        font-size: 12px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .cro-map-loader-spinner {
        animation: none;
        border-top-color: transparent;
        border-right-color: #ffffff;
    }
    
    .cro-map-branded-loader {
        transition-duration: 0.01ms;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .cro-map-branded-loader {
        background: Canvas;
        color: CanvasText;
        border: 2px solid CanvasText;
    }
    
    .cro-map-loader-spinner {
        border-color: CanvasText;
        border-top-color: Highlight;
    }
}

/* ------------------------------------------------------------------------------------------------------------------ *