/* ==================== PRESENCE CONTAINER ==================== */
.presence-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
    font-family:
        -apple-system, "Bricolage Grotesque", BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
}

/* ==================== HEADER SECTION ==================== */
.presence-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 0.6s ease-out;
}

/* The Green Icon Box */
.icon-box {
    background-color: #f0fff4; /* Light Green Bg */
    color: #28a745; /* Brand Green Icon */
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.presence-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.presence-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 500;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== LOCATION NAVIGATION ==================== */
.location-nav-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 900px;
}

.location-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
}

.location-nav-btn:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, #eef2ff 0%, #f3f4f6 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.15);
}

.location-nav-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.3);
}

.nav-icon {
    font-size: 1.75rem;
    display: block;
}

.nav-text {
    display: block;
    white-space: nowrap;
}

/* ==================== CONTENT WRAPPER ==================== */
.locations-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ==================== LOCATION DETAILS PANEL ==================== */
.location-details-panel {
    position: relative;
    height: 500px;
    animation: fadeInLeft 0.6s ease-out 0.2s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.location-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-20px);
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}

.location-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 10;
}

.location-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 1rem;
}

.location-card-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.location-badge {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-card-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.location-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.location-info-item p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.95rem;
}

.location-info-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.location-info-item a:hover {
    color: #6366f1;
    text-decoration: underline;
}

.location-info-item strong {
    color: #111827;
}

/* ==================== MAP PANEL ==================== */
.location-map-panel {
    position: relative;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: fadeInRight 0.6s ease-out 0.2s both;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-container.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px;
}

/* new support lcoation css*/

.header-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    margin: 20px auto 0;
    border-radius: 2px;
}

.search-container {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-box input:focus {
    border-color: #2ecc71;
    box-shadow: 0 4px 16px rgba(46, 204, 113, 0.2);
}

.search-box svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #999;
}

.filter-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.filter-tag {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-tag:hover {
    border-color: #2ecc71;
    color: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.15);
}

.filter-tag.active {
    background: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

.centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

.center-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
}

.center-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71 0%, #27ae60 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.center-card:hover::before {
    transform: scaleX(1);
}

.center-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(46, 204, 113, 0.2);
    border-color: #2ecc71;
}

.center-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.center-card:hover .center-icon {
    transform: scale(1.1) rotate(5deg);
}

.center-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.center-status {
    font-size: 0.85rem;
    color: #2ecc71;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 4px 10px;
    background: #f0f9f6;
    border-radius: 4px;
}

.center-link {
    display: inline-block;
    margin-top: 16px;
    color: #2ecc71;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.center-link:hover {
    gap: 10px;
}

.arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.center-card:hover .arrow {
    transform: translateX(3px);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2ecc71;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .centers-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .stats {
        /* gap: 30px;
                flex-direction: column; */
        gap: 30px;
        flex-direction: column;
        display: flex;
        align-items: center;
        flex-direction: row;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6rem;
    }

    .header p {
        font-size: 0.95rem;
    }

    .search-box input {
        padding: 12px 16px 12px 40px;
        font-size: 0.95rem;
    }

    .filter-tags {
        gap: 8px;
    }

    .filter-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .center-card {
        padding: 20px;
    }

    .center-name {
        font-size: 1.1rem;
    }
}

/* new support lcoation css */

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .presence-title {
        font-size: 2.5rem;
    }

    .locations-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .location-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-details-panel,
    .location-map-panel {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .presence-container {
        padding: 2rem 1rem;
    }

    .presence-title {
        font-size: 2rem;
    }

    .presence-subtitle {
        font-size: 1rem;
    }

    .location-nav {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .location-nav-btn {
        flex-direction: row;
        gap: 1rem;
        justify-content: flex-start;
        padding: 1rem 1.25rem;
    }

    .nav-icon {
        font-size: 1.5rem;
    }

    .location-card {
        padding: 1.5rem;
    }

    .location-card-header h2 {
        font-size: 1.5rem;
    }

    .location-details-panel,
    .location-map-panel {
        height: 350px;
    }

    .location-info-item {
        gap: 0.75rem;
    }

    .location-info-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .presence-container {
        padding: 1.5rem 1rem;
    }

    .presence-header {
        margin-bottom: 2rem;
    }

    .presence-title {
        font-size: 1.75rem;
    }

    .presence-subtitle {
        font-size: 0.95rem;
    }

    .location-nav-wrapper {
        margin-bottom: 2rem;
    }

    .location-nav {
        gap: 0.5rem;
    }

    .location-nav-btn {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .nav-icon {
        font-size: 1.25rem;
    }

    .location-card {
        padding: 1.25rem;
        height: 400px;
    }

    .location-card-header h2 {
        font-size: 1.25rem;
    }

    .location-details-panel,
    .location-map-panel {
        height: 300px;
    }

    .location-card-body {
        gap: 1rem;
    }

    .location-icon {
        width: 20px;
        height: 20px;
    }
}

/* ==================== SCROLLBAR STYLING ==================== */
.location-card::-webkit-scrollbar {
    width: 6px;
}

.location-card::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 10px;
}

.location-card::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.location-card::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ==================== ANIMATION UTILITIES ==================== */
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
