/* =========================
   LOCATION PAGE
   ========================= */

/* width + border-box: <body> is a flex column, and a flex item with auto side margins is sized
   to its content rather than stretched - so on a phone this was as wide as the 500px property
   cards inside it, and the whole page scrolled sideways (2026-10-03). */
.location-page {
    width: 100%;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px var(--primary-margin-bottom);
}

/* The complex's name in capitals, as it has always been shown; the line under it is not. */
.location-page h1 {
    text-transform: uppercase;
}

.location-blurb {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
    line-height: 1.7;
    font-size: 1em;
    color: rgb(80, 80, 80);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.location-blurb p {
    margin: 0 0 1em;
}

.location-blurb p:last-child {
    margin-bottom: 0;
}

.location-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 48px;
    margin-bottom: 40px;
}

.location-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.location-feature-icon {
    width: 42px;
    height: 42px;
}

.location-feature-label {
    font-family: var(--secondary-font);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.location-apartments-title {
    margin: 0 0 36px;
}

.location-intro-divider {
    width: 60px;
    height: 3px;
    margin: 0 auto 50px;
    background: var(--secondary-color-soft-dark, #f2d48a);
}

/* =========================
   LOCATION MAP & RULES
   ========================= */

.location-map-rules {
    display: flex;
    align-items: stretch;
    gap: 40px;
    margin-top: 60px;
}

.location-map-column {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-map {
    flex: 1 1 auto;
    min-height: 320px;
    box-shadow: var(--primary-box-shadow);
    overflow: hidden;
}

.location-map .place-map {
    min-height: 320px;
}

.location-map-link {
    align-self: flex-start;
    font-family: var(--secondary-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.location-map-link:hover {
    text-decoration: underline;
}

.location-rules {
    flex: 1 1 45%;
    background: var(--background-color);
    padding: 30px;
    box-sizing: border-box;
}

/* An <h2> (it heads a section of the page) that keeps the look of the <h3> it was: the font and
   margin are what an h3 takes from main/style.css and the browser. */
.location-rules h2 {
    text-align: left;
    font-family: var(--tertiary-font);
    font-size: 1.2em;
    margin: 1em 0 20px;
}

.location-rules-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    line-height: 1.6;
    color: rgb(80, 80, 80);
}

.location-rules-list strong {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .location-page h1 {
        font-size: clamp(2rem, 9vw, 3.2em);
        line-height: 1.15;
        margin-top: 0;
    }

    .location-features {
        gap: 20px 32px;
    }

    .location-map-rules {
        flex-direction: column;
        margin-top: 40px;
    }

    .location-rules {
        padding: 24px 20px;
    }

    .location-map,
    .location-map .place-map {
        min-height: 280px;
    }
}

/* Same breakpoint as the cards going to one column (availability/search.css). */
@media (max-width: 680px) {
    .location-page {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Finding the complex, parking and the nearest shops, under the map: what a guest used to learn
   only after booking (the Manage Booking hub's Location page reads the same fields). One panel
   each, in the look of the "Good to Know" panel above, all as tall as the tallest. */
.location-practical {
    margin-top: 70px;
}

.location-practical h2 {
    margin: 0 0 30px;
}

.location-practical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.location-practical-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 30px;
    background: var(--background-color);
    text-align: left;
}

/* Beats main/style.css's img { width: 100%; height: 100% }. */
.location-practical-item .location-practical-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
}

.location-practical-item h3 {
    margin: 0 0 12px;
    text-align: left;
    font-family: var(--tertiary-font);
    font-size: 1.2em;
}

.location-practical-item p {
    margin: 0 0 10px;
    text-align: left;
    line-height: 1.75;
    font-family: var(--primary-font);
    color: rgb(80, 80, 80);
}

/* "Corner shop", "Supermarket": which of the two the lines under it are about. */
.location-practical-item .location-practical-label {
    margin: 14px 0 4px;
    font-family: var(--secondary-font);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-color);
}

.location-practical-item h3 + .location-practical-label {
    margin-top: 0;
}

.location-practical-map {
    font-size: 0.9rem;
}

.location-practical-more {
    margin: 36px 0 0;
    text-align: center;
}

.location-practical a,
.all-apartments-page a {
    color: var(--primary-color);
    font-family: var(--secondary-font);
    font-weight: 600;
    text-decoration: none;
}

.location-practical a:hover,
.all-apartments-page p a:hover,
.all-apartments-page h2 a:hover {
    text-decoration: underline;
}

@media (max-width: 680px) {
    .location-practical-item {
        padding: 24px 20px;
    }
}

/* Every apartment, complex by complex (properties/all.html): the complex page's column and tiles. */
.all-apartments-intro {
    max-width: 640px;
    margin: 0 auto 50px;
    line-height: 1.8;
    font-family: var(--primary-font);
    color: rgb(80, 80, 80);
}

.all-apartments-complex {
    margin: 0 0 70px;
}

.all-apartments-complex h2 {
    margin: 0 0 6px;
}

.all-apartments-complex h2 a {
    color: inherit;
    font-family: inherit;
    font-weight: inherit;
}

.all-apartments-count {
    margin: 0 0 30px;
    text-align: center;
    font-family: var(--secondary-font);
    font-size: 0.9rem;
    color: rgb(110, 110, 110);
}
