@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

.font-heading {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
}

.video-background {
    background-image: url('../hero/bg1.jpg');
    background-size: cover;
    background-position: center;
}

.video-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    /*height: calc(100vh - 72px);*/
    /*min-height: 640px; !* Mobile minimum height *!*/
}

@media (min-width: 768px) {
    .video-container {
        height: 100%;
    }
}

/* -------------------------------------------------------------------------- */
/* Legal pages                                                                 */
/* -------------------------------------------------------------------------- */

.legal-content {
    color: rgb(51 65 85); /* slate-700 */
    font-size: 1rem;
    line-height: 1.75;
}

.legal-content h1,
.legal-content h2 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: rgb(15 23 42); /* slate-900 */
    font-weight: 800;
    line-height: 1.25;
}

.legal-content h1 {
    font-size: 1.5rem;
}

.legal-content h2 {
    font-size: 1.25rem;
}

.legal-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgb(15 23 42); /* slate-900 */
    font-weight: 700;
    line-height: 1.3;
    font-size: 1.125rem;
}

.legal-content p {
    margin-top: 0.875rem;
}

.legal-content ul,
.legal-content ol {
    margin-top: 0.875rem;
    padding-left: 1.25rem;
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content li {
    margin-top: 0.375rem;
}

.legal-content strong {
    color: rgb(15 23 42); /* slate-900 */
    font-weight: 700;
}

.legal-content em {
    font-style: italic;
}

.legal-content a {
    color: rgb(29 78 216); /* blue-700 */
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: rgb(30 64 175); /* blue-800 */
}

.legal-content a:focus {
    outline: 2px solid rgb(59 130 246); /* blue-500 */
    outline-offset: 2px;
}

.legal-content > :first-child {
    margin-top: 0;
}

@media (max-width: 767px) {
    .video-container {
        height: calc(100dvh - 72px);
    }

    /*@supports (height: 100dvh) {*/
    /*    .video-container {*/
    /*        min-height: calc(100dvh - 72px);*/
    /*    }*/
    /*}*/
}

@media (max-width: 363px) {
    .video-container {
        min-height: 540px;
        /*min-height: 640px;*/
    }
}


.video-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.1s ease-in-out;
    opacity: 0;
}

.video-element.active {
    opacity: 1;
}

.text-slider-container {
    line-height: 1.5;
    /* Ensure consistent line height */
}

.text-slider-container .slide {
    transform: translateY(100%);
    opacity: 0;

    min-height: 48px;
    padding-bottom: 4px;
}

.text-slider-container .slide.active {
    transform: translateY(0);
    opacity: 1;
}

.text-slider-container .slide:not(.slider-star-ratings) {
    display: flex;
    align-items: center;
}

.slide {
    min-height: 48px;
}

.hero-slide-star {
    opacity: 0;
}

@keyframes starPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

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

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

.star-animation {
    animation: starPop 0.3s ease-out forwards;
}

.icon {
    width: 36px;
    height: 36px;
    transition: transform 0.2s ease;
}

.slide-icon-glow {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.main-headline {
    -webkit-text-stroke: 1px #F8F8F8;
    text-shadow: 0px 1px 4px #23430C;
    /*text-shadow: 0 2px 4px rgba(0,0,0,0.3);*/
}

.call-now-button {
    animation: glow 2s infinite;
    position: relative;
    overflow: hidden;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5),
            0 0 10px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5),
            0 0 10px rgba(255, 255, 255, 0.3);
    }
}

@media (min-width: 366px) and (min-height: 800px) {
    .hero-btm-btns {
        margin-bottom: 48px !important;
    }
}

@media (min-width: 409px) and (max-width: 639px) and (min-height: 800px) {
    .main-headline {
        font-size: 36px;
    }
}

@media (max-width: 279px) {
    .main-headline {
        font-size: 18px;
    }
}

@media (min-width: 768px) and (max-width: 862px) {
    .text-service-caption {
        font-size: 0.875rem;
    }

    .main-headline {
        font-size: 1.5rem !important;
        line-height: 2rem !important;
    }

    .text-slider-wrap {
        margin-top: 28px !important;
    }
}

@media (min-width: 863px) and (max-width: 872px) and (max-height: 540px) {
    .video-container {
        min-height: 468px !important;
    }
}

/* Updated Burger Menu Animation */
.burger-line-1,
.burger-line-2,
.burger-line-3 {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1a1a1a;
    transition: all 300ms ease-in-out;
}

