/* Анимации при поява */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    animation: fadeUp 0.45s ease-out both;
}

/* Горен команден център (Command Bar) */
.command-hero {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 0 0;
    color: #0f172a;
    margin-bottom: 10px;
}

.command-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.command-hero-badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.command-hero h1 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

.command-search-box {
    background: #ffffff;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.command-search-box input[type="text"],
.command-search-box select {
    flex: 1 1 220px;
    margin: 0;
    height: 42px !important;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 14px;
    color: #1e293b;
}

.command-search-box input[type="text"]:focus,
.command-search-box select:focus {
    background: #ffffff;
    border-color: #0284c7;
}

.command-search-box button {
    height: 42px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    background: #0284c7;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    transition: background 0.18s ease;
}

.command-search-box button:hover {
    background: #0369a1;
}

/* Интерактивна карта на България с SVG подсветка и Tooltip */
.interactive-map-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.map-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.map-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.map-status-pill.active-region {
    background: linear-gradient(135deg, #0284c7, #0d9488);
    color: #fff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
}

.bg-map-stage {
    position: relative;
    background: radial-gradient(circle at center, #f0f9ff 0%, #f8fafc 100%);
    border: 1px solid #bae6fd;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.bg-map-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    line-height: 0;
}

.bg-map-wrapper img[usemap] {
    border: 0;
    height: auto;
    max-width: 100%;
    width: auto;
    display: block;
    border-radius: 8px;
    transition: filter 0.25s ease;
}

#mapHighlightSvg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

#mapHighlightPoly {
    fill: rgba(2, 132, 199, 0.34);
    stroke: #0284c7;
    stroke-width: 2.5;
    stroke-linejoin: round;
    opacity: 0;
    transition: opacity 0.16s ease;
    filter: drop-shadow(0 0 6px rgba(2, 132, 199, 0.55));
}

#mapHighlightPoly.visible {
    opacity: 1;
}

.map-floating-tooltip {
    position: fixed;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.14s ease, transform 0.14s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(56, 189, 248, 0.4);
    white-space: nowrap;
}

.map-floating-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.map-floating-tooltip small {
    display: block;
    font-weight: 500;
    font-size: 11px;
    color: #38bdf8;
}

/* 2x2 Grid за Препоръчани клиники и специалисти */
.featured-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 16px;
}

@media (max-width: 680px) {
    .featured-grid-2col { grid-template-columns: 1fr; }
}

.pro-doc-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-doc-card:hover {
    background: #ffffff;
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 16px 30px -8px rgba(2, 132, 199, 0.16);
}

.pro-doc-cover {
    position: relative;
    height: 220px;
    background: #e2e8f0;
    overflow: hidden;
}

.pro-doc-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.pro-doc-card:hover .pro-doc-cover img {
    transform: scale(1.05);
}

.pro-doc-type {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.pro-doc-nhif {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.pro-doc-nhif.yes { background: #dcfce7; color: #166534; }
.pro-doc-nhif.no { background: #f1f5f9; color: #475569; }

.pro-doc-body {
    padding: 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pro-doc-body h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}

.pro-doc-spec {
    font-size: 13px;
    color: #0369a1;
    font-weight: 600;
    margin-bottom: 8px;
}

.pro-doc-addr {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
    flex: 1;
}

/* Речник и списъци */
.dict-chips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

@media (max-width: 768px) {
    .dict-chips-grid { grid-template-columns: repeat(2, 1fr); }
}

.dict-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    transition: all 0.18s ease;
}

.dict-chip:hover {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #0284c7;
    transform: translateY(-2px);
}

.modern-list-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 8px;
    transition: background 0.18s ease, padding-left 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.modern-list-item:hover {
    background: #f0f9ff;
    padding-left: 16px;
}

.modern-list-item:last-child {
    border-bottom: 0;
}

.cat-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-link-list li {
    margin-bottom: 5px;
}

.cat-link-list a {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    color: #334155;
    padding: 5px 8px;
    border-radius: 8px;
}

.cat-link-list a:hover {
    background: #f0f9ff;
    color: #0284c7;
}

/* Тагове "По градове" в компактен облак */
.widget .tag-cloud {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.widget .tag-cloud li.linkove {
    display: inline-block;
    float: none;
    margin: 0;
    padding: 0;
    width: auto;
}

.widget .tag-cloud li.linkove a.btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 6px;
    background: #0284c7;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.widget .tag-cloud li.linkove a.btn:hover,
.widget .tag-cloud li.linkove a.btn:focus {
    background: #0369a1;
    color: #ffffff;
    transform: translateY(-1px);
}

@media screen and (max-width: 800px) {
    #menu_browser, #menu_browser1, #menu_browser2 {
        display: none;
    }
}
.verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 8px;
    width: fit-content;
}
.verify-badge.is-verified {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.verify-badge.is-unverified {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}