/*
Theme Name: Avanec Core
Theme URI: https://avanechomes.com/
Author: Avanec Homes
Description: Lightweight WordPress shell for Avanec Homes public Core rendering. Keep inactive until the replacement test matrix has passed.
Version: 0.1.106
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: avanec-core
*/

:root {
    --avc-ink: #10201e;
    --avc-muted: #5f6f68;
    --avc-border: #d9e3dd;
    --avc-surface: #ffffff;
    --avc-soft: #f3f7f1;
    --avc-accent: #0f766e;
    --avc-accent-strong: #0b4f48;
    --avc-max-width: 1240px;
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    margin: 0;
    background: #fbfcf8;
    color: var(--avc-ink);
    font-family: "Work Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

img {
    max-width: 100%;
    height: auto;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.skip-link:focus {
    z-index: 100000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    border-radius: 6px;
    background: var(--avc-ink);
    color: #ffffff;
}

.avc-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.avc-header {
    border-bottom: 1px solid rgba(16, 32, 30, 0.08);
    background: rgba(255, 255, 255, 0.96);
}

.avc-header__inner,
.avc-footer__inner,
.avc-main {
    width: min(100% - 32px, var(--avc-max-width));
    margin: 0 auto;
}

.avc-header__inner {
    min-height: 96px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;
}

.avc-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--avc-ink);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.avc-brand img {
    width: auto;
    max-width: 142px;
    max-height: 72px;
}

.avc-header .custom-logo-link {
    display: inline-flex;
    align-items: center;
}

.avc-header .custom-logo-link img {
    display: block;
    width: auto;
    max-width: 142px;
    max-height: 72px;
}

.avc-brand__text {
    display: inline-block;
    line-height: 1.05;
}

.avc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.avc-nav__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.avc-nav__menu li {
    margin: 0;
}

.avc-nav a {
    color: var(--avc-ink);
    font-size: 0.92rem;
    font-weight: 750;
    text-decoration: none;
}

.avc-nav a[aria-current="page"] {
    color: var(--avc-accent);
}

.avc-main {
    flex: 1 0 auto;
    padding: 56px 0;
}

.avc-content {
    max-width: 880px;
}

.avc-content h1,
.avc-content h2,
.avc-content h3 {
    line-height: 1.1;
}

.avc-content h1 {
    margin: 0 0 22px;
    font-size: clamp(2.25rem, 6vw, 5.4rem);
}

.avc-content p {
    color: var(--avc-muted);
}

.avc-entry {
    padding: 28px 0;
    border-bottom: 1px solid var(--avc-border);
}

.avc-entry:first-child {
    padding-top: 0;
}

.avc-entry__title {
    margin: 0 0 10px;
    font-size: clamp(1.6rem, 4vw, 3rem);
}

.avc-entry__title a {
    text-decoration: none;
}

body.avh-properties-core-shell .avc-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.avh-properties-core-shell .avc-content {
    width: 100%;
    max-width: none;
}

body.avh-properties-core-shell .avc-entry {
    padding: 0;
    border-bottom: 0;
}

body.avh-property-core-shell .avc-entry__title {
    display: none;
}

body.avh-properties-core-shell .avc-entry__content {
    width: 100%;
    max-width: none;
}

body.avh-property-search-core-shell .avc-entry__title {
    width: min(100% - 32px, 1420px);
    margin: 34px auto 18px;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
    font-size: clamp(2.15rem, 3.35vw, 3.35rem);
    font-weight: 500;
    line-height: 1.05;
    text-transform: none;
    color: #142027;
}

body.avanec-core-theme.avh-properties-core-shell .avh-property-search,
body.avanec-core-theme.avh-properties-core-shell .avh-search-alert,
body.avanec-core-theme.avh-properties-core-shell .avh-no-results,
body.avanec-core-theme.avh-properties-core-shell .avh-search-fallback,
body.avanec-core-theme.avh-properties-core-shell .avh-properties-grid {
    width: min(100% - 32px, 1220px);
    margin-left: auto;
    margin-right: auto;
}

body.avanec-core-theme.avh-properties-core-shell .avh-properties-grid {
    gap: 22px;
    align-items: stretch;
}

body.avanec-core-theme.avh-properties-core-shell .avh-property-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-color: rgba(16, 32, 30, 0.10);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(16, 32, 30, 0.07);
}

