
 /* Set Variables */
 :root {
    --dark-blue: #3f525b;
    --light-blue: #36c2f5;
    --orange: #ff7f00;
    --light-orange: #f4a75c;
    --grey: #4f4c4c;
    --drop-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
    /* Screen Size Breakpoints */
    --bp-sm: 40rem;  /* ~640px: nav/layout starts to breathe */
    --bp-md: 48rem;  /* ~768px: 2–3 column grids, sidebar appears */
    --bp-lg: 64rem;  /* ~1024px: desktop layout */
    --bp-xl: 80rem;  /* ~1280px: wide screens (optional) */
}

/* General Page */
html {
    color: var(--grey);
    font-family: "Roboto", sans-serif;
    font-size: clamp(16px, 1.2vw + 0.5rem, 20px);
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

/* Reset default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.text-underline{
    text-decoration: underline;
}

.text-emphasize {
    font-weight: 500;
    color: var(--dark-blue);
}

/* Container */
.container {
    margin: 20px auto 0;
    width: 95%;
}

/* ~1024px */
@media (min-width: 64rem) {
    .container { width: 90%; }
}

/* ~1280px */
@media (min-width: 80rem) {
    .container { width: 80%; }
}

address {
  font-style: normal;
}

/* Header */
header .container {
  /* full-bleed on mobile, centered with a max width as screen grows */
  width: 100%;
  margin: 0 auto;
  padding: 10px 1rem;
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  position: relative; /* anchor for dropdown menu */
    align-items: flex-end;
}

/* Left & right groups */
#header-left {
  display: block;
  flex-direction: column;
  text-align: right;   
  line-height: 1;
}

#header-right {
  display: flex;
  align-items: flex-end;/* align nav/hamburger nicely */
  gap: .5rem;
}

#header-right, nav, .nav-links { align-items: baseline; }

.header-home-link {
  text-decoration: none;
}

/* Logo lockup */
.logo, .logo2 {
  margin: 0;
  display: block;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  font-style: normal;
}

.logo {
  font-weight: 600;
  color: var(--light-blue);
  /* scales smoothly without extra breakpoints */
  font-size: clamp(1.25rem, 4vw, 2.22rem);
}

.logo2 {
  font-weight: 500;
  color: var(--grey);
  font-size: clamp(.6rem, 1.4vw, .83rem);
}

/* Nav base (mobile) */
nav {
  display: flex;
  align-items: center;
  position: relative;
}

/* Hamburger: visible on mobile */
.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 6px;            /* bigger tap target */
}

.hamburger span {
  height: 3px;
  width: 25px;
  background-color: var(--grey);
  border-radius: 5px;
}

/* Menu list: hidden by default on mobile */
.nav-links {
  display: none;
  list-style: none;
  flex-direction: column;
  position: absolute;
  top: 100%;                /* drops below the nav bar */
  right: 0;
  width: min(70vw, 14rem);
  background-color: rgba(255,255,255,.95);
  box-shadow: var(--drop-shadow);
  border-radius: 6px;
  padding: .25rem 0;
  z-index: 1000;
}

.nav-links.open { display: flex; }

.nav-links li { margin: 0; }

.nav-links a {
  display: block;
  padding: 10px 0 0;
  text-align: center;
    line-height: 1;
  text-decoration: none;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--dark-blue);
  transition: color .3s ease, background-color .3s ease;
}

.nav-links a:hover { color: var(--light-blue); }

/* Active page highlight (kept) */
#home .home a,
#search .search a,
#profiles .profiles a,
#contact .contact a {
  color: var(--orange);
  pointer-events: none;
  cursor: default;
}

/* ---------- Breakpoints (desktop-up behaviors) ---------- */

/* ~768px */
@media (min-width: 48rem) {
  /* Desktop nav: show links inline, hide hamburger */
  .hamburger { display: none; }

  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    width: auto;
    padding: 0;
    border-radius: 0;
    gap: 20px;              /* replaces li margin-left */
  }

  .nav-links li { margin: 0; }
}

/* ~1024px (optional small refinements) */
@media (min-width: 64rem) {
  header .container { padding-inline: 1.25rem; }
}

