/*
|--------------------------------------------------------------------------
| Mohar Cottage Weather
|--------------------------------------------------------------------------
| Main stylesheet for the weather widget and dedicated weather page.
| Colours and typography follow the existing Mohar Cottage design.
*/


/*
|--------------------------------------------------------------------------
| Header weather widget
|--------------------------------------------------------------------------
*/

.mohar-weather-nav {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-left: 22px;
    padding: 7px 12px;
    color: inherit;
    text-decoration: none;
    border-left: 1px solid rgba(46, 68, 49, 0.18);

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.mohar-weather-nav__icon {
    color: #c59b52;
    font-size: 25px;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.mohar-weather-nav__copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mohar-weather-nav__temperature {
    font-size: 14px;
    font-weight: 700;
}

.mohar-weather-nav__condition {
    max-width: 112px;
    overflow: hidden;
    color: #777d70;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Chevron is initially hidden. */
.mohar-weather-nav__chevron {
    display: inline-block;
    width: 0;
    overflow: hidden;
    color: #c59b52;
    font-size: 21px;
    line-height: 1;
    opacity: 0;
    transform: translateX(-4px);

    transition:
        width 0.25s ease,
        opacity 0.25s ease,
        transform 0.25s ease;
}

/* Subtle interaction when hovering over the complete widget. */
.mohar-weather-nav:hover .mohar-weather-nav__icon,
.mohar-weather-nav:focus-visible .mohar-weather-nav__icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(197, 155, 82, 0.55));
}

.mohar-weather-nav:hover .mohar-weather-nav__chevron,
.mohar-weather-nav:focus-visible .mohar-weather-nav__chevron {
    width: 12px;
    opacity: 1;
    transform: translateX(2px);
}

.mohar-weather-nav:focus-visible {
    outline: 2px solid #c59b52;
    outline-offset: 4px;
    border-radius: 2px;
}


/*
|--------------------------------------------------------------------------
| Weather page base
|--------------------------------------------------------------------------
*/

.mohar-weather-page {
    color: #26392c;
    background: #fbfaf6;
}

.mohar-weather-container {
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}


/*
|--------------------------------------------------------------------------
| Weather hero
|--------------------------------------------------------------------------
*/

.mohar-weather-hero {
    padding: clamp(64px, 8vw, 112px) 0 76px;
    color: #f7f4e9;
    background: #243b2d;
}

.mohar-weather-eyebrow {
    margin: 0 0 13px;
    color: #c9aa70;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.19em;
}

.mohar-weather-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
}

.mohar-weather-heading h1 {
    margin: 0;
    color: #fbf8ef;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 400;
    line-height: 1.12;
}

.mohar-weather-intro {
    max-width: 570px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.7;
}

.mohar-weather-updated {
    margin: 0 0 5px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Current weather panel
|--------------------------------------------------------------------------
*/

.mohar-weather-current {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 42px;
    align-items: center;
    padding: 34px 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
}

.mohar-weather-current__main {
    display: flex;
    align-items: center;
    gap: 25px;
}

.mohar-weather-current__icon {
    width: 112px;
    flex: 0 0 112px;
    color: #e2c184;
    font-size: 76px;
    line-height: 1;
    text-align: center;
}

.mohar-weather-current__label {
    margin: 0 0 3px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
}

.mohar-weather-current__temperature {
    color: #fff;
    font-size: clamp(52px, 7vw, 76px);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 1;
}

.mohar-weather-current__temperature sup {
    margin-left: 3px;
    font-size: 23px;
    vertical-align: top;
}

.mohar-weather-current__description {
    margin: 8px 0 2px;
    color: #e9d7b5;
    font-size: 16px;
}

.mohar-weather-current__feels {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
}

.mohar-weather-current__metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 28px;
}

