
/**
 * Mohar Cottage — Location & Directions
 *
 * Page-specific styles for:
 * - Location hero
 * - Route information panel
 * - Google Maps
 * - Turn-by-turn directions
 * - Journey guidance
 * - Final arrival section
 */


/* =========================================================
   LOCATION PAGE
========================================================= */

.mohar-location-page {
    --location-green: #203b31;
    --location-green-dark: #172d25;
    --location-ivory: #f7f5ef;
    --location-gold: #d9a441;
    --location-text: #343a34;
    --location-muted: #777d74;

    background: var(--location-ivory);
    color: var(--location-text);
    overflow: hidden;
}

.mohar-location-page h1,
.mohar-location-page h2,
.mohar-location-page h3,
.mohar-location-page h4,
.mohar-location-page p {
    margin-top: 0;
}

.mohar-location-page h1,
.mohar-location-page h2,
.mohar-location-page h3,
.mohar-location-page h4 {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 400;
}

.mohar-location-page h2 {
    color: var(--location-green);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.25;
}

.mohar-location-page h1 span,
.mohar-location-page h2 span {
    color: var(--location-gold);
}

.mohar-section-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--location-gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    line-height: 1.5;
}


/* =========================================================
   LOCATION HERO
========================================================= */

.mohar-location-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 540px;
    padding: 100px 10.5%;
    background-color: #203b31;

    background-image: url("../images/location/location-hero.jpg");
    background-position: center 55%;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
}

.mohar-location-hero__content {
    width: 100%;
    max-width: 690px;
}

.mohar-location-hero__eyebrow {
    display: block;
    margin-bottom: 22px;
    color: #e6c27d;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.5px;
}

.mohar-location-hero h1 {
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(38px, 5.5vw, 68px);
    line-height: 1.2;
}

.mohar-location-hero h1 span {
    display: block;
}

.mohar-location-hero p {
    max-width: 540px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    line-height: 1.9;
}

.mohar-location-hero__button,
.mohar-location-arrival__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 27px;
    border-radius: var(--radius-md);
    background: var(--location-gold);
    color: var(--location-green-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-decoration: none;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.mohar-location-hero__button:hover,
.mohar-location-arrival__button:hover {
    background: #edc16b;
    color: var(--location-green-dark);
    transform: translateY(-2px);
}



/* =========================================================
   ROUTE SECTION
========================================================= */

.mohar-location-route {
    padding: 100px 10.5%;
}

.mohar-location-route__intro {
    max-width: 660px;
    margin: 0 auto 55px;
    text-align: center;
}

.mohar-location-route__intro h2 {
    margin-bottom: 20px;
}

.mohar-location-route__intro p {
    color: var(--location-muted);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 0;
}


/* =========================================================
   ROUTE LAYOUT
========================================================= */

.mohar-location-route__layout {
    display: grid;
    grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
    align-items: stretch;
    gap: 22px;
    max-width: 1500px;
    margin: 0 auto;
}


/* =========================================================
   LEFT ROUTE INFORMATION PANEL
========================================================= */

.mohar-location-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 30px;
    background: #fff;
    border: 1px solid rgba(32, 59, 49, 0.1);
    box-shadow: 0 12px 40px rgba(20, 38, 30, 0.06);
}

.mohar-location-panel__heading {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(32, 59, 49, 0.12);
}

.mohar-location-panel__heading h3 {
    margin-bottom: 0;
    color: var(--location-green);
    font-size: 23px;
    line-height: 1.45;
}


/* Origin and destination */

.mohar-location-panel__places {
    padding: 26px 0;
}

.mohar-location-place {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.mohar-location-place > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mohar-location-place__marker {
    position: relative;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 5px;
    border-radius: 50%;
}

.mohar-location-place__marker--origin {
    background: var(--location-gold);
    box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.15);
}

.mohar-location-place__marker--destination {
    background: var(--location-green);
    box-shadow: 0 0 0 4px rgba(32, 59, 49, 0.13);
}