/* Hero Section */
.hero {
  /* layout */
  position: relative;
  display: grid;                 /* centers the inner .container as a grid item */
  place-items: center;
  min-height: 16rem;             /* ~288px base (mobile) */
  text-align: center;

  /* background */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  /* visual tokens */
  --hero-overlay: 0.35;          /* scrim strength (0–1) */
  --hero-text-shadow: 0 2px 6px rgba(0,0,0,.45), 0 0 1px rgba(0,0,0,.35);
}

/* Dark scrim only when .overlay is present */
.hero.overlay::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,var(--hero-overlay));
  z-index: 1;
}
.hero.no-overlay::before { content: none; }

.hero > .container {
  width: 100%;              /* override the global 95% */
  margin: 0;                /* remove global top/auto margins */
  padding-inline: 1rem;     /* safe side gutters on small screens */
  display: grid;
  place-items: center;      /* center the .hero-content */
}

/* Keep content above overlay */
.hero-content {
  position: relative;
  z-index: 2;
  width: min(92vw, 68ch);        /* readable max; shrinks nicely on phone */
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Stack the two lines and center them */
.hero .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  text-align: center;
  color: #fff;
}

/* Headline */
.hero-copy1 {
  /* allow wrapping on small screens instead of forcing nowrap */
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.0;
  letter-spacing: .01em;
  color: var(--orange);
  text-shadow: var(--hero-text-shadow);
  max-width: 90vw;
  text-transform: uppercase;
}

/* Subhead */
.hero-copy2 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1rem, 1.6vw, 1.9rem);
  line-height: 1.0;
  color: #fff;
  opacity: .95;
  text-shadow: var(--hero-text-shadow);
  max-width: 90vw;
}

/* Hero Price Info */
.hero-price {
  position: absolute;
  bottom: 5px;
  right: -1px;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 7px 20px;
  border-radius: 2px; /* pill */
  background: linear-gradient(
    to bottom right,
    rgba(63,82,91,1),
    rgba(86,117,140,.9)
  );

  color: #fff;
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1;
  /* nice “floating” look */
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  backdrop-filter: blur(2px);
}

.hero-copy2 a[href^="tel"] {
  pointer-events: none;
  text-decoration: none;
  color: inherit;
}

/* Property details strip at the bottom */
.hero .property-details-box {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30px;                   /* mobile base */
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background: linear-gradient(
    to bottom right,
    rgba(63,82,91,1),
    rgba(86,117,140,.9)
  );
  box-shadow: var(--drop-shadow);
  z-index: 3;
  padding: 0;
}

.hero .property-details-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero .property-details-item img {
  width: 24px; height: 24px;      /* smaller on mobile */
  display: inline-block;
  vertical-align: middle;
}

