.arhp-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:root {
    --arhp-ink: #20333b;
    --arhp-muted: #5f6e73;
    --arhp-border: #d8e0e1;
    --arhp-control-border: #7c898e;
    --arhp-surface: #ffffff;
    --arhp-soft: #f3f6f5;
    --arhp-accent: #006d77;
    --arhp-accent-dark: #004f57;
    --arhp-warm: #b85c38;
    --arhp-radius: 12px;
    --arhp-shadow: 0 12px 30px rgba(25, 49, 57, 0.10);
}

.arhp-directory,
.arhp-single {
    color: var(--arhp-ink);
}

.arhp-directory *,
.arhp-single * {
    box-sizing: border-box;
}

.arhp-directory__heading {
    margin: 0 0 1.25rem;
}

.arhp-map-shell {
    position: relative;
    margin: 0 0 2rem;
    overflow: hidden;
    border: 1px solid var(--arhp-border);
    border-radius: var(--arhp-radius);
    background: var(--arhp-soft);
    box-shadow: var(--arhp-shadow);
}

.arhp-map {
    width: 100%;
    height: var(--arhp-map-height, 540px);
    min-height: 320px;
    z-index: 1;
}

/* Keep theme image rules from changing Leaflet tile geometry or appearance. */
.arhp-map .leaflet-tile {
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: content-box !important;
    filter: none !important;
    image-rendering: auto;
}


.arhp-map .leaflet-marker-icon,
.arhp-map .leaflet-marker-shadow {
    max-width: none !important;
    max-height: none !important;
    filter: none !important;
}

.arhp-map-shell__notice {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    z-index: 500;
    transform: translateX(-50%);
    width: min(90%, 580px);
    margin: 0;
    padding: .75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .12);
    text-align: center;
}

.arhp-directory__tools {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.25rem;
}

.arhp-search {
    flex: 1 1 680px;
    max-width: 760px;
}

.arhp-search label {
    display: block;
    margin: 0 0 .45rem;
    font-weight: 700;
}

.arhp-search__control {
    position: relative;
}

.arhp-search__control svg {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--arhp-muted);
    pointer-events: none;
}

.arhp-search input[type="search"] {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: .8rem 1rem .8rem 3.1rem;
    border: 2px solid var(--arhp-control-border);
    border-radius: 10px;
    background: var(--arhp-surface);
    color: var(--arhp-ink);
    font: inherit;
    line-height: 1.35;
}

.arhp-search input[type="search"]::placeholder {
    color: var(--arhp-muted);
    opacity: 1;
}

.arhp-search input[type="search"]:focus {
    border-color: var(--arhp-accent);
    outline: 3px solid var(--arhp-accent-dark);
    outline-offset: 1px;
}

.arhp-results-count {
    flex: 0 0 auto;
    margin: 0 0 .8rem;
    color: var(--arhp-muted);
    font-weight: 700;
    white-space: nowrap;
}

.arhp-property-list {
    display: grid;
    gap: 1.25rem;
}

.arhp-property-card {
    display: grid;
    grid-template-columns: minmax(210px, 290px) 1fr;
    overflow: hidden;
    border: 1px solid var(--arhp-border);
    border-radius: var(--arhp-radius);
    background: var(--arhp-surface);
    box-shadow: 0 7px 22px rgba(25, 49, 57, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.arhp-property-card:hover,
.arhp-property-card:focus-within {
    transform: translateY(-2px);
    border-color: #79aeb2;
    box-shadow: var(--arhp-shadow);
}

.arhp-property-card[hidden] {
    display: none !important;
}

.arhp-property-card__image {
    display: block;
    min-height: 220px;
    background: var(--arhp-soft);
}

.arhp-property-card__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.arhp-property-card__placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    color: #5e9fa5;
    background: linear-gradient(145deg, #edf4f2, #dfe9e8);
}

.arhp-property-card__placeholder svg {
    width: 72px;
    height: 72px;
}

.arhp-property-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(1.2rem, 3vw, 2rem);
}

.arhp-property-card__title {
    margin: 0 0 .45rem;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1.2;
}

.arhp-property-card__title {
    color: var(--arhp-ink);
}

.arhp-property-card__address {
    margin: 0 0 .75rem;
    color: var(--arhp-muted);
    font-weight: 650;
}

.arhp-property-card__excerpt {
    max-width: none !important;
    margin: 0 0 1.15rem;
    color: var(--arhp-ink);
    line-height: 1.65;
}

.arhp-property-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: auto;
}

