/* NearbyScan Frontend Styles */

/* ── Centers grid ───────────────────────────────────────── */
.nh-centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.nh-center-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    transition: box-shadow 0.2s;
}

.nh-center-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.nh-center-card--featured {
    border-color: #3b82f6;
    border-width: 2px;
}

.nh-center-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
}

.nh-center-card__address,
.nh-center-card__timings {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.4;
}

.nh-center-card__address svg,
.nh-center-card__timings svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #9ca3af;
}

/* Rating */
.nh-center-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
}

.nh-stars {
    color: #f59e0b;
    font-size: 14px;
    letter-spacing: 1px;
}

.nh-center-card__rating-text {
    font-size: 12px;
    color: #6b7280;
}

/* Services */
.nh-center-card__services {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 14px;
}

.nh-service-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Actions */
.nh-center-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.nh-badge--recommended {
    position: absolute;
    top: -1px;
    right: 16px;
    background: #3b82f6;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 0 0 6px 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Buttons ─────────────────────────────────────────────── */
.nh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    flex: 1;
}

.nh-btn--primary {
    background: #2563eb;
    color: #fff;
    border: none;
}

.nh-btn--primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.nh-btn--outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}

.nh-btn--outline:hover {
    background: #f9fafb;
    color: #374151;
}

/* ── Price table ─────────────────────────────────────────── */
.nh-price-table-wrap { margin: 24px 0; }

.nh-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nh-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.nh-price-table th {
    background: #1e3a5f;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nh-price-table td {
    padding: 11px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.nh-price-table tbody tr:nth-child(even) td {
    background: #f9fafb;
}

.nh-price-table tbody tr:hover td {
    background: #eff6ff;
}

.nh-price-cell {
    font-weight: 700;
    color: #1d4ed8;
}

.nh-price-disclaimer {
    font-size: 12px;
    color: #9ca3af;
    margin: 8px 0 0;
    font-style: italic;
}

/* ── FAQ block ───────────────────────────────────────────── */
.nh-faq {
    margin: 24px 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.nh-faq__item {
    border-bottom: 1px solid #f3f4f6;
}

.nh-faq__item:last-child { border-bottom: none; }

.nh-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    transition: background 0.1s;
}

.nh-faq__question:hover { background: #f9fafb; }

.nh-faq__question[aria-expanded="true"] { background: #eff6ff; color: #1d4ed8; }

.nh-faq__chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.nh-faq__question[aria-expanded="true"] .nh-faq__chevron {
    transform: rotate(180deg);
}

.nh-faq__answer {
    padding: 0 20px 16px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
}

/* ── Nearby locations ────────────────────────────────────── */
.nh-nearby-locations { margin: 24px 0; }

.nh-nearby-locations__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nh-nearby-locations__link {
    display: inline-block;
    padding: 6px 14px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 99px;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.15s;
}

.nh-nearby-locations__link:hover {
    background: #2563eb;
    color: #fff;
}

/* ── No results ──────────────────────────────────────────── */
.nh-no-results {
    color: #9ca3af;
    font-style: italic;
    padding: 20px 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
    .nh-centers-grid {
        grid-template-columns: 1fr;
    }

    .nh-center-card__actions {
        flex-direction: column;
    }

    .nh-price-table th,
    .nh-price-table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}