.mohar-weather-metric {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mohar-weather-metric span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.mohar-weather-metric strong {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
}

.mohar-weather-error {
    margin: 18px 0 0;
    color: #ffe1b3;
    font-size: 13px;
}

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


/*
|--------------------------------------------------------------------------
| Forecast sections
|--------------------------------------------------------------------------
*/

.mohar-weather-section {
    padding: 76px 0;
}

.mohar-weather-section--soft {
    background: #f1f0e9;
}

.mohar-weather-section__heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.mohar-weather-section__heading h2 {
    margin: 0;
    color: #26392c;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 400;
}

.mohar-weather-section__note {
    color: #828477;
    font-size: 12px;
}


/*
|--------------------------------------------------------------------------
| Hourly forecast carousel
|--------------------------------------------------------------------------
|
| JavaScript creates this wrapper and its previous/next buttons.
| The forecast strip remains swipeable on touch devices.
|
*/

.mohar-weather-hourly-wrap {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mohar-weather-hourly {
    display: grid;
    grid-auto-columns: minmax(105px, 1fr);
    grid-auto-flow: column;
    gap: 10px;

    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;

    padding: 2px 2px 14px;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;

    /* Hide the native scrollbar while retaining scrolling. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mohar-weather-hourly::-webkit-scrollbar {
    display: none;
}

.mohar-weather-hour {
    display: flex;
    min-height: 152px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 10px;

    border: 1px solid #e6e2d7;
    border-radius: 3px;
    background: #fff;

    scroll-snap-align: start;

    transition:
        border-color 0.25s ease,
        background-color 0.25s ease;
}

/* Subtle visual distinction for the current hour. */
.mohar-weather-hour.is-current {
    border-color: rgba(197, 155, 82, 0.65);
    background: #fbf8ef;
}

.mohar-weather-hour__time {
    color: #777d70;
    font-size: 11px;
}

.mohar-weather-hour__icon {
    color: #c59b52;
    font-size: 27px;
}

.mohar-weather-hour__temp {
    color: #26392c;
    font-size: 21px;
    font-weight: 500;
}

.mohar-weather-hour__rain {
    min-height: 13px;
    color: #738b9a;
    font-size: 10px;
}


/* Carousel navigation buttons. */

.mohar-weather-hourly__arrow {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 1px solid #dedbd0;
    border-radius: 50%;

    color: #344638;
    background: transparent;

    font-family: inherit;
    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.mohar-weather-hourly__arrow:hover:not(:disabled) {
    border-color: #c59b52;
    color: #fff;
    background: #c59b52;
}

.mohar-weather-hourly__arrow:focus-visible {
    outline: 2px solid #c59b52;
    outline-offset: 3px;
}

.mohar-weather-hourly__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}


/*
|--------------------------------------------------------------------------
| 10-day forecast
|--------------------------------------------------------------------------
*/

.mohar-weather-daily {
    border-top: 1px solid #dedbd0;
}

.mohar-weather-day {
    display: grid;
    grid-template-columns: 130px 44px minmax(0, 1fr) 110px;
    align-items: center;
    gap: 18px;
    min-height: 66px;
    border-bottom: 1px solid #dedbd0;
}

.mohar-weather-day__date {
    color: #344638;
    font-size: 13px;
    font-weight: 600;
}

.mohar-weather-day__icon {
    color: #c59b52;
    font-size: 24px;
    text-align: center;
}

.mohar-weather-day__condition {
    color: #777d70;
    font-size: 12px;
}

.mohar-weather-day__range {
    color: #344638;
    font-size: 13px;
    text-align: right;
}

.mohar-weather-loading {
    color: #777d70;
    font-size: 13px;
}


/*
|--------------------------------------------------------------------------
| Weather page footer
|--------------------------------------------------------------------------
*/

.mohar-weather-footer {
    padding: 35px 0 48px;
    border-top: 1px solid #e6e2d7;
}

.mohar-weather-footer p {
    margin: 0 0 12px;
    color: #777d70;
    font-size: 12px;
    line-height: 1.6;
}

.mohar-weather-booking-link {
    color: #344638;
    font-size: 13px;
    font-weight: 600;
    text-decoration-color: #c59b52;
    text-underline-offset: 4px;
}


/*
|--------------------------------------------------------------------------
| Tablet layout
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {

    .mohar-weather-nav {
        margin-left: 10px;
        padding-inline: 8px;
    }

    .mohar-weather-current {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile layout
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {

    .mohar-weather-nav {
        gap: 5px;
        margin-left: 6px;
        padding: 5px 6px;
    }

    .mohar-weather-nav__icon {
        font-size: 20px;
    }

    .mohar-weather-nav__temperature {
        font-size: 12px;
    }

    .mohar-weather-nav__condition {
        max-width: 70px;
        font-size: 9px;
    }

    /* Keep the header compact on mobile. */
    .mohar-weather-nav__chevron {
        display: none;
    }

    .mohar-weather-container {
        width: min(100% - 32px, 1160px);
    }

    .mohar-weather-hero {
        padding: 54px 0 48px;
    }

    .mohar-weather-heading {
        display: block;
        margin-bottom: 25px;
    }

    .mohar-weather-updated {
        margin-top: 18px;
    }

    .mohar-weather-current {
        gap: 25px;
        padding: 24px 18px;
    }

    .mohar-weather-current__main {
        gap: 12px;
    }

    .mohar-weather-current__icon {
        width: 72px;
        flex-basis: 72px;
        font-size: 54px;
    }

    .mohar-weather-current__metrics {
        gap: 16px;
    }

    .mohar-weather-section {
        padding: 52px 0;
    }

    /* Mobile users navigate the hourly strip with finger swipes. */
    .mohar-weather-hourly-wrap {
        display: block;
    }

    .mohar-weather-hourly__arrow {
        display: none;
    }

    .mohar-weather-hourly {
        grid-auto-columns: minmax(105px, 34%);
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .mohar-weather-day {
        grid-template-columns: 78px 30px minmax(0, 1fr) 76px;
        gap: 8px;
        min-height: 60px;
    }

    .mohar-weather-day__date,
    .mohar-weather-day__range {
        font-size: 11px;
    }

    .mohar-weather-day__condition {
        font-size: 10px;
    }

    .mohar-weather-day__icon {
        font-size: 20px;
    }

}


/*
|--------------------------------------------------------------------------
| Reduced motion accessibility
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    .mohar-weather-nav,
    .mohar-weather-nav__icon,
    .mohar-weather-nav__chevron,
    .mohar-weather-hour,
    .mohar-weather-hourly__arrow {
        transition: none;
    }

    .mohar-weather-hourly {
        scroll-behavior: auto;
    }

}


/* ==========================================================
   MOHAR COTTAGE — EDITORIAL GUEST PREPARATION SECTION
   ========================================================== */

.mohar-weather-prep {
    padding: 76px 0 64px;
    background: #fbfaf6;
}

/* Introduction */

.mohar-weather-prep__intro {
    max-width: 760px;
    margin-bottom: 36px;
}

.mohar-weather-prep__intro h2 {
    margin: 0 0 14px;
    color: #26392c;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 400;
    line-height: 1.2;
}

.mohar-weather-prep__intro > p:last-child {
    max-width: 680px;
    margin: 0;
    color: #777d70;
    font-size: 14px;
    line-height: 1.8;
}

/* Four photographic cards */

.mohar-weather-prep__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.mohar-weather-prep-card {
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #e8e2d7;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(38, 57, 44, 0.045);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.mohar-weather-prep-card:hover {
    transform: translateY(-4px);
    border-color: #d8c49d;
    box-shadow: 0 10px 24px rgba(38, 57, 44, 0.09);
}

.mohar-weather-prep-card__image {
    height: 178px;
    overflow: hidden;
    background: #e9e6dc;
}

.mohar-weather-prep-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.mohar-weather-prep-card:hover .mohar-weather-prep-card__image img {
    transform: scale(1.045);
}

.mohar-weather-prep-card__content {
    position: relative;
    padding: 29px 20px 23px;
}

/* Icon badge */

.mohar-weather-prep-card__icon {
    position: absolute;
    top: -23px;
    left: 50%;
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8b879;
    border-radius: 50%;
    color: #a97824;
    background: #fbfaf6;
    font-size: 23px;
    transform: translateX(-50%);
}

.mohar-weather-prep-card__number {
    margin: 0 0 7px;
    color: #a97824;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-align: center;
}

.mohar-weather-prep-card h3 {
    margin: 0 0 10px;
    color: #26392c;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

.mohar-weather-prep-card__description {
    min-height: 70px;
    margin: 0 0 15px;
    color: #777d70;
    font-size: 12px;
    line-height: 1.65;
    text-align: center;
}

.mohar-weather-prep-card ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mohar-weather-prep-card li {
    position: relative;
    padding-left: 17px;
    color: #515d50;
    font-size: 11px;
    line-height: 1.55;
}

.mohar-weather-prep-card li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: #b98732;
    content: "✓";
    font-size: 12px;
}

/* Family banner */

.mohar-weather-prep__family {
    display: grid;
    grid-template-columns: 70px minmax(240px, 0.9fr) minmax(0, 1.4fr);
    gap: 22px;
    align-items: center;
    margin-top: 22px;
    padding: 25px 30px;
    border: 1px solid #1b3023;
    border-radius: 9px;
    color: #fff;
    background:
        radial-gradient(
            ellipse at 100% 100%,
            rgba(201, 170, 112, 0.13),
            transparent 35%
        ),
        linear-gradient(110deg, #1d3929, #203d2c);
}

.mohar-weather-prep__family-icon {
    display: flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(220, 190, 130, 0.65);
    border-radius: 50%;
    color: #e0bd79;
    font-size: 30px;
}

.mohar-weather-prep__family-heading {
    padding-right: 20px;
    border-right: 1px solid rgba(220, 190, 130, 0.6);
}

.mohar-weather-prep__family-heading p {
    margin: 0 0 7px;
    color: #e0bd79;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.mohar-weather-prep__family-heading h3 {
    margin: 0;
    color: #fff;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
}

.mohar-weather-prep__family-copy {
    padding-left: 8px;
}

.mohar-weather-prep__family-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.75;
}

/* Before you set out */

.mohar-weather-prep__reminder {
    margin-top: 30px;
}

.mohar-weather-prep__reminder > h3 {
    margin: 0 0 16px;
    color: #a97824;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.mohar-weather-prep__reminder-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #e5dfd2;
    border-bottom: 1px solid #e5dfd2;
}

.mohar-weather-prep__reminder-item {
    display: flex;
    min-width: 0;
    gap: 13px;
    align-items: center;
    padding: 17px 15px;
    border-right: 1px solid #e5dfd2;
}

.mohar-weather-prep__reminder-item:last-child {
    border-right: 0;
}

.mohar-weather-prep__reminder-item > span {
    flex: 0 0 28px;
    color: #a97824;
    font-size: 23px;
    text-align: center;
}

.mohar-weather-prep__reminder-item p {
    margin: 0;
    color: #515d50;
    font-size: 11px;
    line-height: 1.6;
}

/* Closing message */

.mohar-weather-prep__closing {
    margin: 22px 0 0;
    color: #26392c;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 15px;
    font-style: italic;
    line-height: 1.8;
    text-align: center;
}

/* Tablet */

@media (max-width: 1000px) {

    .mohar-weather-prep__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .mohar-weather-prep-card__image {
        height: 210px;
    }

    .mohar-weather-prep-card__content {
        padding-inline: 24px;
    }

    .mohar-weather-prep-card__description {
        min-height: 0;
    }

    .mohar-weather-prep__family {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .mohar-weather-prep__family-heading {
        border-right: 0;
    }

    .mohar-weather-prep__family-copy {
        grid-column: 2;
        padding-left: 0;
    }

    .mohar-weather-prep__reminder-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mohar-weather-prep__reminder-item:nth-child(2) {
        border-right: 0;
    }

    .mohar-weather-prep__reminder-item:nth-child(-n+2) {
        border-bottom: 1px solid #e5dfd2;
    }
}

/* Mobile */

@media (max-width: 640px) {

    .mohar-weather-prep {
        padding: 52px 0;
    }

    .mohar-weather-prep__intro {
        margin-bottom: 25px;
    }

    .mohar-weather-prep__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mohar-weather-prep-card__image {
        height: 210px;
    }

    .mohar-weather-prep-card__content {
        padding: 30px 22px 24px;
    }

    .mohar-weather-prep-card h3 {
        font-size: 19px;
    }

    .mohar-weather-prep-card__description {
        min-height: 0;
    }

    .mohar-weather-prep-card li {
        font-size: 12px;
    }

    .mohar-weather-prep__family {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 24px 20px;
    }

    .mohar-weather-prep__family-heading {
        padding: 0;
    }

    .mohar-weather-prep__family-copy {
        grid-column: auto;
    }

    .mohar-weather-prep__reminder-grid {
        grid-template-columns: 1fr;
    }

    .mohar-weather-prep__reminder-item {
        border-right: 0;
        border-bottom: 1px solid #e5dfd2;
        padding: 14px 5px;
    }

    .mohar-weather-prep__reminder-item:nth-child(2) {
        border-bottom: 1px solid #e5dfd2;
    }

    .mohar-weather-prep__reminder-item:last-child {
        border-bottom: 0;
    }

    .mohar-weather-prep__closing {
        font-size: 13px;
    }
}

/* Reduced motion accessibility */

@media (prefers-reduced-motion: reduce) {
    .mohar-weather-prep-card,
    .mohar-weather-prep-card__image img {
        transition: none;
    }

    .mohar-weather-prep-card:hover,
    .mohar-weather-prep-card:hover .mohar-weather-prep-card__image img {
        transform: none;
    }
}