.mohar-location-place__label {
    color: var(--location-muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.mohar-location-place strong {
    color: var(--location-green);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 17px;
    font-weight: 400;
}

.mohar-location-place small {
    color: var(--location-muted);
    font-size: 11px;
    line-height: 1.6;
}

.mohar-location-place__connector {
    height: 30px;
    margin: 4px 0 4px 5px;
    border-left: 1px dashed var(--location-gold);
}


/* Route statistics */

.mohar-location-panel__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 20px 0;
    border-top: 1px solid rgba(32, 59, 49, 0.12);
    border-bottom: 1px solid rgba(32, 59, 49, 0.12);
}

.mohar-location-panel__stat {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 0 14px;
}

.mohar-location-panel__stat:first-child {
    padding-left: 0;
}

.mohar-location-panel__stat + .mohar-location-panel__stat {
    border-left: 1px solid rgba(32, 59, 49, 0.12);
}

.mohar-location-panel__stat span {
    color: var(--location-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.mohar-location-panel__stat strong {
    color: var(--location-green);
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 21px;
    font-weight: 400;
}


/* =========================================================
   TURN-BY-TURN DIRECTIONS
========================================================= */

.mohar-location-directions {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 25px;
}

.mohar-location-directions__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.mohar-location-directions__heading h4 {
    margin-bottom: 0;
    color: var(--location-green);
    font-size: 17px;
}

.mohar-location-directions__heading > span {
    color: var(--location-muted);
    font-size: 10px;
}

.mohar-location-directions__steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 340px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--location-gold) #efeee7;
}

.mohar-location-directions__steps::-webkit-scrollbar {
    width: 5px;
}

.mohar-location-directions__steps::-webkit-scrollbar-track {
    background: #efeee7;
}

.mohar-location-directions__steps::-webkit-scrollbar-thumb {
    background: var(--location-gold);
    border-radius: 5px;
}

.mohar-location-directions__loading {
    padding: 18px 0;
    color: var(--location-muted);
    font-size: 12px;
    line-height: 1.7;
}


/* Individual direction step */

.mohar-route-step {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 8px;
    border-bottom: 1px solid rgba(32, 59, 49, 0.09);
}

.mohar-route-step:first-child {
    padding-top: 5px;
}

.mohar-route-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #efeee7;
    color: var(--location-green);
    font-size: 10px;
    font-weight: 700;
}

.mohar-route-step__content {
    flex: 1;
    min-width: 0;
}

