/*
Theme Name: Coventry Commons - HV
Template: polymer-classic
Version: 1.0.0
Text Domain: cc-hv
*/
:root{--bs-body-bg:var(--hv-color-background);--bs-body-color:var(--hv-color-ink);--bs-body-font-family:var(--hv-font-body);--polymer-card-icon-size:4rem}

body{background:var(--hv-color-background);color:var(--hv-color-ink);font-family:var(--hv-font-body);font-size:18px}
h1,h2,h3,h4{font-family:var(--hv-font-display);font-weight:400;line-height:1.12}
h1{font-size:clamp(3rem,5.5vw,5rem)}
h2{font-size:clamp(2.3rem,4vw,4rem)}
h3{font-size:2rem}
a{color:inherit}
.site-header,.site-header .navbar.bg-body{background:var(--hv-color-background)!important}
.site-header{border-bottom:0!important}
.navbar{padding:1rem 0}
.navbar-brand img,.navbar-brand svg{max-width:190px}
.site-header .nav-link,.btn,.butt,.sub,.headline{font-family:var(--hv-font-ui)}
.site-header .nav-link{text-transform:uppercase}
.site-header .menu-item a[href$="/contact/"],.site-header .menu-item a[href$="/inquire/"]{background:var(--hv-color-nav-accent);color:white;border-radius:12px;padding:1rem}
.butt{display:inline-block;text-decoration:none}
.butt svg{width:22px;height:22px;margin-left:14px;stroke:currentColor;fill:none}
.headline,.sub{text-transform:uppercase;letter-spacing:.06em;font-size:1.45rem}
.page-headline{padding-top:4rem!important;padding-bottom:3rem!important}
.polymer-classic-layout img{max-width:100%}
.polymer-classic-layout img:not(.polymer-slider__image){height:auto}
.max-width{max-width:760px;margin:auto}
.hv-hero-image{min-height:70vh}
.hv-hero-image .container{min-height:inherit;display:flex;align-items:end}
.text-bottom-left{min-height:600px}
.overlay-tan{--polymer-background-overlay:rgb(var(--hv-surface-rgb) / .8)}
.overlay-tan h2{max-width:900px}
.site-footer{background:var(--hv-color-ink);color:var(--hv-color-background)}
.site-footer .polymer-classic-layout{background:transparent;color:inherit}
.site-footer a{color:inherit}
.site-footer .logo-footer{display:block;max-width:300px;margin:auto}
.site-footer nav ul{list-style:none;padding:0}
.site-footer nav a{font-family:var(--hv-font-display);font-size:1.8rem;text-decoration:none}
.site-footer .legal-styles{padding-top:5rem!important;font-size:.85rem;opacity:.7}
.site-footer .sn{display:flex;gap:1rem}
.site-footer .sn svg{height:20px;width:20px;fill:currentColor}
.hv-properties-special{color:var(--hv-color-special)}
.polymer-default-content{padding:4rem 0}
.hv-icon{width:64px;height:64px;object-fit:contain;margin-bottom:1rem}

@media(max-width:767px){.site-footer{text-align:center}
.text-bottom-left{min-height:400px}
.site-footer .legal-styles{padding-top:2rem!important}
.navbar-brand img,.navbar-brand svg{max-width:150px}
}

body .site-header .navbar-nav .nav-link{font-size:var(--polymer-navigation-font-size, 1.4rem);line-height:1.4;padding-inline:1rem}
.polymer-classic-layout.hv-image-panel{min-height:70vh;max-width:calc(100% - 3rem);margin-inline:auto;--polymer-layout-overlay:transparent}
.polymer-classic-layout.overlay-tan{--polymer-layout-overlay:rgb(var(--hv-surface-rgb) / .82);--polymer-layout-text:var(--hv-color-ink);--polymer-layout-link:var(--hv-color-ink)}
.polymer-classic-layout.overlay-tan h2,.polymer-classic-layout.overlay-tan p{color:var(--hv-color-ink)}
:root{--polymer-style-1-background:var(--hv-color-surface);--polymer-style-1-text:var(--hv-color-ink);--polymer-style-2-background:var(--hv-color-ink);--polymer-style-2-text:var(--hv-color-background);--polymer-button-background:var(--hv-color-accent);--polymer-button-text:var(--hv-color-white)}
.hv-properties-attraction{padding:1.5rem;border:1px solid var(--hv-color-border-attraction);height:100%}