.arhp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .65rem 1rem;
    border: 2px solid transparent;
    border-radius: 7px;
    font: inherit;
    font-weight: 750;
    line-height: 1.15;
    text-decoration: none !important;
    cursor: pointer;
}

.arhp-button--primary {
    background: var(--arhp-accent);
    color: #fff !important;
}

.arhp-button--primary:hover,
.arhp-button--primary:focus {
    background: var(--arhp-accent-dark);
}

.arhp-button--secondary {
    border-color: var(--arhp-accent);
    background: transparent;
    color: var(--arhp-accent);
}

.arhp-button--secondary:hover,
.arhp-button--secondary:focus {
    background: var(--arhp-soft);
}

.arhp-button:focus-visible {
    outline: 3px solid var(--arhp-accent-dark);
    outline-offset: 2px;
}

.arhp-no-results {
    margin: 1.5rem 0 0;
    padding: 1.25rem;
    border: 1px solid var(--arhp-border);
    border-radius: 10px;
    background: var(--arhp-soft);
    text-align: center;
    font-weight: 700;
}

/* Leaflet popup */
.arhp-map-popup {
    overflow: hidden;
    margin: -1px;
    border-radius: 6px;
    background: #fff;
}

.arhp-map-popup__image {
    display: block;
}

.arhp-map-popup__image img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.arhp-map-popup__content {
    padding: .85rem .95rem .95rem;
}

.arhp-map-popup__title {
    margin: 0 0 .35rem;
    font-size: 1.05rem;
    line-height: 1.25;
}

.arhp-map-popup__address {
    margin: 0 0 .65rem;
    color: var(--arhp-muted);
    line-height: 1.4;
}

.arhp-map-popup__link {
    color: var(--arhp-accent-dark);
    font-weight: 750;
}

.arhp-gallery__main:focus-visible,
.arhp-gallery__thumb:focus-visible,
.arhp-resource-list a:focus-visible,
.arhp-related-list a:focus-visible,
.arhp-map-popup a:focus-visible,
.arhp-map .leaflet-control a:focus-visible,
.arhp-map .leaflet-marker-icon:focus-visible {
    outline: 3px solid var(--arhp-accent-dark);
    outline-offset: 3px;
}

.leaflet-popup-content {
    margin: 0;
}

.leaflet-popup-content-wrapper {
    overflow: hidden;
    padding: 0;
    border-radius: 8px;
}

/* Single property */
.arhp-single {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.arhp-single__header {
    margin-bottom: 1.75rem;
}

.arhp-single__eyebrow {
    margin: 0 0 .5rem;
    color: var(--arhp-accent);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.arhp-single__title {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
}

.arhp-single__address {
    margin: .85rem 0 0;
    color: var(--arhp-muted);
    font-size: clamp(1rem, 2vw, 1.22rem);
    font-weight: 650;
}

.arhp-single__recognition {
    display: inline-flex;
    margin: .9rem 0 0;
    padding: .4rem .7rem;
    border-radius: 999px;
    background: #f5eadf;
    color: #7d3d22;
    font-size: .9rem;
    font-weight: 800;
}

.arhp-single__intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
    gap: 1.5rem;
    align-items: start;
    margin: 0 0 2.5rem;
}


.arhp-single__intro-grid--no-gallery {
    grid-template-columns: minmax(0, 1fr);
}

.arhp-gallery,
.arhp-facts,
.arhp-content-section,
.arhp-resources,
.arhp-related {
    border: 1px solid var(--arhp-border);
    border-radius: var(--arhp-radius);
    background: var(--arhp-surface);
    box-shadow: 0 7px 24px rgba(25, 49, 57, .07);
}

.arhp-gallery {
    overflow: hidden;
}

.arhp-gallery__main {
    display: block;
    background: var(--arhp-soft);
}

.arhp-gallery__main img {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: cover;
}

.arhp-gallery__caption {
    margin: 0;
    padding: .75rem 1rem;
    color: var(--arhp-muted);
    font-size: .92rem;
}

.arhp-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    background: var(--arhp-border);
}

