@charset "utf-8";
/* ==========================================================================
   Elliott Realty — modern design layer
   Loaded AFTER style.css. Only restyles existing markup: no class, id or
   form-field names change, so search/count AJAX and page JS keep working.
   To roll back the look, remove the modern.css <link> from the pages.
   ========================================================================== */

:root {
  --brand: #07317b;          /* original Elliott navy */
  --brand-600: #0a3f9c;
  --brand-050: #eef3fb;
  --accent: #c8102e;         /* category chips */
  --ink: #1d2330;
  --muted: #5f6b7a;
  --line: #dde3ea;
  --surface: #ffffff;
  --page: #f2f4f7;
  --footer: #14213d;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 24px rgba(16, 24, 40, .14);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* body is forced to 100% height by mmenu, so it carries the footer colour (fills
   short pages below the footer) and the page colour lives on .content */
html { background: var(--footer); }
.content { background: var(--page); }
body {
  background: var(--footer);
  color: var(--ink);
  font-family: 'Oxygen', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;                          /* guard against legacy fixed widths */
}
img { max-width: 100%; }
a { color: var(--brand-600); transition: color .15s ease; }
a:hover { color: var(--accent); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }
h2 { font-size: 26px; font-weight: 700; margin: 8px 0 14px; }

/* ---------- header ---------- */
.headerinner { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); }
.logo a, .logo a:hover { color: #fff; text-decoration: none; }
.logo { letter-spacing: .5px; text-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.contactheader a { color: #fff; font-weight: 700; }
.contactheader a:hover { color: #dbe6ff; }

.content > .navigation {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(16, 24, 40, .05);
}
.navigationinner { margin-bottom: 0; }
.navigation .navigationlink a {
  font-family: 'Oxygen', sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
  color: var(--ink);
  display: inline-block; padding: 4px 2px;
  border-bottom: 2px solid transparent;
}
.navigation .navigationlink a:hover { color: var(--brand-600); border-bottom-color: var(--brand-600); }

/* ---------- hero + quick search ---------- */
.imageslider { background-position: center; background-size: cover; position: relative; z-index: 0; }
.imageslider::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 49, 123, 0) 55%, rgba(7, 49, 123, .35) 100%);
}
#tabs.ui-tabs {
  position: relative; z-index: 2;
  border: 0; border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  font-family: 'Oxygen', sans-serif;
}
#tabs .ui-tabs-nav {
  background: var(--brand-050); border: 0; border-radius: 10px; padding: 4px;
}
#tabs .ui-tabs-nav li { border: 0; background: transparent; margin: 0 2px; border-radius: 8px; }
#tabs .ui-tabs-nav li a { color: var(--muted); font-weight: 700; }
#tabs .ui-tabs-nav li.ui-tabs-active { background: var(--surface); box-shadow: var(--shadow); }
#tabs .ui-tabs-nav li.ui-tabs-active a { color: var(--brand); }
.centerclear { color: var(--ink); font-weight: 700; margin: 10px 0 6px; }
.searchfield { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .02em; }

/* form controls */
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input:not([type]), textarea {
  font-family: inherit;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid #c3ccd8 !important;
  border-radius: 8px;
  padding: 7px 10px;
  min-height: 38px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-600) !important;
  box-shadow: 0 0 0 3px rgba(10, 63, 156, .18);
}

