/* Start here: change these colors to restyle the whole page. */
:root {
  --paper: #fcfaf6;
  --ink: #293e35;
  --muted: #656b60;
  --rose: #f1e2dc;
  --sage: #e8ece2;
  --line: #dcded2;
}

/* General page rules */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, sans-serif; font-size: 16px; line-height: 1.7; }
a { color: inherit; text-underline-offset: 5px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid #865843; outline-offset: 6px; }
.wrap { max-width: 1180px; width: calc(100% - 96px); margin-inline: auto; }
h1, h2, h3, .brand-name { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1, h2, h3, p { margin-top: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 2px; margin-bottom: 22px; }
.button { display: inline-flex; align-items: center; gap: 24px; padding: 14px 23px; background: var(--ink); color: #fff; text-decoration: none; font-size: 13px; }
.button:hover { background: #40594c; }
.skip-link { position: absolute; left: 12px; top: -100px; padding: 10px; background: white; z-index: 10; }
.skip-link:focus { top: 10px; }

/* Header and navigation */
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 27px; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; display: block; flex-shrink: 0; }
.brand-logo { display: block; width: 320px; max-width: 100%; height: auto; }
nav { display: flex; gap: 36px; font-size: 18px; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }

/* Homepage introduction */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding-block: 64px 80px; }
h1 { font-size: clamp(45px, 5.5vw, 76px); line-height: 1.06; letter-spacing: -2.5px; max-width: 560px; margin-bottom: 26px; }
.intro { max-width: 430px; color: var(--muted); font-size: 15px; }
.intro p { margin-bottom: 18px; }
.hero .button { margin-top: 8px; }
.locations { font-size: 11px; margin-top: 28px; margin-bottom: 0; letter-spacing: 1px; }
.locations span { padding-inline: 12px; color: #b28d7c; }
.hero-art { position: relative; background: var(--rose); border-radius: 12px; overflow: hidden; }
.hero-art img { display: block; width: 100%; height: auto; }
.hero-art p { text-align: center; font-family: Georgia, serif; font-style: italic; font-size: 17px; margin: 0; padding: 16px; }

/* Properties */
.properties { border-top: 1px solid var(--line); padding-block: 55px 70px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.section-heading .eyebrow { margin-bottom: 14px; }
h2 { font-size: clamp(32px, 3.8vw, 45px); line-height: 1.15; letter-spacing: -1px; margin-bottom: 0; }
.section-heading > p { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.property-card { min-width: 0; background: #fff; border: 1px solid #e1e6e8; border-radius: 6px; overflow: hidden; transition: box-shadow .2s ease; }
.property-card:hover, .property-card:focus-within { box-shadow: 0 5px 20px #26323814; }
.property-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: #263238; }
.property-card-link:focus-visible { outline-offset: -4px; }
.property-image { position: relative; aspect-ratio: 16 / 9; background: #eef1f3; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #66777f; }
.property-occupancy { position: absolute; top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 4px 8px; border-radius: 4px; background: #fff; color: #263238; font-size: 12px; font-weight: 600; }
.property-occupancy-occupied { background: #fff0d5; color: #694309; }
.property-occupancy-vacant { background: #e4f3e8; color: #244d35; }
.property-placeholder { font: 64px/1 Arial, sans-serif; color: #a7b5bc; }
.property-photo-note { font-size: 12px; margin-top: 12px; }
/* Future listing photos can use the same reserved image area. */
.property-image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.property-body { padding: 24px 24px 0; flex: 1; }
.property-price { color: #263238; font-size: 25px; font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.property-price span { color: #64757d; font-size: 14px; font-weight: 400; }
.property-card h3 { font-family: Arial, sans-serif; font-weight: 600; font-size: 19px; line-height: 1.4; margin-bottom: 4px; letter-spacing: 0; overflow-wrap: anywhere; }
.property-card-link:hover h3 { color: #476b59; }
.property-address { font-size: 14px; color: #64757d; margin-bottom: 12px; }
.property-name { font-size: 13px; color: #64757d; margin-bottom: 20px; }
.property-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 16px 0; margin: 0; border-top: 1px solid #edf0f2; font-size: 13px; color: #64757d; }
.property-facts strong { color: #37474f; font-weight: 600; }
.property-footer { padding: 14px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid #edf0f2; color: #64757d; font-size: 12px; }
.property-view { color: #395b48; font-weight: 600; }
.property-view span { margin-left: 8px; }
.properties-more { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 28px; background: var(--sage); border-radius: 6px; }
.properties-more h3 { font-size: 28px; line-height: 1.2; margin-bottom: 8px; }
.properties-more p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.properties-more .button { flex-shrink: 0; }

/* Contact and footer */
.catalog { padding-block: 54px 70px; }
.catalog-heading { max-width: 750px; margin-bottom: 42px; }
.catalog-heading h1 { max-width: none; font-size: clamp(40px, 5vw, 64px); }
.catalog-intro { max-width: 640px; color: var(--muted); font-size: 15px; }
.catalog-summary { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.catalog-summary h2 { font-size: 28px; }
.catalog-summary p { margin: 0; font-size: 13px; color: var(--muted); }
.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
@media (min-width: 761px) and (max-width: 1050px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; border-top: 1px solid var(--line); padding-block: 55px 65px; }
.contact .eyebrow { margin-bottom: 16px; }
.contact > div:last-child { justify-self: end; }
.contact p:not(.eyebrow) { color: var(--muted); font-size: 14px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-block: 22px; font-size: 11px; color: var(--muted); }
.footer-logo { display: block; width: 220px; max-width: 100%; height: auto; }

/* Smaller screens: stack the columns so the page works on phones. */
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { align-items: start; gap: 24px; padding-block: 22px; }
  .brand { flex-shrink: 1; min-width: 0; }
  .brand-logo { width: 230px; }
  nav { gap: 10px; flex-direction: column; align-items: end; font-size: 16px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 45px; }
  h1 { letter-spacing: -1.5px; }
  .hero-art { max-width: 480px; width: 100%; justify-self: center; }
  .section-heading { align-items: start; flex-direction: column; }
  .property-grid, .contact { grid-template-columns: 1fr; }
  .property-body { padding: 20px 20px 0; }
  .property-footer { padding-inline: 20px; }
  .properties { padding-block: 38px 45px; }
  .properties-more { flex-direction: column; align-items: start; padding: 24px; }
  .contact { padding-block: 38px 45px; gap: 24px; }
  .contact > div:last-child { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .property-card { transition: none; } }

/* Properties page: listings on the left, a persistent map on the right. */
.catalog-wide { width: calc(100% - 48px); max-width: 1880px; margin-inline: auto; }
.catalog-wide .catalog-heading { margin-bottom: 28px; }
.catalog-wide .catalog-heading h1 { font-size: clamp(36px, 4vw, 52px); margin-bottom: 16px; }
.catalog-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.catalog-split .catalog-summary { min-height: 40px; }
.catalog-split .catalog-summary h2 { font-size: 23px; }
.catalog-split .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalog-grid .property-body { padding: 16px 14px 0; }
.catalog-grid .property-card h3 { font-size: 15px; }
.catalog-grid .property-price { font-size: 20px; margin-bottom: 12px; }
.catalog-grid .property-name { display: none; }
.catalog-grid .property-address { font-size: 12px; }
.catalog-grid .property-facts { font-size: 12px; gap: 6px 12px; }
.catalog-grid .property-footer { padding: 12px 14px; font-size: 11px; }
.catalog-grid .property-placeholder { font-size: 42px; }
.catalog-map { position: sticky; top: 20px; border: 1px solid #e1e6e8; background: #fff; border-radius: 6px; overflow: hidden; }
.map-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px; }
.map-heading h2 { font: 600 18px/1.3 Arial, sans-serif; }
.map-heading a { font-size: 12px; }
.map-location-label { display: block; padding-inline: 16px; font-size: 12px; }
.map-location { display: block; width: calc(100% - 32px); margin: 6px 16px 16px; padding: 10px; border: 1px solid #c9d3d5; border-radius: 4px; font: inherit; font-size: 13px; background: #fff; color: var(--ink); }
.catalog-map iframe { display: block; width: 100%; height: clamp(380px, 66vh, 850px); border: 0; }
.map-caption { margin: 0; padding: 12px 16px; font-size: 12px; color: var(--muted); }
@media (max-width: 1450px) and (min-width: 1001px) {
  .catalog-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; }
  .catalog-split .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .catalog-wide { width: calc(100% - 40px); }
  .catalog-split { grid-template-columns: 1fr; }
  .catalog-map { position: static; }
  .catalog-map iframe { height: 380px; }
  .catalog-split .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .catalog-split .catalog-grid { grid-template-columns: 1fr; }
}

.catalog-map #property-map { width: 100%; height: clamp(380px, 66vh, 850px); background: #eef1f3; }
@media (max-width: 1000px) { .catalog-map #property-map { height: 380px; } }

.property-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 28px) / 2); gap: 28px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; padding: 4px 2px 16px; }
.property-carousel .property-card { scroll-snap-align: start; }
.carousel-shell { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 16px; }
.carousel-status { margin: 0 62px 12px; font-size: 13px; color: var(--muted); }
.carousel-arrow { width: 46px; height: 46px; padding: 0; border: 1px solid #bdc9b7; border-radius: 50%; background: white; color: var(--ink); cursor: pointer; }
.carousel-arrow:not([hidden]) { display: grid; place-items: center; }
.carousel-arrow svg { width: 24px; height: 24px; }
.carousel-arrow:disabled { opacity: .35; cursor: default; }
.contact-page { padding-block: 54px 80px; }
.contact-page-heading { max-width: 760px; margin-bottom: 42px; }
.contact-page-heading h1 { max-width: none; font-size: clamp(42px, 5vw, 64px); }
.contact-page-intro { max-width: 620px; color: var(--muted); }
.contact-page-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.contact-page-aside { padding: 30px; background: var(--sage); border-radius: 8px; }
.contact-page-aside h2, .contact-form-panel h2 { font-size: 32px; margin-bottom: 24px; }
.contact-page-aside p { font-size: 14px; color: var(--muted); }
.contact-page-aside a { font-size: 14px; }
.contact-locations { border-top: 1px solid #cbd5c6; margin-top: 28px; padding-top: 24px; }
.contact-locations .eyebrow { margin-bottom: 12px; }
.contact-form-panel { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.form-notice { padding: 16px; background: #fff3da; color: #59451e; border-left: 3px solid #b68b3b; font-size: 14px; }
.contact-form-panel fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-field label span { font-weight: 400; color: var(--muted); }
.form-field input, .form-field select, .form-field textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #bac6bd; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.form-field textarea { resize: vertical; }
.form-field :disabled { background: #f5f6f4; color: #697368; }
.form-required-note { font-size: 12px; color: var(--muted); }
.contact-form-panel .button { border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.contact-form-panel .button:disabled { background: #647267; cursor: not-allowed; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .contact-page-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-form-panel, .contact-page-aside { padding: 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
.carousel-arrow:hover:not(:disabled) { background: var(--sage); }
.carousel-arrow:focus-visible, .property-carousel:focus-visible { outline: 3px solid #865843; outline-offset: 3px; }
.carousel-shell .property-carousel { min-width: 0; grid-column: 2; grid-row: 1; }
#carousel-prev { grid-column: 1; grid-row: 1; }
#carousel-next { grid-column: 3; grid-row: 1; }
@media (max-width: 760px) {
  .carousel-shell { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 8px; }
  .carousel-arrow { width: 36px; height: 36px; }
  .carousel-arrow svg { width: 21px; height: 21px; }
  .carousel-status { margin-inline: 44px; }
}
@media (max-width: 760px) { .property-carousel { grid-auto-columns: 88%; gap: 18px; } }


@media (prefers-reduced-motion: reduce) {
  .property-carousel { scroll-behavior: auto; scroll-snap-type: none; }
}

nav a { white-space: nowrap; }
@media (max-width: 420px) { .site-header { flex-wrap: wrap; } .site-header nav { flex-direction: row; flex-wrap: wrap; gap: 12px 20px; } }

.property-detail { padding-block: 40px 70px; }
.back-to-properties { display: inline-block; margin-bottom: 30px; font-size: 14px; }
.property-detail-heading h1 { max-width: none; font-size: clamp(36px, 4.5vw, 58px); }
.property-detail-heading > p:last-child { color: var(--muted); margin-bottom: 32px; }
.property-detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
.property-media, .property-info { grid-column: 1; }
.property-detail-photo { aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #eef1f3; color: #64757d; border-radius: 8px; }
.property-detail-photo p { margin: 16px 0 0; font-size: 14px; }
.property-detail-photo { position: relative; overflow: hidden; }
.property-detail-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.property-gallery { margin-top: 16px; }
.property-gallery summary { cursor: pointer; font-weight: 600; }
.property-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 12px; }
.property-gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.property-detail-section { padding-block: 30px; border-bottom: 1px solid var(--line); }
.property-detail-section h2 { font-size: 29px; margin-bottom: 20px; }
.property-detail-section p { color: var(--muted); }
.property-inquiry { grid-column: 2; grid-row: 1 / 3; position: sticky; top: 24px; background: white; padding: 28px; border: 1px solid var(--line); border-radius: 8px; }
.property-inquiry h2 { margin-top: 24px; font-size: 27px; }
.property-inquiry > p:not(.property-price) { margin-top: 16px; }
.property-inquiry .button { padding-inline: 16px; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.detail-facts dt { font-size: 13px; color: var(--muted); }
.detail-facts dd { margin: 0; }
.amenities-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding-left: 20px; font-size: 14px; }
@media (max-width: 760px) {
 .property-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
 .property-inquiry { position: static; grid-column: 1; grid-row: auto; }
 .detail-facts, .amenities-list { grid-template-columns: 1fr; }
}

.detail-map-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.detail-map-controls button { border: 0; font: inherit; font-size: 14px; cursor: pointer; }
.detail-map-controls button:disabled { opacity: .6; cursor: wait; }
.detail-map-controls span { font-size: 13px; color: var(--muted); }
.detail-property-map { height: 340px; width: 100%; border-radius: 6px; margin-bottom: 18px; background: #eef1f3; }
.detail-property-map[hidden] { display: none; }

/* Keep the call to action beside the photo on desktop and below it on phones. */
@media (max-width: 760px) {
  .site-header { flex-direction: column; align-items: center; gap: 12px; }
  .site-header .brand { width: 100%; display: flex; justify-content: center; }
  .site-header .brand-logo { width: 290px; max-width: 100%; }
  .site-header nav { width: 100%; flex-direction: row; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 20px; text-align: center; font-size: 14px; }
}
@media (max-width: 760px) {
  /* Compact homepage previews; the full catalog retains its own card styling. */
  .property-carousel .property-image { aspect-ratio: 2 / 1; }
  .property-carousel .property-placeholder { font-size: 42px; }
  .property-carousel .property-photo-note { margin-top: 6px; font-size: 11px; }
  .property-carousel .property-body { padding: 14px 16px 0; }
  .property-carousel .property-price { font-size: 22px; margin-bottom: 10px; }
  .property-carousel .property-card h3 { font-size: 17px; line-height: 1.3; }
  .property-carousel .property-address { font-size: 12px; line-height: 1.4; margin-bottom: 8px; }
  .property-carousel .property-name { font-size: 12px; line-height: 1.4; margin-bottom: 10px; }
  .property-carousel .property-facts { padding-block: 10px; gap: 4px 12px; font-size: 12px; }
  .property-carousel .property-footer { padding: 10px 16px; gap: 4px 12px; font-size: 11px; }
}
.hero { column-gap: 64px; row-gap: 0; }
.hero-copy { grid-column: 1; grid-row: 1; align-self: end; }
.hero-art { grid-column: 2; grid-row: 1 / 3; }
.hero-actions { grid-column: 1; grid-row: 2; align-self: start; }
@media (max-width: 760px) {
  .hero { gap: 28px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-art { grid-column: 1; grid-row: 2; }
  .hero-actions { grid-column: 1; grid-row: 3; }
  .hero-actions .button { margin-top: 0; }
}
