/* =========================================================================
   MERINO PROPERTY MANAGEMENT LLC — Landing page styles
   Palette drawn from the logo badge.
   ========================================================================= */

:root {
  /* Logo colors */
  --green-dark:    #14351F;  /* dark forest green — headers, footer, hero */
  --green-mid:     #1E4A2E;  /* lighter forest green — cards on green */
  --green-deep:    #0E2616;  /* deepest green — footer bottom bar */
  --cream:         #F6EEDC;  /* cream — text on green, page panels */
  --cream-light:   #FDFAF2;  /* near-white cream — page background */
  --sand:          #F0E5CE;  /* warm sand — alternate section */
  --gold:          #D9A441;  /* desert gold — rules, accents, eyebrows */
  --gold-deep:     #B9832A;  /* deeper gold — borders on light backgrounds */
  --orange-burnt:  #B8451D;  /* burnt orange — primary buttons */
  --orange-sunset: #E2702B;  /* Arizona sunset orange — accents, hovers */
  --brown-dark:    #3E2C1A;  /* dark brown — body text */
  --brown-soft:    #6B5540;  /* muted brown — secondary text */
  --white:         #FFFFFF;

  --maxw: 1120px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(20, 53, 31, .10);
  --shadow-md: 0 4px 16px rgba(20, 53, 31, .12);

  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ------------------------------- Base ---------------------------------- */

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

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

body {
  margin: 0;
  background: var(--cream-light);
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px — comfortable on phones */
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: .005em;
}

h1 { font-size: clamp(1.9rem, 5.4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.35rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: #8F3315; }
a:hover { color: var(--orange-burnt); }

:focus-visible {
  outline: 3px solid var(--orange-sunset);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-dark);
  color: var(--cream);
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------ Buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;                 /* large, easy tap target */
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn-orange {
  background: var(--orange-burnt);
  color: var(--white);              /* 5.4:1 contrast */
  border-color: var(--orange-burnt);
}
.btn-orange:hover,
.btn-orange:focus { background: #9C3816; border-color: #9C3816; color: var(--white); }

.btn-green {
  background: var(--green-dark);
  color: var(--cream);
  border-color: var(--green-dark);
}
.btn-green:hover,
.btn-green:focus { background: var(--green-mid); border-color: var(--green-mid); color: var(--cream); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--gold);
}
.btn-outline:hover,
.btn-outline:focus { background: var(--gold); color: var(--green-deep); }

.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.75rem;
}
.btn-row-center { justify-content: center; }

/* ------------------------------ Header --------------------------------- */

.site-header {
  background: var(--cream-light);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo-link { display: block; flex: 0 1 auto; min-width: 0; }
.logo {
  width: auto;
  height: 58px;                 /* phone size */
  max-width: 100%;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 14px;
  background: var(--green-dark);
  color: var(--cream);
  border: 2px solid var(--green-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  flex: 0 0 auto;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  content: "";
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }

.primary-nav { display: none; }
.primary-nav.is-open {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--cream-light);
  border-bottom: 3px solid var(--gold);
  box-shadow: var(--shadow-md);
  padding: 8px 20px 20px;
}
.primary-nav ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.primary-nav li { border-bottom: 1px solid rgba(185, 131, 42, .3); }
.primary-nav a:not(.btn) {
  display: block;
  padding: 14px 2px;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}
.primary-nav a:not(.btn):hover { color: var(--orange-burnt); }
.btn-header { width: 100%; text-transform: uppercase; }

/* -------------------------------- Hero --------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(217, 164, 65, .22) 0%, rgba(20, 53, 31, 0) 58%),
    radial-gradient(90% 70% at 12% 100%, rgba(226, 112, 43, .16) 0%, rgba(20, 53, 31, 0) 60%),
    var(--green-dark);
  color: var(--cream);
  padding: 56px 0 96px;
  overflow: hidden;
}

.hero-inner { max-width: 780px; position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 .8rem;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow-dark { color: #8A6113; }   /* gold darkened for contrast on cream */

.hero h1 { color: var(--cream); margin-bottom: .45em; }

.hero-text {
  font-size: 1.1rem;
  color: #EFE6D0;
  max-width: 65ch;
}

.mountain-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 58px;
  display: block;
}
.mountain-divider path { fill: var(--cream-light); }

/* ------------------------------ Sections -------------------------------- */

.section {
  padding: 60px 0;
  scroll-margin-top: 92px;   /* keeps headings clear of the sticky header */
}
.section-cream { background: var(--cream-light); }
.section-sand  { background: var(--sand); }
.section-narrow .section-intro { max-width: 70ch; }

.section-green {
  background: var(--green-dark);
  color: var(--cream);
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}
.section-green h2 { color: var(--cream); }

.section h2 { margin-bottom: .35em; }

.section-intro {
  font-size: 1.08rem;
  max-width: 68ch;
  color: var(--brown-dark);
}

.prose { max-width: 72ch; }
.prose p { color: #EBE1CA; }

/* --------------------------- Rental listings ---------------------------- */

.rental-grid:empty { display: none; }

.rental-card {
  background: var(--white);
  border: 1px solid #E2D5B8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}



.rental-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.rental-body h3 { color: var(--green-dark); margin-bottom: .3em; }

.rental-rent {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--orange-burnt);
  margin: 0 0 .6rem;
}

.rental-specs {
  list-style: none;
  margin: 0 0 .9rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.rental-specs li {
  background: var(--cream);
  border: 1px solid #E2D5B8;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: .9rem;
  color: var(--brown-dark);
}

.rental-desc { color: var(--brown-dark); flex: 1; }

.rental-status {
  display: inline-block;
  align-self: flex-start;
  background: var(--green-dark);
  color: var(--cream);
  border-radius: 999px;
  padding: 4px 13px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}
.rental-status.is-upcoming { background: var(--gold-deep); color: var(--white); }

.rental-card .btn { margin-top: 1rem; }

.empty-state {
  margin-top: 2rem;
  padding: 36px 24px;
  background: var(--cream);
  border: 2px dashed var(--gold-deep);
  border-radius: var(--radius);
  text-align: center;
}
.empty-state p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brown-dark);
  max-width: 50ch;
  margin: 0 auto 1.25rem;
}
.empty-state .btn { margin-top: 0; }

/* --------------------------- Feature cards ------------------------------ */

.feature-grid {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--green-mid);
  border: 1px solid rgba(217, 164, 65, .45);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 22px;
}
.feature-card h3 {
  color: var(--gold);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: .6em;
}
.feature-card p { color: #EBE1CA; margin: 0; }

/* ------------------------------ Contact --------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 2rem;
}

.contact-card {
  background: var(--cream-light);
  border: 1px solid #E2D5B8;
  border-left: 6px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { color: var(--green-dark); margin-bottom: .15em; }
.contact-role {
  color: var(--brown-soft);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.contact-phone { margin: 0; }
.contact-phone a {
  display: inline-block;
  padding: 6px 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #8F3315;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}
.contact-phone a:hover { color: var(--orange-burnt); border-bottom-color: var(--orange-sunset); }

/* -------------------------------- Form ---------------------------------- */

.form-card {
  margin-top: 3rem;
  background: var(--cream-light);
  border: 1px solid #E2D5B8;
  border-top: 5px solid var(--green-dark);
  border-radius: var(--radius);
  padding: 28px 22px 30px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 100px;
}
.form-card > h3 {
  color: var(--green-dark);
  font-size: 1.5rem;
  scroll-margin-top: 100px;
}

.form-notice {
  background: #FBEEE6;
  border: 2px solid var(--orange-burnt);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: .97rem;
  color: #5A2A12;
}
.form-notice a { color: #8F3315; font-weight: 700; }
.form-notice-dev { display: block; margin-top: .4rem; color: var(--brown-soft); font-size: .9rem; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--green-dark);
}
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #C7B490;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--brown-dark);
  font-family: var(--font-body);
  font-size: 1rem;             /* 16px+ prevents iOS zoom-on-focus */
  line-height: 1.5;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--green-dark); }

