/* ===========================
   GLOBAL RESET
=========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.lcdir-container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
    font-family: Arial, sans-serif;
}

/* ===========================
   SEARCH FORM
=========================== */
.lcdir-search-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    display: flex;
    position: relative;
    z-index: 999999;
    margin-top: -85px;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.lcdir-search-box h3 {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
    font-size: 3.5rem;
    font-weight: 600;
    color: #003366;
}

.lcdir-search-box select {
    flex: 1;
    padding: 9px;
    border: 1px solid #ddd;
    border-radius: 23px;
    font-size: 1rem;
    background-color: #f8f9fa;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url(data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E);
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.lcdir-search-box button {
    padding: 9px 35px;
    background: #003366;
    color: #fff;
    border: none;
    border-radius: 34px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.lcdir-search-box button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Hero */
.lcdir-hero-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)), url('<?php echo esc_url($city_image_url); ?>') center/cover;
    color: #fff; padding: 100px 20px; text-align: center;
}
.lcdir-hero-content h1 { font-size: 2.8rem; font-weight: 700; margin-bottom: 16px; color:#fff}
.lcdir-short-locations { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.lcdir-short-locations a {
    background: rgba(255,255,255,0.2); color: #fff; padding: 8px 16px; border-radius: 30px;
    font-size: 0.9rem; text-decoration: none; transition: background 0.3s;
}
.lcdir-short-locations a:hover { background: rgba(255,255,255,0.35); }

/* Grid */
.lcdir-centers-grid-section { padding: 60px 20px; background: #f8f9fa; }
.lcdir-grid {
    display: grid; gap: 24px; max-width: 1400px; margin: auto; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .lcdir-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lcdir-grid { grid-template-columns: repeat(4, 1fr); } }

/* Card */
.lcdir-card {
    background: #fff; border-radius: 14px; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: transform .25s, box-shadow .25s;
}
.lcdir-card:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

/* Slider */
.scroll-slider { overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 6px 0; }
.scroll-slider::-webkit-scrollbar { height: 4px; }
.scroll-slider::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 2px; }
.scroll-slider-inner { display: flex; gap: 10px; padding: 0 4px; }
.scroll-slide { flex: 0 0 auto; width: calc((100vw - 60px - 10px)/2); max-width: 260px; border-radius: 10px; overflow: hidden; }
.scroll-slide img { width: 100%; height: 160px; object-fit: cover; }
@media (min-width: 640px) { .scroll-slide { width: calc((100vw - 100px - 20px)/2); max-width: 300px; } }
@media (min-width: 1024px) { .scroll-slide { width: 230px; } }

/* Card Body */
.lcdir-card-body { padding: 16px; }
.lcdir-card-body h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #232323;
    margin-bottom: 1px;
    line-height: 1;
}
.lcdir-card-body .location {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0px;
}
.lcdir-card-body .open-hours {
    font-size: 0.9rem; color: #28a745; font-weight: 600; margin: 6px 0;
    display: flex; align-items: center; gap: 6px;
}
.lcdir-card-body .open-hours i { font-size: 0.95rem; }

/* Buttons */
.lcdir-btn-group { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.lcdir-book-btn, .lcdir-detail-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 18px; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
    text-decoration: none; transition: all 0.3s; border: none;
}
.lcdir-book-btn {
    background: #007bff; color: #fff; cursor: pointer;
}
.lcdir-book-btn:hover { background: #0056b3; transform: translateY(-1px); }
.lcdir-detail-btn {
    background: #f1f3f5; color: #333; border: 1px solid #ddd;
}
.lcdir-detail-btn:hover { background: #e2e6ea; transform: translateX(4px); }

/* Popup */
.lcdir-popup-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9999;
    align-items: flex-start; justify-content: center; padding: 20px; padding-top: 5%; backdrop-filter: blur(5px);
}
.lcdir-popup {
    background: #fff; width: 100%; max-width: 420px; border-radius: 16px; padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2); position: relative; animation: popupIn .4s ease;
}
@keyframes popupIn { from { transform: translateY(-50px) scale(0.95); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.lcdir-popup h3 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 700; color: #222; }
.lcdir-popup .popup-intro { font-size: 0.95rem; color: #666; margin-bottom: 16px; line-height: 1.5; }
.lcdir-popup input { width: 100%; padding: 12px 14px; margin: 10px 0; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; }
.lcdir-popup button { width: 100%; padding: 12px; background: #007bff; color: #fff; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; margin-top: 10px; }
.lcdir-popup button:hover { background: #0056b3; }
.lcdir-close-popup { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.8rem; color: #aaa; cursor: pointer; }
.lcdir-close-popup:hover { color: #333; }

/* ===========================
   CARDS GRID
=========================== */
.lcdir-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 3 columns for desktop */
    gap: 20px;
}

/* Responsive adjustments for lcdir-grid */
@media (max-width: 1024px) {
    .lcdir-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

@media (max-width: 768px) {
    .lcdir-grid {
        grid-template-columns: repeat(1, 1fr); /* 1 column for mobile */
    }
}

.lcdir-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.lcdir-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.lcdir-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.lcdir-card-body {
    padding: 15px;
}

.lcdir-card-body h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #222;
}

.lcdir-card-body p {
    font-size: 15px;
    color: #444;
    margin-bottom: 10px;
}

.lcdir-view-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #0066ff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
}

.lcdir-view-btn:hover {
    background: #004acc;
}

/* City Card Specific Styles */
.lcdir-city-card {
    display: flex;
    align-items: flex-end;
    height: 220px; /* Adjust as needed */
    background-size: cover;
    background-position: center;
    text-decoration: none;
    position: relative;
    color: #fff; /* Text color for city name */
}
.lcdir-city-card-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 15px;
    border-radius: 0 0 12px 12px;
}
.lcdir-city-card-overlay h4 {
    margin: 0;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 35px;
    border: none;
    /* text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); */
}

/* ===========================
   SINGLE CENTER PAGE
=========================== */
.lcdir-single {
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 3px 12px rgba(0,0,0,0.1);
}

.lcdir-single h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.lcdir-single .meta {
    font-size: 16px;
    margin-bottom: 15px;
    color: #444;
}

.lcdir-single .map {
    margin-top: 20px;
}

.lcdir-single iframe {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    border: none;
}

/* ===========================
   RESPONSIVE BREAKPOINTS
=========================== */
@media (max-width: 768px) {

    .lcdir-search-box select {
        width: 100%;
        margin-bottom: 10px;
    }

    .lcdir-search-box button {
        width: 100%;
    }
}