/* Niagara Rentals — listing site. Navy #1c3a5b / blue #2e7fc1. */
:root {
  --navy: #1c3a5b;
  --blue: #2e7fc1;
  --link: #1a5f9e;
  --ink: #12263a;
  --slate: #5a6b7b;
  --line: #e3e9f0;
  --bg: #f6f8fb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18,38,58,.06), 0 8px 24px rgba(18,38,58,.08);
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -.02em; }
h2 { font-size: 1.3rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--slate); }
.small { font-size: .85rem; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* Global keyboard focus ring (WCAG 2.2 focus-visible) */
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { color: var(--navy); padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: var(--bg); text-decoration: none; }
.nav-cta { background: var(--navy); color: #fff !important; }
.nav-cta:hover { background: var(--blue); }

/* Hero (index + 404) */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #24507c 55%, var(--blue) 130%);
  color: #fff; padding: clamp(48px, 8vw, 92px) 0;
}
.hero h1 { color: #fff; margin-bottom: .25em; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.35rem); color: #dbe7f5; max-width: 44ch; margin: 0; }
.hero-sub a { color: #fff; text-decoration: underline; }

/* Homepage hero — Niagara Falls photo behind a navy overlay (keeps white text legible) */
.hero-home {
  background:
    linear-gradient(135deg, rgba(18,38,58,.86) 0%, rgba(28,58,91,.74) 55%, rgba(46,127,193,.64) 130%),
    url('/assets/niagara-hero.jpg') center 42% / cover no-repeat;
  padding: clamp(64px, 12vw, 150px) 0;
}
.hero-home h1 { text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero-home .hero-sub { color: #eaf1f8; text-shadow: 0 1px 10px rgba(0,0,0,.4); }

/* Listings grid */
.listings { padding: 44px 20px 60px; }
.listings h2 { margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
  color: var(--ink); display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(18,38,58,.14); text-decoration: none; }
.card-media { position: relative; aspect-ratio: 4/3; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-price {
  position: absolute; left: 12px; bottom: 12px; background: rgba(28,58,91,.94); color: #fff;
  padding: 7px 12px; border-radius: 9px; font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow);
}
.card-price small { font-weight: 500; font-size: .72rem; opacity: .85; margin-left: 2px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { font-size: 1.1rem; margin: 0; }
.card-meta { color: var(--navy); font-weight: 600; font-size: .9rem; margin: 2px 0 0; }
.card-loc { color: var(--slate); font-size: .9rem; margin: 0; }
.card-cta { margin-top: auto; padding-top: 10px; color: var(--link); font-weight: 700; font-size: .95rem; }
.empty { color: var(--slate); font-size: 1.1rem; }

/* Detail */
.crumb { padding: 18px 20px 0; color: var(--slate); font-size: .9rem; }
.crumb a { color: var(--slate); }
.detail { padding: 8px 20px 64px; }
.detail-head { padding: 18px 0 8px; }
.detail-sub { color: var(--slate); font-size: 1.05rem; margin: 0 0 18px; }
.facts {
  list-style: none; margin: 0 0 22px; padding: 16px; display: flex; flex-wrap: wrap; gap: 8px 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.facts li { display: flex; flex-direction: column; }
.facts-v { font-weight: 800; color: var(--navy); font-size: 1.15rem; }
.facts-k { color: var(--slate); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }

.btn {
  display: inline-block; font-weight: 700; padding: 13px 24px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer; font-size: 1rem; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff !important; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--blue); }
.btn-block { display: block; width: 100%; margin-top: 6px; }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 36px;
}
.shot {
  padding: 0; border: 0; background: var(--line); border-radius: 12px; overflow: hidden;
  cursor: zoom-in; aspect-ratio: 4/3;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.shot:hover img { transform: scale(1.04); }
.shot:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.shot-hero { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* Detail two-column */
.detail-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
.detail-main section { margin-bottom: 30px; }
.detail-main p { margin: 0 0 12px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: #eaf1fa; color: var(--navy); border: 1px solid #d6e4f4;
  padding: 7px 13px; border-radius: 999px; font-size: .92rem; font-weight: 600;
}
.detail-aside { position: sticky; top: 86px; }
.aside-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.aside-card h2 { font-size: 1.15rem; }
.essentials { margin: 0 0 18px; }
.essentials > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.essentials > div:last-child { border-bottom: 0; }
.essentials dt { color: var(--slate); font-size: .9rem; flex: none; }
.essentials dd { margin: 0; text-align: right; font-weight: 600; font-size: .9rem; }

/* Availability status badge */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e6f4ea; color: #1f7a41; border: 1px solid #bfe4cb;
  font-weight: 700; font-size: .82rem; padding: 5px 11px; border-radius: 999px;
}
.card-media .status { position: absolute; right: 12px; bottom: 12px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.detail-head .status { margin-bottom: 12px; }

/* Ghost button */
.btn-ghost { background: #fff; color: var(--navy) !important; border-color: var(--navy); }
.btn-ghost:hover { background: var(--bg); }

/* FAQ — native details/summary (accessible, no JS) */
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--card); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--link); line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0; padding: 0 16px 16px; }

/* Trust block */
.trust { background: #eef4fb; border: 1px solid #d6e4f4; border-radius: var(--radius); padding: 22px 24px; margin-top: 30px; }
.trust h2 { font-size: 1.15rem; }
.trust ul { margin: 0; padding-left: 20px; }
.trust li { margin-bottom: 8px; }
.trust p { margin: 0; }

/* Content pages (landlord, market) */
.hero-compact { padding: clamp(36px, 6vw, 60px) 0; }
.content { max-width: 820px; padding: 40px 20px 60px; }
.content > section { margin-bottom: 34px; }
.content p { margin: 0 0 14px; }
.area-photo { width: 100%; height: auto; border-radius: var(--radius); margin: 0 0 26px; box-shadow: var(--shadow); }
.ticks, .checklist { list-style: none; padding: 0; margin: 0; }
.ticks li, .checklist li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before, .checklist li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 800; }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 12px; }
.steps strong { color: var(--navy); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.market-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; min-width: 520px; }
.market-table caption { text-align: left; }
.market-table th, .market-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.market-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.market-table tbody th { color: var(--navy); font-weight: 700; white-space: nowrap; }
.market-table td:last-child { color: var(--slate); font-size: .88rem; }
.sources { padding-left: 20px; margin: 0; }
.sources li { margin-bottom: 8px; }
.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; }

/* Footer */
.site-footer { background: var(--navy); color: #cfe0f0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 40px 20px; }
.site-footer strong { color: #fff; font-size: 1.1rem; }
.site-footer p { margin: 6px 0 0; }
.site-footer a { color: #fff; }
.footer-contact { text-align: right; }
.footer-contact .muted { color: #8fa6bd; }

/* Lightbox */
.lb {
  position: fixed; inset: 0; background: rgba(10,20,32,.93); display: none;
  align-items: center; justify-content: center; z-index: 200; padding: 24px;
}
.lb.open { display: flex; }
.lb img { max-width: 96vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close {
  position: absolute; top: 16px; right: 20px; background: rgba(255,255,255,.14); color: #fff;
  border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14);
  color: #fff; border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
}
.lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

@media (max-width: 860px) {
  .detail-cols { grid-template-columns: 1fr; gap: 8px; }
  .detail-aside { position: static; }
  .shot-hero { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .brand-logo { height: 40px; }
  .facts { gap: 12px 22px; }
  .footer-inner, .footer-contact { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
