* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --accent: #4f46e5;
    --accent-light: #a5b4fc;
    --coral: #f43f5e;
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --border: #e2e8f0;
    --radius: 14px;
}
body { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); }

/* HERO */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 56px 24px 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79,70,229,0.12) 0%, transparent 60%);
}
.hero h1 {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 300;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
}
.hero h1 strong { font-weight: 600; color: var(--accent-light); }
.hero p {
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    color: #cbd5e1;
    margin-top: 12px;
    font-weight: 400;
    letter-spacing: 0.01em;
    position: relative;
}

/* SEARCH */
.search-wrap {
    max-width: 1100px;
    margin: -40px auto 0;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}
.search-bar {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.03);
    padding: 20px 24px;
}
.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}
@media (max-width: 700px) {
    .search-row { grid-template-columns: 1fr 1fr; }
    .search-row .field:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .search-row { grid-template-columns: 1fr; }
}
.field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 5px;
}
.field select, .field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
    appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.field select:focus, .field input:focus { outline: none; border-color: var(--accent); }
.btn-search {
    padding: 10px 28px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-search:hover { background: #3730a3; }
.btn-search:active { transform: scale(0.97); }
.geo-row { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.btn-geo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1.5px solid var(--coral);
    color: var(--coral);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-geo:hover { background: var(--coral); color: #fff; }
.btn-geo svg { width: 14px; height: 14px; }
.geo-status { font-size: 0.75rem; color: var(--text-muted); }

/* MAIN CONTENT */
.content {
    max-width: 1100px;
    margin: 32px auto 0;
    padding: 0 16px;
}
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    height: 620px;
}
@media (max-width: 800px) {
    .split {
        grid-template-columns: 1fr;
        height: auto;
    }
    .split .map-col { height: 350px; order: -1; }
    .split .list-col { height: 400px; }
}
.list-col {
    overflow-y: auto;
    padding-right: 8px;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.list-col::-webkit-scrollbar { width: 4px; }
.list-col::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.map-col { border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
#map { height: 100%; width: 100%; }

/* CARDS */
.doc-card {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
    position: relative;
    text-decoration: none;
    color: inherit;
}
.doc-card:last-child { border-bottom: none; }
.doc-card:hover { background: #f1f5f9; }
.doc-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.doc-card .spec { font-size: 0.8rem; color: var(--accent); font-weight: 500; margin-top: 2px; }
.doc-card .loc { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.doc-card .distance { position: absolute; top: 14px; right: 16px; font-size: 0.7rem; background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 10px; font-weight: 600; }

/* PAGINATION */
.pagination { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; padding: 16px 0; }
.pagination button {
    min-width: 32px; height: 32px;
    padding: 0 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}
.pagination button:hover { border-color: var(--accent); color: var(--accent); }
.pagination button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* SUGGEST FORM */
.suggest-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    padding: 24px;
}
.suggest-card h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.suggest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 700px) { .suggest-grid { grid-template-columns: 1fr; } }
.suggest-grid input {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
}
.suggest-grid input:focus { outline: none; border-color: var(--accent); }
.suggest-full { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.hp { position: absolute; left: -9999px; }
.btn-suggest {
    padding: 10px 24px;
    background: var(--coral);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-suggest:hover { background: #e11d48; }
#suggest-msg { font-size: 0.82rem; }
.msg-ok { color: #16a34a; }
.msg-err { color: #dc2626; }

/* FOOTER */
footer { margin-top: 60px; padding: 24px 16px; text-align: center; font-size: 0.78rem; color: var(--text-muted); }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* SEO landing / hub pages */
.seo-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.85rem;
}
.seo-topbar a { color: #a5b4fc; text-decoration: none; }
.seo-topbar a:hover { color: #fff; }
.seo-brand { font-weight: 600; color: #fff; }
.hero-compact { padding: 36px 24px 48px; text-align: left; }
.hero-compact .seo-crumbs { position: relative; margin-bottom: 16px; }
.seo-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 20px;
}
.seo-crumbs a { color: #a5b4fc; text-decoration: none; }
.seo-crumbs a:hover { text-decoration: underline; }
.seo-page { padding-bottom: 40px; }
.seo-intro, .seo-intro-inline {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.seo-chips h2, .seo-list h2, .seo-hub h2, .seo-faq h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 14px;
}
.seo-chips ul, .seo-link-grid {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.seo-chips a, .seo-link-grid a {
    display: inline-block;
    padding: 8px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    transition: border-color 0.15s, background 0.15s;
}
.seo-chips a:hover, .seo-link-grid a:hover {
    border-color: var(--accent);
    background: #eef2ff;
}
.seo-chips span, .seo-link-grid span { color: var(--text-muted); font-size: 0.8rem; }
.seo-doc-list { list-style: none; background: var(--surface); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,0.06); overflow: hidden; }
.seo-doc {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.seo-doc:last-child { border-bottom: none; }
.seo-doc:hover { background: #f1f5f9; }
.seo-doc-name { display: block; font-weight: 600; font-size: 0.95rem; }
.seo-doc-spec { display: block; color: var(--accent); font-size: 0.82rem; margin-top: 2px; }
.seo-doc-addr { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.seo-more { margin-top: 14px; font-size: 0.9rem; }
.seo-more a { color: var(--accent); text-decoration: none; }
.seo-more a:hover { text-decoration: underline; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
}
.faq-item p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}
.doctor-page { max-width: 760px; }
.doctor-card-block {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    padding: 28px 24px;
    margin-bottom: 24px;
}
.doctor-card-block h1 { font-size: 1.6rem; font-weight: 700; line-height: 1.25; }
.doctor-spec { color: var(--accent); font-weight: 500; margin-top: 8px; }
.doctor-lang { color: var(--text-muted); font-size: 0.85rem; margin-top: 6px; }
.doctor-facts { margin-top: 20px; display: grid; gap: 12px; }
.doctor-facts dt { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.doctor-facts dd { margin-top: 2px; font-size: 0.95rem; }
.doctor-facts a { color: var(--accent); text-decoration: none; }
.doctor-facts a:hover { text-decoration: underline; }
.doctor-blurb { margin-top: 20px; color: var(--text-muted); line-height: 1.6; font-size: 0.92rem; }
.doctor-map { border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

/* Guide / sources blocks (AdSense content quality) */
.seo-sources {
    margin: 28px 0;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.seo-sources h2 { font-size: 1rem; margin-bottom: 10px; }
.seo-sources ul { padding-left: 18px; margin: 0; }
.seo-sources li { margin: 6px 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.45; }
.seo-sources a { color: var(--accent); }
.seo-guide-block { margin: 24px 0; }
.seo-guide-block h2 { font-size: 1.15rem; margin-bottom: 12px; }
.seo-steps { padding-left: 20px; color: var(--text-muted); line-height: 1.65; font-size: 0.92rem; }
.seo-steps li { margin: 6px 0; }
.seo-steps a { color: var(--accent); }
.seo-guide-note { margin-top: 12px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.guide-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.guide-card {
    display: block;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}
.guide-card:hover { border-color: var(--accent); background: #eef2ff; }
.guide-card-title { display: block; font-weight: 600; font-size: 1rem; }
.guide-card-desc { display: block; margin-top: 6px; color: var(--text-muted); font-size: 0.88rem; line-height: 1.45; }
.guide-article h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 12px 0 8px; line-height: 1.25; }
.guide-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }
.guide-body { color: var(--text); line-height: 1.7; font-size: 1rem; }
.guide-body h2 { font-size: 1.15rem; margin: 28px 0 10px; }
.guide-body p, .guide-body li { color: var(--text-muted); margin-bottom: 12px; }
.guide-body ul, .guide-body ol { padding-left: 20px; margin-bottom: 14px; }
.guide-body a { color: var(--accent); }