.mohar-route-step__maneuver {
    display: block;
    margin-bottom: 5px;
    color: var(--location-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mohar-route-step__instruction {
    display: block;
    color: var(--location-text);
    font-size: 12px;
    line-height: 1.65;
}

.mohar-route-step__distance {
    display: block;
    margin-top: 5px;
    color: var(--location-muted);
    font-size: 10px;
}


/* =========================================================
   NAVIGATION BUTTONS
========================================================= */

.mohar-location-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.mohar-location-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 14px 25px;
    border: 1px solid #3f5d4b;
    border-radius: 9px;
    background: #3f5d4b;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.mohar-location-button:hover {
    background: var(--location-green-dark);
    border-color: var(--location-green-dark);
    color: #fff;
    transform: translateY(-2px);
}

.mohar-location-button--secondary {
    background: transparent;
    color: var(--location-green);
}

.mohar-location-button--secondary:hover {
    background: var(--location-green);
    border-color: var(--location-green);
    color: #fff;
}


/* =========================================================
   GOOGLE MAP
========================================================= */

.mohar-location-map-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mohar-location-map-wrapper {
    position: relative;
    flex: 1;
    min-height: 650px;
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(32, 59, 49, 0.1);
    box-shadow: 0 12px 40px rgba(20, 38, 30, 0.08);
}

.mohar-location-map {
    width: 100%;
    height: 100%;
    min-height: 630px;
    background: #e9e9e3;
}

.mohar-location-map__status {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    width: fit-content;
    max-width: calc(100% - 40px);
    margin: 0;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(32, 59, 49, 0.1);
    color: var(--location-muted);
    font-size: 11px;
    line-height: 1.5;
}

.mohar-location-map__status.is-error {
    color: #a33b32;
}

.mohar-location-map-caption {
    margin: 12px 0 0;
    color: var(--location-muted);
    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   JOURNEY INFORMATION
========================================================= */

.mohar-location-journey {
    padding: 100px 8%;
    background: #efeee7;
}

.mohar-location-journey__intro {
    max-width: 650px;
    margin: 0 auto 55px;
    text-align: center;
}

.mohar-location-journey__intro h2 {
    margin-bottom: 20px;
}

.mohar-location-journey__intro p {
    color: var(--location-muted);
    font-size: 15px;
    line-height: 1.9;
}

.mohar-location-journey__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    max-width: 1150px;
    margin: 0 auto;
}

.mohar-location-journey__card {
    padding: 34px 30px;
    background: var(--location-ivory);
    border: 1px solid rgba(32, 59, 49, 0.08);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.mohar-location-journey__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(20, 38, 30, 0.07);
}

.mohar-location-journey__card h3 {
    margin-bottom: 16px;
    color: var(--location-green);
    font-size: 19px;
    line-height: 1.4;
}

.mohar-location-journey__card p {
    margin-bottom: 0;
    color: var(--location-muted);
    font-size: 13px;
    line-height: 1.9;
}


/* =========================================================
   FINAL ARRIVAL
========================================================= */

.mohar-location-arrival {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    padding: 90px 8%;
    background:
        linear-gradient(
            rgba(23, 45, 37, 0.88),
            rgba(23, 45, 37, 0.88)
        ),
        url("../images/location/location-arrival.jpg")
        center / cover no-repeat;
    text-align: center;
}

.mohar-location-arrival h2 {
    max-width: 650px;
    margin-bottom: 22px;
    color: #fff;
}

.mohar-location-arrival p {
    max-width: 600px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.9;
}

.mohar-location-arrival .mohar-location-button {
    width: auto;
    min-width: 190px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .mohar-location-hero {
        min-height: 480px;
        padding: 80px 6%;
    }

    .mohar-location-route {
        padding: 80px 4%;
    }

    .mohar-location-route__layout {
        grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
        gap: 15px;
    }

    .mohar-location-panel {
        padding: 22px;
    }

    .mohar-location-map-wrapper {
        min-height: 620px;
    }

    .mohar-location-map {
        min-height: 600px;
    }

    .mohar-location-journey {
        padding: 80px 5%;
    }

    .mohar-location-journey__grid {
        gap: 16px;
    }

    .mohar-location-journey__card {
        padding: 28px 22px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .mohar-location-hero {
        min-height: 510px;
        padding: 80px 25px;
        background-position: 58% center;
    }

    .mohar-location-hero h1 {
        font-size: 39px;
    }

    .mohar-location-hero p {
        font-size: 14px;
    }

    .mohar-section-eyebrow {
        font-size: 10px;
    }

    .mohar-location-route {
        padding: 65px 20px;
    }

    .mohar-location-route__intro {
        margin-bottom: 35px;
    }

    .mohar-location-route__layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mohar-location-panel {
        padding: 25px 20px;
    }

    .mohar-location-panel__heading h3 {
        font-size: 21px;
    }

    .mohar-location-panel__stat strong {
        font-size: 19px;
    }

    .mohar-location-directions__steps {
        max-height: 300px;
    }

    .mohar-location-map-wrapper {
        min-height: 420px;
        padding: 5px;
    }

    .mohar-location-map {
        min-height: 410px;
    }

    .mohar-location-map__status {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: calc(100% - 24px);
    }

    .mohar-location-panel__actions {
        gap: 10px;
    }

    .mohar-location-button {
        width: 100%;
    }

    .mohar-location-journey {
        padding: 65px 20px;
    }

    .mohar-location-journey__intro {
        margin-bottom: 35px;
    }

    .mohar-location-journey__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mohar-location-journey__card {
        padding: 27px 25px;
    }

    .mohar-location-arrival {
        min-height: 390px;
        padding: 70px 25px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .mohar-location-page *,
    .mohar-location-page *::before,
    .mohar-location-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

}