.burger-line-1 {
    top: 22%;
}

.burger-line-2 {
    top: 50%;
    transform: translateY(-50%);
}

.burger-line-3 {
    bottom: 22%;
}

/* X animation classes */
.menu-open .burger-line-1 {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-open .burger-line-2 {
    opacity: 0;
}

.menu-open .burger-line-3 {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Add margin to main content to account for fixed header */
main {
    margin-top: 72px;
    /* Adjust based on the header height */
}

/* Prevent scrolling when menu is open */
.menu-active {
    overflow: hidden;
}

.bottom-buttons {
    position: relative;
    background-color: transparent;
    z-index: 1;
}

/* Bottom Navigation styles */
#bottomNav {
    height: 72px;
    /* Adjust if needed */
    padding-bottom: 16px;
}

/* Ensure proper z-index stacking */
#mobileMenu {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding-top: 100px;
    z-index: 45;
}

@supports (height: 100dvh) {
    #mobileMenu {
        height: 100dvh;
    }
}

#bottomNav {
    z-index: 40;
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.grid-pattern {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Add subtle animation */
.grid-pattern.animated {
    animation: none;
}

.floating-card {
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.floating-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Optional: Add a subtle texture to the cards */
.card-texture {
    background-image: linear-gradient(to right bottom, rgba(255, 255, 255, 0.2) 0%, transparent 200%);
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

/* Desktop Menu Styles */
#desktopNav {
    position: relative;
}

#desktopNav .menu-item>a,
#desktopNav .menu-item>button {
    position: relative;
    white-space: nowrap;
}

/* Dropdown Animations */
#desktopNav .group:hover>div,
#desktopNav .group\/sub:hover>div {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active Menu Item Indicator */
#desktopNav .menu-item>a.active::after,
#desktopNav .menu-item>button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background-color: #f97316;
    /* Orange 500 */
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#desktopNav .menu-item>a.active:hover::after,
#desktopNav .menu-item>button.active:hover::after {
    transform: scaleX(1);
}

/* Submenu Hover Effects */
#desktopNav .submenu-item>a:hover svg,
#desktopNav .submenu-item>button:hover svg,
#desktopNav .submenu-item>a:hover img.menu-arrow-right,
#desktopNav .submenu-item>button:hover img.menu-arrow-right {
    transform: translateX(4px);
    transition: transform 0.2s ease;
}

/* More Dropdown Specific Styles */
#moreMenuDropdown {
    min-width: 200px;
}

#moreMenuDropdown .menu-item {
    width: 100%;
}

#desktopNav .group>div.submenu {
    padding-top: 8px;
    margin-top: -8px;
}

#desktopNav .group\/sub>div.submenu {
    padding-left: 8px;
    margin-left: -8px;
}

/* Ensure submenus are closed by default in More dropdown */
#moreMenuDropdown .submenu-item>div {
    display: none;
}

#moreMenuDropdown .submenu-item:hover>div {
    display: block;
}

.no-hover:hover .group-hover\:block {
    display: none !important;
}

button.no-hover:hover,
.menu-item.group>a.no-hover:hover {
    background-color: transparent !important;
    color: #4b5563 !important;
}

button.no-hover:hover>.group-hover\:rotate-180 {
    transform: none !important;
    ;
}

.no-hover:hover group-hover\/sub\:block {
    display: none !important;
}

a.no-hover.hover\:bg-gray-50:hover {
    background-color: transparent !important;
    color: #4b5563 !important;
}

.submenu-item.group\/sub>a.no-hover>img.menu-arrow-right,
.submenu-item.group\/sub>button.no-hover>img.menu-arrow-right {
    transform: none !important;
}

.submenu-item.no-hover .group-hover\/sub\:block {
    display: none !important;
}

.no-hover.group\/sub:hover group-hover\/sub\:block {
    display: none !important;
}

.active-nav-item {
    background-color: #f9fafb;
}

/* Mobile Menu Animation States */
.mobile-menu-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-out;
}