body.avanec-core-theme.avh-properties-core-shell .avh-property-card-image img {
    height: clamp(220px, 18vw, 254px);
}

body.avanec-core-theme.avh-properties-core-shell .avh-property-card-image-placeholder {
    height: clamp(220px, 18vw, 254px);
}

body.avanec-core-theme.avh-properties-core-shell .avh-property-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 17px 18px 18px;
}

body.avanec-core-theme.avh-properties-core-shell .avh-property-card-title {
    margin-bottom: 11px;
    font-size: clamp(19px, 1.4vw, 22px);
    line-height: 1.16;
}

body.avanec-core-theme.avh-properties-core-shell .avh-property-card-title a {
    min-height: 0;
}

body.avanec-core-theme.avh-properties-core-shell .avh-property-card-price {
    margin-bottom: 9px;
    font-size: clamp(21px, 1.5vw, 24px);
    line-height: 1.15;
}

body.avanec-core-theme.avh-properties-core-shell .avh-property-card-location,
body.avanec-core-theme.avh-properties-core-shell .avh-property-card-meta,
body.avanec-core-theme.avh-properties-core-shell .avh-property-ref {
    font-size: 0.92rem;
    line-height: 1.45;
}

body.avanec-core-theme.avh-property-core-shell .avh-property-vnext {
    padding-top: 24px;
}

body.avanec-core-theme.avh-property-core-shell .avh-vnext-wrap {
    width: min(100% - 32px, 1220px);
}

body.avanec-core-theme.avh-property-core-shell .avh-vnext-property-bar {
    gap: 20px;
    padding: 17px 19px;
}

body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero {
    gap: 22px;
}

body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero-card {
    gap: 15px;
    padding: clamp(22px, 2.2vw, 28px);
}

body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero-card h1 {
    font-size: clamp(34px, 2.55vw, 43px);
    line-height: 1.08;
}

body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero-card p {
    font-size: 17px;
    line-height: 1.55;
}

body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-card {
    padding: 15px;
}

body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-head {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 13px;
}

body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-photo,
body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-placeholder {
    width: 74px;
    height: 74px;
}

body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-card h3 {
    font-size: 23px;
    line-height: 1.12;
}

body.avanec-core-theme.avh-property-core-shell .avh-vnext-grid-2 {
    gap: 24px;
}

body.avanec-core-theme.avh-property-core-shell .avh-vnext-section {
    padding: 44px 0;
}

@media (min-width: 1180px) {
    body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
    }
}

