/* ══ LIST ══ */

/* ══ HERO ═════════════════════════════════════════════════════════ */
.home-hero {
    background: linear-gradient(135deg, #0f1923 0%, #1a2c3d 60%, #0d2137 100%);
    margin: -20px -20px 24px;
    padding: 32px 28px 28px;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M20 20.5V18H0v5h5v5H0v5h20v-5h15v-5H20z'/%3E%3C/g%3E%3C/svg%3E");
}
.home-hero-content { position: relative; z-index: 1; }
.home-hero h1 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: normal;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.25;
}
.home-hero h1 em { color: #5b9bd5; font-style: normal; }
.home-hero p {
    font-size: 13px;
    color: #7fa8c8;
    margin: 0 0 20px;
    line-height: 1.6;
}
.stats-row { display: flex; gap: 16px; align-items: flex-start; }
.stats-left { display: flex; gap: 10px; flex-shrink: 0; }
.hero-seo-text {
    font-size: 12px;
    color: #b8cfe0;
    line-height: 1.6;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 10px 14px;
    flex: 1;
    background: rgba(255,255,255,0.06);
}
.stat-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 9px 16px;
    text-decoration: none;
    transition: background .15s;
    text-align: center;
    min-width: 80px;
}
.stat-card:hover { background: rgba(255,255,255,0.13); }
.stat-number { font-size: 20px; font-weight: bold; color: #fff; font-family: var(--serif); display: block; }
.stat-label { font-size: 10px; color: #7fa8c8; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 1px; display: block; }

/* ══ ТЕГ РЕГІОНУ ════════════════════════════════════════════════ */
.geo-tag {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid #d0d7e0;
    border-radius: 20px;
    font-size: 13px;
    color: #1a3a5c;
    text-decoration: none;
    background: #f8fafc;
    transition: background .12s, border-color .12s;
}
.geo-tag:hover { background: #e8f0fb; border-color: #a8c0e0; }

/* ══ СЕКЦІЯ ══════════════════════════════════════════════════════ */
.section-head {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #333;
    margin: 0 0 14px;
    padding: 0 0 0 10px;
    border-left: 3px solid #e67e22;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ══ ФІЛЬТР РЕГІОНІВ ════════════════════════════════════════════ */
.region-tabs-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 16px;
}
.region-tabs-wrap::-webkit-scrollbar { display: none; }
.region-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    min-width: max-content;
}
.region-tab {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 7px 14px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: color .15s;
}
.region-tab:hover { color: var(--link); }
.region-tab.active {
    color: var(--link);
    border-bottom-color: #e67e22;
    font-weight: 600;
}

/* ══ СІТКА КРАЇН ════════════════════════════════════════════════ */
.country-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.country-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    transition: background .12s;
}
.country-row:hover { background: #f0f4fb; }
.country-grid-4 .country-row:nth-child(4n) { border-right: none; }
.country-flag {
    width: 34px;
    height: 23px;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
    border-radius: 2px;
}
.country-flag-ph {
    width: 34px;
    height: 23px;
    background: #eee;
    border: 1px solid #ddd;
    flex-shrink: 0;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}
.country-name {
    font-size: 14px;
    color: #1a3a5c;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
    font-weight: 500;
}
.country-name small {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-family: var(--sans);
    margin-top: 1px;
}

/* ══ ФОТО-КАРТКИ ════════════════════════════════════════════════ */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 0;
}
.photo-card { text-decoration: none; display: block; border-radius: 8px; overflow: hidden; background: #ddd; }
.photo-card-inner { position: relative; width: 100%; padding-top: 100%; overflow: hidden; }
.photo-card-inner img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.photo-card:hover .photo-card-inner img { transform: scale(1.06); }
.photo-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent 0%, rgba(0,0,0,0.75) 100%); padding: 32px 10px 10px; }
.photo-card-name { color: #fff; font-family: var(--serif); font-size: 14px; font-weight: bold; line-height: 1.25; display: block; }
.photo-card-sub { color: rgba(255,255,255,0.78); font-size: 11px; font-family: var(--sans); display: block; margin-top: 2px; }
.photo-card-placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #c8d6e5, #a8b8cc); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.photo-section-footer { margin-top: 14px; margin-bottom: 28px; }
.btn-all { display: inline-flex; align-items: center; gap: 8px; padding: 9px 20px; border: 1px solid #e0e0e0; border-radius: 24px; font-size: 14px; color: #333; text-decoration: none; font-family: var(--sans); background: #f5f5f5; transition: background .15s, border-color .15s; }
.btn-all::after { content: '›'; font-size: 18px; line-height: 1; }
.btn-all:hover { background: #ebebeb; border-color: #ccc; }

@media (max-width: 768px) {
    .home-hero { margin: -14px -14px 18px; padding: 18px 14px 16px; }
    .home-hero h1 { font-size: 20px; }
    .home-hero p { font-size: 12px; margin-bottom: 12px; }
    .stats-row { flex-direction: column; gap: 10px; }
    .stats-left { width: 100%; }
    .stat-card { flex: 1; min-width: 0; }
    .hero-seo-text { display: block; font-size: 10px; padding: 8px 10px; line-height: 1.5; }
    .country-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .country-grid-4 .country-row:nth-child(4n) { border-right: 1px solid var(--border-light); }
    .country-grid-4 .country-row:nth-child(2n) { border-right: none; }
    .region-tab { padding: 6px 10px; font-size: 12px; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ══ DETAIL ══ */

/* ══ HERO ══════════════════════════════════════════════════════════ */
.country-hero {
    background-color: #0d1f2e;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    margin: -20px -20px 24px;
    padding: 28px 28px 24px;
    position: relative;
    overflow: hidden;
}
.country-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(8,18,32,0.95) 0%, rgba(8,18,32,0.80) 40%, rgba(8,18,32,0.35) 70%, rgba(8,18,32,0.10) 100%);
}
.country-hero-content { position: relative; z-index: 1; }
.country-hero-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}
.country-hero-flag {
    width: 56px;
    height: 38px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    flex-shrink: 0;
}
.country-hero-flag-ph {
    width: 56px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 3px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.country-hero h1 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: normal;
    color: #fff;
    margin: 0;
    line-height: 1.25;
}
.country-hero-sub {
    font-size: 13px;
    color: #7fa8c8;
    margin: 8px 0 16px;
    line-height: 1.6;
}
.country-stats-row { display: flex; gap: 10px; align-items: flex-start; }
.country-stats-left { display: flex; gap: 10px; flex-shrink: 0; }
.country-stat-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 9px 16px;
    text-align: center;
    min-width: 72px;
    text-decoration: none;
    transition: background .15s;
}
.country-stat-card:hover { background: rgba(255,255,255,0.13); }
.country-stat-number { font-size: 20px; font-weight: bold; color: #fff; font-family: var(--serif); display: block; }
.country-stat-label { font-size: 10px; color: #7fa8c8; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 1px; display: block; }
.country-hero-seo {
    font-size: 12px;
    color: #b8cfe0;
    line-height: 1.6;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 10px 14px;
    flex: 1;
    background: rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
    .country-hero { margin: -14px -14px 18px; padding: 18px 14px 16px; }
    .country-hero h1 { font-size: 20px; }
    .country-hero-sub { font-size: 12px; margin-bottom: 10px; }
    .country-stats-row { flex-direction: column; gap: 8px; }
    .country-stats-left { width: 100%; }
    .country-stat-card { flex: 1; min-width: 0; }
    .country-hero-seo { font-size: 10px; padding: 8px 10px; }
}

/* ── Інфокарточка країни — показується на мобільному у контенті ── */
.country-infocard {
    display: none;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    margin-bottom: 20px;
    background: var(--surface);
    overflow: hidden;
}
.country-infocard-symbols {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-light);
}
.country-infocard-symbol {
    text-align: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
}
.country-infocard-symbol:last-child { border-bottom: none; }
.country-infocard-symbol img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-height: 160px;
    object-fit: contain;
}
.country-infocard-symbol span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
    font-family: var(--sans, sans-serif);
}
.country-infocard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.country-infocard-table td {
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    line-height: 1.4;
}
.country-infocard-table tr:last-child td { border-bottom: none; }
.country-infocard-table td:first-child {
    color: var(--text-muted);
    width: 42%;
    font-family: var(--sans, sans-serif);
}
.country-infocard-table td:last-child { font-weight: 500; }

