/* Montserrat, self-hosted (variable weight 100-900, latin subset) so nothing loads from Google Fonts */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/montserrat.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Air Homes – site styles. Layout follows the MQ Realty site; colours and logo are Air Homes.
   Brand colours are placeholders until John supplies the Air Homes palette: change the tokens below only. */
:root {
  --brand: #0b74b0;          /* primary (header bar, buttons); 4.7:1 with white text */
  --brand-dark: #085a89;
  --accent: #1a8a60;         /* links / highlights (the MQ green, darkened to 4.5:1 on white) */
  --ink: #2d2d2d;
  --text: #626262;
  --muted: #6b6b6b;        /* 4.5:1 on white and on the grey sections */
  --line: #ebebeb;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --radius: 6px;
  --wrap: 1180px;
  --font: 'Montserrat', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.6; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.centre { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 100; }

/* Buttons (pill shape like the MQ site) */
.btn { display: inline-block; padding: 10px 26px; border-radius: 999px; font-weight: 600; font-size: .9rem; border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.3; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--brand); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.35rem; letter-spacing: .02em; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 700; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-button { display: none; width: 44px; height: 44px; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-button span { display: block; height: 3px; background: #fff; border-radius: 2px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; color: #fff; padding: 18px 12px; font-weight: 500; font-size: .9rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { text-decoration: none; background: rgba(255,255,255,.14); }
.main-nav li ul { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.15); border-radius: 0 0 var(--radius) var(--radius); flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0; }
.main-nav li:hover > ul, .main-nav li:focus-within > ul { display: flex; }
.main-nav li ul a { color: var(--ink); padding: 9px 16px; font-weight: 500; }
.main-nav li ul a:hover { background: var(--bg-alt); }
.nav-account { margin-left: 8px; }
.nav-account .btn { color: #fff; border-color: #fff; padding: 7px 18px; }
.nav-account .btn:hover { background: #fff; color: var(--brand); }

@media (max-width: 900px) {
  .nav-button { display: flex; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--brand); border-top: 1px solid rgba(255,255,255,.2); max-height: calc(100vh - 60px); overflow: auto; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 12px 16px; }
  .main-nav li ul { display: flex; position: static; background: rgba(0,0,0,.12); box-shadow: none; border-radius: 0; padding: 0; }
  .main-nav li ul a { color: #fff; padding-left: 32px; }
  .main-nav li ul a:hover { background: rgba(255,255,255,.14); }
  .nav-account { margin: 8px 16px 12px; }
}

/* Hero (image to be replaced by Air Homes photography) */
.hero { background: linear-gradient(rgba(10,40,70,.55), rgba(10,40,70,.55)), url('/img/hero.jpg') center/cover no-repeat, var(--brand-dark); color: #fff; text-align: center; padding: 56px 0 48px; }
.hero h1 { color: #fff; font-weight: 500; font-size: 1.6rem; margin-bottom: 20px; }
.hero-tag { margin-top: 22px; font-size: .95rem; }
.hero-tag strong { font-weight: 700; }
.search-box { margin: 28px auto 0; max-width: 640px; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; }
.search-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.search-box select, .search-box input { font-family: inherit; font-size: .9rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); min-width: 0; }
.search-row select, .search-row input[type="search"] { flex: 1 1 200px; }
.search-row label { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.search-row label input { width: 130px; }

/* Sections */
.section { padding: 48px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { text-align: center; font-weight: 500; font-size: 1.5rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 24px; }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; background: #fff; transition: box-shadow .15s; }
.tile:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.tile h3 { color: var(--brand); }
.tile p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 32px; font-size: .9rem; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-top: 36px; padding-bottom: 24px; }
.footer-brand { font-size: 1.3rem; color: var(--ink); margin: 0 0 6px; }
.site-footer h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: var(--text); }
.footer-base { border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: 14px; color: var(--muted); font-size: .8rem; }

/* Listing cards */
.listing-section h1.section-title { margin-bottom: 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters input, .filters select { font-family: inherit; font-size: .9rem; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); min-width: 0; }
.filters input[type="search"] { flex: 1 1 220px; }
.filters input[type="number"] { width: 120px; }
.results-count { margin: 0 0 16px; }
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; color: inherit; transition: box-shadow .15s; }
.card:hover { text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.card h2 { font-size: 1.05rem; margin: 2px 0 2px; color: var(--ink); }
.card-body { padding: 12px 14px 14px; }
.card .where { margin: 0; font-size: .85rem; }
.card .price { margin: 6px 0 2px; color: var(--brand); font-weight: 600; }
.card .facts { margin: 0; font-size: .8rem; color: var(--muted); }
.cover { width: 100%; object-fit: cover; background: var(--bg-alt); }
.cover.card { aspect-ratio: 3 / 2; }
.cover.hero { aspect-ratio: 16 / 7; max-height: 480px; }
.cover-empty { display: grid; place-items: center; color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.badges { display: flex; gap: 6px; min-height: 20px; }
.badge { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; background: var(--bg-alt); color: #4a4a4a; }
.badge-hot { background: #ffe9d6; color: #9a4200; }
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; margin-top: 24px; }

/* Project page */
.project-hero { position: relative; background: var(--ink); }
.project-hero .cover.hero { opacity: .85; }
.project-hero-text { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; padding-bottom: 24px; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.project-hero-text h1 { color: #fff; margin-bottom: 4px; }
.project-hero-text p { margin: 0; }
.project-hero-text .slogan { font-size: 1.05rem; }
.crumbs a { color: #fff; opacity: .85; font-size: .85rem; }
.project-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); padding-top: 28px; padding-bottom: 40px; }
@media (max-width: 860px) { .project-grid { grid-template-columns: 1fr; } .project-hero-text { position: static; color: var(--ink); text-shadow: none; padding-top: 16px; background: #fff; } .project-hero-text h1 { color: var(--ink); } .crumbs a { color: var(--accent); } }
.key-facts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.key-facts li { background: var(--bg-alt); padding: 10px 12px; border-radius: var(--radius); font-size: .9rem; }
.key-facts b { display: block; color: var(--ink); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.block { margin-bottom: 32px; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery a { position: relative; display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--bg-alt); }
.gallery span { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: .75rem; padding: 2px 6px; border-radius: 3px; }
.table-scroll { overflow-x: auto; }
table.units { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.units th, table.units td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.units th { color: var(--ink); font-weight: 600; background: var(--bg-alt); }
table.units tr.is-reserved td { color: var(--muted); }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; background: #fff; }
.panel h2 { font-size: 1.1rem; }
.agent { display: grid; gap: 4px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.agent:last-child { border-bottom: 0; margin-bottom: 0; }
.agent img { max-height: 48px; width: auto; }
.agent p { margin: 0; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-size: .85rem; color: var(--ink); }
.form input, .form textarea { font-family: inherit; font-size: .95rem; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius); width: 100%; }
.form .hp { position: absolute; left: -9999px; }
.tiny { font-size: .75rem; margin: 0; }
.notice { background: #e6f7ef; border: 1px solid #bfe9d4; color: #1c6b48; padding: 12px 14px; border-radius: var(--radius); }
.project-main, .project-side { min-width: 0; }
.cards-small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.cards-small .card h2 { font-size: .95rem; }
.lot-packages { margin-bottom: 20px; }
.lot-packages h3 { margin-bottom: 10px; }
.error { background: #fdecec; border: 1px solid #f5c2c2; color: #a12626; padding: 10px 12px; border-radius: var(--radius); margin: 0; font-size: .85rem; }
.badge-kind { background: #e3f2fc; color: #085a89; }
.home-cards { margin-top: 8px; }
.section-more { text-align: center; margin-top: 20px; }
.post-body { max-width: 760px; }
.post-body img { border-radius: var(--radius); margin: 12px 0; }
.post-body h2, .post-body h3 { margin-top: 1.4em; }
.post-meta { color: var(--muted); font-size: .85rem; margin-bottom: 20px; }
.inspections { list-style: none; margin: 0; padding: 0; }
.inspections li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.status-tag { display: inline-block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); margin-bottom: 8px; }
.status-tag.is-sold { background: #ffe9d6; color: #c25400; }

/* Content pages, FAQs, directory, contact */
.content-page h1 { margin-bottom: 8px; }
.post-body { line-height: 1.7; }
.post-body p { margin: 0 0 1em; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.post-body td, .post-body th { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; }
.post-body iframe.embed { width: 100%; min-height: 980px; border: 0; }
.post-body h1 { font-size: 1.4rem; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; margin-bottom: 8px; background: #fff; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 1.2rem; }
.faq[open] summary::after { content: '–'; }
.faq summary::-webkit-details-marker { display: none; }
.faq .post-body { padding-bottom: 12px; }
.dir-card .card-body { display: grid; gap: 4px; }
.dir-logo { max-height: 56px; width: auto; margin-bottom: 6px; }
.dir-links { display: flex; gap: 14px; flex-wrap: wrap; margin: 6px 0 0; font-size: .9rem; }
.contact-grid { padding-top: 8px; }
.check { display: flex; align-items: center; gap: 6px; font-size: .85rem; }

/* Auth and portal */
.auth-wrap { max-width: 460px; }
.auth-links { margin-top: 16px; font-size: .9rem; }
.portal-grid { display: grid; gap: 28px; grid-template-columns: 260px minmax(0, 1fr); }
@media (max-width: 860px) { .portal-grid { grid-template-columns: 1fr; } }
.portal-side { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; align-self: start; }
.portal-user { margin: 0 0 12px; }
.portal-menu, .portal-menu ul { list-style: none; margin: 0; padding: 0; }
.portal-menu > li { border-top: 1px solid var(--line); padding: 6px 0; }
.portal-menu > li > a, .portal-menu > li > span { font-weight: 600; color: var(--ink); display: block; padding: 4px 0; }
.portal-menu ul { padding-left: 10px; }
.portal-menu ul a { display: block; padding: 3px 0; color: var(--text); font-size: .9rem; }
.portal-menu a[aria-current="page"] { color: var(--brand); }
.portal-side form { margin-top: 14px; }
.nav-user { color: #fff; font-size: .85rem; padding: 0 8px; }
@media (max-width: 1100px) { .nav-user { display: none; } }
.brand { white-space: nowrap; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.post-body a, .tiny a, .auth-links a, .muted a, .notice a, .error a { text-decoration: underline; }

/* Buyer portal */
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); margin: 16px 0 24px; }
.stat { display: block; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: inherit; text-align: center; }
.stat b { display: block; font-size: 1.6rem; color: var(--brand); }
.stat span { font-size: .85rem; }
.stat:hover { text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.inline { display: inline-block; margin: 0 4px 0 0; }
.btn-small { padding: 6px 14px; font-size: .8rem; }
.fav-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.fav-item { display: grid; gap: 6px; }
.inline-form { grid-template-columns: 1fr auto; align-items: end; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 12px; }
legend { font-size: .85rem; color: var(--ink); padding: 0 4px; }
table.compare th { white-space: normal; }
.report { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }

/* Partner portal */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.tab { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--text); }
.tab.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tab:hover { text-decoration: none; }
.form-row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.insp { display: inline-flex; align-items: center; gap: 4px; margin: 4px 10px 4px 0; font-size: .85rem; }
.media-item { display: grid; gap: 6px; }
.media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.wrap-cell { white-space: normal !important; min-width: 220px; }
code { background: var(--bg-alt); padding: 1px 5px; border-radius: 3px; font-size: .9em; }

/* Bulk edit tables */
table.units.edit input[type="text"], table.units.edit input[type="number"], table.units.edit select { font-family: inherit; font-size: .8rem; padding: 4px 6px; border: 1px solid var(--line); border-radius: 4px; width: 100%; min-width: 60px; }
table.units.edit input[type="number"] { width: 90px; }
table.units.edit td { padding: 4px 6px; }
.stat b .muted { font-size: .9rem; font-weight: 400; }

.setting textarea { font-family: ui-monospace, monospace; font-size: .8rem; }
.inc { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.inc h2 { font-size: 1rem; }
select[multiple] { font-family: inherit; font-size: .9rem; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); }

/* two-factor set-up */
.steps { padding-left: 1.2rem; margin: 0 0 1rem; }
.steps li { margin: .3rem 0; }
.qr-box { display: inline-block; border: 1px solid #ddd; border-radius: 8px; padding: 1rem; margin-bottom: 1rem; background: #fff; text-align: center; }
.qr-box img { display: block; margin: 0 auto .5rem; }
.qr-box code { font-size: .8rem; word-break: break-all; }

/* application forms */
.apply-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.apply-card { display: block; text-decoration: none; color: inherit; }
.apply-card h2 { font-size: 1.05rem; margin: 0 0 .4rem; color: var(--brand); }
.apply-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.apply-form fieldset { border: 1px solid #e3e3e3; border-radius: 8px; padding: .8rem 1rem 1rem; margin: 0 0 1rem; }
.apply-form legend { font-weight: 600; padding: 0 .4rem; }
.apply-form .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .2rem .8rem; }

/* suburb profile, rental applications */
.suburb-profile .charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.suburb-profile figure { margin: 0; }
.suburb-profile img { width: 100%; height: auto; border: 1px solid #eee; border-radius: 6px; }
.suburb-profile figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: .3rem; }
.rental-app summary { cursor: pointer; }
.rental-app p { margin: .4rem 0; }
.extra-applicant { opacity: .85; }

/* go-live checklist */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: .35rem 0; border-bottom: 1px solid #eee; }
.checklist .tick { display: inline-block; width: 1.4em; font-weight: 700; }
.checklist .is-done { color: var(--accent); }
.checklist .is-done .muted { color: #6b8f7f; }

.terms-box { max-height: 320px; overflow: auto; border: 1px solid #e3e3e3; border-radius: 6px; padding: .6rem 1rem; margin: .5rem 0; font-size: .9rem; }
