/* Available Properties: tabbed HAR rental search in the Melanna PM visual system. */

.u-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.properties-hero {
    position: relative;
    padding: clamp(4.5rem, 10vw, 7.5rem) 1.25rem;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(21, 32, 68, 0.97), rgba(35, 52, 109, 0.9)),
        url("../../images/dillon-kydd-pvdx8c6Y5BY-unsplash.png") center 58% / cover;
    text-align: center;
}

.properties-hero::after {
    position: absolute;
    right: -7rem;
    bottom: -8rem;
    width: 20rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.04);
}

.properties-hero__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 850px);
    margin: 0 auto;
}

.properties-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.properties-eyebrow::before,
.properties-eyebrow::after {
    width: 2rem;
    height: 1px;
    content: "";
    background: currentColor;
    opacity: 0.65;
}

.properties-hero h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.02;
}

.properties-hero h1 em {
    display: block;
    font-family: "Shippori Mincho", serif;
    font-weight: 400;
}

.properties-hero p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.7;
}

.properties-search {
    padding: clamp(3.5rem, 8vw, 6rem) 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #F8F6F0 100%);
}

.properties-search__inner {
    width: min(100%, 1200px);
    margin: 0 auto;
}

.properties-heading {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.properties-heading h2 {
    margin: 0 0 0.75rem;
    color: #23346d;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 1.12;
}

.properties-heading p {
    margin: 0;
    color: #555555;
    font-size: 1.08rem;
    line-height: 1.7;
}

.properties-explorer {
    box-sizing: border-box;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: #ffffff;
    border: 1px solid #e0dcd3;
    border-top: 4px solid #23346d;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(35, 52, 109, 0.12);
}

.properties-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.properties-tab {
    width: auto;
    min-height: 46px;
    padding: 0.7rem 1.15rem;
    color: #23346d;
    background: #ffffff;
    border: 1px solid #cbd0df;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.properties-tab:hover,
.properties-tab[aria-selected="true"] {
    color: #ffffff;
    background: #23346d;
    border-color: #23346d;
}

.properties-tab:focus-visible,
.properties-action:focus-visible {
    outline: 3px solid rgba(35, 52, 109, 0.28);
    outline-offset: 3px;
}

.properties-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
}

.properties-status {
    margin: 0;
    color: #555555;
    font-size: 0.9rem;
}

.properties-action {
    display: inline-flex;
    min-height: 44px;
    padding: 0.7rem 1rem;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #23346d;
    border: 1px solid #23346d;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

.properties-action:hover {
    background: #152044;
}

.properties-frame-wrap {
    min-height: 48rem;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d9ddeb;
    border-radius: 10px;
}

.properties-frame {
    display: block;
    width: 100%;
    min-height: 56rem;
    border: 0;
}

.properties-note {
    margin: 1rem 0 0;
    color: #555555;
    font-size: 0.86rem;
    line-height: 1.6;
}

.properties-note a {
    color: #23346d;
    font-weight: 700;
}

.rental-next-steps {
    padding: clamp(3.5rem, 8vw, 6rem) 1rem;
    background: #ffffff;
}

.rental-next-steps__inner {
    display: grid;
    width: min(100%, 1050px);
    margin: 0 auto;
    gap: 1.25rem;
}

.rental-step {
    padding: clamp(1.6rem, 4vw, 2.5rem);
    background: #F8F6F0;
    border: 1px solid #e0dcd3;
    border-bottom: 4px solid #23346d;
    border-radius: 12px;
}

.rental-step__number {
    color: #23346d;
    font-family: "Shippori Mincho", serif;
    font-size: 0.9rem;
    font-weight: 700;
}

.rental-step h2 {
    margin: 0.55rem 0 0.75rem;
    color: #23346d;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.rental-step p {
    margin: 0 0 1.25rem;
    color: #555555;
    line-height: 1.7;
}

.rental-step a {
    color: #23346d;
    font-weight: 800;
}

@media (min-width: 760px) {
    .rental-next-steps__inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .properties-hero {
        padding-block: 4rem;
    }

    .properties-actions {
        display: grid;
    }

    .properties-action {
        width: 100%;
        box-sizing: border-box;
    }

    .properties-frame-wrap {
        min-height: 40rem;
        margin-inline: -1rem;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
    }

    .properties-frame {
        min-height: 50rem;
    }
}

@media (max-width: 768px) {
    .site-header .menu-link,
    .site-header .dropbtn {
        box-sizing: border-box;
    }
}

@media (prefers-reduced-motion: reduce) {
    .properties-tab {
        transition: none;
    }
}
