/* width + border-box: see .location-page in locations/location.css - same flex-item sizing. */
.property-page {
    width: 100%;
    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px var(--primary-margin-bottom);
}

.property-back-to-search {
    display: block;
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 0 20px;
    color: var(--primary-color);
    font-family: var(--secondary-font);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.property-back-to-search:hover {
    text-decoration: underline;
}

.property-page h1 {
    margin-bottom: 48px;
}

.property-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin: 0 auto 56px;
    padding: 16px 0;
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
}

.property-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 28px;
}

.property-stat:not(:last-child) {
    border-right: 1px solid #ebebeb;
}

.property-stat-value {
    font-family: var(--primary-font);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1;
}

.property-stat-label {
    margin-top: 6px;
    font-family: var(--secondary-font);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--secondary-color);
    white-space: nowrap;
}

/* Four in a row needs about 575px with the full 28px gaps, so between there and the two-by-two
   layout below (560px) the row was wider than the screen. Tighter gaps keep it on one line. */
@media (max-width: 640px) {
    .property-stat {
        padding: 0 16px;
    }
}

@media (max-width: 560px) {
    .property-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        width: auto;
        margin-left: 20px;
        margin-right: 20px;
        gap: 20px 0;
    }

    .property-stat {
        padding: 0;
        border-right: none !important;
    }
}

.property-blurb {
    max-width: 720px;
    margin: 0 auto 80px;
    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);
}

.property-features {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    justify-items: center;
    gap: 40px 48px;
    max-width: 800px;
    margin: 0 auto 40px;
}

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

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

.property-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);
    text-align: center;
}

@media (max-width: 768px) {
    .property-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px 24px;
    }

    .property-feature-icon {
        width: 36px;
        height: 36px;
    }

    .property-feature-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* minmax(0, 1fr), not 1fr: a plain 1fr column can't be narrower than its longest word, so one
       long label widened its column and pushed the third column off a 320px screen (2026-10-04).
       Three equal columns that always fit instead. */
    .property-features {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px 16px;
    }
}

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

/* Rental licence (AL) number - a legal display requirement for a holiday-let listing in Portugal.
   Sits just under the title, pulled up into the title's own bottom margin. */
.property-licence {
    margin: -36px 0 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    letter-spacing: 0.02em;
}
