/* LBI Luxury Rentals / Barbara — synced from live design CSS */
/* Page chrome scoped via .client-theme-barbara body class. */

/* LBI Luxury Rentals — Quiet coastal luxury */

.client-theme-barbara {
 --navy: #0b1f33;
 --navy-soft: #143049;
 --navy-deep: #071420;
 --sand: #e8e0d4;
 --sand-soft: #f3eee6;
 --sand-deep: #d4c9b8;
 --gold: #c4a35a;
 --gold-hover: #d4b56e;
 --white: #fafaf8;
 --ink: #1a1a1a;
 --ink-muted: #5a5a56;
 --glass: rgba(11, 31, 51, 0.72);
 --glass-light: rgba(250, 250, 248, 0.12);
 --line: rgba(11, 31, 51, 0.1);
 --line-light: rgba(250, 250, 248, 0.12);
 --header-h: 4.75rem;
 --ease: cubic-bezier(0.22, 1, 0.36, 1);
 --font-display: "Cormorant Garamond", Georgia, serif;
 --font-body: "DM Sans", system-ui, sans-serif;
 --space-section: clamp(4.5rem, 10vw, 7.5rem);
 --container: 1180px;
}

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

html:has(body.client-theme-barbara) {
 scroll-behavior: smooth;
 scroll-padding-top: calc(var(--header-h) + 1rem);
}

.client-theme-barbara {
 margin: 0;
 font-family: var(--font-body);
 font-weight: 400;
 font-size: 1rem;
 line-height: 1.65;
 color: var(--ink);
 background: var(--white);
 -webkit-font-smoothing: antialiased;
}

.client-theme-barbara.nav-open {
 overflow: hidden;
}

.client-theme-barbara img {
 max-width: 100%;
 display: block;
 height: auto;
}

.client-theme-barbara a {
 color: inherit;
 text-decoration: none;
}

.client-theme-barbara ul {
 margin: 0;
 padding: 0;
 list-style: none;
}

.client-theme-barbara button,
.client-theme-barbara input,
.client-theme-barbara select,
.client-theme-barbara textarea {
 font: inherit;
 color: inherit;
}

.skip-link {
 position: absolute;
 left: 1rem;
 top: -100%;
 z-index: 1041;
 padding: 0.75rem 1rem;
 background: var(--gold);
 color: var(--navy);
 font-weight: 600;
}

.skip-link:focus {
 top: 1rem;
}

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

.container {
 width: min(var(--container), calc(100% - 3rem));
 margin-inline: auto;
}

.container.narrow {
 width: min(720px, calc(100% - 3rem));
}

.container.wide {
 width: min(1280px, calc(100% - 3rem));
}

/* Buttons */

.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 0.5rem;
 padding: 0.95rem 1.6rem;
 border: none;
 border-radius: 2px;
 font-size: 0.72rem;
 font-weight: 600;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 cursor: pointer;
 transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease), border-color 0.25s ease;
}

.btn:active {
 transform: scale(0.98);
}

.btn:focus-visible,
.nav a:focus-visible,
.text-link:focus-visible,
.brand:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible,
.nav-toggle:focus-visible,
.property-card-link:focus-visible {
 outline: 2px solid var(--gold);
 outline-offset: 3px;
}

.btn-gold {
 background: var(--gold);
 color: var(--navy);
}

.btn-gold:hover {
 background: var(--gold-hover);
}

.btn-navy {
 background: var(--navy);
 color: var(--white);
}

.btn-navy:hover {
 background: var(--navy-soft);
}

.btn-ghost {
 background: transparent;
 color: var(--white);
 border: 1px solid rgba(250, 250, 248, 0.35);
}

.btn-ghost:hover {
 border-color: var(--gold);
 color: var(--gold);
}

.btn-outline {
 background: transparent;
 color: var(--navy);
 border: 1px solid rgba(11, 31, 51, 0.2);
}

.btn-outline:hover {
 border-color: var(--navy);
 background: rgba(11, 31, 51, 0.04);
}

.text-link {
 display: inline-block;
 margin-top: 1.25rem;
 font-size: 0.78rem;
 font-weight: 600;
 letter-spacing: 0.12em;
 text-transform: uppercase;
 color: var(--gold);
 border-bottom: 1px solid transparent;
 transition: border-color 0.2s ease;
}

.text-link:hover {
 border-bottom-color: var(--gold);
}

.text-link.on-dark {
 color: var(--gold);
}

/* Header */