.hv-cta { text-align: center; }

.hv-cta h2 { margin-bottom: 1.5rem; }

.hv-cta p:last-child { margin: 2rem 0 0; }

/* Footer: address, centered logo, and a desktop menu aligned bottom-right. */
.site-footer .footer-grid .logo-footer { width: 100%; }

.site-footer .footer-grid .polymer-display-menu__list { gap: .5rem; }

.site-footer .footer-grid nav a { line-height: 1.2; }

@media (min-width: 992px) {
    .site-footer .footer-grid > .container > .row > :last-child { align-self: flex-end; text-align: right; }

    .site-footer .footer-grid .polymer-display-menu__list { align-items: flex-end; }

}

@media (max-width: 991.98px) {
    .site-footer .footer-grid { text-align: center; }

    .site-footer .footer-grid .polymer-display-menu__list { align-items: center; }

}

/* Shared primary button typography and sizing. */
body .btn.polymer-button,
body .btn-primary,
body .butt,
body .gform_wrapper :is(.gform_button, .gform_next_button, .gform_previous_button) {
    font-family: var(--hv-font-ui);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: .1em;
    text-transform: uppercase;
    min-height: 64px;
    padding: 15px 24px;
    border-radius: 12px;
}

body .btn.polymer-button:not(.polymer-button--alternate),
body .btn-primary,
body .butt,
body .gform_wrapper :is(.gform_button, .gform_next_button, .gform_previous_button) {
    background-color: var(--hv-color-accent);
    border-color: var(--hv-color-accent);
    color: var(--hv-color-white);
}

body .btn.polymer-button:hover,
body .btn-primary:hover,
body .butt:hover,
body .gform_wrapper :is(.gform_button, .gform_next_button, .gform_previous_button):hover {
    background-color: var(--hv-color-accent-hover);
    border-color: var(--hv-color-accent-hover);
    color: var(--hv-color-white);
}

body .polymer-button--arrow { gap: .65em; }

body .polymer-button--arrow::after { font-family: Arial, sans-serif; font-size: 1.5em; }

/* Decorative emblem stays behind the content and clips naturally at the footer edge. */
.site-footer { position: relative; isolation: isolate; overflow: hidden; }

.site-footer::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 10rem;
    left: 50%;
    width: clamp(320px, 40vw, 560px);
    aspect-ratio: 475.30904 / 529.95486;
    background: url("assets/images/footer-mark-transparent.svg") center top / contain no-repeat;
    transform: translate3d(-50%, var(--hv-footer-parallax, 0px), 0);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .site-footer::before { transform: translateX(-50%); }

}

.site-footer .hv-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.site-footer .hv-footer-social .polymer-social-link {
    width: 2.75rem;
    height: 2.75rem;
    background: var(--hv-color-accent);
    border-color: var(--hv-color-accent);
    color: var(--hv-color-white);
}

.site-footer .hv-footer-social svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }

@media (max-width: 991.98px) {
    .site-footer .hv-footer-social { justify-content: center; }

}

/* Narrative page intros: retain the descriptive H1 without making it the display headline. */
.page-headline h1 {
    font-family: var(--hv-font-ui);
    font-size: clamp(1.25rem, 1.8vw, 1.6rem);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 2.5rem;
}

.page-headline .headline,
.page-headline .headline p {
    font-family: var(--hv-font-display);
    font-size: clamp(2.75rem, 5.5vw, 6rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: normal;
    text-transform: none;
}

.page-headline .headline { text-align: center; margin: 0 0 1.75rem; }

.page-headline .headline p { margin: 0; }

.page-headline .desc { max-width: 58rem; margin-inline: auto; }

@media (max-width: 575.98px) {
    .page-headline h1 { margin-bottom: 1.75rem; }

}

/* Original amenities treatment, using Polymer's editable icon cards. */
.hv-amenities-icons {
    --polymer-card-icon-size: 150px;
    --bs-gutter-y: 4rem;
}

.hv-amenities-icons .polymer-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    overflow: visible;
}

.hv-amenities-icons .polymer-card .card-body {
    align-items: center;
    padding: 0 .625rem;
    font-size: 1.125rem;
    line-height: 1.55;
}

.hv-amenities-icons .polymer-card__icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    isolation: isolate;
    margin-bottom: 1.25rem;
}