@media (min-width: 880px) and (max-width: 1179px) {
    body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
        align-items: start;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero-card h1 {
        font-size: 30px;
        line-height: 1.1;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero-card p {
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (max-width: 1100px) {
    body.avanec-core-theme.avh-properties-core-shell .avh-properties-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.avanec-core-theme.avh-project-core-compatible-shell .avh-project-archive-hero h1 {
        font-size: 34px !important;
        line-height: 1.02 !important;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    body.avanec-core-theme.avh-project-core-compatible-shell .avh-project-preview {
        width: 100%;
        max-width: 100%;
    }

    body.avanec-core-theme.avh-project-core-compatible-shell .avh-project-floating-contact {
        right: 0;
        width: auto;
        max-width: none;
    }

    body.avanec-core-theme.avh-project-core-compatible-shell .avh5-footer .avh5-nav {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex-wrap: wrap;
        overflow: visible;
    }

    body.avanec-core-theme.avh-project-core-compatible-shell .avh5-footer .avh5-nav a {
        white-space: normal;
    }

    body.avanec-core-theme.avh-project-core-compatible-shell .avh5-topbar > .avh5-nav {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    body.avanec-core-theme.avh-properties-core-shell {
        overflow-x: hidden;
    }

    body.avh-property-search-core-shell .avc-entry__title {
        width: min(100% - 28px, 390px);
        margin: 24px auto 12px;
        font-family: "Work Sans", Arial, sans-serif;
        font-size: 28px;
        font-weight: 800;
        line-height: 32px;
        letter-spacing: 0;
        text-transform: none;
    }

    body.avanec-core-theme.avh-properties-core-shell .avc-site,
    body.avanec-core-theme.avh-properties-core-shell .avc-main,
    body.avanec-core-theme.avh-properties-core-shell .avc-content,
    body.avanec-core-theme.avh-properties-core-shell .avc-entry__content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh5-topbar {
        width: 100%;
        max-width: 100%;
        position: static !important;
        top: auto !important;
        display: grid;
        grid-template-columns: 94px minmax(0, 1fr);
        align-items: center;
        gap: 10px 12px;
        padding: 14px 16px 15px;
        overflow: hidden;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh5-topbar:has(.avc-language__menu[open]) {
        position: relative !important;
        z-index: 1000;
        overflow: visible;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh5-logo {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh5-logo img {
        width: 88px;
        max-width: 88px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh5-lang,
    body.avanec-core-theme.avh-properties-core-shell .avh5-topbar > .avc-language {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
        justify-self: end;
        margin-left: 0;
        gap: 8px;
        flex-wrap: nowrap;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh5-lang,
    body.avanec-core-theme.avh-properties-core-shell .avc-language,
    body.avanec-core-theme.avh-properties-core-shell .avh5-nav {
        min-width: 0;
        max-width: 100%;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh5-lang a {
        min-width: 26px;
        min-height: 28px;
        padding: 0 2px 2px;
        font-size: 13px;
        line-height: 18px;
        font-weight: 800;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh5-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        flex-wrap: wrap;
        gap: 9px 16px;
        padding: 2px 0 0;
        overflow: visible;
        scrollbar-width: none;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh5-nav::-webkit-scrollbar {
        display: none;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh5-nav a {
        min-height: 28px;
        padding: 0;
        font-size: 15px;
        font-weight: 800;
        line-height: 20px;
        white-space: nowrap;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-search,
    body.avanec-core-theme.avh-properties-core-shell .avh-search-alert,
    body.avanec-core-theme.avh-properties-core-shell .avh-no-results,
    body.avanec-core-theme.avh-properties-core-shell .avh-search-fallback,
    body.avanec-core-theme.avh-properties-core-shell .avh-properties-grid {
        width: min(100% - 28px, 1220px);
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-search {
        padding: 16px 14px;
        margin-bottom: 18px;
        border: 1px solid rgba(16, 32, 30, 0.08);
        border-radius: 12px;
        background: #f7f9fb;
        box-shadow: none;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-search-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-search-field label {
        font-size: 14px;
        line-height: 19px;
        margin-bottom: 6px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-search-field input,
    body.avanec-core-theme.avh-properties-core-shell .avh-property-search-field select {
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 16px;
        line-height: 21px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-mobile-advanced-search {
        margin-top: 12px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-mobile-advanced-search-toggle {
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 16px;
        line-height: 21px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-search-actions {
        gap: 10px;
        margin-top: 14px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-search-actions button,
    body.avanec-core-theme.avh-properties-core-shell .avh-property-search-actions a {
        min-height: 48px;
        padding: 0 14px;
        border-radius: 10px;
        font-size: 16px;
        line-height: 21px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-search-count {
        font-size: 16px;
        line-height: 22px;
        margin-top: 14px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-search-alert {
        margin-top: 18px;
        border: 1px solid rgba(16, 32, 30, 0.08);
        border-radius: 14px;
        background: #f8fbff;
        box-shadow: none;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-search-alert-details summary {
        align-items: center;
        gap: 14px;
        min-height: 58px;
        padding: 14px 16px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-search-alert-details summary::after {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
        font-size: 18px;
        line-height: 32px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-search-alert-title {
        font-size: 18px;
        line-height: 23px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-search-alert-text,
    body.avanec-core-theme.avh-properties-core-shell .avh-search-alert p {
        font-size: 16px;
        line-height: 24px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-search-alert-details[open] summary {
        padding-bottom: 12px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-search-alert-body {
        padding: 0 16px 16px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-properties-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
        max-width: 390px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-card {
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 10px 24px rgba(16, 32, 30, 0.08);
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-card-image img {
        height: 232px;
        width: 100%;
        object-fit: cover;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-card-body {
        padding: 18px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-card-title {
        margin-bottom: 8px;
        font-size: 21px;
        line-height: 27px;
        overflow-wrap: anywhere;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-card-price {
        margin-bottom: 8px;
        font-size: 24px;
        line-height: 30px;
    }

    body.avanec-core-theme.avh-properties-core-shell .avh-property-card-location,
    body.avanec-core-theme.avh-properties-core-shell .avh-property-card-meta,
    body.avanec-core-theme.avh-properties-core-shell .avh-property-ref {
        font-size: 16px;
        line-height: 24px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-property-vnext {
        left: auto;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-wrap {
        width: min(100% - 24px, 1220px) !important;
        max-width: min(100% - 24px, 1220px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-property-bar {
        gap: 10px;
        padding: 12px 14px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero {
        gap: 16px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero-card {
        gap: 12px;
        padding: 18px 16px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-location,
    body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero-card h1,
    body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero-card p,
    body.avanec-core-theme.avh-property-core-shell .avh-vnext-copy,
    body.avanec-core-theme.avh-property-core-shell .avh-vnext-copy p {
        max-width: 100% !important;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-location {
        font-size: 15px;
        line-height: 20px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-type {
        font-size: 15px;
        line-height: 21px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-eyebrow {
        font-size: 14px;
        line-height: 19px;
        letter-spacing: 0.03em;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero-card h1 {
        font-size: 30px;
        line-height: 35px;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-hero-card p {
        font-size: 17px;
        line-height: 26px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-card {
        padding: 14px;
        border-radius: 10px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-list {
        gap: 12px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-head {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 12px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-photo,
    body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-placeholder {
        width: 70px;
        height: 70px;
        border-width: 4px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-role {
        font-size: 13px !important;
        line-height: 18px;
        margin-bottom: 3px !important;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-card h3 {
        font-size: 22px;
        line-height: 27px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-card p {
        font-size: 16px;
        line-height: 24px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-text {
        margin-top: 12px !important;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-actions {
        gap: 8px;
        margin-top: 12px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-agent-actions .avh-vnext-btn {
        min-height: 48px;
        font-size: 16px;
        line-height: 21px;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-sticky-actions {
        width: 100%;
        max-width: 100%;
    }

    body.avanec-core-theme.avh-property-core-shell .avh-vnext-sticky-actions .avh-vnext-btn {
        min-height: 58px;
        padding-top: 12px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        font-size: 17px;
        line-height: 22px;
    }
}

.avc-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(16, 32, 30, 0.08);
    background: #eef5ee;
}

.avc-footer__inner {
    padding: 36px 0;
    display: grid;
    gap: 18px;
}

.avc-footer__brand {
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.avc-footer__meta,
.avc-footer__legal,
.avc-footer__copyright {
    color: var(--avc-muted);
    font-size: 0.92rem;
}

.avc-footer__legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.avc-footer__copyright {
    padding-top: 16px;
    border-top: 1px solid rgba(16, 32, 30, 0.08);
}

@media (max-width: 820px) {
    .avc-header__inner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 18px 0;
        gap: 16px;
        justify-items: center;
    }

    .avc-nav {
        gap: 12px;
    }

    .avc-main {
        padding: 36px 0;
    }
}
