/* ==========================================================
   Courtier immobilier — template
   Change the brand colors and fonts here.
   ========================================================== */
:root {
  --ink: #14181f;
  --navy: #0f2238;
  --navy-2: #183452;
  --accent: #1d4477;    /* navy accent on white: buttons, links, icons, underlines */
  --accent-2: #a9c5e8;  /* pale navy tint, for accents on dark bands (video, contact, footer) */
  --on-accent: #fff;    /* text on navy buttons */
  --paper: #ffffff;
  --cream: #f1f4f8;   /* cool light blue-grey for alternate sections */
  --muted: #6b7280;
  --line: #e0e6ee;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(15, 34, 56, .12);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #fff; }
/* on navy panels the navy accent would disappear: use the pale tint instead */
.section--navy .eyebrow, .calc-result .eyebrow { color: var(--accent-2); }
.section--navy .divider { background: var(--accent-2); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.divider { width: 64px; height: 2px; background: var(--accent); border: 0; margin: 18px 0 28px; }
.center { text-align: center; }
.center .divider { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--accent);
  background: var(--accent); color: #fff;
  cursor: pointer;
  transition: background .3s, color .3s, transform .3s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.section--navy .btn--outline { color: #fff; border-color: #fff; }
.section--navy .btn--outline:hover { background: #fff; color: var(--navy); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cfd6df; font-size: .82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; margin-right: 22px; transition: color .2s; }
.topbar a:hover { color: var(--accent-2); }
.topbar .socials a { margin: 0 0 0 16px; }
.icon { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 86px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark {
  width: 46px; height: 46px; border: 2px solid var(--accent);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.25rem; color: var(--navy); font-weight: 700;
}
/* Logo emblem: navy version on the white header, white version over the video and in the footer */
.logo-emblem { flex: none; }
.logo-emblem img { display: none; height: 62px; width: auto; }
.logo-emblem .v-color { display: block; }
.header.is-clear .logo-emblem .v-color, .footer .logo-emblem .v-color { display: none; }
.header.is-clear .logo-emblem .v-white, .footer .logo-emblem .v-white { display: block; }
.logo-text strong { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); letter-spacing: 0; line-height: 1.1; }
.logo-text span { font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.logo-text strong { white-space: nowrap; }
.agency-badge {
  border-left: 1px solid var(--line); padding-left: 14px; margin-left: 4px;
  display: flex; align-items: center;
}
.agency-badge img { display: none; height: 46px; width: auto; max-width: 200px; object-fit: contain; }
.agency-name {
  display: none;
  font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); line-height: 1.3;
}
/* Light header: colour logo (or the name in text if the file is missing) */
.header .agency-badge img { height: 40px; }
.agency-badge .v-color { display: block; }
.agency-badge.no-color .agency-name { display: block; }
/* Dark footer: white logo */
.footer .agency-badge .v-white { display: block; }
.footer .agency-badge.no-white .agency-name { display: block; }

/* ---------- Homepage: header blends into the video until you scroll ---------- */
body[data-page="home"] .topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 51;
  background: transparent; color: #e3e8ee;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.header--overlay {
  position: fixed; top: 42px; left: 0; right: 0;
  transition: background .35s, top .35s, box-shadow .35s, border-color .35s;
}
.header--overlay.scrolled { top: 0; }
.header.is-clear { background: transparent; backdrop-filter: none; border-bottom-color: rgba(255,255,255,.12); }
.header.is-clear .logo-mark { color: #fff; border-color: var(--accent-2); }
.header.is-clear .logo-text strong { color: #fff; }
.header.is-clear .logo-text span { color: rgba(255,255,255,.75); }
.header.is-clear .agency-badge { border-color: rgba(255,255,255,.25); }
.header.is-clear .agency-name { color: rgba(255,255,255,.8); }
.header.is-clear .agency-badge .v-color { display: none; }
.header.is-clear .agency-badge .v-white { display: block; }
.header.is-clear .agency-badge.no-color .agency-name { display: none; }
.header.is-clear .agency-badge.no-white .agency-name { display: block; }
.header.is-clear .nav > a, .header.is-clear .nav .dropdown > button { color: #fff; }
.header.is-clear .nav .lang { border-color: rgba(255,255,255,.8); }
.header.is-clear .nav .lang:hover { background: #fff; color: var(--navy); }
.header.is-clear .burger span { background: #fff; }
.header.is-clear .nav > a::after, .header.is-clear .nav .dropdown > button::after { background: var(--accent-2); }

/* RE/MAX balloon: centered in the space between the agency name and the menu */
.header-symbol { display: block; flex: none; margin: 0 16px; }
.header-symbol img { display: block; height: 50px; width: auto; }

/* Menu labels never wrap (the French ones are longer): see the mid-size rules under "Responsive" */
.nav { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.nav > a, .nav .dropdown > button {
  font: inherit; background: none; border: 0; cursor: pointer;
  padding: 10px 11px;
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); white-space: nowrap;
  position: relative;
}
.nav > a::after, .nav .dropdown > button::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav > a:hover::after, .nav > a.active::after, .nav .dropdown:hover > button::after { transform: scaleX(1); }
.nav .lang { border: 1px solid var(--navy); padding: 6px 12px; margin-left: 10px; }
.nav .lang::after { display: none; }
.nav .lang:hover { background: var(--navy); color: #fff; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; min-width: 290px;
  background: #fff; box-shadow: var(--shadow); border-top: 2px solid var(--accent);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s;
}
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a { display: block; padding: 11px 22px; font-size: .9rem; color: var(--ink); transition: background .2s, color .2s, padding .2s; }
.dropdown-menu a:hover { background: var(--cream); color: var(--accent); padding-left: 28px; }

.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Full-screen video hero; the transparent top bar + header (42px + 86px) sit on top of it. */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 188px 0 80px;
  color: #fff; text-align: center;
  background: var(--navy) url("video/montreal-night-poster.jpg") center/cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.hero::before { /* dark tint so white text stays readable over the video */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,22,38,.7) 0%, rgba(10,22,38,.3) 30%, rgba(10,22,38,.3) 60%, rgba(10,22,38,.8) 100%);
}
.hero .container { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 860px; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero p.lead { font-size: 1.15rem; color: #e3e8ee; max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero .eyebrow { color: var(--accent-2); }
.hero .btn:not(.btn--outline) { background: #fff; border-color: #fff; color: var(--navy); }
.hero .btn:not(.btn--outline):hover { background: transparent; color: #fff; }

/* ---------- Intent tiles ---------- */
.tiles {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  margin-top: 60px; position: relative; z-index: 2;
}
.tile {
  position: relative; height: 230px; overflow: hidden; color: #fff;
  display: flex; align-items: flex-end; padding: 26px;
  background: var(--navy-2) center/cover no-repeat;
  border-radius: 6px; box-shadow: var(--shadow); border: 2px solid #000;
}
.tile::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,38,.9), rgba(10,22,38,.15));
  transition: background .4s;
}
/* 5 tiles: three on the first row, two wider ones on the second */
.tile { grid-column: span 2; }
.tile:nth-child(n+4) { grid-column: span 3; }
.tile .bg { position: absolute; inset: 0; background: inherit; background-size: cover; transition: transform .8s ease; }
.tile:hover .bg { transform: scale(1.08); }
.tile:hover::before { background: linear-gradient(to top, rgba(29,68,119,.92), rgba(10,22,38,.25)); }
.tile .content { position: relative; z-index: 1; }
.tile h3 { font-size: 1.35rem; margin: 0; }
.tile .arrow { display: inline-block; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; margin-top: 8px; opacity: .85; }
.tile .arrow::after { content: " →"; transition: margin .3s; }
.tile:hover .arrow::after { margin-left: 6px; }

/* ---------- Split sections (bio / buy / sell) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--cream); }
.split-media.landscape img { aspect-ratio: 5/4; }
.about-brokers .split-media img { border: 2px solid #000; } /* black outline on the brokers' photos (About section) */
.split-media::after {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 2px solid var(--accent); z-index: -1;
}
.split--reverse .split-media::after { inset: 24px 24px -24px -24px; }
.split-body h2 { margin-bottom: 0; }
.split-body p { color: #3c4450; }
.split + .split { margin-top: 120px; } /* space between the two brokers in the About section */
.partner-contact { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 24px 0 30px; }
.partner-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 500; transition: color .2s; }
.partner-contact a:hover { color: var(--accent); }
.partner-contact .icon { color: var(--accent); }

/* Broker bios: the rest of the text opens under "Lire la suite" (initBios in main.js) */
.bio-more { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s ease, visibility .45s; }
.bio-more > div { overflow: hidden; min-height: 0; }
.bio.open .bio-more { grid-template-rows: 1fr; visibility: visible; }
.bio-toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 2px; padding: 4px 0;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.bio-toggle::after {
  content: ""; width: 7px; height: 7px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .3s, margin .3s;
}
.bio.open .bio-toggle::after { transform: rotate(-135deg); margin-top: 4px; }
.bio-toggle:hover { color: var(--navy); }
.bio-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .bio-more, .bio-toggle::after { transition: none; } }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--navy); margin: 8px 0 28px; }

.stats { display: flex; gap: 40px; margin: 30px 0 34px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.stat span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Listings ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head .divider { margin-bottom: 0; }
.link-more { font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); border-bottom: 2px solid var(--accent); padding-bottom: 4px; transition: color .2s; }
.link-more:hover { color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); transition: transform .35s, box-shadow .35s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.card:hover .card-media img { transform: scale(1.07); }
.badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy); color: #fff;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px;
}
.badge--sold { background: #b23a3a; }
.badge--new { background: var(--accent); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-price { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-weight: 600; margin-bottom: 4px; }
.card-price small { font-family: var(--sans, inherit); font-size: .8rem; font-weight: 500; color: var(--muted, #6b7280); }
.card-addr { font-size: .95rem; font-weight: 600; margin-bottom: 2px; }
.card-city { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.card-meta { display: flex; gap: 18px; font-size: .85rem; color: #3c4450; padding-top: 14px; border-top: 1px solid var(--line); margin-top: auto; }
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta .icon { fill: var(--accent); }
.card-ref { font-size: .75rem; color: var(--muted); margin-top: 10px; letter-spacing: .04em; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter {
  font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 20px; background: #fff; border: 1px solid var(--line); cursor: pointer; color: var(--navy);
  transition: all .2s;
}
.filter:hover { border-color: var(--accent); color: var(--accent); }
.filter.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

.pager { display: flex; justify-content: center; gap: 10px; margin-top: 44px; }
.pager button { font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 10px 18px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pager button:disabled { opacity: .35; cursor: default; }
.pager button:not(:disabled):hover { border-color: var(--accent); color: var(--accent); }
.pager .num.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Sold strip */
/* Flex so an incomplete last row sits centred (7 photos = 4 + 3) */
.sold-grid { --cols: 4; --gap: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.sold {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--navy-2); margin: 0;
  flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
  border-radius: 6px; box-shadow: var(--shadow);
}
.sold img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.sold:hover img { transform: scale(1.06); }
/* Diagonal "Vendu / Sold" sash across the top-left corner */
.sold-ribbon {
  position: absolute; top: 18px; left: -38px; z-index: 1;
  width: 150px; padding: 6px 0; transform: rotate(-45deg);
  background: #b23a3a; color: #fff; text-align: center;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.sold figcaption {
  position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px;
  background: linear-gradient(to top, rgba(10,22,38,.92), transparent);
  color: #fff; font-size: .82rem;
}
.sold .badge { top: 10px; left: 10px; }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.quote-mark { font-family: var(--serif); font-size: 6rem; color: var(--accent); line-height: .6; height: 50px; }
.slides { position: relative; min-height: 220px; }
.slide { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; pointer-events: none; }
.slide.active { opacity: 1; transform: none; pointer-events: auto; }
.slide blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-style: italic; line-height: 1.6; }
.slide cite { font-style: normal; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
.stars { color: var(--accent-2); letter-spacing: 4px; margin-bottom: 8px; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--accent-2); background: transparent; cursor: pointer; padding: 0; transition: background .3s, transform .3s; }
.dots button.active { background: var(--accent-2); transform: scale(1.2); }

/* ---------- Social ---------- */
.social-row { display: flex; justify-content: center; gap: 18px; margin-top: 26px; }
.social-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--navy);
  display: grid; place-items: center; color: var(--navy);
  transition: background .3s, color .3s, transform .3s;
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-4px); }
.social-btn .icon { width: 20px; height: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; }
.contact-list { list-style: none; padding: 0; margin: 30px 0; }
.contact-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-list .ic { width: 44px; height: 44px; border: 1px solid var(--accent-2); display: grid; place-items: center; color: var(--accent-2); flex: none; }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #93a1b3; }
.contact-list a:hover { color: var(--accent-2); }
.contact-list a { overflow-wrap: anywhere; } /* long email addresses wrap on small phones */
.section--navy .social-btn { border-color: rgba(255,255,255,.4); color: #fff; }
.section--navy .social-btn:hover { background: #fff; border-color: #fff; color: var(--navy); }
.section--navy .social-row { justify-content: flex-start; }

.form { background: #fff; color: var(--ink); padding: 44px; box-shadow: var(--shadow); }
.form h3 { font-size: 1.6rem; color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: 13px 14px;
  border: 1px solid var(--line); background: #f8fafc; color: var(--ink); border-radius: 0;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; }
.form-note { margin-top: 14px; font-size: .9rem; color: #2f7a4b; display: none; }
.form-note.show { display: block; }
.form-note.is-error { color: #b3261e; }
.form-note a { color: inherit; text-decoration: underline; }
/* Spam trap: kept off-screen (not display:none, which some bots skip) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Page header (subpages) ---------- */
.page-hero {
  padding: 110px 0 90px; color: #fff; text-align: center;
  background: var(--navy) center/cover no-repeat;
  background-image: linear-gradient(rgba(10,22,38,.78), rgba(10,22,38,.78)),
    url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=2000&q=80");
}
/* Properties page: downtown Montréal from Mount Royal (dmakram, Pexels, free licence) */
.page-hero--listings {
  background-image: linear-gradient(rgba(10,22,38,.45), rgba(10,22,38,.55)), url("images/proprietes-banner.jpg");
  background-position: center 60%;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0; }
.crumbs { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #b9c3cf; margin-top: 12px; }
.crumbs a:hover { color: var(--accent-2); }

/* ---------- Legal pages (privacy policy, terms of use) ---------- */
.prose { max-width: 780px; margin: 0 auto; line-height: 1.75; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin: 56px 0 14px; scroll-margin-top: 110px; }
.prose h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--navy); margin: 24px 0 8px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose-date { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px !important; }
.prose-lead { font-size: 1.1rem; color: var(--ink); }
.toc { background: var(--cream); border-left: 3px solid var(--accent); padding: 24px 28px; margin: 36px 0 8px; }
.toc strong { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: .95rem; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { text-decoration: none; }
.contact-card { font-style: normal; background: var(--cream); padding: 20px 24px; margin: 0 0 16px; line-height: 1.8; }
/* One card per broker, stacked (legal pages) */
.contact-cards { display: grid; gap: 12px; margin: 0 0 16px; }
.contact-cards .contact-card { margin: 0; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* Privacy notice under forms */
.form-privacy { font-size: .8rem; line-height: 1.5; color: var(--muted); margin: 14px 0 0; }
.form-privacy a { color: inherit; text-decoration: underline; }
.form-privacy a:hover { color: var(--accent); }
.footer .legal a:hover { color: var(--accent-2); }

/* ---------- Calculators ---------- */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; box-shadow: var(--shadow); background: #fff; }
.calc-inputs { padding: 44px; }
.calc-result { background: var(--navy); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.calc-result .big { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--accent-2); line-height: 1.1; margin: 6px 0 24px; }
.calc-result dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; font-size: .95rem; }
.calc-result dt { color: #a9b5c4; }
.calc-result dd { margin: 0; text-align: right; font-weight: 600; }
.range-val { float: right; color: var(--navy); font-weight: 700; letter-spacing: 0; text-transform: none; }
input[type=range] { padding: 0; accent-color: var(--accent); background: none; border: 0; }
.disclaimer { font-size: .8rem; color: var(--muted); margin-top: 18px; }

/* ---------- Free home evaluation ---------- */
.eval-intro { max-width: 640px; color: var(--muted); margin: -8px 0 32px; }
.eval { background: #fff; box-shadow: var(--shadow); padding: 44px; scroll-margin-top: 100px; }
.eval-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0 0 34px; }
.eval-steps li { border-top: 3px solid var(--line); padding-top: 12px; font-size: .95rem; color: var(--muted); transition: border-color .3s, color .3s; }
.eval-steps li small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 2px; }
.eval-steps li.active { border-color: var(--accent); color: var(--navy); }
.eval-steps li.active small { color: var(--accent); }
.eval-address { display: grid; grid-template-columns: 1fr 140px; gap: 16px; }
.eval-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.eval-actions .btn:disabled { opacity: .6; cursor: wait; }
.eval-lead { color: var(--navy); font-size: 1.05rem; font-weight: 500; margin: 0 0 22px; }
.eval-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.eval-grid.no-map { grid-template-columns: 1fr; max-width: 560px; }
.eval-map { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; background: var(--cream); }
.eval-map[hidden] { display: none; }
.eval-done { text-align: center; padding: 20px 0 10px; }
.eval-done h3 { font-size: 1.8rem; color: var(--navy); }
.eval-done p { max-width: 560px; margin: 0 auto; }
.ac { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin: 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--accent); border-top: 0; box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; }
.ac-list li { padding: 11px 14px; font-size: .92rem; cursor: pointer; }
.ac-list li[aria-selected="true"] { background: var(--cream); color: var(--navy); }

/* ---------- Buy / Sell pages ---------- */
.bs-why .split { align-items: start; }
.bs-why .split-media { position: sticky; top: 120px; }
.tips { list-style: none; counter-reset: tip; padding: 0; margin: 8px 0 36px; border-top: 1px solid var(--line); }
.tips li {
  counter-increment: tip; display: grid; grid-template-columns: 46px 1fr; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line); color: #3c4450; line-height: 1.55;
  transition: padding .3s, color .3s;
}
.tips li::before { content: counter(tip, decimal-leading-zero); font-family: var(--serif); font-size: 1.35rem; color: var(--accent); line-height: 1.1; }
.tips li:hover { padding-left: 8px; color: var(--navy); }
.bs-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 30px; }
.bs-form-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 70px; align-items: start; }
.bs-form-grid h2 { margin-bottom: 0; }
.bs-lead { color: #3c4450; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; line-height: 1.5; color: #3c4450; margin: 4px 0 22px; cursor: pointer; }
.check + .check { margin-top: -10px; }
.check a { color: inherit; text-decoration: underline; }
.check a:hover { color: var(--accent); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }

/* ---------- Footer ---------- */
.footer { background: #0a1626; color: #8f9cad; padding: 60px 0 30px; font-size: .85rem; }
.footer .top { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .logo-mark { color: #fff; }
.footer .logo-text strong { color: #fff; }
.footer .agency-badge { border-color: rgba(255,255,255,.15); }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a:hover { color: var(--accent-2); }
.footer .legal { text-align: center; padding-top: 26px; line-height: 1.9; }
.footer .legal strong { color: #c3ccd7; font-weight: 600; letter-spacing: .08em; font-size: .75rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px;
  background: var(--accent); color: #fff; border: 0; cursor: pointer; z-index: 40;
  display: grid; place-items: center; font-size: 1.2rem;
  opacity: 0; transform: translateY(20px); transition: all .3s;
}
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { background: var(--navy-2); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .12s; }
.reveal.d2 { transition-delay: .24s; }
.reveal.d3 { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
/* Not enough room next to the full menu on mid-size screens */
@media (max-width: 1320px) and (min-width: 1141px) {
  .header-symbol { display: none; }
  .header .agency-badge img { height: 38px; }
}
@media (max-width: 1200px) and (min-width: 1141px) {
  .header .logo-emblem img { height: 54px; }
  .header .logo { gap: 10px; }
  .header .agency-badge { padding-left: 10px; }
}
@media (max-width: 1180px) and (min-width: 1141px) {
  .nav > a, .nav .dropdown > button { padding-left: 8px; padding-right: 8px; }
  .nav > a::after, .nav .dropdown > button::after { left: 8px; right: 8px; }
}
@media (max-width: 1140px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .4s ease;
    box-shadow: 0 20px 30px rgba(0,0,0,.08);
  }
  .nav.open { max-height: 80vh; overflow-y: auto; }
  .nav > a, .nav .dropdown > button { padding: 16px 24px; text-align: left; width: 100%; border-bottom: 1px solid var(--line); }
  .nav > a::after, .nav .dropdown > button::after { display: none; }
  .nav .lang { margin: 16px 24px; width: auto; align-self: flex-start; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; background: var(--cream); }
  .dropdown.open .dropdown-menu { display: block; }
  .burger { display: block; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile:nth-child(n+4) { grid-column: auto; }
  .tile:last-child:nth-child(odd) { grid-column: span 2; }
  .split { gap: 50px; }
  .sold-grid { --cols: 2; }
}
/* Two phones + two emails don't fit on one line below this width: keep the phones only */
@media (max-width: 1040px) {
  .topbar .hide-sm { display: none; }
}
@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .split, .contact-grid, .calc, .bs-form-grid { grid-template-columns: 1fr; }
  .bs-form-grid { gap: 50px; }
  .bs-why .split-media { position: relative; top: auto; }
  .split--reverse .split-media { order: 0; }
  .split-media::after { inset: 14px -14px -14px 14px; }
  .split--reverse .split-media::after { inset: 14px 14px -14px -14px; }
  .agency-badge { padding-left: 10px; margin-left: 0; }
  .agency-badge img { height: 34px; max-width: 110px; }
  .logo-emblem img { height: 50px; }
  .agency-badge:not(:has(img)) { display: none; } /* no logo file yet: hide the text version on small screens */
  .form, .calc-inputs, .calc-result, .eval { padding: 28px; }
  .eval-grid { grid-template-columns: 1fr; }
  .eval-map { min-height: 240px; }
}
@media (max-width: 540px) {
  .sold-grid { --cols: 1; }
  .container { padding: 0 16px; }
  .header-symbol { display: none; }
  .tiles { grid-template-columns: 1fr; margin-top: 40px; }
  .tile:last-child:nth-child(odd) { grid-column: auto; }
  .tile { height: 160px; }
  .form-row { grid-template-columns: 1fr; }
  .eval { padding: 22px 18px; }
  .eval-address { grid-template-columns: 1fr; gap: 0; }
  .eval-steps { gap: 10px; }
  .eval-steps li { font-size: .78rem; }  .eval-actions .btn { flex: 1; justify-content: center; }
  .topbar .socials { display: none; }
  .stats { gap: 26px; }
}

/* ---------- Property page (propriete.html / property.html) ---------- */
.card-photos {
  position: absolute; right: 12px; bottom: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  background: rgba(10, 22, 38, .72); color: #fff; font-size: .75rem; font-weight: 600;
}
.card-photos .icon { width: 14px; height: 14px; fill: currentColor; }

.pd-gallery { background: #0a1626; }
.pd-stage { position: relative; height: clamp(300px, 64vh, 700px); overflow: hidden; }
.pd-stage-bg { position: absolute; inset: -40px; background: center/cover no-repeat; filter: blur(28px) brightness(.45); }
.pd-stage > img { position: relative; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--navy); font-size: 2rem; line-height: 1; padding-bottom: 4px;
  transition: background .2s, color .2s;
}
.pd-nav:hover { background: var(--accent); color: #fff; }
.pd-prev { left: 20px; }
.pd-next { right: 20px; }
.pd-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; justify-content: space-between; gap: 16px; padding: 40px 24px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; font-size: .9rem; pointer-events: none;
}
.pd-caption span:last-child { letter-spacing: .1em; white-space: nowrap; }
.pd-full {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; cursor: pointer;
  background: rgba(10,22,38,.7); color: #fff; font: inherit; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.pd-full .icon { width: 16px; height: 16px; fill: currentColor; }
.pd-full:hover { background: var(--accent); }
.pd-thumbs { position: relative; display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.pd-thumbs button { flex: 0 0 auto; width: 112px; height: 76px; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.pd-thumbs button:hover, .pd-thumbs button.active { opacity: 1; }
.pd-thumbs button.active { border-color: var(--accent-2); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-head { padding: 44px 0 0; }
.pd-crumbs { color: var(--muted); margin: 0 0 22px; }
.pd-crumbs a:hover { color: var(--accent); }
.pd-head-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.pd-head .eyebrow { margin-bottom: 8px; }
.pd-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--navy); margin: 0 0 6px; }
.pd-city { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.pd-city .icon { width: 18px; height: 18px; fill: var(--accent); }
.pd-price { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 600; color: var(--navy); white-space: nowrap; }
.pd-price small { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--muted); }
.pd-facts { list-style: none; margin: 30px 0 0; padding: 20px 0; display: flex; flex-wrap: wrap; gap: 14px 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; color: #3c4450; }
.pd-facts li { display: inline-flex; align-items: center; gap: 8px; }
.pd-facts .icon { width: 20px; height: 20px; fill: var(--accent); }
.pd-facts strong { color: var(--navy); }

.pd-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; padding-top: 44px; padding-bottom: 100px; }
.pd-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.pd-tabs button {
  font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 22px; margin-bottom: -1px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer;
}
.pd-tabs button:hover { color: var(--navy); }
.pd-tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--accent); }
.pd-h { font-size: 1.5rem; color: var(--navy); margin: 40px 0 16px; }
.pd-desc p { color: #3c4450; }
.pd-desc .pd-lead { font-size: 1.08rem; color: var(--ink); }
.pd-h3 { font-size: 1.15rem; color: var(--navy); margin: 30px 0 14px; }
.pd-highlights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 24px; }
.pd-highlights li { position: relative; padding-left: 28px; color: #3c4450; }
.pd-highlights li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.pd-info { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--accent); background: var(--cream); }
.pd-info li { padding: 12px 18px; color: var(--ink); }
.pd-info li + li { border-top: 1px solid var(--line); }
.pd-info span { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.pd-cta { margin-top: 26px; font-style: italic; }
.pd-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.pd-table th, .pd-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pd-table th { width: 42%; font-weight: 500; color: var(--muted); }
.pd-table td { color: var(--ink); }
.pd-features tbody tr:nth-child(odd) { background: var(--cream); }
.pd-table caption { text-align: left; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; color: var(--navy); padding: 0 0 10px; }
.pd-table caption small { font-family: var(--sans); font-size: .78rem; font-weight: 500; color: var(--muted); }
.pd-table tfoot th, .pd-table tfoot td { font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--accent); }
.pd-fin { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.pd-map { margin-top: 28px; aspect-ratio: 16/10; background: var(--cream); }
.pd-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.pd-map-links { display: flex; gap: 24px; margin-top: 14px; font-size: .9rem; font-weight: 600; color: var(--navy); }
.pd-map-links a { display: inline-flex; align-items: center; gap: 6px; }
.pd-map-links .icon { width: 16px; height: 16px; fill: var(--accent); }
.pd-map-links a:hover { color: var(--accent); }
.pd-source { margin-top: 40px; font-size: .8rem; color: var(--muted); }
.pd-source a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.pd-side { position: sticky; top: 110px; }
.pd-agent { border: 1px solid var(--line); padding: 32px 28px; text-align: center; background: #fff; }
.pd-agent-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--cream); }
.pd-agent h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: 4px; }
.pd-agent-title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.pd-agent-person > a { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .95rem; color: #3c4450; padding: 4px 0; }
.pd-agent-person > a .icon { width: 16px; height: 16px; fill: var(--accent); }
.pd-agent-person > a:hover { color: var(--accent); }
.pd-agent-person + .pd-agent-person { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.pd-agent--team { text-align: left; }
.pd-agent--team .pd-agent-person.has-photo { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; align-items: center; }
.pd-agent--team .pd-agent-photo { width: 72px; height: 72px; margin: 0; grid-row: 1 / span 4; }
.pd-agent--team h3 { font-size: 1.15rem; margin: 0; }
.pd-agent--team .pd-agent-title { font-size: .68rem; margin-bottom: 6px; }
.pd-agent--team .pd-agent-person > a { justify-content: flex-start; font-size: .88rem; padding: 2px 0; }
.pd-agent--team .pd-agent-person + .pd-agent-person { margin-top: 18px; padding-top: 18px; }
.pd-actions { display: grid; gap: 10px; margin-top: 22px; }
.pd-actions .btn { justify-content: center; padding: 14px 18px; font: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

.pd-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 12, 22, .96); display: flex; align-items: center; justify-content: center; }
.pd-lightbox[hidden] { display: none; }
.pd-lightbox img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; }
.pd-lightbox .pd-caption { position: fixed; }
.pd-lb-close {
  position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border: 0; cursor: pointer;
  background: none; color: #fff; font-size: 2.4rem; line-height: 1;
}
.pd-lb-close:hover { color: var(--accent-2); }

@media (max-width: 980px) {
  .pd-body { grid-template-columns: 1fr; gap: 40px; }
  .pd-side { position: static; }
}
@media (max-width: 640px) {
  .pd-stage { height: 56vw; min-height: 240px; }
  .pd-nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .pd-prev { left: 10px; }
  .pd-next { right: 10px; }
  .pd-full span { display: none; }
  .pd-caption { padding: 30px 14px 10px; font-size: .8rem; }
  .pd-thumbs button { width: 84px; height: 58px; }
  .pd-head { padding-top: 28px; }
  .pd-facts { gap: 12px 24px; font-size: .9rem; }
  .pd-table th, .pd-table td { padding: 10px 12px; }
  .pd-table th { width: 46%; }
  .pd-body { padding-bottom: 72px; }
  .pd-lightbox img { max-width: 100vw; max-height: calc(100vh - 140px); }
}

@media print {
  .topbar, .header, #more-listings, #contact, .footer, .to-top,
  .pd-thumbs, .pd-nav, .pd-full, .pd-tabs, .pd-actions, .pd-lightbox, .pd-map-links, .pd-map, .pd-stage-bg { display: none !important; }
  .pd-gallery { background: none; }
  .pd-stage { height: auto; }
  .pd-stage > img { height: auto; max-height: 420px; }
  .pd-caption { display: none; }
  .pd-body { display: block; padding: 20px 0; }
  .pd-side { margin-top: 30px; }
  .pd-agent { text-align: left; border: 0; padding: 0; }
  .pd-agent-photo { display: none; }
  [role="tabpanel"][hidden] { display: none; }
}

/* Phones: no room for the RE/MAX logo beside the name and menu button; it stays in the footer,
   on its own line under the name */
@media (max-width: 600px) {
  .header .agency-badge { display: none; }
  .footer .logo { flex-wrap: wrap; row-gap: 18px; }
  .footer .agency-badge { flex-basis: 100%; border-left: 0; padding-left: 0; margin-left: 0; }
  .footer .agency-badge img { height: 40px; max-width: 100%; }
}