.hv-amenities-icons .polymer-card__icon::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 84%;
    height: 69%;
    background: var(--hv-color-accent);
    clip-path: polygon(4% 18%, 100% 0, 86% 100%, 0 82%);
    transform: rotate(-3deg);
}

.hv-amenities-icons .polymer-card__icon img {
    position: relative;
    width: 150px;
    height: 150px;
    object-fit: contain;
}

.hv-amenities-icons .polymer-card .card-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hv-amenities-icons .polymer-card .card-text > :last-child { margin-bottom: 0; }

.hv-amenities-icons > .container > .row { align-items: flex-start !important; row-gap: 4rem; }

/* Align desktop navigation labels with the center of the taller Inquire button. */
@media (min-width: 992px) {
    .site-header .offcanvas-body > .navbar-nav { align-items: center; }

}


/* Property-location presentation belongs to this theme, not the shared engine. */
.hv-properties-location-map iframe { display: block; width: 100%; height: 440px; border: 0; border-radius: 12px; }

.hv-properties-location-map .facetwp-type-map { margin-bottom: 0; }

.hv-properties-location-map #facetwp-map { border-radius: 12px; border: 1px solid var(--hv-color-border-map); box-shadow: 0 12px 32px rgb(var(--hv-ink-rgb) / 5%); }

/* Category buttons filter the map and grid; map exploration stays independent. */
.hv-properties-location-map .facetwp-map-filtering { display: none; }

.hv-properties-map-legend { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; list-style: none; padding: 0; margin: 1rem 0 0; font-size: .9rem; }

.hv-properties-map-legend li { display: flex; align-items: center; gap: .5rem; }

.hv-properties-map-legend li::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--hv-color-accent); }

.hv-properties-map-legend .is-main::before { background: var(--hv-color-ink); }

.hv-properties-location-map .gm-style-iw { font-family: var(--hv-font-body); color: var(--hv-color-ink); }

.hv-properties-location-map .gm-style-iw h3 { font-family: "garamond-premier-pro-display", serif; font-size: 1.6rem; margin: 0 0 .5rem; }

.hv-properties-map-info { max-width: 280px; padding: .25rem .25rem .5rem; }

.hv-properties-map-info .hv-properties-map-category { margin: 0 0 .6rem; color: var(--hv-color-accent-text); font-size: .8rem; font-weight: 600; line-height: 1.4; }

.hv-properties-map-info .hv-properties-map-address { margin: 0; font-size: .95rem; line-height: 1.5; }

.hv-properties-attraction .hv-properties-attraction-category { margin: 0 0 .75rem; color: var(--hv-color-accent-text); font-size: .8rem; font-weight: 600; line-height: 1.4; }

.hv-properties-show-on-map { display: flex; align-items: center; gap: .5rem; margin-top: .75rem; padding: .55rem .85rem; min-height: 44px; border: 1px solid var(--hv-color-border-control); border-radius: 8px; background: var(--hv-color-surface); color: var(--hv-color-text-strong); font: 500 .9rem/1.4 var(--hv-font-body); cursor: pointer; }

.hv-properties-show-on-map:hover { background: var(--hv-color-selected); border-color: var(--hv-color-accent); }

.hv-properties-show-on-map:focus-visible { outline: 2px solid var(--hv-color-accent); outline-offset: 3px; }

.hv-properties-attraction-filters .facetwp-type-radio { display: flex; flex-wrap: wrap; gap: .65rem; margin: 0 0 1.5rem; }

.hv-properties-attraction-filters .facetwp-radio { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; margin: 0; padding: .7rem 1.2rem; border: 1px solid var(--hv-color-border-control); border-radius: 8px; background: var(--hv-color-surface); color: var(--hv-color-text-strong); font: 500 .95rem/1.4 var(--hv-font-body); cursor: pointer; }

.hv-properties-attraction-filters .facetwp-radio:hover { background: var(--hv-color-selected); border-color: var(--hv-color-accent); }

.hv-properties-attraction-filters .facetwp-radio.checked { background: var(--hv-color-ink); color: var(--hv-color-paper); border-color: var(--hv-color-ink); }

.hv-properties-attraction-filters .facetwp-radio:focus-visible { outline: 2px solid var(--hv-color-accent); outline-offset: 3px; }

.hv-properties-attraction-filters .facetwp-radio:disabled { opacity: .45; cursor: default; }

.hv-properties-attraction-filters .facetwp-counter { padding: 0; font-size: .8em; opacity: .75; }

