/* =========================================
   HOME – WETTER KOH SAMUI
   ========================================= */

.weather-shortcut {
    width: 100%;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.weather-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(23, 59, 63, 0.42);
    backdrop-filter: blur(4px);
}

.weather-modal[hidden] {
    display: none;
}

.weather-dialog {
    width: min(100%, 500px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(23, 59, 63, 0.24);
}

.weather-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.weather-dialog-header h2 {
    margin: 4px 0 0;
    color: #173b3f;
}

.weather-close-button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #edf4f3;
    color: #173b3f;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}


/* Aktuelles Wetter */

.weather-current {
    padding: 18px;
    border-radius: 18px;
    background: #edf4f3;
}

.weather-current-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.weather-current-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #ffffff;
    font-size: 1.8rem;
}

.weather-current-main > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.weather-current-main strong {
    color: #0f5960;
    font-size: 1.8rem;
    line-height: 1;
}

.weather-current-main span {
    color: #60777a;
    font-size: 0.85rem;
}


.weather-current-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.weather-current-details > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.7);
}

.weather-current-details span {
    color: #60777a;
    font-size: 0.72rem;
    font-weight: 700;
}

.weather-current-details strong {
    color: #173b3f;
    font-size: 0.9rem;
}


/* Vorhersage */

.weather-section {
    margin-top: 22px;
}

.weather-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.weather-section-heading h3 {
    margin: 0;
    color: #173b3f;
    font-size: 1rem;
}

.weather-section-heading span {
    color: #60777a;
    font-size: 0.75rem;
}

.weather-forecast {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.weather-day {
    display: grid;
    grid-template-columns: 80px 38px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #f7faf9;
}

.weather-day-name {
    color: #173b3f;
    font-size: 0.8rem;
    font-weight: 800;
}

.weather-day-icon {
    text-align: center;
    font-size: 1.2rem;
}

.weather-day-description {
    min-width: 0;
    color: #60777a;
    font-size: 0.76rem;
}

.weather-day-temperature {
    color: #0f5960;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.weather-hint {
    margin: 18px 0 0;
    color: #60777a;
    font-size: 0.75rem;
    line-height: 1.45;
}


@media (max-width: 480px) {

    .weather-dialog {
        padding: 18px;
        border-radius: 20px;
    }

    .weather-day {
        grid-template-columns: 65px 30px 1fr auto;
        gap: 7px;
        padding: 10px;
    }

    .weather-day-description {
        font-size: 0.7rem;
    }
}
/* =========================================
   WETTER – GEZEITEN KOH SAMUI
   ========================================= */

.tide-section {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e3e9e8;
}

.tide-next-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tide-next-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    border-radius: 15px;
    background: #edf4f3;
}

.tide-next-card > span {
    color: #60777a;
    font-size: 0.75rem;
    font-weight: 700;
}

.tide-next-card strong {
    color: #0f5960;
    font-size: 1rem;
}

.tide-next-card small {
    color: #60777a;
    font-size: 0.7rem;
}

.tide-today {
    margin-top: 12px;
    padding: 14px;
    border-radius: 15px;
    background: #f7faf9;
}

.tide-today-title {
    display: block;
    margin-bottom: 10px;
    color: #173b3f;
    font-size: 0.8rem;
    font-weight: 800;
}

#tide-today-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tide-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #60777a;
    font-size: 0.78rem;
}

.tide-event strong {
    color: #173b3f;
    white-space: nowrap;
}

.tide-disclaimer {
    margin: 12px 0 0;
    color: #718386;
    font-size: 0.68rem;
    line-height: 1.4;
}

@media (max-width: 400px) {
    .tide-next-grid {
        grid-template-columns: 1fr;
    }
}