/* ══ 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; }

/* ═─ СЕКЦІЯ ─══════════════════════════════════════════════════════ */
.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;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}
.region-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    background: #1a2a3a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: transform .2s, box-shadow .2s;
}
.region-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.region-card-img-wrap {
    position: relative;
    padding-top: 58%;
    overflow: hidden;
}
.region-card-img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
    opacity: 0.75;
}
.region-card:hover .region-card-img-wrap img {
    transform: scale(1.05);
    opacity: 0.85;
}
.region-card-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.region-card-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a3a5c, #2d5986);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.region-card-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 14px 16px;
}
.region-card-name {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    display: block;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.region-card-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
}
.region-card-count {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    font-family: var(--sans);
}
.region-card-children {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}
.region-card-tag {
    font-size: 10px;
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
    padding: 2px 6px;
    font-family: var(--sans);
}
/* Градієнти для регіонів без фото */
.region-ph-aziya            { background: linear-gradient(135deg, #1a3a5c, #c0392b); }
.region-ph-yevropa          { background: linear-gradient(135deg, #1a3a5c, #2980b9); }
.region-ph-afrika           { background: linear-gradient(135deg, #7d3c00, #e67e22); }
.region-ph-okeaniya         { background: linear-gradient(135deg, #0a5c6e, #1abc9c); }
.region-ph-pivnichna-amerika { background: linear-gradient(135deg, #1a3a5c, #8e44ad); }
.region-ph-pivdenna-amerika { background: linear-gradient(135deg, #145a32, #27ae60); }
.region-ph-centralna-amerika { background: linear-gradient(135deg, #145a32, #f39c12); }
.region-ph-arktika          { background: linear-gradient(135deg, #1a4a6e, #85c1e9); }
.region-ph-antarktika       { background: linear-gradient(135deg, #2c3e50, #95a5a6); }
.region-ph-blyzkyy-skhid    { background: linear-gradient(135deg, #7b6000, #f1c40f); }
.region-ph-karibi           { background: linear-gradient(135deg, #0e6655, #48c9b0); }
.region-ph-seredzemomoria   { background: linear-gradient(135deg, #154360, #2e86c1); }
.region-ph-ekzotychni-mistsia { background: linear-gradient(135deg, #4a235a, #a569bd); }
.region-card-placeholder    { background: linear-gradient(135deg, #1a3a5c, #2d5986); }

@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; }
    .regions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .regions-grid { grid-template-columns: 1fr; }
}

/* ══ DETAIL ══ */

/* ── ОБКЛАДИНКА ─────────────────────────────────── */
.region-cover {
    position: relative;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #1a3a5c, #2d6a9f);
}
.region-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.55;
}
.region-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}
.region-cover-body {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 24px;
}
.region-cover-title {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
    margin: 0 0 6px;
}
.region-cover-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.region-cover-stat {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    background: rgba(0,0,0,0.25);
    padding: 3px 10px;
    border-radius: 20px;
}
/* ── ПІДРЕГІОНИ ─────────────────────────────────── */
.subregion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.subregion-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 7px;
    text-decoration: none;
    background: #fff;
    transition: background .12s, border-color .12s;
}
.subregion-card:hover {
    background: #f0f5fb;
    border-color: #b0c8e8;
}
.subregion-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a3a5c;
    font-family: var(--serif);
}
.subregion-card-count {
    font-size: 11px;
    color: var(--text-muted);
    background: #f0f4f8;
    padding: 2px 7px;
    border-radius: 10px;
    flex-shrink: 0;
}
/* ── СІТКА КРАЇН ────────────────────────────────── */
.region-countries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
}
.region-country-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    transition: background .12s;
}
.region-country-row:hover { background: #f0f5fb; }
.region-countries-grid .region-country-row:nth-child(4n) { border-right: none; }
.region-country-name {
    font-size: 13px;
    color: #1a3a5c;
    font-weight: 500;
    line-height: 1.3;
}
.region-country-sub {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}
@media (max-width: 768px) {
    .subregion-grid { grid-template-columns: repeat(2, 1fr); }
    .region-countries-grid { grid-template-columns: repeat(2, 1fr); }
    .region-cover-title { font-size: 24px; }
}
/* country grid */
.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 #e8e8e8; border-right:1px solid #e8e8e8; 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; }
.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:#999; margin-top:1px; }
@media(max-width:768px){
    .country-grid-4{grid-template-columns:repeat(2,1fr);}
    .country-grid-4 .country-row:nth-child(4n){border-right:1px solid #e8e8e8;}
    .country-grid-4 .country-row:nth-child(2n){border-right:none;}
}

/* region-detail inline style */
.region-full-desc { font-size: 14px; color: #444; line-height: 1.8; margin: 20px 0 24px; }
.region-full-desc ul, .region-full-desc ol { display: none; }
.region-full-desc h2, .region-full-desc h3 { display: none; }

/* ══ БРОНЮВАННЯ ══════════════════════════════════════════════════ */
.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; } }