@media (max-width: 768px) {
    .country-infocard { display: block; }
}

.country-content figure:first-of-type { clear: both !important; }
@media (max-width: 640px) {
    #country-toc { float: none !important; margin: 0 0 16px 0 !important; max-width: 100% !important; }
}

/* ── FAQ BLOCK ─────────────────────────────────────────────────── */
.faq-block { margin: 40px 0; }
.faq-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.faq-list { border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
    width: 100%; background: #fff; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; font-size: 16px; font-weight: 600;
    color: var(--text); text-align: left; gap: 16px; font-family: inherit;
    transition: background .15s;
}
.faq-question:hover { background: #f5f8ff; }
.faq-question[aria-expanded=true] { background: #f5f8ff; color: var(--accent); }
.faq-toggle {
    flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
    background: var(--accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 300; line-height: 1;
    transition: background .15s;
}
.faq-question[aria-expanded=true] .faq-toggle { background: #e53935; }
.faq-answer {
    display: none !important; padding: 0 20px 18px; font-size: 15px;
    color: var(--text-muted); line-height: 1.75; background: #f5f8ff;
    border-top: 1px solid #e3eaff;
}
.faq-answer.open { display: block !important; }

/* ══ БРОНЮВАННЯ ══════════════════════════════════════════════════ */
.booking-section { margin: 32px 0 8px; padding-top: 24px; border-top: 2px solid var(--border-light); }
.booking-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.booking-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--border-light); border-radius: 8px; text-decoration: none; color: var(--text-main); background: var(--surface); transition: box-shadow .15s, transform .15s; }
.booking-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.10); transform: translateY(-2px); text-decoration: none; }
.booking-card-logo { display: flex; align-items: center; gap: 8px; }
.booking-card-icon { font-size: 22px; }
.booking-card-brand { font-size: 17px; font-weight: 700; font-family: var(--sans, sans-serif); }
.booking-card-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; flex: 1; }
.booking-card-btn { margin-top: 4px; font-size: 13px; font-weight: 600; color: #3366cc; }
.booking-card--booking { border-top: 3px solid #003580; }
.booking-card--skyscanner { border-top: 3px solid #0770e3; }
.booking-card--gyg { border-top: 3px solid #ff5533; }
@media (max-width: 600px) { .booking-cards { grid-template-columns: 1fr; } }