/* buttons */
.searchbutton, .mobilegobutton, .agent_view_listings, .navbutton, input[type="submit"], button {
  background: var(--brand-600);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-family: inherit; font-weight: 700; letter-spacing: .02em;
  cursor: pointer;
  transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.searchbutton:hover, .mobilegobutton:hover, .agent_view_listings:hover, .navbutton:hover,
input[type="submit"]:hover, button:hover { background: var(--brand); box-shadow: var(--shadow); }
.searchbutton:active, input[type="submit"]:active, button:active { transform: translateY(1px); }
.navbutton { padding: 8px 14px; }
.agent_view_listings a, .agent_view_listings a:hover { color: #fff !important; }

/* ---------- page container ---------- */
.main {
  width: auto;
  max-width: 1440px;
  margin: 24px auto;
  margin-left: max(16px, calc((100% - 1440px) / 2));
  margin-right: max(16px, calc((100% - 1440px) / 2));
  padding: 20px 24px 28px;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.printbutton { font-size: 14px; font-weight: 400; margin-left: 8px; }
form[name="filterlistings"] select { min-width: 220px; }

/* ---------- listing cards (home, results, agent & category pages) ---------- */
/* Grid where :has() is supported; older browsers keep the original floats. */
.main:has(> .featuredoutter) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.main:has(> .featuredoutter) > :not(.featuredoutter) { grid-column: 1 / -1; margin-top: 0; margin-bottom: 0; }
.main:has(> .featuredoutter) > a:empty,
.main:has(> .featuredoutter) > .clear { display: none; }   /* empty anchors/clearfix would become blank grid rows */
.main:has(> .featuredoutter) > .featuredoutter { width: auto; float: none; margin: 0; }
.main:has(> .featuredoutter)::after { content: none; }

.featuredoutter { padding: 0; }
.featured {
  position: relative;
  display: flex; flex-wrap: wrap; align-content: flex-start;
  width: 100%; height: 100% !important; min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
  text-align: left;
}
.featured:hover {
  background: var(--surface);
  color: inherit !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.featuredimage { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #e7ebf0; }
.featuredimage a { display: block; height: 100%; }
.featuredimage img {
  display: block; width: 100%; height: 100% !important;
  object-fit: cover;
  transition: transform .4s ease;
}
.featured:hover .featuredimage img { transform: scale(1.04); }

/* chips: the category <div>s come first in .featured, so nth-of-type stacks them */
.featuedcategories {
  position: absolute; left: 10px; top: 10px; z-index: 3;
  float: none; margin: 0; padding: 0; text-align: left;
}
.featuedcategories:nth-of-type(2) { top: 44px; }
.featuedcategories:nth-of-type(3) { top: 78px; }
.featuredcategory {
  position: static; width: auto; max-width: 210px; height: auto;
  margin: 0; padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1.3; letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.category-waterfront { font-size: 11px; font-weight: 400; }
.category-waterfront::first-line { font-weight: 700; }

.featuredprice {
  width: 100%; height: auto;
  padding: 12px 14px 6px;
  font-size: 21px !important; font-weight: 700; color: var(--brand);
  line-height: 1.25;
}
.featuredcity { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }

/* "Beds<br>3": first line is the label, second the value */
.featuredbeds, .featuredbaths, .featuredtotalsqft, .featuredlotacres {
  float: none; height: auto;
  padding: 4px 0 12px;
  color: var(--ink) !important;
  font-size: 16px !important; font-weight: 700;
  line-height: 1.35;
}
.featuredbeds::first-line, .featuredbaths::first-line, .featuredtotalsqft::first-line {
  font-size: 11px; font-weight: 400; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}
.featuredbeds, .featuredbaths, .featuredtotalsqft { width: 33.33%; }
.featuredlotacres { width: 100%; padding-left: 14px; text-align: left; font-size: 14px !important; text-transform: none; color: var(--ink) !important; font-weight: 700; }
.featuredcourtesy {
  width: 100%; margin: auto 0 0; padding: 8px 14px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 11px; text-align: left;
}

/* ---------- listing detail ---------- */
.details_address h1, .details_price h1 { margin: 6px 0 12px; }
.details_price h1 { color: var(--brand); }
.detail_header {
  background: var(--brand) !important;
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 2px 16px !important;
  margin-top: 28px !important;
}
.detail_header h1, .detail_header h2, .detail_header h3, .detail_header h4 { color: #fff; font-size: 18px; }
.table_row { border: 0; border-bottom: 1px solid var(--line); height: auto; min-height: 40px; display: flex; }
.table_row:nth-child(even) { background: #f8fafc; }
.table_header { background: transparent; color: var(--muted); float: none; flex: 0 0 34%; font-weight: 700; }
.table_field { float: none; flex: 1; }
.mainpic img { border-radius: var(--radius); }
.photopanel_right img { border: 0; border-radius: 6px; padding: 0; transition: opacity .15s ease; }
.photopanel_right img:hover { opacity: .8; }
.Buttons-vtour, .Buttons-print-flyer, .Buttons-map { border-radius: var(--radius); transition: background-color .15s ease; }
.Buttons-vtour:hover, .Buttons-print-flyer:hover, .Buttons-map:hover { background: var(--brand-050); }
#map_canvas { border-radius: var(--radius); overflow: hidden; }
/* photo slider arrows (inline W3.CSS in details pages loads later -> higher specificity) */
button.w3-button.w3-display-left, button.w3-button.w3-display-right {
  width: 46px !important; height: 46px !important; min-height: 0 !important; padding: 0 !important;
  border-radius: 50% !important;
  background: rgba(20, 33, 61, .55) !important; color: #fff !important;
  font-size: 20px; line-height: 46px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  z-index: 5;
}
button.w3-button.w3-display-left { left: 12px !important; }
button.w3-button.w3-display-right { right: 12px !important; }
button.w3-button.w3-display-left:hover, button.w3-button.w3-display-right:hover { background: rgba(20, 33, 61, .85) !important; }

/* ---------- agents ---------- */
.agent, .agentpage { border-radius: var(--radius); }
.main:has(> .agent) { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.main:has(> .agent) > :not(.agent) { flex: 0 0 100%; }
.agent {
  float: none; width: 260px !important; max-width: none; height: auto !important; min-height: 0 !important;
  padding: 20px 16px 22px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center;
}
.agent_email, .agent_email a { overflow-wrap: anywhere; font-size: 14px; }
.agent_view_listings { margin-top: auto !important; padding: 12px 22px; }
.agent_photo img, .agentpage_photo img, .listing_agent_photo img { border-radius: var(--radius); }
.agent_name, .agentpage_name { color: var(--brand); }

/* ---------- footer ---------- */
.footer {
  background: var(--footer) !important;
  color: #c9d2e3;
  padding-bottom: 28px;
  margin-top: 32px;
}
.footer .navigation { background: transparent !important; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .navigationlink a { color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.footer .navigationlink a:hover { color: #9fb8ff !important; }
.disclaimer {
  max-width: 1100px; margin: 18px auto 0; padding: 0 20px;
  color: #a7b1c2; font-size: 12px; line-height: 1.6;
}
.disclaimer img { background: #fff; border-radius: 6px; padding: 4px; margin: 14px 6px 0; vertical-align: middle; }

/* ---------- small screens ---------- */
@media (max-width: 999px) {
  .header { background: var(--brand); }
  #tabs { width: auto !important; margin-left: 12px !important; margin-right: 12px !important; }
  .searchfield input { min-width: 0; }
  .main { padding: 16px; border-radius: 12px; margin-top: 16px; }
}
@media (max-width: 599px) {
  .logo { font-size: 24px !important; margin-left: 52px !important; margin-top: 8px !important; }
  .main:has(> .featuredoutter) { grid-template-columns: 1fr; gap: 14px; }
  .mainleft, .mainright { width: 100% !important; float: none !important; margin: 0 !important; }
  .table_header { flex-basis: 42%; }
  .searchfield { height: auto !important; margin: 6px 0 !important; }
  .searchfield input { width: 48% !important; }
}

/* never print the decorative layer */
@media print {
  html, body { background: #fff; }
  .main { box-shadow: none; margin: 0; padding: 0; }
  .featured { box-shadow: none; break-inside: avoid; }
  .content > .navigation { position: static; }
}
