/* ============================================================
   Location Pages CSS - Shared styles for all 192 location pages
   Extracted from inline styles to improve content-to-code ratio
   ============================================================ */

/* --- Section Spacing - match main page (60px) --- */
.local-intro {
    padding: 60px 0 !important;
}
.local-hospitals {
    padding: 60px 0 !important;
}
.local-map {
    padding: 60px 0 !important;
}
.local-testimonials {
    padding: 60px 0 !important;
}
.nearby-locations {
    padding: 60px 0 !important;
}

/* --- Google Review Cards (match main page layout) --- */
.google-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.google-review-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.google-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.google-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0052cc, #00a3ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
}
.google-review-info {
    flex: 1;
}
.google-review-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}
.google-review-date {
    font-size: 12px;
    color: #888;
}
.google-review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 12px;
}
.google-review-stars svg {
    width: 16px;
    height: 16px;
}
.google-review-text {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}
.google-summary-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}
.google-summary-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 16px 28px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}
.google-summary-link:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.google-letter {
    font-size: 1.3rem;
    font-weight: 500;
}
.google-rating-num {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}
.google-stars {
    color: #FBBC05;
    font-size: 1rem;
}
.google-ulasan {
    color: #666;
    font-size: 0.9rem;
}
.google-lihat {
    background: #1a73e8;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
    /* Hero container fill screen on mobile */
    .hero-section {
        padding: 0 !important;
    }

    .hero-section > .container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .hero-container {
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 30px 20px !important;
    }

    /* Reorder hero elements on mobile */
    .hero-left {
        display: flex !important;
        flex-direction: column !important;
    }

    .hero-cert-badge {
        order: 3 !important;
        margin-bottom: 0 !important;
        justify-content: center !important;
        width: 100% !important;
    }

    .hero-cert-badge .cert-icons img {
        width: 110px !important;
        height: auto !important;
    }

    .hero-cert-badge .cert-text {
        font-size: 0.85rem !important;
    }

    .hero-product-mobile {
        order: 2 !important;
    }

    .hero-buttons {
        order: 4 !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .hero-buttons a {
        padding: 14px 20px !important;
        font-size: 1rem !important;
        width: 100% !important;
        justify-content: center !important;
    }

    /* Standardize section spacing on mobile */
    section {
        padding-top: 35px !important;
        padding-bottom: 35px !important;
    }

    .hero-section {
        padding-top: 0 !important;
    }

    /* Smaller section subheadings on mobile */
    .section-header {
        margin-bottom: 20px !important;
    }

    .section-header h2 {
        margin-bottom: 8px !important;
    }

    .section-header p {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }

    /* FAQ section */
    .faq-preview { padding: 25px 0 35px !important; }
    .faq-item summary h3 { font-size: 0.9rem !important; }
    .faq-answer { font-size: 0.85rem !important; }

    .bantuan-content {
        grid-template-columns: 1fr !important;
    }
    .bantuan-product img {
        max-width: 250px !important;
    }

    /* Why-us section - 2x3 grid on mobile */
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .why-us-item {
        padding: 15px !important;
        text-align: center !important;
    }

    .why-us-item .icon-circle {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 6px !important;
    }

    .why-us-item .icon-circle svg {
        width: 20px !important;
        height: 20px !important;
    }

    .why-us-item h3 {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
    }

    .why-us-item p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
    }

    /* Kelebihan section - single column on mobile */
    .kelebihan-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        gap: 8px !important;
    }

    .kelebihan-grid > div {
        padding: 12px !important;
        gap: 10px !important;
        min-height: 80px !important;
        align-items: center !important;
    }

    .kelebihan-grid > div > div:first-child {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .kelebihan-grid > div > div:first-child svg {
        width: 20px !important;
        height: 20px !important;
    }

    .kelebihan-grid h4 {
        font-size: 0.9rem !important;
        margin-bottom: 2px !important;
    }

    .kelebihan-grid p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
    }

    /* Hide "Siapa Yang Perlukan" on mobile */
    .who-needs-container {
        display: none !important;
    }

    /* Proof gallery - 3x4 grid on mobile */
    .proof-gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }

    .proof-gallery-grid img {
        height: 90px !important;
    }

    /* Location cards */
    section [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    section [style*="grid-template-columns: repeat(4"] a {
        padding: 12px 8px !important;
        border-radius: 8px !important;
    }
    section [style*="grid-template-columns: repeat(4"] span {
        font-size: 0.8rem !important;
    }

    /* Footer - simple 2 column, NO overlap */
    .footer {
        padding: 1rem 15px 0.8rem !important;
    }

    .footer .container {
        padding: 0 !important;
    }

    .footer-links {
        display: none !important;
    }

    .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px 12px !important;
        margin-bottom: 0.8rem !important;
    }

    .footer-about {
        text-align: left !important;
    }

    .footer-about > a {
        display: none !important;
    }

    .footer-about > p {
        font-size: 0.55rem !important;
        line-height: 1.35 !important;
        margin: 0 0 6px 0 !important;
    }

    .footer-social {
        display: none !important;
    }

    .footer-contact {
        text-align: right !important;
    }

    .footer-contact h3 {
        display: none !important;
    }

    .footer-contact p {
        font-size: 0.55rem !important;
        line-height: 1.35 !important;
        margin: 0 0 6px 0 !important;
    }

    .footer-contact p a {
        font-size: 0.65rem !important;
    }

    .footer-bottom {
        text-align: center !important;
        padding-top: 0.6rem !important;
        border-top: 1px solid rgba(255,255,255,0.2) !important;
    }

    .footer-bottom p {
        font-size: 0.5rem !important;
    }

    .footer-legal {
        justify-content: center !important;
        gap: 6px !important;
        margin-top: 4px !important;
    }

    .footer-legal li a {
        font-size: 0.45rem !important;
    }

    /* New sections - mobile responsive */
    .local-intro .container > div {
        padding: 0 15px !important;
    }

    .local-map .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .local-hospitals .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Google Reviews - horizontal scroll on mobile */
    .google-reviews-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 12px !important;
        margin-top: 20px !important;
        padding-bottom: 8px !important;
        padding-left: 15px !important;
        padding-right: 20px !important;
    }
    .google-reviews-grid::-webkit-scrollbar {
        display: none;
    }
    .google-review-card {
        flex: 0 0 240px !important;
        min-width: 240px !important;
        scroll-snap-align: start;
        padding: 12px !important;
    }
    .google-review-header {
        margin-bottom: 8px !important;
    }
    .google-review-stars {
        margin-bottom: 8px !important;
    }
    .google-review-text {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 4 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .google-summary-link {
        gap: 8px !important;
        padding: 10px 16px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .google-letter {
        font-size: 1rem !important;
    }
    .google-rating-num {
        font-size: 0.9rem !important;
    }
    .google-ulasan {
        font-size: 0.75rem !important;
    }
    .google-lihat {
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }

    .nearby-locations .container > div[style*="grid-template-columns"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .breadcrumb-nav {
        padding: 8px 15px !important;
        font-size: 0.75rem !important;
    }

    .city-directory-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* --- Product Carousel --- */
.product-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.product-carousel-wrapper {
    overflow: hidden;
    flex: 1;
    padding-top: 20px;
    margin-top: -20px;
}
.product-carousel-track {
    display: flex;
    gap: var(--spacing-xl);
    transition: transform 0.4s ease;
    padding-top: 15px;
}
.product-carousel-track .service-card {
    flex: 0 0 calc((100% - 2 * var(--spacing-xl)) / 3);
    min-width: calc((100% - 2 * var(--spacing-xl)) / 3);
    display: flex;
    flex-direction: column;
}
.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #f8fafc;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.product-carousel-track .service-card h3 {
    font-size: 1.1rem;
    margin-top: 8px;
    margin-bottom: 8px;
    white-space: nowrap;
    color: var(--primary-blue);
}
.product-carousel-track .service-price {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: auto;
}
.product-carousel-track .service-price .price-amount {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 100%;
}
.product-carousel-track .service-price .price-amount:first-child {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 4px;
    margin-bottom: 4px;
}
.product-carousel-track .service-card p {
    text-align: left;
}
.product-carousel-track .service-card .btn {
    font-size: 0.85rem;
    white-space: nowrap;
}
.carousel-nav {
    background: var(--primary-blue);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.carousel-nav:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.1);
}
.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}
@media (max-width: 768px) {
    .product-carousel-track .service-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

/* --- FAQ Styles --- */
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-item summary::after {
    content: '+';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #1e4a9e;
    color: white;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item[open] summary::after {
    content: '\2212';
}
.faq-item summary h3 {
    margin: 0;
    flex: 1;
}

/* --- Breadcrumb --- */
.breadcrumb-nav {
    background: #f8fafc;
    padding: 12px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}
.breadcrumb-nav .container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.breadcrumb-nav a {
    color: #1e4a9e;
    text-decoration: none;
}
.breadcrumb-nav a:hover {
    text-decoration: underline;
}
.breadcrumb-nav span.separator {
    color: #94a3b8;
}
.breadcrumb-nav span.current {
    color: #64748b;
}

/* --- Nearby Locations Hover --- */
.nearby-locations a:hover {
    border-color: #1e4a9e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 74, 158, 0.15);
}

/* --- City Directory Grid (for state pages) --- */
.city-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.city-directory-grid a {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}
.city-directory-grid a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
