/* =====================================================================
 * Σελίδα λιμανιού (port.php) — βασίζεται στο css/cruise.css (ίδιες κλάσεις με τη σελίδα κρουαζιέρας)
 * ===================================================================== */

/* ---------- καιρός στη δεξιά στήλη ---------- */
.port-page .port-weather-box {
    padding: 16px;
    border-radius: 12px;
    background: #eef1f6;
}
.port-page .port-weather-box .weather-widget {
    margin: 0;
}
.port-page .port-weather-box .wea-header .title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: rgb(0, 88, 130);
}

/* ---------- καρτέλα «X κρουαζιέρες προσεγγίζουν» (στη θέση της τιμής) ---------- */
.port-page .cruise-top-price .cruise-price-box {
    align-items: center;
}
.port-page .cruise-top-price .cruise-price-box strong {
    font-size: 1.3rem;
}

/* ---------- πρόβλεψη 6 ημερών: 3 ανά σειρά ---------- */
.port-page .port-forecast-box {
    margin-bottom: 14px;
}
.port-page .port-forecast-box .wea-header {
    margin-bottom: 10px;
}
.port-page .forecast-days {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
/* κάθε ημέρα: λιγότερο «στοίβαγμα» — εικονίδιο δίπλα στις θερμοκρασίες, βροχή & άνεμος σε μία γραμμή */
.port-page .fc-day {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 10px 9px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 27, 100, .08);
    min-width: 0;
}
.port-page .fc-day.is-today {
    background: #3861b6;
    color: #fff;
}
.port-page .fc-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px;
}
.port-page .fc-name {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.port-page .fc-date {
    font-size: 11px;
    opacity: .65;
}
.port-page .fc-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.port-page .fc-icon {
    font-size: 26px;
    flex: none;
}
.port-page .fc-day.is-today .fc-icon {
    color: #fff !important;
}
.port-page .fc-temp {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}
.port-page .fc-temp strong {
    font-size: 18px;
    font-weight: 800;
}
.port-page .fc-temp span {
    font-size: 12px;
    opacity: .65;
}
.port-page .fc-extra {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 27, 100, .08);
    font-size: 11px;
    white-space: nowrap;
}
.port-page .fc-day.is-today .fc-extra {
    border-top-color: rgba(255, 255, 255, .25);
}
.port-page .fc-extra span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.port-page .fc-rain i { color: #4a90d9; }
.port-page .fc-wind i { color: #8a9bb0; }
.port-page .fc-day.is-today .fc-rain i,
.port-page .fc-day.is-today .fc-wind i { color: #fff; }
.port-page .fc-empty {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}


/* ---------- χάρτης & κρουαζιέρες δίπλα-δίπλα ---------- */
.port-page .port-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
@media (min-width: 1100px) {
    .port-page .port-bottom-grid.has-both {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);     /* χάρτης 50% · κρουαζιέρες 50% */
        align-items: stretch;
    }
    .port-page .port-bottom-grid.has-both .port-map-box {
        display: flex;
        flex-direction: column;
    }
    .port-page .port-bottom-grid.has-both .port-map-box .cruise-map {
        flex: 1 1 auto;
        min-height: 420px;
        height: auto;
    }
}

/* ---------- κρουαζιέρες: 2 ανά «σελίδα» (carousel όταν είναι περισσότερες) ---------- */
.port-page .port-carousel .related-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.port-page .port-carousel.is-carousel .related-item {
    flex: 0 0 calc(50% - 10px);
}
/* χωρίς χάρτη, οι κρουαζιέρες πιάνουν όλο το πλάτος: 4 ανά γραμμή */
.port-page .port-bottom-grid:not(.has-both) .port-carousel .related-track {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.port-page .port-bottom-grid:not(.has-both) .port-carousel.is-carousel .related-item {
    flex: 0 0 calc(25% - 15px);
}
@media (max-width: 1099px) and (min-width: 601px) {
    .port-page .port-bottom-grid:not(.has-both) .port-carousel .related-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .port-page .port-bottom-grid:not(.has-both) .port-carousel.is-carousel .related-item { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 600px) {
    .port-page .port-carousel .related-track,
    .port-page .port-bottom-grid:not(.has-both) .port-carousel .related-track { grid-template-columns: minmax(0, 1fr); }
    .port-page .port-carousel.is-carousel .related-item,
    .port-page .port-bottom-grid:not(.has-both) .port-carousel.is-carousel .related-item { flex: 0 0 100%; }
}

/* =====================================================================
 * Ιστορικό καιρού (σελίδα λιμανιού): κάρτα με μία γραμμή ανά μέγεθος
 * ===================================================================== */
.port-page .port-weather-box .wea-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.port-page .wx-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.port-page .wx-stat {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 27, 100, .08);
}
.port-page .wx-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 17px;
}
.port-page .wx-stat.is-temp .wx-stat-icon { background: #fff1e6; color: #e8742c; }
.port-page .wx-stat.is-rain .wx-stat-icon { background: #e8f1fc; color: #3a78c2; }
.port-page .wx-stat.is-wind .wx-stat-icon { background: #eef1f6; color: #5f6f86; }
.port-page .wx-stat-label {
    font-size: 13px;
    line-height: 1.3;
    color: #64748b;
}
.port-page .wx-stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #001b64;
    white-space: nowrap;
}
.port-page .wx-stat-value small {
    margin-left: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

/* κουμπιά καρτών στο carousel κρουαζιέρων: μικρότερα γράμματα */
.port-page .related-item .card-btn {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
    gap: 5px;
}
.port-page .related-item .card-btn i {
    font-size: 11px;
}