.arhp-gallery__thumb {
    display: block;
    background: var(--arhp-soft);
}

.arhp-gallery__thumb img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.arhp-facts {
    padding: 1.35rem;
}

.arhp-facts h2,
.arhp-content-section h2,
.arhp-resources h2,
.arhp-related h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.arhp-facts dl {
    margin: 0;
}

.arhp-facts__row {
    padding: .8rem 0;
    border-top: 1px solid var(--arhp-border);
}

.arhp-facts__row:first-child {
    padding-top: 0;
    border-top: 0;
}

.arhp-facts dt {
    margin: 0 0 .2rem;
    color: var(--arhp-muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.arhp-facts dd {
    margin: 0;
    line-height: 1.5;
}

.arhp-single__map-section {
    margin: 0 0 2.5rem;
}

.arhp-single__map-section h2 {
    margin: 0 0 .8rem;
}

.arhp-single__map-section .arhp-map {
    --arhp-map-height: 420px;
    overflow: hidden;
    border: 1px solid var(--arhp-border);
    border-radius: var(--arhp-radius);
    box-shadow: var(--arhp-shadow);
}

.arhp-content-stack {
    display: grid;
    gap: 1.5rem;
}

.arhp-content-section,
.arhp-resources,
.arhp-related {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.arhp-content-section h3 {
    margin: 1.6rem 0 .55rem;
    color: var(--arhp-accent-dark);
    font-size: 1.15rem;
}

.arhp-content-section h3:first-child {
    margin-top: 0;
}

.arhp-rich-text {
    line-height: 1.75;
}

.arhp-rich-text > :first-child {
    margin-top: 0;
}

.arhp-rich-text > :last-child {
    margin-bottom: 0;
}

.arhp-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.arhp-detail {
    padding-top: .85rem;
    border-top: 1px solid var(--arhp-border);
}

.arhp-detail__label {
    display: block;
    margin: 0 0 .25rem;
    color: var(--arhp-muted);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.arhp-resource-list,
.arhp-related-list {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.arhp-resource-list a,
.arhp-related-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 1rem;
    border: 1px solid var(--arhp-border);
    border-radius: 8px;
    color: var(--arhp-accent-dark);
    font-weight: 750;
    text-decoration: none;
}

.arhp-resource-list a:hover,
.arhp-resource-list a:focus,
.arhp-related-list a:hover,
.arhp-related-list a:focus {
    border-color: var(--arhp-accent);
    background: var(--arhp-soft);
}

@media (max-width: 820px) {
    .arhp-directory__tools {
        align-items: stretch;
        flex-direction: column;
        gap: .75rem;
    }

    /* In column flex layouts the desktop 680px flex-basis becomes height. */
    .arhp-search {
        flex: 0 1 auto;
        width: 100%;
        max-width: none;
    }

    .arhp-results-count {
        margin: 0;
    }

    .arhp-property-card {
        grid-template-columns: 1fr;
    }

    .arhp-property-card__image,
    .arhp-property-card__img,
    .arhp-property-card__placeholder {
        min-height: 240px;
        max-height: 390px;
    }

    .arhp-single__intro-grid {
        grid-template-columns: 1fr;
    }

    .arhp-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .arhp-map {
        min-height: 360px;
        height: min(var(--arhp-map-height, 540px), 70vh);
    }

    .arhp-property-card__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .arhp-button {
        width: 100%;
    }

    .arhp-gallery__thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .arhp-gallery__thumb img {
        height: 120px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .arhp-property-card,
    .arhp-button {
        transition: none;
    }

    .arhp-property-card:hover,
    .arhp-property-card:focus-within {
        transform: none;
    }
}

/* WebP <picture> wrappers retain the layout of the original responsive images. */
.arhp-picture {
    display: block;
    width: 100%;
    height: 100%;
}
