/* ══ LIST ══ */

/* ══ HERO ═══════════════════════════════════════════════════════════ */
.home-hero {
    background: linear-gradient(135deg, #0f1923 0%, #1a2c3d 60%, #0d2137 100%);
    margin: -20px -20px 28px;
    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; }
.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; }
.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);
}

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

/* ══ ПОПУЛЯРНІ НАПРЯМКИ ══════════════════════════════════════════════ */
.popular-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 32px;
}
.popular-card {
    text-decoration: none;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #c8d6e5;
    position: relative;
}
.popular-card-inner {
    position: relative;
    width: 100%;
    padding-top: 65%;
    overflow: hidden;
}
.popular-card-inner img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.popular-card:hover .popular-card-inner img { transform: scale(1.07); }
.popular-card-inner::after { content:''; position:absolute; inset:0; background:rgba(0,0,0,0); transition:background .3s; pointer-events:none; }
.popular-card:hover .popular-card-inner::after { background:rgba(0,0,0,0.18); }
.popular-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.72) 100%);
    padding: 28px 12px 11px;
}
.popular-card-name {
    color: #fff;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: bold;
    display: block;
    line-height: 1.2;
}
.popular-card-sub {
    color: rgba(255,255,255,0.72);
    font-size: 11px;
    font-family: var(--sans);
    display: block;
    margin-top: 2px;
}
.popular-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: 36px;
}

/* ══ РЕГІОН-ТАБИ ═════════════════════════════════════════════════════ */
.region-tabs-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 0;
}
.region-tabs-wrap::-webkit-scrollbar { display: none; }
.region-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 16px;
    min-width: max-content;
    white-space: nowrap;
}
.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;
    cursor: pointer;
    background: none;
    border-top: none; border-left: none; border-right: none;
    transition: color .15s;
    white-space: nowrap;
}
.region-tab:hover { color: var(--link); }
.region-tab.active {
    color: var(--link);
    border-bottom-color: #e67e22;
    font-weight: 600;
}

/* ══ СІТКА ФОТО-КАРТОК ════════════════════════════════════════════════ */
.city-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.city-photo-card {
    text-decoration: none;
    display: block;
    border-radius: 7px;
    overflow: hidden;
    background: #c8d6e5;
}
.city-photo-card-inner {
    position: relative;
    width: 100%;
    padding-top: 68%;
    overflow: hidden;
}
.city-photo-card-inner img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.city-photo-card:hover .city-photo-card-inner img { transform: scale(1.06); }
.city-photo-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.68) 100%);
    padding: 24px 9px 9px;
}
.city-photo-card-name {
    color: #fff;
    font-size: 13px;
    font-family: var(--serif);
    font-weight: bold;
    display: block;
    line-height: 1.2;
}
.city-photo-card-sub {
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    font-family: var(--sans);
    display: block;
    margin-top: 1px;
}

/* ══ ТЕКСТОВИЙ СПИСОК ════════════════════════════════════════════════ */
.text-cities-label {
    font-size: 11px;
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}
.city-text-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.city-text-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    transition: background .12s;
}
.city-text-row:hover { background: #f0f4fb; }
.city-text-grid .city-text-row:nth-child(3n) { border-right: none; }
.city-text-name {
    font-size: 13px;
    color: #1a3a5c;
    font-weight: 500;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.city-text-country {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80px;
}

/* ══ МОБІЛЬНИЙ ═══════════════════════════════════════════════════════ */
@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; }
    .popular-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .city-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .city-text-grid { grid-template-columns: repeat(2, 1fr); }
    .city-text-grid .city-text-row:nth-child(3n) { border-right: 1px solid var(--border-light); }
    .city-text-grid .city-text-row:nth-child(2n) { border-right: none; }
    .region-tab { padding: 6px 10px; font-size: 12px; }
}

/* ══ DETAIL ══ */

.booking-section { margin: 32px 0 8px; padding-top: 24px; border-top: 2px solid var(--border-light); }
.booking-section-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; color: var(--text-main); }
.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; } }
@media (max-width: 640px) {
  .city-toc-float { float: none !important; max-width: 100% !important; margin: 0 0 16px 0 !important; }
  .city-cover-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px !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; }

.map-btn {
    display: block;
    text-align: center;
    padding: 8px 12px;
    background: #e8f4fd;
    color: #1a73e8;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.map-btn:hover { background: #d0e8fa; }
