/* JP Dwellings Group, LLC — site styles
   Brand palette from the official guidelines, plus the navy + gold accents
   from the approved Modern Classic flyer. */
:root {
  --deep-blue: #234E6B;
  --steel-blue: #6B8BA7;
  --steel-text: #526F89;  /* steel blue, a shade darker so small text is readable (WCAG AA) */
  --light-blue: #B7C7D8;
  --warm-gray: #A0A7B1;
  --off-white: #F6F7F9;
  --navy: #0F2D45;       /* flyer title band / footer */
  --navy-deep: #0A2236;
  --gold: #A08350;       /* flyer price panel (muted warm gold) */
  --gold-soft: #E9E0CF;
  --ink: #1B2A36;
  --muted: #55636F;
  --line: #DDE3EA;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 45, 69, .10);
  --max: 1160px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--deep-blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--steel-text); font-weight: 700; margin-bottom: .9rem; display: block;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; inset-inline-start: 0; top: 0; transform: translateY(-120%); background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { inset-inline-start: 10px; top: 10px; transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 700; font-size: .95rem;
  letter-spacing: .04em; text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--deep-blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #8A6F41; color: #fff; }
.btn-outline { border-color: var(--deep-blue); color: var(--deep-blue); background: transparent; }
.btn-outline:hover { background: var(--deep-blue); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--deep-blue); }
.nav .btn { color: #fff; text-transform: none; letter-spacing: .03em; padding: .6em 1.2em; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; }

@media (max-width: 860px) {
  .brand img { height: 42px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0; background: #fff; flex-direction: column;
    gap: 0; padding: .5rem 20px 1.2rem; border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .9rem; border-bottom: 0; }
}

/* Hero */
.hero { background: var(--white); padding: clamp(48px, 7vw, 96px) 0; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--deep-blue); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-photo { position: relative; display: block; color: inherit; text-decoration: none; }
.hero-photo img { transition: transform .35s ease, box-shadow .35s ease; }
a.hero-photo[href]:hover img, a.hero-photo[href]:focus-visible img { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(16,42,67,.22); }
a.hero-photo[href]:hover .tag, a.hero-photo[href]:focus-visible .tag { background: var(--deep-blue); }
a.hero-photo[href] .tag { transition: background .2s; }
.hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-photo .tag {
  position: absolute; left: -18px; bottom: 28px; background: var(--navy); color: #fff;
  padding: 14px 20px; border-radius: 8px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.4;
}
.hero-photo .tag strong { font-family: var(--serif); font-size: 1.3rem; display: block; font-weight: 600; }
.tagline-rule {
  display: flex; align-items: center; gap: 14px; color: var(--steel-text);
  font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; margin-top: 2rem;
}
.tagline-rule::before { content: ""; width: 44px; height: 2px; background: var(--gold); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo .tag { left: 12px; bottom: 12px; }
}

/* Sections */
section { padding: clamp(64px, 8vw, 110px) 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: #E7EDF3; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--light-blue); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-grid .logo-panel {
  background: var(--white); border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow);
  display: grid; place-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 34px 30px; }
