/* ============================================
   АВТОГАРА ПЛЕВЕН — Transit Modern Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---- ГЛОБАЛНИ ---- */
body { font-family: 'Inter', sans-serif !important; background: #eef2f7 !important; }

/* ---- HEADER — правилни Astra селектори ---- */
#ast-desktop-header,
.ast-primary-header-bar,
.ast-main-header-wrap,
.site-primary-header-wrap,
#masthead {
    background-color: #0d2137 !important;
    background: #0d2137 !important;
}
.ast-primary-header-bar { box-shadow: 0 3px 16px rgba(0,0,0,0.4) !important; }

/* Мобилен хедър */
#ast-mobile-header,
.ast-mobile-header-wrap,
.ast-header-break-point .ast-primary-header-bar {
    background-color: #0d2137 !important;
    background: #0d2137 !important;
}

/* ---- ЛОГО / ЗАГЛАВИЕ ---- */
.ast-site-identity,
[data-section="title_tagline"] { display: flex; align-items: center; }

.ast-site-identity .site-title,
.ast-site-identity .site-title a,
.site-title a,
#masthead .site-title a {
    color: #f4a61c !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.site-description,
.ast-site-identity .site-description {
    color: #7a9fc0 !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---- НАВИГАЦИЯ desktop ---- */
.ast-builder-menu-1 .menu-item > a,
.ast-builder-menu-1 .menu-link,
.main-header-bar .main-navigation a,
.main-navigation .ast-menu-toggle,
#site-navigation a {
    color: #c8d8e8 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 8px 14px !important;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.ast-builder-menu-1 .menu-item > a:hover,
.ast-builder-menu-1 .current-menu-item > a,
.main-navigation .current-menu-item > a {
    color: #f4a61c !important;
    border-bottom-color: #f4a61c !important;
    background: transparent !important;
}

/* ---- НАВИГАЦИЯ mobile ---- */
.ast-mobile-menu-buttons button,
.ast-mobile-menu-buttons .menu-toggle,
.ast-mobile-menu-buttons span,
.ast-mobile-menu-buttons svg { color: #ffffff !important; fill: #ffffff !important; }

.ast-header-break-point .main-navigation,
.ast-header-break-point .ast-main-header-bar-navigation,
#ast-mobile-header .main-navigation {
    background: #0d2137 !important;
    border-top: 2px solid #f4a61c;
}
.ast-header-break-point .main-navigation .menu-item > a,
#ast-mobile-header .main-navigation a {
    color: #c8d8e8 !important;
    font-size: 15px !important;
    font-weight: 600;
    padding: 14px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    text-transform: uppercase;
}
.ast-header-break-point .main-navigation .menu-item > a:hover {
    color: #f4a61c !important;
    background: rgba(244,166,28,0.1) !important;
}

/* ---- MAIN CONTENT ---- */
.ast-article-post, .entry-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 24px !important;
}
.entry-content h1, .entry-content h2 {
    color: #0d2137;
    font-weight: 700;
    border-bottom: 3px solid #f4a61c;
    padding-bottom: 8px;
}