.site-header {
 position: fixed;
 inset: 0 0 auto;
 z-index: 1040;
 height: var(--header-h);
 transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled,
.header-solid .site-header,
.idx-widget-page .site-header {
 background: rgba(11, 31, 51, 0.96);
 backdrop-filter: blur(14px);
 box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
 width: min(1400px, calc(100% - 1.5rem));
 height: 100%;
 margin-inline: auto;
 display: grid;
 grid-template-columns: auto minmax(0, 1fr) auto auto;
 align-items: center;
 gap: 0.65rem;
}

.brand {
 display: flex;
 align-items: center;
 gap: 0.55rem;
 color: var(--white);
 min-width: 0;
 max-width: 17.5rem;
}

.brand-logo {
 height: 36px !important;
 width: auto;
 flex-shrink: 0;
}

.brand-mark {
 width: 2rem;
 height: 2rem;
 border: 1px solid var(--gold);
 border-radius: 50%;
 position: relative;
 flex-shrink: 0;
}

.brand-mark::after {
 content: "";
 position: absolute;
 inset: 6px;
 border-radius: 50%;
 background:
 radial-gradient(circle at 40% 35%, var(--gold) 0 28%, transparent 30%),
 linear-gradient(160deg, transparent 45%, var(--sand) 45% 55%, transparent 55%);
 opacity: 0.9;
}

.brand-text {
 display: flex;
 flex-direction: column;
 line-height: 1.15;
}

.brand-name {
 font-family: var(--font-display);
 font-size: clamp(0.78rem, 1.05vw, 1.02rem);
 font-weight: 600;
 letter-spacing: 0.02em;
 white-space: nowrap;
}

.brand-sub {
 font-size: 0.5rem;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 color: rgba(250, 250, 248, 0.62);
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
 max-width: 100%;
}

.nav {
 display: flex;
 justify-content: center;
 flex-wrap: nowrap;
 gap: clamp(0.35rem, 0.85vw, 0.85rem);
 align-items: center;
 min-width: 0;
}

.nav a,
.nav-group-link,
.nav-group-toggle {
 color: rgba(250, 250, 248, 0.78);
 font-size: 0.58rem;
 font-weight: 500;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 padding: 0.35rem 0;
 border-bottom: 1px solid transparent;
 transition: color 0.2s ease, border-color 0.2s ease;
 white-space: nowrap;
}

.nav a:hover,
.nav a.is-active,
.nav-group.is-active > .nav-group-link,
.nav-group:hover > .nav-group-link,
.nav-group:focus-within > .nav-group-link {
 color: var(--white);
 border-bottom-color: var(--gold);
}

.nav-group {
 position: relative;
 display: inline-flex;
 align-items: center;
 gap: 0.18rem;
}

.nav-group-toggle {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 1rem;
 height: 1rem;
 padding: 0;
 border: 0;
 background: transparent;
 cursor: pointer;
}

.nav-group-toggle::after {
 content: "";
 width: 0.36rem;
 height: 0.36rem;
 border-right: 1px solid currentColor;
 border-bottom: 1px solid currentColor;
 transform: rotate(45deg) translateY(-1px);
 transition: transform 0.2s var(--ease);
}

.nav-group:hover .nav-group-toggle::after,
.nav-group:focus-within .nav-group-toggle::after,
.nav-group.is-expanded .nav-group-toggle::after {
 transform: rotate(225deg) translate(-1px, -1px);
}

.nav-submenu {
 position: absolute;
 top: 100%;
 left: 50%;
 min-width: 15rem;
 padding: 0.55rem;
 padding-top: calc(0.55rem + 0.55rem);
 background: transparent;
 border: 0;
 box-shadow: none;
 opacity: 0;
 pointer-events: none;
 transform: translateX(-50%) translateY(0.4rem);
 transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-submenu::before {
 content: "";
 position: absolute;
 top: 0.55rem;
 right: 0;
 bottom: 0;
 left: 0;
 z-index: 0;
 background: rgba(7, 20, 32, 0.98);
 border: 1px solid rgba(250, 250, 248, 0.12);
 box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
 pointer-events: none;
}

.nav-submenu a {
 display: block;
 position: relative;
 z-index: 1;
 padding: 0.7rem 0.8rem;
 border-bottom: none;
 white-space: normal;
 line-height: 1.35;
 color: rgba(250, 250, 248, 0.78);
}

.nav-submenu a:hover,
.nav-submenu a.is-active {
 background: rgba(196, 163, 90, 0.1);
 border-bottom-color: transparent;
}

.nav-group:hover .nav-submenu,
.nav-group:focus-within .nav-submenu,
.nav-group.is-expanded .nav-submenu {
 opacity: 1;
 pointer-events: auto;
 transform: translateX(-50%) translateY(0);
}

.header-cta {
 padding: 0.62rem 0.85rem;
 font-size: 0.58rem;
 letter-spacing: 0.08em;
 white-space: nowrap;
}

.nav-toggle {
 display: none;
 width: 2.5rem;
 height: 2.5rem;
 border: 1px solid rgba(250, 250, 248, 0.25);
 background: transparent;
 padding: 0;
 cursor: pointer;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 gap: 5px;
}

.nav-toggle span {
 display: block;
 width: 1.1rem;
 height: 1.5px;
 background: var(--white);
 transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
 transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
 opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
 transform: translateY(-6.5px) rotate(-45deg);
}

/* Hero */

.hero {
 position: relative;
 min-height: 100vh;
 min-height: 100dvh;
 display: flex;
 flex-direction: column;
 justify-content: flex-end;
 color: var(--white);
 padding: calc(var(--header-h) + 2rem) 0 0;
 overflow: hidden;
 background: var(--navy);
}

.hero-media {
 position: absolute;
 inset: 0;
 z-index: 0;
}

.hero-media img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: center 42%;
 transform: scale(1.04);
 animation: hero-drift 28s ease-in-out infinite alternate;
}

.hero-veil {
 position: absolute;
 inset: 0;
 background:
 linear-gradient(180deg, rgba(11, 31, 51, 0.5) 0%, rgba(11, 31, 51, 0.22) 38%, rgba(11, 31, 51, 0.82) 100%),
 radial-gradient(ellipse at 50% 18%, transparent 0%, rgba(11, 31, 51, 0.35) 100%);
}

.hero-content {
 position: relative;
 z-index: 1;
 width: min(920px, calc(100% - 3rem));
 margin: 0 auto auto;
 text-align: center;
 padding-top: clamp(2.5rem, 10vh, 7rem);
 animation: rise-in 1s var(--ease) both;
}

.hero-eyebrow {
 margin: 0 0 1rem;
 font-size: 0.7rem;
 letter-spacing: 0.24em;
 text-transform: uppercase;
 color: rgba(250, 250, 248, 0.72);
}

.hero-title {
 margin: 0;
 font-family: var(--font-display);
 font-weight: 500;
 font-size: clamp(3.2rem, 9.5vw, 7.2rem);
 line-height: 0.92;
 letter-spacing: 0.01em;
 text-wrap: balance;
}

.hero-title-line {
 display: block;
 color: rgba(250, 250, 248, 0.94);
}

.hero-title-accent {
 display: block;
 color: var(--gold);
 font-style: italic;
 font-weight: 500;
}

.hero-lede {
 margin: 1.35rem auto 0;
 max-width: 34rem;
 font-size: clamp(0.95rem, 1.5vw, 1.12rem);
 font-weight: 400;
 color: rgba(250, 250, 248, 0.86);
}

.hero-lede-brand {
 display: block;
 margin-top: 0.35rem;
}

.town-link-list {
 margin: 0 auto 2.5rem;
 max-width: 52rem;
}

.location-properties .location-intro {
 margin-bottom: 1.75rem;
}

.location-properties .location-intro-copy {
 max-width: 42rem;
}

.location-properties .location-intro-copy p {
 margin: 0 0 0.85rem;
}

.location-properties .location-intro-copy p:last-child {
 margin-bottom: 0;
}

.town-link-list ul {
 list-style: none;
 margin: 0;
 padding: 0;
 display: flex;
 flex-wrap: wrap;
 justify-content: center;
 gap: 0.55rem 1.1rem;
}

.town-link-list a {
 color: var(--navy, #0b1f33);
 font-size: 0.95rem;
 font-weight: 500;
 text-decoration: underline;
 text-underline-offset: 0.18em;
}

.town-link-list a:hover {
 color: var(--gold, #c4a35a);
}

.search-dock {
 position: relative;
 z-index: 2;
 width: min(980px, calc(100% - 2rem));
 margin: clamp(2.5rem, 7vh, 4.5rem) auto 2rem;
 display: grid;
 grid-template-columns: 1.2fr 1.1fr 0.9fr auto;
 gap: 0;
 background: var(--glass);
 backdrop-filter: blur(16px);
 border: 1px solid var(--line-light);
 animation: rise-in 1.1s var(--ease) 0.12s both;
}

.search-dock.light {
 background: var(--white);
 border-color: var(--line);
 box-shadow: 0 18px 50px rgba(11, 31, 51, 0.08);
}

.search-dock.light .search-field {
 border-right-color: var(--line);
}

.search-dock.light .search-field label {
 color: var(--ink-muted);
}

.search-dock.light .search-field select {
 color: var(--navy);
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230B1F33' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}

.search-field {
 padding: 1rem 1.25rem;
 border-right: 1px solid var(--line-light);
 display: flex;
 flex-direction: column;
 gap: 0.35rem;
}

.search-field label {
 font-size: 0.62rem;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 color: rgba(250, 250, 248, 0.55);
}

.search-field select {
 appearance: none;
 background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C4A35A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right center;
 border: none;
 padding: 0.15rem 1.25rem 0.15rem 0;
 color: var(--white);
 cursor: pointer;
}

.search-field select option {
 color: var(--ink);
 background: var(--white);
}

.search-submit {
 align-self: stretch;
 margin: 0;
 border-radius: 0;
 padding-inline: 1.75rem;
}

/* Page hero (inner pages) */

.page-hero {
 position: relative;
 min-height: clamp(18rem, 42vh, 28rem);
 display: flex;
 align-items: flex-end;
 color: var(--white);
 padding: calc(var(--header-h) + 2.5rem) 0 3.5rem;
 overflow: hidden;
 background: var(--navy);
}

.page-hero-media {
 position: absolute;
 inset: 0;
}

.page-hero-media img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: center;
}

.page-hero-veil {
 position: absolute;
 inset: 0;
 background: linear-gradient(180deg, rgba(11, 31, 51, 0.55) 0%, rgba(11, 31, 51, 0.78) 100%);
}

.page-hero-copy {
 position: relative;
 z-index: 1;
 width: min(var(--container), calc(100% - 3rem));
 margin-inline: auto;
}

.page-hero-copy .section-title {
 color: var(--white);
 margin-bottom: 0.75rem;
}

.page-hero-copy .section-copy {
 color: rgba(250, 250, 248, 0.78);
 max-width: 36rem;
}

/* Sections */

.section {
 padding: var(--space-section) 0;
}

.section-label {
 margin: 0 0 0.75rem;
 font-size: 0.68rem;
 font-weight: 600;
 letter-spacing: 0.2em;
 text-transform: uppercase;
 color: var(--gold);
}

.section-title {
 margin: 0 0 1rem;
 font-family: var(--font-display);
 font-size: clamp(2.15rem, 4.4vw, 3.5rem);
 font-weight: 500;
 line-height: 1.08;
 color: var(--navy);
 text-wrap: balance;
}

.section-copy {
 margin: 0;
 color: var(--ink-muted);
 font-size: 1.05rem;
 max-width: 38rem;
}

.section-head {
 margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head.center {
 text-align: center;
}

.section-head.center .section-copy {
 margin-inline: auto;
}

.section-head .section-copy {
 margin-top: 0.85rem;
}

.section-actions {
 margin-top: 2rem;
 display: flex;
 flex-wrap: wrap;
 gap: 1rem;
 align-items: center;
}

.about-home {
 background: linear-gradient(180deg, var(--sand) 0%, var(--sand-soft) 100%);
}

.about-home .about-layout {
 display: grid;
 grid-template-columns: 1.05fr 0.95fr;
 gap: clamp(2rem, 6vw, 5rem);
 align-items: end;
}

.about-home .about-stat {
 border-top: 1px solid rgba(11, 31, 51, 0.12);
 padding-top: 1.5rem;
 display: grid;
 gap: 0.35rem;
}

.about-home .about-stat strong {
 font-family: var(--font-display);
 font-size: 2.4rem;
 font-weight: 500;
 color: var(--navy);
 line-height: 1;
}

.about-home .about-stat span {
 font-size: 0.8rem;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 color: var(--ink-muted);
}

/* Properties */

.properties {
 background: var(--white);
}

.filter-status {
 margin: 0 0 1.5rem;
 font-size: 0.92rem;
 color: var(--ink-muted);
}

.filter-status.is-empty {
 padding: 1rem 1.15rem;
 background: var(--sand-soft);
 border: 1px solid var(--line);
 color: var(--navy);
}

.property-grid {
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 1.5rem;
 align-items: stretch;
}

.listing-pagination {
 margin-top: 2rem;
 display: flex;
 justify-content: center;
}

.listing-pagination-list {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 justify-content: center;
 gap: 0.5rem;
 list-style: none;
 margin: 0;
 padding: 0;
}

.listing-pagination-list .btn[aria-disabled="true"] {
 opacity: 0.45;
 pointer-events: none;
}

.property-card {
 display: flex;
 flex-direction: column;
 min-width: 0;
 overflow: hidden;
 background: var(--white);
 border: 1px solid var(--line);
 transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.property-card-link {
 display: block;
 color: inherit;
 height: 100%;
}

.property-card:hover,
.property-card:focus-within {
 transform: translateY(-4px);
 box-shadow: 0 18px 40px rgba(11, 31, 51, 0.1);
}

.property-card.is-hidden {
 display: none;
}

.property-media {
 position: relative;
 aspect-ratio: 4 / 3;
 overflow: hidden;
 background: var(--sand);
}

.property-media--empty {
 background:
  linear-gradient(145deg, rgba(11, 31, 51, 0.08), rgba(196, 163, 90, 0.12)),
  var(--sand);
}

.property-media-placeholder {
 position: absolute;
 inset: 0;
}

.property-media a {
 position: absolute;
 inset: 0;
 display: block;
}

.property-media img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 max-width: 100%;
 object-fit: cover;
 transition: transform 0.7s var(--ease);
}

.property-card:hover .property-media img {
 transform: scale(1.05);
}

.property-badge {
 position: absolute;
 top: 0.85rem;
 left: 0.85rem;
 padding: 0.35rem 0.65rem;
 background: var(--navy);
 color: var(--white);
 font-size: 0.6rem;
 font-weight: 600;
 letter-spacing: 0.14em;
 text-transform: uppercase;
}

.property-body {
 padding: 1.35rem 1.35rem 1.5rem;
 display: flex;
 flex-direction: column;
 flex: 1;
 min-height: 12rem;
}

.property-body h3 {
 margin: 0 0 0.35rem;
 font-family: var(--font-display);
 font-size: 1.55rem;
 font-weight: 600;
 color: var(--navy);
 overflow-wrap: anywhere;
}

.property-body h3 a {
 color: inherit;
 text-decoration: none;
}

.property-meta {
 margin: 0 0 0.65rem;
 font-size: 0.8rem;
 letter-spacing: 0.04em;
 color: var(--ink-muted);
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.property-blurb {
 margin: 0 0 0.85rem;
 font-size: 0.92rem;
 color: var(--ink-muted);
 flex: 1;
 display: -webkit-box;
 -webkit-line-clamp: 3;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.amenity-list {
 display: flex;
 flex-wrap: wrap;
 gap: 0.4rem 0.85rem;
 margin-bottom: 1rem;
}

.amenity-list li {
 font-size: 0.74rem;
 color: var(--navy-soft);
 position: relative;
 padding-left: 0.7rem;
}

.amenity-list li::before {
 content: "";
 position: absolute;
 left: 0;
 top: 0.45em;
 width: 4px;
 height: 4px;
 border-radius: 50%;
 background: var(--gold);
}

.property-rate {
 margin: auto 0 0;
 display: flex;
 justify-content: space-between;
 align-items: baseline;
 padding-top: 0.85rem;
 border-top: 1px solid var(--line);
 font-family: var(--font-display);
 font-size: 1.35rem;
 font-weight: 600;
 color: var(--navy);
}

.property-rate span {
 font-family: var(--font-body);
 font-size: 0.66rem;
 font-weight: 500;
 letter-spacing: 0.12em;
 text-transform: uppercase;
 color: var(--ink-muted);
}

/* Filter bar */

.filter-bar {
 display: grid;
 grid-template-columns: 1.2fr 1.2fr 0.9fr auto auto;
 gap: 0.75rem;
 align-items: end;
 padding: 1.25rem;
 margin-bottom: 2rem;
 background: var(--sand-soft);
 border: 1px solid var(--line);
}

.filter-bar .search-field {
 border: none;
 padding: 0;
 background: transparent;
}

.filter-bar .search-field label {
 color: var(--ink-muted);
 margin-bottom: 0.35rem;
}

.filter-bar .search-field select {
 width: 100%;
 padding: 0.8rem 2rem 0.8rem 0.9rem;
 border: 1px solid var(--line);
 background-color: var(--white);
 color: var(--navy);
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230B1F33' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
 background-repeat: no-repeat;
 background-position: right 0.85rem center;
}

/* Bridge / pathway cards */

.pathway {
 background: var(--navy);
 color: var(--white);
}

.pathway .section-title {
 color: var(--white);
}

.pathway .section-copy {
 color: rgba(250, 250, 248, 0.7);
}

.pathway-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 1.25rem;
}

.pathway-card {
 padding: 1.75rem;
 border: 1px solid var(--line-light);
 background: rgba(250, 250, 248, 0.03);
 transition: border-color 0.25s ease, background 0.25s ease;
}

.pathway-card:hover {
 border-color: rgba(196, 163, 90, 0.55);
 background: rgba(196, 163, 90, 0.08);
}

.pathway-card h3 {
 margin: 0 0 0.65rem;
 font-family: var(--font-display);
 font-size: 1.7rem;
 font-weight: 500;
}

.pathway-card p {
 margin: 0;
 color: rgba(250, 250, 248, 0.68);
 font-size: 0.95rem;
}

/* Communities preview */

.communities-preview {
 background: var(--sand-soft);
}

.community-strip {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 border-top: 1px solid var(--line);
}

.community-strip > * {
 padding: 1.4rem 1rem;
 border-bottom: 1px solid var(--line);
 border-right: 1px solid var(--line);
 font-family: var(--font-display);
 font-size: 1.3rem;
 font-weight: 500;
 text-align: center;
 color: var(--navy);
 transition: background 0.25s ease, color 0.25s ease;
 display: flex;
 align-items: center;
 justify-content: center;
}

.community-strip > *:nth-child(4n) {
 border-right: none;
}

.community-strip > *:hover {
 background: rgba(196, 163, 90, 0.12);
 color: #8a6d2f;
}

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

.community-card {
 display: grid;
 grid-template-columns: 0.9fr 1.1fr;
 min-height: 16rem;
 background: var(--white);
 border: 1px solid var(--line);
 overflow: hidden;
}

.community-card-media {
 min-height: 100%;
 background: var(--sand);
}

.community-card-media img {
 width: 100%;
 height: 100%;
 object-fit: cover;
}

.community-card-body {
 padding: 1.75rem;
 display: flex;
 flex-direction: column;
 justify-content: center;
}

.community-card-body h3 {
 margin: 0 0 0.6rem;
 font-family: var(--font-display);
 font-size: 1.8rem;
 color: var(--navy);
}

.community-card-body p {
 margin: 0;
 color: var(--ink-muted);
}

/* Barbcona-style photo tiles (Featured Properties, after IDX lists) */
.community-grid--tiles {
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 1rem;
}

.community-card--tile {
 position: relative;
 display: block;
 grid-template-columns: 1fr;
 min-height: 14rem;
 aspect-ratio: 4 / 3;
 border: 0;
}

.community-card--tile .community-card-media {
 position: absolute;
 inset: 0;
}

.community-card--tile .community-card-media img {
 transition: transform 0.45s ease;
}

.community-card--tile:hover .community-card-media img,
.community-card--tile:focus-visible .community-card-media img {
 transform: scale(1.04);
}

.community-card-overlay {
 position: absolute;
 inset: 0;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 1.25rem;
 background: linear-gradient(180deg, rgba(12, 28, 48, 0.15) 0%, rgba(12, 28, 48, 0.55) 100%);
 text-align: center;
}

.community-card-overlay h3 {
 margin: 0;
 font-family: var(--font-display);
 font-size: clamp(1.35rem, 2vw, 1.85rem);
 color: var(--white);
 letter-spacing: 0.02em;
 text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.featured-communities-after-lists {
 padding-top: 0.5rem;
}

@media (max-width: 900px) {
 .community-grid--tiles {
   grid-template-columns: repeat(2, minmax(0, 1fr));
 }
}

@media (max-width: 560px) {
 .community-grid--tiles {
   grid-template-columns: 1fr;
 }
}

.news-card {
 display: flex;
 flex-direction: column;
 min-height: 0;
 background: var(--white);
 border: 1px solid var(--line);
 padding: 1.75rem;
}

.news-card h3 {
 margin: 0 0 0.6rem;
 font-family: var(--font-display);
 font-size: 1.8rem;
 color: var(--navy);
}

.news-card .news-meta,
.news-card .news-excerpt {
 margin: 0;
 color: var(--ink-muted);
}

.news-card .news-meta {
 margin-bottom: 0.85rem;
 font-size: 0.95rem;
}

.news-card .news-excerpt {
 flex: 1;
}

.news-card .text-link {
 align-self: flex-start;
}

/* Guide pages */

.guide-layout {
 display: grid;
 grid-template-columns: 0.9fr 1.1fr;
 gap: clamp(2rem, 5vw, 4rem);
 align-items: start;
}

.guide-stack {
 display: grid;
 gap: 1.25rem;
}

.guide-block {
 padding: 1.75rem;
 background: var(--white);
 border-left: 3px solid var(--gold);
 box-shadow: 0 12px 32px rgba(11, 31, 51, 0.05);
}

.guide-block h3 {
 margin: 0 0 0.65rem;
 font-family: var(--font-display);
 font-size: 1.65rem;
 color: var(--navy);
}

.guide-block p {
 margin: 0;
 color: var(--ink-muted);
}

.guide-aside {
 padding: 2rem;
 background: var(--navy);
 color: var(--white);
}

.guide-aside h2 {
 margin: 0 0 0.85rem;
 font-family: var(--font-display);
 font-size: 2rem;
 font-weight: 500;
}

.guide-aside p {
 margin: 0 0 1.5rem;
 color: rgba(250, 250, 248, 0.72);
}

.guide-aside .btn {
 width: 100%;
}

.split-section {
 background: var(--sand-soft);
}

.split-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 1.5rem;
}

.split-panel {
 padding: clamp(1.75rem, 3vw, 2.5rem);
 background: var(--white);
 border-top: 3px solid var(--gold);
}

.split-panel h3 {
 margin: 0 0 0.85rem;
 font-family: var(--font-display);
 font-size: 1.9rem;
 color: var(--navy);
}

.split-panel p {
 margin: 0;
 color: var(--ink-muted);
}

/* Attractions */

.attraction-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 1.25rem 2rem;
}

.attraction-item {
 display: flex;
 flex-direction: column;
 min-width: 0;
 background: var(--white);
 border: 1px solid var(--line);
 overflow: hidden;
 color: inherit;
 text-decoration: none;
}

.attraction-item-media {
 aspect-ratio: 3 / 2;
 background: var(--sand);
 overflow: hidden;
}

.attraction-item-media img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 display: block;
}

.attraction-item-body {
 padding: 1.35rem 1.4rem 1.5rem;
}

.attraction-item h3 {
 margin: 0 0 0.5rem;
 font-family: var(--font-display);
 font-size: 1.45rem;
 font-weight: 500;
 color: var(--navy);
}

.attraction-item p {
 margin: 0;
 color: var(--ink-muted);
 font-size: 0.95rem;
 display: -webkit-box;
 -webkit-line-clamp: 4;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.attraction-item:hover h3 {
 color: #8a6d2f;
}

.section.attraction-detail {
 padding-top: calc(var(--header-h) + 2.75rem);
}

.attraction-detail-media {
 margin: 1.75rem 0 1.5rem;
 aspect-ratio: 3 / 2;
 max-height: 32rem;
 background: var(--sand);
 overflow: hidden;
}

.client-theme-barbara .attraction-detail-media img {
 width: 100%;
 height: 100%;
 max-height: none;
 object-fit: cover;
 object-position: center;
}

.attraction-detail-copy {
 max-width: 46rem;
 color: var(--ink);
 font-size: 1.05rem;
 line-height: 1.75;
}

.attraction-detail-copy p {
 margin: 0 0 1rem;
}

.attraction-more {
 margin-top: clamp(3rem, 6vw, 4.5rem);
}

.attraction-more .section-title {
 font-size: clamp(1.8rem, 3vw, 2.4rem);
}

/* Contact */

.contact {
 background: linear-gradient(135deg, var(--navy) 0%, #16324d 55%, #1a3a55 100%);
 color: var(--white);
}

.contact .section-title {
 color: var(--white);
}

.contact .section-copy {
 color: rgba(250, 250, 248, 0.72);
}

.contact-layout {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: clamp(2rem, 5vw, 4rem);
 align-items: start;
}

.contact-details {
 margin-top: 2rem;
 display: grid;
 gap: 1.25rem;
}

.contact-details li {
 display: grid;
 gap: 0.3rem;
}

.contact-details span {
 font-size: 0.65rem;
 letter-spacing: 0.16em;
 text-transform: uppercase;
 color: var(--gold);
}

.contact-details a {
 color: rgba(250, 250, 248, 0.9);
 transition: color 0.2s ease;
}

.contact-details a:hover {
 color: var(--gold);
}

.contact-form {
 background: rgba(250, 250, 248, 0.04);
 border: 1px solid var(--line-light);
 padding: clamp(1.5rem, 3vw, 2rem);
 display: grid;
 gap: 1rem;
}

.form-row {
 display: grid;
 gap: 0.4rem;
}

.form-row label {
 font-size: 0.68rem;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 color: rgba(250, 250, 248, 0.55);
}

.form-row input,
.form-row textarea {
 width: 100%;
 padding: 0.85rem 1rem;
 border: 1px solid rgba(250, 250, 248, 0.18);
 background: rgba(11, 31, 51, 0.35);
 color: var(--white);
 border-radius: 2px;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
 color: rgba(250, 250, 248, 0.4);
}

.form-note {
 margin: 0;
 min-height: 1.25rem;
 font-size: 0.9rem;
 color: var(--gold);
}

/* Detail — marketing property cards (buyers/sellers style).
   Do NOT apply to Airbnb-style stay pages (.property-detail-page), which
   use .detail-layout as a full-width shell around .main-grid. */
body:not(.property-detail-page) .detail-layout {
 display: grid;
 grid-template-columns: 1.2fr 0.8fr;
 gap: clamp(2rem, 5vw, 3.5rem);
 align-items: start;
 padding: calc(var(--header-h) + 2.5rem) 0 var(--space-section);
}

.detail-media {
 overflow: hidden;
 background: var(--sand);
}

.detail-media img {
 width: 100%;
 height: 100%;
 min-height: 28rem;
 object-fit: cover;
}

.detail-rate {
 margin: 0.5rem 0 1.25rem;
 font-family: var(--font-display);
 font-size: 2.4rem;
 color: var(--navy);
 line-height: 1;
}

.detail-rate span {
 font-family: var(--font-body);
 font-size: 0.85rem;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 color: var(--ink-muted);
}

.detail-specs {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 1rem;
 margin: 1.75rem 0;
 padding: 1.25rem 0;
 border-top: 1px solid var(--line);
 border-bottom: 1px solid var(--line);
}

.detail-specs li {
 display: grid;
 gap: 0.2rem;
 font-family: var(--font-display);
 font-size: 1.35rem;
 color: var(--navy);
}

.detail-specs span {
 font-family: var(--font-body);
 font-size: 0.65rem;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 color: var(--ink-muted);
}

.detail-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 1rem;
 align-items: center;
 margin-top: 1.5rem;
}

.detail-actions .text-link {
 margin-top: 0;
}

/* Search landing */

.search-landing {
 background: linear-gradient(180deg, var(--sand-soft) 0%, var(--white) 100%);
}

.search-landing-panel {
 max-width: 920px;
 margin-inline: auto;
}

/* Footer */

.site-footer {
 background: var(--navy-deep);
 color: rgba(250, 250, 248, 0.7);
 padding: 3.25rem 0 2rem;
}

.footer-grid {
 display: grid;
 grid-template-columns: 1.2fr 1fr 1.1fr;
 gap: 2rem;
 margin-bottom: 2rem;
}

.footer-name {
 margin: 0;
 font-family: var(--font-display);
 font-size: 1.55rem;
 color: var(--white);
}

.footer-sub {
 margin: 0.3rem 0 0;
 font-size: 0.66rem;
 letter-spacing: 0.16em;
 text-transform: uppercase;
}

.footer-nav {
 display: grid;
 gap: 0.55rem;
}

.footer-nav a {
 font-size: 0.78rem;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 color: rgba(250, 250, 248, 0.65);
 transition: color 0.2s ease;
}

.footer-nav a:hover {
 color: var(--gold);
}

.subscribe label {
 display: block;
 margin-bottom: 0.65rem;
 font-size: 0.7rem;
 letter-spacing: 0.12em;
 text-transform: uppercase;
}

.subscribe-row {
 display: flex;
 gap: 0.5rem;
}

.subscribe-row input {
 flex: 1;
 padding: 0.8rem 1rem;
 border: 1px solid rgba(250, 250, 248, 0.15);
 background: rgba(250, 250, 248, 0.04);
 color: var(--white);
 border-radius: 2px;
}

.footer-copy {
 margin: 0;
 padding-top: 1.5rem;
 border-top: 1px solid rgba(250, 250, 248, 0.08);
 font-size: 0.8rem;
}

/* Reveal */

.reveal {
 opacity: 0;
 transform: translateY(22px);
 transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
 opacity: 1;
 transform: none;
}

@keyframes rise-in {
 from {
 opacity: 0;
 transform: translateY(24px);
 }
 to {
 opacity: 1;
 transform: none;
 }
}

@keyframes hero-drift {
 from {
 transform: scale(1.04) translateY(0);
 }
 to {
 transform: scale(1.08) translateY(-1.5%);
 }
}

/* Responsive */

@media (max-width: 1200px) {
 .brand {
  max-width: 13.5rem;
 }

 .nav {
  gap: 0.3rem;
 }

 .nav a,
 .nav-group-link,
 .nav-group-toggle {
  font-size: 0.54rem;
  letter-spacing: 0.06em;
 }

 .header-cta {
  padding: 0.55rem 0.7rem;
 }
}

@media (max-width: 1100px) {
 .nav a,
 .nav-group-link {
  font-size: 0.52rem;
  letter-spacing: 0.05em;
 }
}

@media (max-width: 980px) {
 .property-grid,
 .attraction-grid,
 .pathway-grid {
 grid-template-columns: repeat(2, minmax(0, 1fr));
 }

 .community-strip {
 grid-template-columns: repeat(2, 1fr);
 }

 .community-strip > *:nth-child(4n) {
 border-right: 1px solid var(--line);
 }

 .community-strip > *:nth-child(2n) {
 border-right: none;
 }

 .search-dock {
 grid-template-columns: 1fr 1fr;
 }

 .search-field {
 border-right: 1px solid var(--line-light);
 }

 .search-field:nth-child(2n) {
 border-right: none;
 }

 .search-field:nth-child(n + 3),
 .search-submit {
 border-top: 1px solid var(--line-light);
 }

 .search-submit {
 grid-column: 1 / -1;
 padding: 1.1rem;
 }

 .filter-bar {
 grid-template-columns: 1fr 1fr;
 }

 .filter-bar .btn {
 width: 100%;
 }

 .about-home .about-layout,
 .guide-layout,
 .community-card,
 body:not(.property-detail-page) .detail-layout,
 .footer-grid {
 grid-template-columns: 1fr;
 }

 .community-card-media {
 min-height: 12rem;
 }

 .detail-media img {
 min-height: 18rem;
 }
}

@media (max-width: 900px) {
 .header-cta {
 display: none;
 }

 .nav-toggle {
 display: flex;
 justify-self: end;
 }

 .header-inner {
 grid-template-columns: 1fr auto;
 }

 .nav {
 position: fixed;
 inset: var(--header-h) 0 auto;
 display: none;
 flex-direction: column;
 align-items: stretch;
 flex-wrap: nowrap;
 gap: 0;
 padding: 0.5rem 0 1rem;
 background: rgba(11, 31, 51, 0.98);
 border-bottom: 1px solid var(--line-light);
 max-height: calc(100dvh - var(--header-h));
 overflow-y: auto;
 }

 .nav.is-open {
 display: flex;
 }

 .nav a {
 padding: 0.95rem 1.5rem;
 border-bottom: none;
 border-left: 2px solid transparent;
 white-space: normal;
 }

 .nav-group {
 width: 100%;
 display: grid;
 grid-template-columns: 1fr auto;
 gap: 0;
 }

 .nav-group-link {
 padding: 0.95rem 1.5rem;
 border-bottom: none;
 border-left: 2px solid transparent;
 white-space: normal;
 }

 .nav-group-toggle {
 width: 3.25rem;
 height: auto;
 min-height: 3rem;
 border-left: 1px solid rgba(250, 250, 248, 0.08);
 }

 .nav-submenu {
 position: static;
 grid-column: 1 / -1;
 left: auto;
 top: auto;
 width: 100%;
 min-width: 0;
 padding: 0 0 0.45rem;
 background: rgba(7, 20, 32, 0.42);
 border: 0;
 box-shadow: none;
 opacity: 1;
 pointer-events: auto;
 transform: none;
 display: none;
 }

 .nav-submenu::before {
 content: none;
 }

 .nav-group:hover .nav-submenu,
 .nav-group:focus-within .nav-submenu {
 transform: none;
 }

 .nav-group.is-expanded .nav-submenu {
 display: block;
 transform: none;
 }

 .nav-submenu a {
 padding: 0.72rem 1.5rem 0.72rem 2.35rem;
 font-size: 0.6rem;
 }

 .nav a.is-active,
 .nav a:hover,
 .nav-group.is-active > .nav-group-link,
 .nav-group:hover > .nav-group-link {
 border-left-color: var(--gold);
 border-bottom-color: transparent;
 background: rgba(196, 163, 90, 0.08);
 }

 .split-grid,
 .contact-layout {
 grid-template-columns: 1fr;
 }
}

@media (max-width: 640px) {
 .property-grid,
 .attraction-grid,
 .pathway-grid,
 .community-grid,
 .community-strip {
 grid-template-columns: minmax(0, 1fr);
 }

 .community-strip > * {
 border-right: none;
 }

 .search-dock {
 grid-template-columns: 1fr;
 }

 .search-field {
 border-right: none;
 border-bottom: 1px solid var(--line-light);
 }

 .search-field:nth-child(2),
 .search-field:nth-child(3) {
 border-top: none;
 }

 .filter-bar {
 grid-template-columns: 1fr;
 }

 .subscribe-row {
 flex-direction: column;
 }

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

@media (prefers-reduced-motion: reduce) {
 html {
 scroll-behavior: auto;
 }

 *,
 *::before,
 *::after {
 animation-duration: 0.01ms !important;
 animation-iteration-count: 1 !important;
 transition-duration: 0.01ms !important;
 }

 .reveal {
 opacity: 1;
 transform: none;
 }

 .hero-media img {
 transform: none;
 }
}

/* ---- Parity fixes vs base/mansion CSS ---- */
.client-theme-barbara a.brand,
.client-theme-barbara .brand,
.client-theme-barbara .brand-name {
  color: var(--white) !important;
}
.client-theme-barbara .brand-sub {
  color: rgba(250, 250, 248, 0.62) !important;
}
.client-theme-barbara .nav a {
  color: rgba(250, 250, 248, 0.78);
}
.client-theme-barbara .nav a:hover,
.client-theme-barbara .nav a.is-active {
  color: var(--white);
}
.client-theme-barbara .vr-sticky-book-now,
.client-theme-barbara .phpdebugbar,
.client-theme-barbara .phpdebugbar-openhandler {
  display: none !important;
}
.client-theme-barbara.header-solid .site-header,
.client-theme-barbara .site-header.is-scrolled,
.client-theme-barbara.idx-widget-page .site-header {
  z-index: 1040;
  background: rgba(11, 31, 51, 0.96);
}
.client-theme-barbara .site-footer a {
  color: rgba(250, 250, 248, 0.65);
}
.client-theme-barbara .footer-nav a:hover,
.client-theme-barbara .site-footer a:hover {
  color: var(--gold);
}
/* Buttons: beat `a { color: inherit }` / `button { color: inherit }` so CTA text stays readable */
.client-theme-barbara a.btn-navy,
.client-theme-barbara button.btn-navy,
.client-theme-barbara .btn.btn-navy {
  color: var(--white);
}
.client-theme-barbara a.btn-navy:hover,
.client-theme-barbara button.btn-navy:hover,
.client-theme-barbara .btn.btn-navy:hover {
  color: var(--white);
}
.client-theme-barbara a.btn-gold,
.client-theme-barbara button.btn-gold,
.client-theme-barbara .btn.btn-gold,
.client-theme-barbara a.header-cta,
.client-theme-barbara .header-cta {
  color: var(--navy);
}
.client-theme-barbara a.btn-gold:hover,
.client-theme-barbara button.btn-gold:hover,
.client-theme-barbara .btn.btn-gold:hover {
  color: var(--navy);
}
.client-theme-barbara a.btn-outline,
.client-theme-barbara button.btn-outline,
.client-theme-barbara .btn.btn-outline {
  color: var(--navy);
}
.client-theme-barbara a.btn-ghost,
.client-theme-barbara button.btn-ghost,
.client-theme-barbara .btn.btn-ghost {
  color: var(--white);
}
.client-theme-barbara a.btn-ghost:hover,
.client-theme-barbara button.btn-ghost:hover,
.client-theme-barbara .btn.btn-ghost:hover {
  color: var(--gold);
}
.client-theme-barbara a.text-link {
  color: var(--gold);
}
.client-theme-barbara .site-footer a.btn-navy,
.client-theme-barbara .site-footer button.btn-navy,
.client-theme-barbara .subscribe .btn-navy {
  color: var(--white);
}

/* IDX / iHomefinder Kestrel: keep page widgets visible on IDX routes only.
   The widget mounts as .ihf-container (open shadow root) inside .idx-embed.
   Its map/results bar is .listings-search-top-nav (sticky, top: 0, z-index: 200).
   Base theme `body { overflow-x: hidden }` computes overflow-y to auto, so the
   body becomes the sticky scrollport and those bars scroll away. Visible overflow
   on the IDX page lets them pin to the viewport; html still clips horizontal overflow.
   isolation keeps that shell, in-widget tooltips (z-index 1600), and map layers
   under the header without changing the map's sticky containing block.
   Datepickers (9999+) and photo/offcanvas overlays (1500–9999) stay above 1040.
   barbara.js copies the .listings-search-* rules into the shadow root, because
   light-DOM CSS cannot reach them. --header-h inherits across the shadow boundary. */
.client-theme-barbara.idx-widget-page:not(.nav-open) {
  overflow: visible;
}

.client-theme-barbara.idx-widget-page .idx-embed,
.client-theme-barbara.idx-widget-page .ihf-container {
  display: block;
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  min-height: 32rem;
  height: auto;
  max-height: none;
  overflow: visible !important;
}

.client-theme-barbara.idx-widget-page .idx-embed {
  padding-top: var(--header-h);
}

.listings-search-top-nav {
  top: var(--header-h) !important;
}

.listings-search-sub-nav,
.listings-search-map {
  top: calc(var(--header-h) + var(--kestrel-top-nav-h, 68px)) !important;
}

@media (min-width: 960px) {
  .listings-search-map {
    height: calc(100vh - var(--header-h) - var(--kestrel-top-nav-h, 68px)) !important;
  }
}
