/* ============================================================
   MAIAK PLIAZHI — STYLES
   ============================================================ */

.mpl-page { padding-bottom: 60px; }

/* ─── ТЕМПЕРАТУРА МОРЯ — ВЕЛИКИЙ БЛОК ─── */
.mpl-sea-current {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--turq);
    border-radius: var(--r-lg);
    padding: 28px 32px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.mpl-sea-current::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--turq);
}
.mpl-sea-temp-now {
    display: flex;
    align-items: center;
    gap: 30px;
}
.mpl-sea-icon { font-size: 56px; line-height: 1; }
.mpl-sea-lbl {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}
.mpl-sea-val {
    font-family: var(--serif);
    font-size: 42px;
    color: var(--turq);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
}
.mpl-sea-waves { margin-left: auto; text-align: right; }
.mpl-sea-waves .mpl-sea-val { font-size: 28px; color: var(--gold); }

.mpl-off-season {
    background: var(--bg-card);
    border: 1px dashed var(--line);
    padding: 24px;
    text-align: center;
}
.mpl-off-season::before { display: none; }
.mpl-off-season p { margin: 0; color: var(--text-mute); font-size: 15px; }

/* ─── 7-ДЕННИЙ ПРОГНОЗ ─── */
.mpl-sea-forecast {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.mpl-sea-forecast h3 {
    font-family: var(--serif);
    font-size: 18px;
    margin: 0 0 14px;
    color: var(--text);
}
.mpl-sea-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}
.mpl-sea-day {
    background: var(--bg-deeper);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 12px 8px;
    text-align: center;
}
.mpl-sea-day.is-today { border-color: var(--turq); background: rgba(79, 184, 169, 0.08); }
.mpl-sea-dow {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.mpl-sea-day-temp {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--turq);
    font-weight: 700;
    line-height: 1;
}
.mpl-sea-day-waves {
    font-size: 10px;
    color: var(--text-mute);
    margin-top: 4px;
}

/* ─── ОСНОВНА ІНФОРМАЦІЯ — ГРИД ─── */
.mpl-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}
.mpl-info-block {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 18px 22px;
}
.mpl-info-block h3 {
    font-family: var(--serif);
    font-size: 16px;
    margin: 0 0 8px;
    color: var(--gold);
    font-weight: 600;
}
.mpl-info-block p {
    font-size: 14px;
    color: var(--text-mute);
    margin: 0;
    line-height: 1.5;
}
.mpl-info-block small {
    display: block;
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 12px;
}
.mpl-info-features { grid-column: 1 / -1; }
.mpl-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}
.mpl-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-deeper);
    border-radius: var(--r-sm);
    font-size: 13px;
    color: var(--text);
}
.mpl-feature-icon { font-size: 18px; }

/* ─── СЕКЦІЇ ─── */
.mpl-section, .mpl-archive-section, .mpl-archive-seo {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid var(--line);
}
.mpl-section h2, .mpl-archive-section h2, .mpl-archive-seo h2 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: -0.4px;
}
.mpl-section h2 em, .mpl-archive-section h2 em, .mpl-archive-seo h2 em {
    font-style: italic;
    color: var(--gold);
}
.mpl-section p, .mpl-archive-section p, .mpl-archive-seo p {
    font-size: 15px;
    color: var(--text-mute);
    line-height: 1.7;
    margin-bottom: 12px;
}
.mpl-archive-seo h3 {
    font-family: var(--serif);
    font-size: 20px;
    margin: 24px 0 10px;
    color: var(--gold);
    font-weight: 600;
}
.mpl-archive-seo strong { color: var(--text); }

/* ─── КАРТА LEAFLET ─── */
.mpl-map {
    height: 400px;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    overflow: hidden;
    margin-top: 14px;
}

/* ─── ОРГИ ПОРУЧ ─── */
.mpl-orgs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.mpl-org-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mpl-org-card:hover { border-color: var(--gold); }
.mpl-org-name { font-size: 14px; color: var(--text); line-height: 1.3; }
.mpl-org-dist {
    font-size: 11px;
    color: var(--turq);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── МАРШРУТИ ─── */
.mpl-routes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.mpl-route-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 14px 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.mpl-route-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}
.mpl-route-icon { font-size: 24px; }
.mpl-route-num {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
}
.mpl-route-dir {
    font-size: 12px;
    color: var(--text-mute);
    line-height: 1.3;
}

/* ─── ВЕЛИКІ КАРТКИ ПЛЯЖІВ (на архіві) ─── */
.mpl-beaches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}
.mpl-grid-full { grid-template-columns: repeat(2, 1fr); }
.mpl-beach-big-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}
.mpl-beach-big-card:hover {
    border-color: var(--turq);
    transform: translateY(-2px);
}
.mpl-beach-big-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.mpl-beach-big-icon { font-size: 36px; }
.mpl-beach-big-name {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
}
.mpl-beach-big-paid {
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mpl-beach-big-temp {
    margin-left: auto;
    text-align: center;
    background: rgba(79, 184, 169, 0.1);
    border: 1px solid var(--turq);
    border-radius: var(--r-sm);
    padding: 8px 12px;
}
.mpl-temp-icon { font-size: 14px; }
.mpl-temp-val {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--turq);
    font-weight: 700;
    margin-left: 4px;
}
.mpl-beach-big-descr {
    font-size: 13px;
    color: var(--text-mute);
    line-height: 1.5;
}

/* ─── МАЛІ КАРТКИ ─── */
.mpl-beach-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.mpl-beach-card:hover { border-color: var(--turq); transform: translateY(-2px); }
.mpl-beach-icon { font-size: 28px; }
.mpl-beach-name {
    font-family: var(--serif);
    font-size: 15px;
    color: var(--text);
    font-weight: 600;
}
.mpl-beach-tag {
    font-size: 10px;
    color: var(--text-dim);
}

.mpl-link-all {
    display: inline-block;
    padding: 10px 22px;
    border: 1px solid var(--gold);
    border-radius: var(--r-sm);
    color: var(--gold);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.mpl-link-all:hover { background: var(--gold); color: var(--bg-deeper); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .mpl-sea-week { grid-template-columns: repeat(4, 1fr); }
    .mpl-info-grid { grid-template-columns: 1fr 1fr; }
    .mpl-orgs-grid, .mpl-routes-grid { grid-template-columns: repeat(2, 1fr); }
    .mpl-beaches-grid, .mpl-grid-full { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .mpl-sea-temp-now { flex-direction: column; align-items: flex-start; gap: 12px; }
    .mpl-sea-week { grid-template-columns: repeat(3, 1fr); }
    .mpl-info-grid { grid-template-columns: 1fr; }
    .mpl-orgs-grid, .mpl-routes-grid { grid-template-columns: 1fr; }
    .mpl-beaches-grid, .mpl-grid-full { grid-template-columns: 1fr; }
    .mpl-section h2, .mpl-archive-section h2 { font-size: 22px; }
    .mpl-beach-big-header { flex-wrap: wrap; }
}