.menu-active .mobile-menu-item {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for menu items */
.menu-active .mobile-menu-item:nth-child(1) {
    transition-delay: 0.1s;
}

.menu-active .mobile-menu-item:nth-child(2) {
    transition-delay: 0.15s;
}

.menu-active .mobile-menu-item:nth-child(3) {
    transition-delay: 0.2s;
}

.menu-active .mobile-menu-item:nth-child(4) {
    transition-delay: 0.25s;
}

.menu-active .mobile-menu-item:nth-child(5) {
    transition-delay: 0.3s;
}

/* Submenu toggle animation */
.mobile-submenu-toggle svg {
    transition: transform 0.2s ease;
}

.mobile-submenu-toggle.active svg {
    transform: rotate(-180deg);
}

/* Active menu item styles */
.mobile-menu-item.active {
    color: #f97316;
    /* Orange-500 */
    font-weight: 600;
}

.mobile-menu-item.active::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #f97316;
    border-radius: 0 4px 4px 0;
}

/* Smooth height animation for submenus */
.mobile-submenu {
    transition: all 0.3s ease-out;
    overflow: hidden;
}

/* Custom scrollbar for menu items container */
#mobileMenu .menu-items::-webkit-scrollbar {
    width: 4px;
}

#mobileMenu .menu-items::-webkit-scrollbar-track {
    background: transparent;
}

#mobileMenu .menu-items::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Safe area padding for modern iOS devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-menu-content {
        padding-bottom: calc(env(safe-area-inset-bottom) + 2rem);
    }
}

/* Mobile submenu vertical lines */
.mobile-submenu {
    position: relative;
    margin-left: 1rem;
    /* Consistent spacing */
}

.mobile-submenu::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 2px;

    background: linear-gradient(to bottom,
            rgba(229, 231, 235, 0.5) 0%,
            rgba(229, 231, 235, 1) 15%,
            rgba(229, 231, 235, 1) 85%,
            rgba(229, 231, 235, 0.5) 100%);

}

.mobile-submenu .mobile-submenu {
    margin-left: 0.75rem;
}

.mobile-submenu a:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.02);
}

/* Smooth transition for submenu expansion */
.mobile-submenu {
    transition: all 0.3s ease-out;
    overflow: hidden;
}

.active-menu-item {
    position: relative;

    /*color: #f97316 !important;  !* Orange-500 *!*/
    color: #475569 !important;
    /* Slate */
    /*color: #3b82f6 !important;  !* Blue-500 *!*/
    /*color: #1e3a8a !important; !* Navy *!*/

    border-radius: 8px;
    font-weight: 600;
}

.mobile-submenu .active-menu-item {
    /*background: linear-gradient(120deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.12)); !* Orange-500 *!*/
    background: linear-gradient(120deg, rgba(71, 85, 105, 0.08), rgba(71, 85, 105, 0.12));
    /* Slate */
    /*background: linear-gradient(120deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.12)); !* Blue-500 *!*/
    /*background: linear-gradient(120deg, rgba(30, 58, 138, 0.08), rgba(30, 58, 138, 0.12)); !* Navy *!*/
}

.active-menu-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 20px;

    /*background: linear-gradient(to bottom, #f97316, #fb923c); !* Orange-500 *!*/
    /*border-radius: 0 4px 4px 0;*/
    /*box-shadow: 0 0 12px rgba(249, 115, 22, 0.3);*/

    background: linear-gradient(to bottom, #475569, #64748b);
    /* Slate */
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 12px rgba(71, 85, 105, 0.3);

    /*background: linear-gradient(to bottom, #3b82f6, #60a5fa); !* Blue-500 *!*/
    /*border-radius: 0 4px 4px 0;*/
    /*box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);*/

    /*background: linear-gradient(to bottom, #1e3a8a, #1e40af); !* Navy *!*/
    /*border-radius: 0 4px 4px 0;*/
    /*box-shadow: 0 0 12px rgba(30, 58, 138, 0.3);*/
}

.mobile-submenu .active-menu-item::before {
    left: 0;
    width: 4px;
    height: 24px;
}

.mobile-submenu .active-menu-item {
    padding-left: 12px;
}

@media (max-height: 565px) and (min-width: 1024px) {
    section.video-container {
        min-height: 520px;
    }
}

@media (max-height: 630px) and (min-width: 1536px) {
    .services-card {
        margin-top: -80px !important;
    }
}

/* Services Section Styles */
.services-section {
    background-color: transparent;
}

.services-section .aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%;
}

@media (max-width: 767px) {
    .services-section .aspect-w-16 {
        padding-bottom: 175px;
    }
}

.services-section .aspect-w-16 img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Additional Services Grid Animation */
.services-section .grid-cols-3>div {
    transition: all 0.3s ease;
}