.hero .property-details-item span {
  font-size: .94rem;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

/* ---------- Breakpoints (mobile-first) ---------- */

/* ~640px */
@media (min-width: 40rem) {
  .hero { min-height: 20rem; }    /* ~352px */
  .hero .property-details-box { height: 34px; }
  .hero .property-details-item img { width: 26px; height: 26px; }
}

/* ~768px */
@media (min-width: 48rem) {
  .hero { min-height: 24rem; }    /* ~480px */
  /* On larger screens the lines can stay on one line */
  .hero-copy1, .hero-copy2 { white-space: nowrap; }
  .hero .property-details-box { height: 38px; }
  .hero .property-details-item img { width: 28px; height: 28px; }
  .hero .property-details-item span { font-size: 1rem; }
}

/* ~1024px */
@media (min-width: 64rem) {
  .hero { min-height: 30rem; }    /* ~648px desktop */
  .hero .property-details-box { height: 40px; }
  .hero .property-details-item img { width: 30px; height: 30px; }
}

/* Main Content Section */
.main-content .container {
    align-items: center;
    justify-content: center;
    text-align: left;
}

/* Profile Highlights Grid */
.highlight-grid {
  display: grid;
  /* tiles will be at least ~140px wide, otherwise they wrap */
  grid-template-columns: repeat(auto-fit, minmax(clamp(120px, 18vw, 170px), 1fr));
  background: linear-gradient(to right, #D3D6D7, #E2E7EA);
  margin: 0;
  padding: 0;
  list-style: none;
  
}

.highlight-item {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(8px, 2.5vw, 12px);
  box-shadow: var(--drop-shadow, 0 6px 16px rgba(0,0,0,.10));
}

/* --- ICON --- */
.highlight-icon {
  /* The key: use a variable so you can size SVGs and images consistently */
  --icon-size: clamp(24px, 4vw, 32px);
  width: var(--icon-size);
  height: var(--icon-size);
  display: grid;
  place-items: center;
  margin-bottom: clamp(2px, 1vw, 4px);
}

/* If your icon is an inline <svg> */
.highlight-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.highlight-data {
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  /* scales with viewport, but clamped */
  font-size: clamp(.6rem, 2.2vw, 1rem);
  line-height: 1.05;
  color: var(--dark-blue, #1c2f3a);
}

/* Mobile default: hide highlights entirely (no space taken) */
.profile-highlights {
  display: none;
}

/* >640px: show highlights */
@media (min-width: 40rem) {
  .profile-highlights {
    display: block; /* or grid if you want centering control */  
  }
}

/* Section Titles (mobile-first, responsive, Oswald) */
.section-title {
  /* typography */
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .03em;

  /* responsive sizing with graceful scaling */
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  line-height: 1.15;

  /* spacing */
  margin-bottom: .5rem;

  /* color token preserved */
  color: var(--grey);
}

/* Emphasize first word inline; inherits responsive size */
.section-title .first-word {
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;            /* stronger emphasis than 900’s default blocky look */
  color: var(--light-blue);
  letter-spacing: .01em;
  /* keep size in sync with parent for cleaner wrapping */
  font-size: inherit;
}

.subheading {
  font-family: "Oswald", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 800;            /* stronger emphasis than 900’s default blocky look */
  color: var(--dark-blue);
  letter-spacing: .01em;
  text-transform: uppercase;
  /* keep size in sync with parent for cleaner wrapping */
  font-size: inherit;
  margin-top: 15px;
}

.subheading .muted {
  font-weight: 400;
  font-size: .9rem;
  border-bottom: 0;
}

.main-content p {
    margin-bottom: 1rem;
    line-height: 1.3rem;
}

.main-content p:last-child {
    margin-bottom: 0;
}

.main-content p a[href^="tel"] {
  pointer-events: none;
  text-decoration: none;
  color: inherit;
}

.main-content ul {
    margin-left: 50px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.main-content ul li:not(:last-child) {
    margin-bottom: 5px;
}

.centered-content {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin: 0 auto; 
    width: fit-content; 
}

.main-content .logo {
    font-size: 1.66rem;
    margin-top: 10px;
}

.contact-details .logo {
    margin-top: 0;
}

.contact-aboutowne {
  margin-top: -.5rem;
  font-size: 1rem;
}
.main-content .logo2 {

    font-weight: 400;
    margin-top: -.5rem;
}

.main-content .price-range {
    display: block;
    color: var(--dark-blue);
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 15px;
}

.main-content p > img,
.main-content .rich-text img,
.main-content .content img {
  margin-top: 5px;
}

.action-links {
    display: flex;
    justify-content: center; /* Centers the links horizontally */
    gap: 15px; /* Adds space between the links */
    margin-top: 20px; /* Optional: spacing above the links */
}

.action-links a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 3px;
    color: #fff;
    background-color: var(--dark-blue);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.action-links a:hover {
    background-color: var(--light-blue);
    color: #fff;
}

/* Make the links icon-friendly and vertically centered */
.action-links a {
  display: inline-flex;          /* was inline-block */
  align-items: center;
  gap: 8px;                      /* space between icon and text */
}

/* Generic icon via CSS mask that inherits current text color */
.action-links a::before {
  content: "";
  width: 1.3em;
  height: 1.3em;
  inline-size: 1.3em;
  block-size: 1.3em;
  background-color: currentColor;/* take the link’s color */
  -webkit-mask: var(--icon) no-repeat center / contain;
  mask: var(--icon) no-repeat center / contain;
}

/* Per-link icon assignments (using custom property) */
.action-links a.alert-link  { --icon: url("../images-layout/icons/alert.svg"); }
.action-links a.search-link { --icon: url("../images-layout/icons/search.svg"); }

/* Optional: a tiny nudge so icons don’t jump on hover (keeps size/color consistent) */
.action-links a:hover::before { background-color: currentColor; }

/* ================================
   Footer (mobile-first, full-bleed)
   ================================ */

footer {
  padding-block: clamp(16px, 2.5vw, 28px);
}

footer .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 0;
}

/* --- Footer Nav --- */
#footer-nav {
  width: 100%;
  display: flex;
  justify-content: center;
  background: linear-gradient(
    to bottom right,
    rgba(63, 82, 91, 1),
    rgba(86, 117, 140, 0.9)
  );
  padding: clamp(1px, 2vw, 4px);
  margin-bottom: clamp(10px, 2vw, 18px);
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-links a {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 400;
  font-size: clamp(.68rem, 1.4vw, .9rem);
  padding-block: clamp(6px, 1.2vw, 10px);
  color: #fff;
  transition: color .25s ease, opacity .25s ease;
}
.footer-nav-links a:hover,
.footer-nav-links a:focus { color: var(--light-blue); outline: none; }

/* --- Footer Contact --- */
.footer-contact {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: center;
  justify-items: center;
  align-items: start;
  gap: clamp(12px, 3vw, 20px);
  text-align: center;
  padding-inline: clamp(12px, 3vw, 24px);
}

/* Hide the photo on small screens */
.footer-contact-photo { margin: 0; }
.footer-contact-photo img {
  display: block;
  border-radius: 50% !important;
  width: clamp(80px, 12vw, 110px);
  height: clamp(80px, 12vw, 110px);
  object-fit: cover;
}

.footer-contact-copy a:hover,
.footer-contact-copy a:focus { text-decoration: underline; outline: none; }

.footer-website-links {
  font-size: .65rem;
  text-align: center;
  margin-top: 25px;
}

.footer-website-links a {
  color: var(--dark-blue);
  text-decoration: none;
  text-transform: uppercase;
}

.footer-website-links a:hover,
.footer-website-links a:focus {
  text-decoration: underline;
}

@media (max-width: 47.99rem) {
  .footer-contact-photo { display: none; }
}

.footer-contact-copy {
  width: 100%;
  max-width: 48rem;
  text-align: center;
  border-left: 0;
  padding-left: 0;
}
.footer-contact-copy p {
  margin: 0;
  color: var(--dark-blue);
}

.footer-contact-copy .role {
  font-size: .82rem;
  color: var(--grey);
}

.footer-contact-copy .org,
.footer-contact-copy .phone,
.footer-contact-copy .links { font-size: .75rem; }

.footer-contact-copy .highlight {
  color: var(--light-blue);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.05;
}
.footer-contact-copy a {
  color: var(--dark-blue);
  text-decoration: none;
}
.footer-contact-copy a:hover,
.footer-contact-copy a:focus { text-decoration: underline; outline: none; }

/* Utility */
.rounded-circle { border-radius: 50% !important; }

/* ================================
   Progressive enhancement
   ================================ */

/* ≥768px: photo | copy, centered as a pair; copy text left */
@media (min-width: 48rem) {
  .footer-contact {
    display: grid;
    grid-template-columns: auto fit-content(48rem);
    justify-content: center;
    justify-items: start;
    align-items: center;
    text-align: left;
    width: fit-content;
    margin-inline: auto;
  }
  .footer-contact-copy {
    text-align: left;
    border-left: 1px solid #b6b6b6;
    padding-left: 10px;
    width: auto;               /* was 100% on mobile; override at desktop */
    max-width: 48rem;          /* same cap as the column */
    justify-self: start;
  }
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 8px;
  line-height: 1;
}

.filter-toggle img {
  display: inline-block;
  vertical-align: middle;
}

.filter-toggle .filter-label {
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}