.pillar .num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: .8rem; display: block; }
.pillar p { color: #C9D5E0; margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Property card */
.property-card {
  display: grid; grid-template-columns: 1.25fr 1fr; background: var(--white); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.property-card .photo { position: relative; min-height: 360px; }
.property-card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 18px; left: 18px; background: var(--navy); color: #fff; font-weight: 700;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; padding: 8px 14px; border-radius: 4px;
}
.property-card .body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.property-card .address { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); line-height: 1.15; margin: 0; }
.property-card .city { color: var(--muted); margin: .2rem 0 1.2rem; letter-spacing: .04em; }
.price { display: inline-flex; align-items: baseline; gap: .4rem; background: var(--gold); color: #fff; padding: 10px 18px; border-radius: 6px; align-self: flex-start; }
.price strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.price span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.specs { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 1.4rem 0; padding: 1rem 0; border-block: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.specs li { list-style: none; display: flex; align-items: center; gap: 8px; }
.specs { padding-left: 0; }
.specs svg { width: 20px; height: 20px; color: var(--steel-blue); }
.property-card .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; }
@media (max-width: 860px) { .property-card { grid-template-columns: 1fr; } .property-card .photo { min-height: 240px; aspect-ratio: 3/2; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin-inline: auto; }
.contact-item {
  display: flex; gap: 18px; align-items: center; background: var(--white); border-radius: var(--radius);
  padding: 26px 28px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.contact-item:hover { border-color: var(--steel-blue); box-shadow: var(--shadow); color: var(--ink); }
.contact-item .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--deep-blue); color: #fff; display: grid; place-items: center; flex: none; }
.contact-item .icon svg { width: 24px; height: 24px; }
.contact-item small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.contact-item strong { font-size: 1.12rem; color: var(--navy); word-break: break-word; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B9C6D2; padding: 56px 0 28px; font-size: .92rem; }
.site-footer .top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .top img { height: 64px; width: auto; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #DCE5EE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .84rem; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 22px; height: 22px; }

/* ---------- Property page ---------- */
.prop-hero { background: var(--navy); color: #fff; padding: 46px 0 40px; }
.prop-hero .container { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.prop-hero .eyebrow { color: var(--light-blue); }
.prop-hero h1 { color: #fff; margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prop-hero .city { color: var(--light-blue); font-size: 1.15rem; letter-spacing: .06em; margin: .3rem 0 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 1.2rem; color: var(--light-blue); }
.breadcrumb a { color: var(--light-blue); }

.gallery-main { padding: 28px 0 0; background: var(--white); }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; }
.mosaic button { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: 8px; position: relative; background: var(--light-blue); }
.mosaic button:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic button:hover img { transform: scale(1.03); }
.mosaic .more { position: absolute; inset: 0; background: rgba(10,34,54,.55); color: #fff; display: grid; place-items: center; font-weight: 700; letter-spacing: .06em; font-size: 1rem; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 140px 140px; }
  .mosaic button:first-child { grid-column: span 2; grid-row: auto; }
}

.prop-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.prop-layout .summary-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 2.4rem; }
.stat { background: var(--off-white); border-radius: var(--radius); padding: 20px; text-align: center; border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0; margin: 0 0 2.4rem; }
.features li { list-style: none; display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.features .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--off-white); color: var(--deep-blue); display: grid; place-items: center; flex: none; }
.features .ico svg { width: 20px; height: 20px; }
.features strong { color: var(--navy); display: block; line-height: 1.35; }
.features .tag-new, .features .tag-newer {
  display: inline-block; font-size: .68rem; font-weight: 900; letter-spacing: .14em; padding: 2px 7px; border-radius: 3px; margin-right: 6px; vertical-align: 2px;
}
.features .tag-new { background: var(--gold); color: #fff; }
.features .tag-newer { background: var(--gold-soft); color: #6E5530; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.aside-card { position: sticky; top: 108px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.aside-card .price-panel { background: var(--gold); color: #fff; text-align: center; padding: 22px; }
.aside-card .price-panel strong { font-family: var(--serif); font-size: 2.6rem; display: block; line-height: 1; }
.aside-card .price-panel span { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; }
.aside-card .inner { padding: 24px; display: grid; gap: 12px; }
.aside-card .inner p { margin: 0; font-size: .92rem; color: var(--muted); text-align: center; }
.aside-card .contact-line { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--navy); font-weight: 700; justify-content: center; }
.aside-card .contact-line svg { width: 18px; height: 18px; color: var(--steel-blue); }
@media (max-width: 960px) { .prop-layout { grid-template-columns: 1fr; } .aside-card { position: static; } }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.photo-grid button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--light-blue); }
.photo-grid img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .4s; }
.photo-grid button:hover img { transform: scale(1.03); }
.photo-grid figcaption, .photo-cap { font-size: .82rem; color: var(--muted); padding: 6px 2px 0; text-align: left; }
.photo-grid figure { margin: 0; }
.note { font-size: .85rem; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(6, 20, 32, .94); display: none; z-index: 200; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 80vh; border-radius: 6px; }
.lightbox .cap { color: #DCE5EE; margin-top: 14px; font-size: .95rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 28px; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox .close { top: 18px; right: 18px; }
.lightbox .prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 18px; top: 50%; transform: translateY(-50%); }

.cta-band { background: var(--deep-blue); color: #fff; padding: 56px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p { margin: .3rem 0 0; color: var(--light-blue); }
.cta-band p a { color: #fff; font-weight: 600; white-space: nowrap; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Contact form */
.contact-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-item.static:hover { border-color: var(--line); box-shadow: none; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--navy); }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); padding: .75em .9em; border: 1px solid #C9D3DD; border-radius: 8px; background: var(--off-white); width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--steel-blue); outline-offset: 0; background: #fff; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.contact-form .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-status { margin: 0; font-weight: 700; }
.form-status.ok { color: #2E6B45; }
.form-status.err { color: #A33A2B; }
@media (max-width: 860px) { .contact-wrap, .contact-form .row { grid-template-columns: 1fr; } }

/* fixes */
img { height: auto; }
.btn { font-family: inherit; }
.btn svg { width: 18px; height: 18px; flex: none; }
.about-grid .logo-panel img { width: min(100%, 380px); }
.contact-form label { display: block; }
.contact-form label > input, .contact-form label > select, .contact-form label > textarea { display: block; margin-top: 6px; }
@media (max-width: 560px) {
  .prop-layout .summary-specs { gap: 8px; }
  .stat { padding: 14px 6px; }
  .stat strong { font-size: 1.5rem; }
  .stat span { font-size: .66rem; letter-spacing: .06em; }
}
html, body { overflow-x: clip; }

/* Residents */
.resident-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.resident-card { background: var(--off-white); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.resident-card .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--deep-blue); color: #fff; display: grid; place-items: center; margin-bottom: 1rem; }
.resident-card .icon svg { width: 24px; height: 24px; }
.resident-card p { color: var(--muted); flex: 1; }
.resident-card.urgent { border-color: var(--gold); background: #FBF8F2; }
.resident-form { max-width: 760px; margin-inline: auto; }
@media (max-width: 860px) { .resident-cards { grid-template-columns: 1fr; } }

/* Maintenance form */
.maint-form fieldset { border: 0; padding: 0; margin: 0 0 8px; display: grid; gap: 14px; }
.maint-form legend { font-family: var(--serif); font-size: 1.45rem; color: var(--navy); font-weight: 600; margin-bottom: 10px; padding: 0; }
.maint-form legend .opt { font-family: var(--sans); font-size: .85rem; }
.maint-form legend .opt.req { color: #A33A2B; font-weight: 700; }
.maint-form select:disabled { opacity: .6; }
.emergency { background: #FBEDEA; border: 1px solid #E7B9AF; color: #6E2418; border-radius: 10px; padding: 14px 16px; font-size: .92rem; }
.emergency a { color: #6E2418; font-weight: 700; }
.hint { margin: 0; color: var(--muted); font-size: .9rem; }
#m-tip { background: var(--gold-soft); color: #5B4626; padding: 10px 14px; border-radius: 8px; }
.photo-tips { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: .88rem; }
.file-drop { border: 2px dashed var(--steel-blue); border-radius: 12px; padding: 22px; text-align: center; cursor: pointer; background: var(--off-white); color: var(--navy); }
.file-drop:hover { background: #EEF2F6; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop small { color: var(--muted); font-weight: 400; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; }
.thumb { position: relative; }
.thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(10,34,54,.8); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.maint-form .btn { justify-self: stretch; }
@media (min-width: 640px) { .maint-form .btn { justify-self: start; } }
/* Mobile polish */
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .contact-form input, .contact-form select, .contact-form textarea { font-size: 16px; } /* prevents iOS zoom */
  .hero .actions .btn { flex: 1 1 100%; }
  .prop-hero .btn { width: 100%; }
}

/* Nav wrapper */
.nav .nav-item { display: contents; }

/* Residents landing */
.portal-login { max-width: 640px; margin: 0 auto 40px; text-align: center; background: var(--off-white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(28px, 5vw, 48px); }
.portal-login .icon { width: 60px; height: 60px; border-radius: 50%; background: var(--deep-blue); color: #fff; display: inline-grid; place-items: center; margin-bottom: 1rem; }
.portal-login .icon svg { width: 28px; height: 28px; }
.portal-login .btn { margin: .6rem 0 1.2rem; }
.resident-cards.single { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }

/* Preferred times */
.pref { display: grid; gap: 8px; }
.pref-label { font-weight: 700; font-size: .88rem; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-form .chips label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; padding: .5em .9em; border: 1px solid #C9D3DD; border-radius: 999px; background: var(--off-white); cursor: pointer; user-select: none; }
.contact-form .chips input { display: none; margin: 0; }
.contact-form .chips label:has(input:checked) { background: var(--deep-blue); border-color: var(--deep-blue); color: #fff; }

/* Owner dashboard */
.admin h2 { margin-top: 1.5rem; }
.admin-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 1.5rem; box-shadow: var(--shadow); overflow-x: auto; }
.admin-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.admin-actions .btn { border: 0; cursor: pointer; }
.admin-actions .btn-outline { border: 2px solid var(--deep-blue); }
.status-pill { font-weight: 900; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: var(--line); }
.status-pill.available { background: #E3F1E8; color: #2E6B45; }
.status-pill.rented { background: var(--gold-soft); color: #6E5530; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin-table th { text-align: left; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions button { font: inherit; font-size: .85rem; font-weight: 700; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; margin-left: 6px; cursor: pointer; color: var(--deep-blue); }
.row-actions button:last-child { color: #A33A2B; }
.admin-form { box-shadow: none; }
@media (max-width: 700px) {
  .admin-table thead { display: none; }
  .admin-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .admin-table td { display: block; border: 0; padding: 4px 0; }
  .admin-table td[data-l]::before { content: attr(data-l) ": "; font-weight: 700; color: var(--navy); }
  .row-actions { text-align: left; }
  .row-actions button { margin: 6px 6px 0 0; }
}

[hidden] { display: none !important; }

/* Documents & notes (owner dashboard + resident portal) */
.doc-head { margin-top: 1.6rem; }
.doc-list { display: grid; gap: 12px; }
.portal-docs { max-width: 820px; margin: 0 auto; }
.doc-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; }
.doc-item h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--navy); }
.doc-item .doc-date { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.doc-item .doc-note { margin: 8px 0 0; white-space: pre-wrap; word-break: break-word; }
.doc-item .doc-actions { display: flex; gap: 8px; flex-shrink: 0; align-items: center; }
.doc-item .doc-actions a, .doc-item .doc-actions button { font: inherit; font-size: .85rem; font-weight: 700; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer; color: var(--deep-blue); text-decoration: none; white-space: nowrap; }
.doc-item .doc-actions button { color: #A33A2B; }
.doc-empty { text-align: center; color: var(--muted); }
.admin-form textarea { width: 100%; }
@media (max-width: 640px) { .doc-item { flex-direction: column; } }

/* E-signatures */
.sig-box { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0; display: grid; gap: 12px; }
.sig-box legend { font-weight: 900; color: var(--navy); padding: 0 6px; }
.sig-pad-wrap { position: relative; }
.sig-pad { display: block; width: 100%; height: 170px; background: #fff; border: 1.5px dashed var(--steel-blue, #6B8BA7); border-radius: 10px; cursor: crosshair; touch-action: none; }
.sig-pad-wrap::after { content: "Sign here"; position: absolute; left: 16px; bottom: 34px; right: 16px; border-top: 1px solid var(--line); padding-top: 4px; font-size: .75rem; color: var(--muted); pointer-events: none; }
.sig-mode { display: inline-flex; width: max-content; justify-self: start; align-self: flex-start; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.sig-mode button { font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 18px; border: 0; background: #fff; color: var(--deep-blue); cursor: pointer; }
.sig-mode button[aria-pressed="true"] { background: var(--deep-blue); color: #fff; }
.sig-typed { display: block; width: 100%; margin-bottom: 8px; }
.sig-pad-wrap.typed .sig-pad { cursor: default; border-style: solid; }
.sig-clear { position: absolute; top: 8px; right: 8px; font: inherit; font-size: .8rem; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; cursor: pointer; color: var(--deep-blue); }
.contact-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--ink, #1d2a35); }
.contact-form label.check input { width: auto; margin: 4px 0 0; flex: none; display: inline-block; }
.sign-list { display: grid; gap: 20px; max-width: 820px; margin: 0 auto; }
.sign-card { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--gold, #A08350); border-radius: 14px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.sign-card h3 { margin: 0 0 4px; }
.sign-card .doc-note { white-space: pre-wrap; }
.sign-card .contact-form { box-shadow: none; border: 0; padding: 0; margin-top: 14px; }
.sign-done { background: #E3F1E8; color: #2E6B45; border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.status-tag { display: inline-block; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--line); color: var(--navy); margin-left: 6px; vertical-align: middle; }
.status-tag.pending { background: var(--gold-soft, #F1EADF); color: #6E5530; }
.status-tag.completed { background: #E3F1E8; color: #2E6B45; }
.status-tag.canceled { background: #F3E3E0; color: #A33A2B; }

/* Owner dashboard tabs */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6rem; padding: 6px; background: var(--off-white); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; }
.admin-tabs button { font: inherit; font-weight: 700; font-size: .95rem; color: var(--deep-blue); background: none; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.admin-tabs button.active { background: var(--deep-blue); color: #fff; }
.admin-tabs button:not(.active):hover { background: var(--white); }
.tab-panel > h2:first-child { margin-top: 0; }
.admin-card .contact-form { border: 0; box-shadow: none; padding: 0; background: none; }
@media (max-width: 640px) { .admin-tabs { border-radius: 14px; width: 100%; } .admin-tabs button { flex: 1 1 45%; padding: 10px 8px; font-size: .88rem; } }
#a-content > section { padding-top: 36px; }

/* Resident portal tabs */
.portal-tabs-wrap { padding: 28px 0 0; }
.portal-tabs-wrap .admin-tabs { margin: 0 auto; }
#p-content .tab-panel { padding-top: 32px; }
.tab-badge { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--gold); color: #fff; font-size: .78rem; line-height: 1.4em; text-align: center; }
.tab-badge:empty { display: none; }
.sign-alert { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 14px; padding: 16px 20px; margin-bottom: 24px; color: var(--navy); }
.sign-alert[hidden] { display: none; }
.portal-quick { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
@media (max-width: 640px) { .portal-quick .btn { flex: 1 1 100%; } }
.btn.btn-sm { padding: 8px 16px; font-size: .85rem; margin-left: 8px; vertical-align: middle; }
.form-status.ok .btn-sm { margin: 8px 0 0; }

/* Signature placement preview (owner dashboard) */
.place { display: grid; gap: 10px; }
.place[hidden] { display: none; }
.place-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.place-tools button { font: inherit; font-size: .85rem; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--deep-blue); }
.place-tools button.active { background: var(--deep-blue); color: #fff; }
.place-mode { margin: 0; font-weight: 700; color: var(--gold); }
.place-pages { max-height: 72vh; overflow: auto; background: #E4E9EE; border-radius: 12px; padding: 14px; }
.place-page { position: relative; margin: 0 auto 14px; max-width: 820px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.place-page canvas { display: block; width: 100%; height: auto; }
.place-page .pnum { position: absolute; right: 8px; bottom: 6px; font-size: .7rem; color: var(--muted); }
.place-page.adding { cursor: crosshair; outline: 3px solid var(--gold); }
.fbox { position: absolute; border: 2px dashed var(--deep-blue); background: rgba(35, 78, 107, .12); border-radius: 4px; cursor: move; touch-action: none; display: flex; align-items: center; padding: 0 4px; font-size: 10px; font-weight: 700; color: var(--deep-blue); white-space: nowrap; overflow: visible; user-select: none; }
.fbox.tenant { border-color: var(--gold); background: rgba(160, 131, 80, .16); color: #6E5530; }
.fbox .x { position: absolute; top: -10px; right: -10px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: #A33A2B; color: #fff; font-size: 13px; line-height: 20px; padding: 0; cursor: pointer; }

/* Portal tour */
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.tour-shade { position: fixed; inset: 0; background: rgba(15,45,69,.55); z-index: 900; }
.tour-spot { position: fixed; z-index: 901; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(15,45,69,.55); outline: 3px solid var(--gold, #C9A24B); pointer-events: none; transition: all .25s ease; }
.tour-card { position: fixed; z-index: 902; left: 50%; transform: translateX(-50%); width: min(420px, calc(100vw - 28px)); background: #fff; border-radius: 14px; padding: 20px 22px 16px; box-shadow: 0 18px 50px rgba(0,0,0,.25); }
.tour-card.center { top: 50% !important; transform: translate(-50%, -50%); }
.tour-card h3 { margin: 0 0 6px; font-size: 1.35rem; }
.tour-card p { margin: 0 0 14px; color: var(--muted); }
.tour-card .tour-step { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-blue, #6B8BA7); }
.tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tour-skip { background: none; border: 0; font: inherit; font-size: .9rem; color: var(--muted); cursor: pointer; text-decoration: underline; padding: 0; }

/* Round 2: overview, maintenance tracker, checklists */
.row-3, .contact-form .row.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: end; }
@media (max-width: 720px) { .row-3, .contact-form .row.row-3 { grid-template-columns: 1fr; } }
.upcoming { margin: 0 0 10px; padding-left: 20px; }
.upcoming li { margin: 6px 0; }
.upcoming .up-urgent { color: #A3302B; }
.upcoming .up-soon strong { color: #8A5A00; }
.upcoming .up-muted { color: var(--muted); font-size: .92rem; }
.maint-filter { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 4px 0 14px; }
.maint-filter button { font: inherit; font-size: .9rem; font-weight: 700; padding: 6px 18px; border: 0; background: #fff; color: var(--deep-blue); cursor: pointer; }
.maint-filter button.active { background: var(--deep-blue); color: #fff; }
.maint-item { display: block; }
.maint-item details { margin: 6px 0 10px; }
.maint-item summary { cursor: pointer; color: var(--deep-blue); font-weight: 700; font-size: .92rem; }
.maint-meta { font-size: .92rem; color: var(--muted); margin: 8px 0; }
.maint-orig { font-size: .88rem; color: var(--muted); margin: 4px 0 8px; }
.maint-log { font-size: .88rem; color: var(--muted); margin: 6px 0; padding-left: 18px; }
.maint-update { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px 14px; align-items: end; border-top: 1px solid var(--line); padding-top: 12px; }
.maint-update label { display: block; font-size: .88rem; font-weight: 700; }
.maint-update .wide { grid-column: 1 / -1; }
.maint-update label.check { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.maint-update .btn { justify-self: start; }
.maint-update input:not([type=checkbox]), .maint-update select { display: block; width: 100%; margin-top: 4px; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 720px) { .maint-update { grid-template-columns: 1fr; } }
.status-tag.urgent { background: #FBE3E1; color: #A3302B; }
.maint-item .thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.maint-item .thumb img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.check-room { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; }
.check-room legend { font-weight: 700; padding: 0 6px; }
.file-drop.small { padding: 10px; min-height: 0; }
.check-new { margin-top: 6px; }
.my-requests { max-width: 860px; margin: 0 auto 10px; }
.legal { max-width: 780px; }
.legal h2 { font-size: 1.6rem; margin: 1.6em 0 .4em; }
.legal li { margin: .35em 0; }

/* Language picker */
.lang-btn { font: inherit; font-size: .85rem; font-weight: 700; letter-spacing: .04em; background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; margin-left: 12px; white-space: nowrap; order: 3; }
.lang-btn:hover { border-color: var(--deep-blue); }
.lang-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(15,45,69,.6); display: grid; place-items: center; padding: 16px; }
.lang-card { position: relative; background: #fff; border-radius: 16px; padding: 28px 24px 22px; width: min(440px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.lang-globe { font-size: 2rem; }
.lang-card h2 { margin: 4px 0 4px; font-size: 1.7rem; }
.lang-sub { margin: 0 0 18px; color: var(--muted); font-size: .9rem; }
.lang-list { display: grid; gap: 10px; }
.lang-list button { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: inherit; font-size: 1.1rem; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); cursor: pointer; text-align: start; }
.lang-list button span { color: var(--muted); font-size: .9rem; }
.lang-list button:hover, .lang-list button:focus-visible { border-color: var(--deep-blue); background: #F3F6F9; }
.lang-list button.current { border-color: var(--gold); }
.lang-close { position: absolute; top: 8px; right: 12px; font-size: 1.6rem; background: none; border: 0; color: var(--muted); cursor: pointer; }
/* Scripts the brand fonts don't cover use the device's own fonts. */
html[lang=vi] body, html[lang=zh] body, html[lang=ar] body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; }
html[lang=zh] h1, html[lang=zh] h2, html[lang=zh] h3, html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3, html[lang=vi] h1, html[lang=vi] h2, html[lang=vi] h3 { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; font-weight: 700; letter-spacing: 0; }
html[dir=rtl] .lang-close { right: auto; left: 12px; }
html[dir=rtl] .lang-btn { margin-left: 0; margin-right: 12px; }
.lang-note { background: #FFF8E6; border: 1px solid #F0D9A8; border-radius: 10px; padding: 10px 14px; font-size: .95rem; }
html[lang=en] .lang-note, html:not([lang]) .lang-note { display: none; }
.site-header .brand { margin-inline-end: auto; }
.site-header .nav { order: 2; }
.site-header .menu-toggle { order: 4; }
html[dir=rtl] .btn svg { transform: scaleX(-1); }
.contact-form { scroll-margin-top: 100px; }

/* Move-out notice (portal) */
.moveout-card { max-width: 640px; margin: 36px auto 0; padding: 22px 24px; border: 1px solid var(--line, #DDE3EA); border-radius: var(--radius); background: #fff; text-align: center; }
.moveout-card h3 { margin: 0 0 .4rem; }
.moveout-card p { color: var(--muted); }
#p-mo-given { color: var(--navy); font-weight: 600; }
.mo-form { text-align: start; display: grid; gap: 14px; margin-top: 14px; }
.mo-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.mo-form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.mo-form label.check input { margin-top: 4px; }
.mo-form input:not([type=checkbox]), .mo-form textarea { font: inherit; padding: 11px 12px; border: 1px solid #C9D3DD; border-radius: 8px; background: #F6F7F9; width: 100%; box-sizing: border-box; }
.mo-warn { background: #FFF6E5; border: 1px solid #E9C67A; color: #6B4A00 !important; padding: 10px 12px; border-radius: 8px; margin: 0; }
.mo-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Book a showing (listing page) */
.showing { background: var(--off-white, #F6F7F9); }
.show-box { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line, #DDE3EA); border-radius: var(--radius); padding: 24px; }
.show-step { font-size: 1rem; margin: 0 0 10px; letter-spacing: .02em; }
.show-days, .show-times { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.show-days button, .show-times button { font: inherit; font-weight: 600; font-size: .92rem; padding: 10px 14px; border-radius: 999px; border: 1px solid #C9D3DD; background: #fff; color: var(--navy); cursor: pointer; white-space: nowrap; }
.show-days button.on, .show-times button.on { background: var(--deep-blue); border-color: var(--deep-blue); color: #fff; }
.show-days button:hover, .show-times button:hover { border-color: var(--deep-blue); }
.show-form { margin-top: 6px; border-top: 1px solid var(--line, #DDE3EA); padding-top: 18px; }
.show-picked { margin: 0 0 12px; color: var(--navy); }
.show-done { text-align: center; }
.show-done h3 { margin-top: 0; }
@media (max-width: 640px) { .show-days { flex-wrap: nowrap; } .show-box { padding: 18px; } }

/* Dashboard: showings + move-out */
.admin-sub { font-size: 1rem; margin: 18px 0 8px; }
.admin-inline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.admin-inline label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.admin-inline input, .admin-inline select { font: inherit; padding: 9px 10px; border: 1px solid #C9D3DD; border-radius: 8px; background: #fff; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--deep-blue); text-decoration: underline; cursor: pointer; }
.mo-flag { color: #8A5A00; font-weight: 700; }

/* Owner dashboard: website visits */
.v-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:8px}
.v-tile{background:var(--off-white);border-radius:10px;padding:14px 16px;display:flex;flex-direction:column}
.v-label{font-size:.85rem;color:var(--muted)}
.v-num{font-size:2rem;line-height:1.15;color:var(--ink)}
.v-sub{font-size:.85rem;color:var(--muted)}
.v-chart{display:flex;align-items:flex-end;gap:2px;height:120px;border-bottom:1px solid var(--line);padding-top:4px}
.v-bar{flex:1;height:100%;display:flex;align-items:flex-end;cursor:default;outline-offset:2px}
.v-bar span{display:block;width:100%;background:var(--deep-blue);border-radius:4px 4px 0 0}
.v-bar:hover span,.v-bar:focus span{background:var(--navy)}
.v-axis{display:flex;justify-content:space-between;font-size:.8rem;color:var(--muted);margin:4px 0 8px}
.v-lists{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:4px 24px}
.v-list{list-style:none;margin:0;padding:0}
.v-list li{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-bottom:1px solid var(--line);font-size:.95rem}
.v-list b{font-variant-numeric:tabular-nums}
@media (max-width:600px){.v-tiles{grid-template-columns:1fr 1fr 1fr;gap:6px}.v-tile{padding:10px}.v-num{font-size:1.5rem}}
.v-lists + .note{margin-top:14px}

/* Listing: neighborhood amenities */
.amen-intro{margin:-.4rem 0 1rem;color:var(--muted)}
.amen-more{margin:-1.4rem 0 2.4rem}
.amen-more a{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--deep-blue)}
.amen-more svg{width:16px;height:16px}
html[dir=rtl] .amen-more svg{transform:scaleX(-1)}