.field-row { display: grid; grid-template-columns: 1fr; gap: 0 18px; }

.form-result {
  margin: 1rem 0 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 2px solid var(--gold-deep);
  color: var(--brown-dark);
  font-weight: 600;
}

/* ------------------------------- Footer --------------------------------- */

.site-footer {
  background: var(--green-dark);
  color: var(--cream);
  border-top: 4px solid var(--gold);
  padding-top: 44px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 32px;
}

.footer-block p { margin: 0 0 .45rem; }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
}
.footer-sub { color: var(--gold); letter-spacing: .04em; }
.footer-label { color: #C9BFA6; }

.site-footer a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(217, 164, 65, .6);
  display: inline-block;
  padding: 4px 0;
}
.site-footer a:hover { color: var(--gold); border-bottom-color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(217, 164, 65, .35);
  padding-top: 18px;
  padding-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: .9rem;
  color: #D8CEB6;
}
.eho { display: flex; align-items: center; gap: 8px; margin: 0; }
.eho-mark { display: inline-flex; color: var(--gold); }
.copyright { margin: 0; }

/* ============================= Breakpoints ============================== */

/* Tablet */
@media (min-width: 640px) {
  .section { padding: 76px 0; }
  .logo { height: 68px; }
  .rental-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 32px 32px 34px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .hero { padding: 78px 0 118px; }
  .mountain-divider { height: 80px; }
}