/* ---- NINJA TABLES — ТАБЛО ---- */
.ninja-table-wrapper { border-radius: 8px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.15); margin: 20px 0 !important; }
.ninja-table-wrapper table { width: 100% !important; border-collapse: collapse; background: #0d2137; }
.ninja-table-wrapper thead th {
    background: #f4a61c !important; color: #0d2137 !important;
    padding: 12px 16px !important; font-weight: 800 !important;
    font-size: 13px !important; text-transform: uppercase; letter-spacing: 0.8px; border: none !important;
}
.ninja-table-wrapper tbody tr { border-bottom: 1px solid #1e3a55; }
.ninja-table-wrapper tbody tr:nth-child(even) { background: #0f2942 !important; }
.ninja-table-wrapper tbody tr:nth-child(odd) { background: #0d2137 !important; }
.ninja-table-wrapper tbody tr:hover { background: #1a4a70 !important; }
.ninja-table-wrapper tbody td { padding: 10px 16px !important; color: #e0eaf5 !important; font-size: 14px !important; border: none !important; }
.ninja-table-wrapper tbody td:first-child { color: #f4a61c !important; font-weight: 700 !important; font-size: 15px !important; }

/* ---- FOOTER ---- */
#colophon, .site-footer, .ast-small-footer { background: #0d2137 !important; color: #7a9fc0 !important; }
.ast-footer-copyright, .ast-footer-copyright a { color: #7a9fc0 !important; }
.ast-footer-copyright a:hover { color: #f4a61c !important; }

/* ---- INFO BAR ---- */
.ag-info-bar {
    display: flex; flex-wrap: wrap; gap: 20px; align-items: center;
    background: #0d2137; color: #e0eaf5;
    padding: 12px 20px; border-radius: 8px; margin-bottom: 16px; font-size: 15px;
}
.ag-info-bar strong { color: #f4a61c; }

/* ---- ЗАБЕЛЕЖКА ---- */
.ag-notice {
    background: #fff8e6; border-left: 5px solid #f4a61c;
    border-radius: 6px; padding: 14px 18px; font-size: 14px;
    color: #3a4a5c; line-height: 1.6; margin-bottom: 20px;
}
.ag-notice strong { color: #0d2137; }

/* ---- УСЛУГИ ---- */
.ag-services {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; margin-bottom: 24px;
}
.ag-service-item {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; background: #ffffff;
    border: 1px solid #dce8f0; border-radius: 10px; padding: 18px 12px; gap: 6px;
    transition: box-shadow 0.2s, transform 0.2s;
}
.ag-service-item:hover { box-shadow: 0 6px 18px rgba(13,33,55,0.12); transform: translateY(-3px); }
.ag-service-icon { font-size: 28px; line-height: 1; }
.ag-service-item strong { color: #0d2137; font-size: 13px; font-weight: 700; }
.ag-service-item span:last-child { color: #6a7a8a; font-size: 12px; }

/* ---- MOBILE ---- */
@media (max-width: 768px) {
    .ag-info-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ag-services { grid-template-columns: repeat(2, 1fr); }
    .ast-article-post, .entry-content { padding: 16px !important; border-radius: 0; }
    .ninja-table-wrapper tbody td { padding: 8px 10px !important; font-size: 13px !important; }
    .ninja-table-wrapper thead th { padding: 10px !important; font-size: 12px !important; }
}

/* ============================================
   ОБЩИ УСЛОВИЯ — секции
   ============================================ */

.ou-section {
    background: #ffffff;
    border-radius: 8px;
    border-left: 4px solid #0d2137;
    padding: 18px 22px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.ou-section h3 {
    color: #0d2137 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    border: none !important;
}
.ou-section ul {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
}
.ou-section ul li {
    padding: 5px 0 5px 4px;
    border-bottom: 1px solid #f0f4f8;
    font-size: 14px;
    color: #3a4a5c;
    line-height: 1.6;
}
.ou-section ul li:last-child { border-bottom: none; }
.ou-section p { color: #3a4a5c; font-size: 14px; line-height: 1.6; margin: 0; }

.ou-warning {
    background: #fff3cd;
    border: 1px solid #f4a61c;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
    color: #6a4a00;
    margin-bottom: 12px;
}

.ou-contact {
    background: #0d2137;
    color: #e0eaf5;
    border-radius: 8px;
    padding: 16px 22px;
    font-size: 15px;
    margin-top: 20px;
    text-align: center;
}
.ou-contact strong { color: #f4a61c; }

/* ============================================
   ПРЕВОЗВАЧИ — карти
   ============================================ */

.pv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 20px 0;
}

.pv-card {
    background: #ffffff;
    border-radius: 10px;
    border-top: 4px solid #0d2137;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pv-card:hover {
    box-shadow: 0 8px 24px rgba(13,33,55,0.14);
    transform: translateY(-3px);
}
.pv-card.pv-featured { border-top-color: #f4a61c; }

.pv-name {
    font-size: 14px;
    font-weight: 700;
    color: #0d2137;
    line-height: 1.4;
}
.pv-city {
    font-size: 13px;
    color: #6a7a8a;
}
.pv-phones {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}
.pv-phones a {
    display: inline-block;
    background: #eef2f7;
    color: #0d2137 !important;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: background 0.2s, color 0.2s;
}
.pv-phones a:hover {
    background: #f4a61c !important;
    color: #0d2137 !important;
}
.pv-extra {
    font-size: 12px;
    color: #3a4a5c;
    border-top: 1px solid #eef2f7;
    padding-top: 8px;
    margin-top: 4px;
}
.pv-extra a { color: #0d2137 !important; font-weight: 700; }

@media (max-width: 900px) {
    .pv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .pv-grid { grid-template-columns: 1fr; }
    .pv-phones a { font-size: 15px; padding: 8px 12px; }
}

/* ---- FOOTER CREDIT ---- */
.ag-footer-credit {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #071524;
    color: #5a7a9a;
    font-size: 11px;
    text-align: center;
    padding: 5px 16px;
    z-index: 100;
}
.ag-footer-credit a { color: #f4a61c !important; text-decoration: none; font-weight: 600; }
.ag-footer-credit a:hover { color: #ffffff !important; }

/* ============================================
   КОРЕКЦИИ — мобилно меню, footer, info bar
   ============================================ */

/* ---- МОБИЛНО МЕНЮ — по-добър контраст ---- */
#ast-mobile-header,
#ast-mobile-header .ast-primary-header-bar,
.ast-mobile-header-wrap {
    background-color: #0d2137 !important;
}
/* Хамбургер бутон */
.menu-toggle.main-header-menu-toggle,
.menu-toggle.main-header-menu-toggle span,
.mobile-menu-toggle-icon,
.mobile-menu-toggle-icon span {
    color: #ffffff !important;
    background: transparent;
}
.menu-toggle .ast-icon svg, .menu-toggle svg { fill: #ffffff !important; stroke: #ffffff; }

/* Мобилни менюта — бял текст, ясен контраст */
#ast-mobile-site-navigation .menu-item a,
.ast-builder-menu-mobile .menu-item > a,
.ast-mobile-header-content .menu-item > a,
#ast-mobile-header .menu-item > a {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 20px !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    display: block;
    background: transparent !important;
}
#ast-mobile-site-navigation .menu-item a:hover,
.ast-builder-menu-mobile .menu-item > a:hover,
#ast-mobile-header .menu-item > a:hover,
#ast-mobile-header .current-menu-item > a {
    color: #f4a61c !important;
    background: rgba(244,166,28,0.08) !important;
    padding-left: 26px !important;
}

/* ---- FOOTER CREDIT — по-голям, по-четлив ---- */
.ag-footer-credit {
    background: #071524 !important;
    color: #c8d8e8 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-align: center;
    padding: 8px 16px !important;
}
.ag-footer-credit a {
    color: #f4a61c !important;
    font-weight: 700 !important;
    text-decoration: none;
}
.ag-footer-credit a:hover { color: #ffffff !important; }

/* ---- COPYRIGHT ---- */
.ast-footer-copyright p { color: #8aaac8 !important; font-size: 13px; }
.ast-footer-copyright strong { color: #c8d8e8 !important; }

/* ---- INFO BAR — адрес ---- */
.ag-info-bar { flex-wrap: wrap; }

@media (max-width: 600px) {
    .ag-info-bar span { font-size: 13px; }
}

/* ============================================
   МОБИЛНО МЕНЮ — dropdown фон и текст
   ============================================ */

/* Контейнер на dropdown-а когато е отворен */
.ast-mobile-header-wrap .ast-mobile-header-content,
.ast-main-header-nav-open .ast-mobile-header-wrap .ast-mobile-header-content,
.ast-header-break-point .ast-mobile-header-wrap .ast-mobile-header-content,
#ast-mobile-header .ast-mobile-header-content {
    background-color: #0d2137 !important;
    background: #0d2137 !important;
    border-top: 3px solid #f4a61c !important;
}

/* Всички линкове вътре */
.ast-mobile-header-content .menu-item a,
.ast-mobile-header-content .menu-item > a,
.ast-mobile-header-content nav a,
.ast-mobile-header-content .main-navigation a,
#ast-mobile-site-navigation a,
#ast-mobile-site-navigation .menu-item > a {
    color: #ffffff !important;
    background-color: transparent !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    display: block !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    text-decoration: none !important;
}

/* Hover */
.ast-mobile-header-content .menu-item a:hover,
.ast-mobile-header-content nav a:hover,
#ast-mobile-site-navigation .menu-item > a:hover,
.ast-mobile-header-content .current-menu-item > a {
    color: #f4a61c !important;
    background-color: rgba(244,166,28,0.08) !important;
    padding-left: 32px !important;
}

/* Хамбургер иконка — бяла */
.menu-toggle .ast-icon,
.menu-toggle .ast-icon svg,
.menu-toggle svg,
button.menu-toggle,
button.menu-toggle span {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* ============================================
   МОБИЛНО МЕНЮ — максимална специфичност
   ============================================ */

/* CSS Variable override за мобилен фон */
#ast-mobile-header { --ast-mobile-nav-bg: #0d2137; }

/* Всички комбинации от селектори */
#ast-mobile-header.ast-mobile-header-wrap,
div#ast-mobile-header,
div#ast-mobile-header .ast-mobile-header-content,
div#ast-mobile-header > .ast-mobile-header-content,
.ast-mobile-header-wrap > .ast-mobile-header-content,
body .ast-mobile-header-content,
body #ast-mobile-header .ast-mobile-header-content {
    background: #0d2137 !important;
    background-color: #0d2137 !important;
    border-top: 3px solid #f4a61c !important;
}

/* При отворено меню */
body.ast-main-header-nav-open #ast-mobile-header,
body.ast-main-header-nav-open .ast-mobile-header-wrap,
body.ast-main-header-nav-open .ast-mobile-header-content,
body.ast-header-break-point.ast-main-header-nav-open #ast-mobile-header .ast-mobile-header-content {
    background: #0d2137 !important;
    background-color: #0d2137 !important;
}

/* Навигацията вътре */
body #ast-mobile-header nav,
body #ast-mobile-header .main-navigation,
body #ast-mobile-header #ast-mobile-site-navigation,
body .ast-mobile-header-content nav,
body .ast-mobile-header-content .main-navigation {
    background: #0d2137 !important;
}

/* Линковете */
body #ast-mobile-header .menu-item a,
body #ast-mobile-header nav a,
body .ast-mobile-header-content .menu-item > a,
body .ast-mobile-header-content nav a,
body #ast-mobile-site-navigation .menu-item > a {
    color: #ffffff !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    border-bottom: 1px solid rgba(255,255,255,0.12) !important;
    display: block !important;
}
body #ast-mobile-header .menu-item a:hover,
body .ast-mobile-header-content .menu-item > a:hover,
body #ast-mobile-site-navigation .current-menu-item > a {
    color: #f4a61c !important;
    background: rgba(244,166,28,0.08) !important;
}