.services-section .grid-cols-3>div:hover {
    transform: translateX(8px);
    color: #f97316;
    /* orange-500 */
}

/* Reviews Section Styles */
.reviews-section {
    background-color: #0a3974;
}

.reviews-slider {
    position: relative;
    padding-bottom: 5rem;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.review-card {
    position: relative;
    z-index: 1;
}

/* Ensure crisp text rendering */
.review-slide * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* About Us Section Styles */
.about-us-section img.founder-image {
    transition: transform 0.3s ease;
}

.about-us-section img.founder-image:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .about-us-section .accreditations {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .about-us-section .founder-info {
        flex-direction: column;
        text-align: center;
    }
}

/* About Us Section Animations */
@keyframes gentlePulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

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

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

html[data-motion="on"] .animate-pulse {
    animation: gentlePulse 3s ease-in-out infinite;
}

html[data-motion="off"] .animate-pulse {
    animation: none !important;
}

/* Service Area Section Animations */
.animate-slide {
    animation: none !important;
}

/* Entrance animations for content */
[data-animate="true"] {
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* BOF Map Styling */
.leaflet-container {
    font-family: 'Poppins', sans-serif;
}

/* Custom map controls styling */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
    background-color: white !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    line-height: 32px !important;
    font-size: 16px !important;
    color: #0284C7 !important;
    transition: all 0.2s ease !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
    background-color: #f8fafc !important;
    color: #0369a1 !important;
}

/* Polygon animations */
@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}

html[data-motion="on"] .animate-dash path {
    animation: dash 1.5s linear infinite;
}

html[data-motion="off"] .animate-dash path {
    animation: none !important;
}

/* Area card enhancements */
.area-card {
    transition: all 0.3s ease;
}

/* Gradient overlay for map */
.map-overlay {
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.1),
            transparent 20%,
            transparent 80%,
            rgba(255, 255, 255, 0.1));
}

/* Enhanced hover effects */
.area-card .icon-container {
    transition: all 0.3s ease;
}

.area-card:hover .icon-container {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-area-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    #serviceAreaMap {
        height: 300px !important;
        margin-bottom: 2rem;
    }

    .leaflet-control-zoom {
        margin-right: 1rem !important;
    }
}

@media (max-width: 375px) {
    .leaflet-control-zoom {
        margin-right: 5px !important;
    }
}

/* Map Attribution styling */
.leaflet-control-attribution {
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    font-size: 10px !important;
}

.leaflet-control-attribution a {
    color: #0284C7 !important;
    text-decoration: none !important;
}