/* Desktop */
@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .primary-nav {
    display: flex !important;
    position: static;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .primary-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
  }
  .primary-nav li { border: 0; }
  .primary-nav a:not(.btn) { padding: 6px 0; border-bottom: 2px solid transparent; }
  .primary-nav a:not(.btn):hover { border-bottom-color: var(--gold); }

  .btn-header {
    width: auto;
    min-height: 46px;
    padding: 11px 20px;
    font-size: .88rem;
  }

  .logo { height: 78px; }
  .section { padding: 92px 0; }
  .rental-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 96px 0 140px; }
  .mountain-divider { height: 100px; }
}

@media (min-width: 1060px) {
  .logo { height: 86px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* Print */
@media print {
  .site-header, .nav-toggle, .mountain-divider, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section-green, .hero, .site-footer { background: #fff !important; color: #000 !important; }
}

/* =========================================================================
   ACCESSIBILITY: minimum touch target for every telephone link
   WCAG 2.5.8 asks for at least 24x24 CSS px; 44px is the comfortable
   thumb-sized target recommended for phones. The dedicated "Call Johnny"
   and "Call Angelica" buttons were already large enough; these rules bring
   the inline phone numbers in the contact cards, footer and form notice
   up to the same standard.
   ========================================================================= */

a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Keep the large display numbers in the contact cards visually balanced
   now that they carry a taller tap area. */
.contact-phone a { padding: 8px 0; }

/* ---------------- Added: contact email, form states, rental apply ---------------- */

.contact-email { margin-top: .35rem; word-break: break-word; }
.contact-email a {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-email a:hover,
.contact-email a:focus { color: var(--orange-burnt); }

/* Spam honeypot: present for bots, invisible and unreachable for people. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.req { font-weight: 400; color: var(--brown-soft); font-size: .85em; }
.field-hint {
  margin: -.5rem 0 1.1rem;
  color: var(--brown-soft);
  font-size: .9rem;
}

/* Form status messages */
.form-result { margin-top: 1rem; padding: 12px 14px; border-radius: 8px; font-weight: 600; }
.form-result.is-loading { background: var(--sand);  color: var(--brown-dark); }
.form-result.is-success { background: #E4F0E4;      color: #1E4A2E; border: 1px solid #9BC29B; }
.form-result.is-error   { background: #FBE7E1;      color: #8F3315; border: 1px solid #E2A38F; }
#formSubmit[disabled] { opacity: .65; cursor: progress; }

/* Rental card additions */
.rental-city {
  color: var(--brown-soft);
  font-weight: 600;
  margin-top: -.2rem;
  margin-bottom: .8rem;
}
.rental-specs li { display: block; }
.btn-apply {
  font-size: 1.02rem;
  padding-top: 15px;
  padding-bottom: 15px;
  margin-top: 1.2rem;
}
.rental-apply-note {
  margin-top: .6rem;
  font-size: .86rem;
  line-height: 1.5;
  color: var(--brown-soft);
}
.rental-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}
.rental-actions .btn { margin-top: 0; flex: 1 1 auto; text-align: center; }



/* =========================================================================
   RENTALS, PROPERTY PAGES AND SHARED PAGE FURNITURE
   Added when the site moved from one long page to Home / Available Rentals /
   property pages / Contact.
   ========================================================================= */

/* Screen-reader-only text: read aloud, never seen, takes no space. */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.req { font-weight: 400; color: var(--brown-soft); font-size: .85em; }
.field-hint {
  margin: -.5rem 0 1.1rem;
  color: var(--brown-soft);
  font-size: .9rem;
}

.contact-email { word-break: break-word; }
.contact-email a { font-weight: 600; }

.form-result { margin-top: 1rem; padding: 12px 15px; border-radius: 8px; font-size: .95rem; }
.form-result.is-loading { background: var(--cream); color: var(--brown-dark); }
.form-result.is-success { background: #E7F1E9; color: #14351F; border: 1px solid #1E4A2E; }
.form-result.is-error   { background: #FBEDE8; color: #7A2C11; border: 1px solid var(--orange-burnt); }
#formSubmit[disabled] { opacity: .65; cursor: progress; }

/* --------------------------- Page header band --------------------------- */
.page-head {
  background: var(--green-dark);
  color: var(--cream);
  padding: 46px 0 40px;
}
.page-head h1 { color: var(--cream); margin: 0 0 .5rem; }
.page-head-text { max-width: 62ch; margin: 0; opacity: .92; }

.breadcrumb {
  background: var(--cream);
  border-bottom: 1px solid #E2D5B8;
  font-size: .88rem;
  padding: 11px 0;
  color: var(--brown-soft);
}
.breadcrumb a { color: var(--brown-dark); }
.breadcrumb span { margin: 0 .45rem; }
.breadcrumb span[aria-current] { margin: 0; color: var(--brown-soft); }

/* ------------------------------ CTA band -------------------------------- */
.section-cta {
  background: var(--green-dark);
  color: var(--cream);
  text-align: center;
}
.section-cta h2 { color: var(--cream); }
.cta-inner p { max-width: 56ch; margin: 0 auto 1.4rem; opacity: .92; }
.btn-outline-light {
  border: 2px solid var(--gold);
  color: var(--cream);
  background: transparent;
}
.btn-outline-light:hover { background: var(--gold); color: var(--green-deep); }

/* ========================= AVAILABLE RENTALS CARDS =======================
   Every card is the same shape: a landscape 3:2 photograph, then a body that
   grows to fill, then the button pinned to the bottom. Cards in a row are
   therefore always the same height.
   ======================================================================== */
.rental-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: stretch;
}
.rental-grid:empty { display: none; }

.rental-card {
  background: var(--white);
  border: 1px solid #E2D5B8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.rental-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.rental-media { position: relative; }
.rental-photo-link { display: block; }

.rental-photo {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  object-position: center;
  background: var(--sand);
  border-bottom: 3px solid var(--gold);
}

.rental-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--sand);
  border-bottom: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brown-soft);
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rental-media .rental-status {
  position: absolute;
  top: 14px;
  left: 14px;
  margin: 0;
}

.rental-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rental-title { font-size: 1.25rem; margin: 0 0 .2rem; color: var(--green-dark); }
.rental-title a { color: inherit; text-decoration: none; }
.rental-title a:hover { text-decoration: underline; }

.rental-city {
  color: var(--brown-soft);
  font-weight: 600;
  margin: 0 0 .85rem;
}

.rental-specs {
  list-style: none;
  margin: 0 0 .9rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.rental-specs li {
  background: var(--cream);
  border: 1px solid #E2D5B8;
  border-radius: 999px;
  padding: 4px 13px;
  font-size: .88rem;
  color: var(--brown-dark);
}

.rental-desc { color: var(--brown-dark); margin: 0 0 1.1rem; }

/* Pins the button to the bottom so every card ends level. */
.rental-cta { margin-top: auto; }

.rental-status {
  display: inline-block;
  align-self: flex-start;
  background: var(--green-dark);
  color: var(--cream);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.rental-status.is-upcoming { background: var(--gold-deep); color: var(--white); }

@media (min-width: 720px) {
  .rental-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
  /* A lone listing sits at a sensible size instead of stretching edge to edge. */
  .rental-grid > .rental-card:only-child { max-width: 480px; }
}

/* ============================= PROPERTY PAGE ============================ */
.property-head {
  background: var(--green-dark);
  color: var(--cream);
  padding: 34px 0 30px;
}
.property-head h1 { color: var(--cream); margin: .7rem 0 .2rem; }
.property-city { margin: 0; color: var(--gold); font-weight: 600; letter-spacing: .02em; }

.property-media { margin-top: 20px; }

/* The hero is bounded by HEIGHT, not by the photograph's own size, so a large
   picture can never take over the window. Cropping is centred, never stretched.
   The WebP files themselves are untouched — this only limits display height, so
   the browser still has the full-resolution pixels and the picture stays sharp. */
:root { --hero-h: 200px; }
@media (min-width: 600px)  { :root { --hero-h: 220px; } }
@media (min-width: 1024px) { :root { --hero-h: 260px; } }

.property-hero { margin: 0; }
.property-hero-img {
  display: block;
  width: 100%;
  height: var(--hero-h);
  object-fit: cover;
  object-position: center;
  background: var(--sand);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--gold);
}

.property-thumbs {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.rental-thumb {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 0;
  background: var(--sand);
  border: 2px solid #E2D5B8;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
  color: var(--brown-soft);
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.rental-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.rental-thumb-label {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 6px 4px 7px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.2;
  background: var(--cream);
}
.rental-thumb:hover { border-color: var(--gold-deep); }
.rental-thumb.is-selected {
  border-color: var(--orange-burnt);
  box-shadow: 0 0 0 2px rgba(184, 69, 29, .22);
}
.rental-thumb.is-selected .rental-thumb-label {
  background: var(--orange-burnt);
  color: var(--white);
}
.rental-thumb.is-selected .rental-thumb-label::before { content: "\2713\00a0"; }
.rental-thumb:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }

.property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-top: 28px;
  padding-bottom: 54px;
}
.property-main h2 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin: 1.6rem 0 .6rem;
}
.property-main h2:first-child { margin-top: 0; }
.property-desc { color: var(--brown-dark); }

.property-facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.property-fact {
  background: var(--cream);
  border: 1px solid #E2D5B8;
  border-radius: 8px;
  padding: 12px 15px;
}
.property-fact dt {
  font-size: .74rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brown-soft);
  font-weight: 700;
  margin-bottom: 3px;
}
.property-fact dd { margin: 0; color: var(--brown-dark); font-weight: 600; }

.property-note {
  margin-top: 1rem;
  font-size: .9rem;
  color: var(--brown-soft);
}

.property-actions {
  background: var(--white);
  border: 1px solid #E2D5B8;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px 24px;
}
.property-actions h2 { font-size: 1.2rem; color: var(--green-dark); margin: 0 0 .9rem; }
.property-actions .btn { margin-top: 10px; }
.property-actions .btn:first-of-type { margin-top: 0; }

.btn-apply {
  font-size: 1.02rem;
  padding-top: 15px;
  padding-bottom: 15px;
  margin-top: 18px !important;
}
.rental-apply-note {
  margin-top: .7rem;
  margin-bottom: 0;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--brown-soft);
}

@media (min-width: 900px) {
  .property-grid { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 40px; }
  .property-side { position: sticky; top: 20px; align-self: start; }
}

@media (max-width: 420px) {
  .property-thumbs { gap: 8px; }
  .rental-thumb-label { font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rental-card, .rental-thumb { transition: none; }
  .rental-card:hover { transform: none; }
}

/* .btn-outline is designed for dark backgrounds (cream text). Inside the white
   property sidebar and cards it needs dark text to stay readable. */
.property-actions .btn-outline,
.rental-card .btn-outline,
.form-card .btn-outline {
  color: var(--green-dark);
  border-color: var(--gold-deep);
}
.property-actions .btn-outline:hover,
.property-actions .btn-outline:focus,
.rental-card .btn-outline:hover,
.rental-card .btn-outline:focus,
.form-card .btn-outline:hover,
.form-card .btn-outline:focus {
  background: var(--gold-deep);
  color: var(--white);
  border-color: var(--gold-deep);
}