.pattern-grid {
    background-image:
        linear-gradient(to right, rgb(203 213 225 / 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(203 213 225 / 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Active card state */
.area-card.is-active .bg-white {
    border-color: #0284C7;
    background-color: #f0f9ff;
}

.area-card.is-active .group-hover\:bg-sky-100 {
    background-color: #e0f2fe;
}

.area-card.is-active .area-card-description {
    max-height: 100px !important;
    margin-top: 0.5rem !important;
    display: block;
}

/* The parent container for our custom DivIcon */
.pulse-marker-icon {
    position: relative;
    /* so absolutely positioned inner/outer circles behave */
    width: 40px;
    height: 40px;
    /* No background needed; we’ll rely on children for the circles */
}

/* The large, transparent outer circle that “pulses” */
.outer-circle {
    position: absolute;
    top: 0;
    /* horizontally center it in the 40x40 DivIcon container */
    left: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(2, 132, 199, 0.3);
    /* or your brand color */
    animation: pulse 2s infinite;
}

/* The solid inner dot */
.inner-circle {
    position: absolute;
    top: 14px;
    /* center the smaller circle */
    left: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #0284C7;
    /* your brand color */
}

/* A simple keyframe that expands & fades the outer circle */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

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

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

@supports (backdrop-filter: blur(12px)) {
    .backdrop-blur-sm {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

@keyframes fade-in-address-check {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-address-check {
    animation: in-address-check 0.3s ease-out forwards;
}

/* Custom map marker styles */
.custom-marker-icon {
    position: relative;
    width: 40px;
    height: 40px;
}

/* Main circle (teal dot) */
.marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 22px;
    height: 22px;
    background-color: #005153;
    border-radius: 50%;
    z-index: 2;
}

/* Pulsing circles */
.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.marker-pulse span {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #005153;
    border-radius: 50%;
    opacity: 0.2;
    animation: markerWave 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.marker-pulse span:nth-child(1) {
    animation-delay: 0s;
    opacity: 0.2;
}

.marker-pulse span:nth-child(2) {
    animation-delay: 0.2s;
    opacity: 0.4;
}

/* Pulsing animation */
@keyframes markerWave {
    0% {
        transform: scale(0.5);
        opacity: 0.4;
    }

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

/* Leaflet popup overrides */
.custom-map-popup {
    margin-bottom: 28px !important;
}

.leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 0 !important;
    line-height: 1.4;
}

.leaflet-popup-tip {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: #1e3238 !important;
}

.leaflet-popup-close-button {
    padding: 0 !important;
    width: 24px !important;
    height: 24px !important;
}

/* Simple popup styles matching the example */
.map-popup-content {
    padding: 5px 0 0 0;
    text-align: center;
}

.map-popup-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 10px 0 0 0;
}

.map-popup-content p {
    margin-top: 10px !important;
    color: #666;
    font-size: 14px;
    padding: 0 15px;
    min-width: 235px;
}

.map-popup-content .schedule-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background-color: #1e3238;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.active-suggestion {
    background-color: #e0f2fe;
}

.mapbox_logo {
    height: 12px;
    display: inline;
}

.mapbox-logo-container {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 0 4px 4px 0;
}

@media (max-width: 767px) {
    .mapbox-logo-container {
        padding: 1px 3px;
    }

    .mapbox_logo {
        height: 10px;
    }

    .leaflet-control-attribution {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
}

/* EOF Map Styling */

/* Emergency CTA Section Styles */
.emergency-cta {
    position: relative;
    z-index: 1;
    background: linear-gradient(to bottom right, #0a3974, #0f172a);
    margin: 2rem 0;
}

/* Animated background pattern */
.emergency-cta .pattern-grid.animated {
    animation: patternSlide 20s linear infinite;
}

@keyframes patternSlide {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(-20px) translateY(-20px);
    }
}

@keyframes shine {

    0%,
    55% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    55% {
        transform: translateX(200%) skewX(-15deg);
        opacity: 0;
    }

    100% {
        transform: translateX(-100%) skewX(-15deg);
        opacity: 0;
    }
}

.shine-repeat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    animation: shine 3s infinite;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
}

.shine-repeat:hover::after {
    animation-play-state: paused;
}

/* EOF Emergency CTA Section Styles */

/* HIDE the reCAPTCHA v3 badge */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* Logo font helpers */
.font-logo-poppins {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.font-logo-montserrat {
    font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.font-logo-inter {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.font-logo-rubik {
    font-family: 'Rubik', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.font-logo-manrope {
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.font-logo-barlow {
    font-family: 'Barlow', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.font-logo-rajdhani {
    font-family: 'Rajdhani', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.font-logo-space-grotesk {
    font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.font-logo-orbitron {
    font-family: 'Orbitron', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==========================================================================
   Logo Layout Styles
   ========================================================================== */

/* Base logo wordmark styles */
.logo-wordmark {
    display: flex;
    align-items: center;
}

/* Logo icon - ensure SVG scales properly within container */
.logo-icon svg {
    height: 100%;
    width: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Inline Tight layout */
.logo-layout--inline-tight {
    gap: 0.5rem; /* 8px */
}

/* Split Emphasis layout - divider styles */
.logo-divider {
    display: inline-block;
    width: 1px;
    height: 1em;
    background: var(--logo-accent-color, #F59E0B);
    margin: 0 0.5rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.logo-divider--dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

/* Accent Block layout - word with background */
.logo-accent-block {
    display: inline-block;
    background: var(--logo-accent-color, #F59E0B);
    color: white;
    padding: 0.125rem 0.5rem; /* 2px 8px */
    border-radius: 0.25rem; /* 4px */
    line-height: 1.2;
}

/* Stacked Tagline layout - brand line + smaller tagline beneath */
.logo-layout--stacked-tagline {
    /* Uses flex items-center in blade; no extra layout CSS needed */
}

.logo-tagline {
    letter-spacing: 0.1em;
    text-transform: uppercase;
    /* margin-top controlled inline for flexibility */
}

.text-balance {
    text-wrap: balance;
}

/* Size variants for responsive logos */
.logo-size--compact .logo-icon {
    max-height: 2.5rem; /* 40px */
}

.logo-size--hero .logo-icon {
    max-height: 4rem; /* 64px */
}
