/* Boback Commercial Group — public site */
:root {
  --red: #c8102e;
  --red-bright: #ed1b24;
  --red-dark: #9d0b22;
  --ink: #1b1c1f;
  --ink-soft: #4a4d55;
  --line: #dcdde1;
  --paper: #ffffff;
  --wash: #f4f4f2;
  --night: #1d1e22;
  --sky: #2a6f9e;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--wash);
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 0.15em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; text-wrap: balance; margin: 1.6em 0 0.5em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p, ul, ol { margin: 0 0 1em; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 10; }
.skip-link:focus { left: 0; }

/* Header */
.site-header { background: var(--paper); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.9rem; }
.logo { flex: none; line-height: 0; }
.logo img { width: 190px; }
.header-contact { margin-left: auto; text-align: right; font-family: var(--serif); font-weight: 700; font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.3; }
.header-line { color: var(--ink); }
.header-line em { font-style: normal; }
.header-phone { color: var(--red); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--red-dark); text-decoration: underline; }
.menu-toggle { display: none; }
/* Red bar with the bevelled gradient from the original design */
.main-nav { background: #c9060f linear-gradient(to bottom, #b9585c 0, #98030a 3px, #c9060f calc(100% - 3px), #330204 100%); padding-top: 2px; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.35rem; padding: 0; margin-block: 0; }
.main-nav a {
  display: block; padding: 0.8rem 1.25rem 0.9rem; color: #fff; text-decoration: none;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  border-radius: 6px 6px 0 0;
}
.main-nav a:hover { background: rgba(0, 0, 0, 0.22); color: #fff; }
.main-nav a.active { background: var(--night); }

/* Hero band with the Fort Myers skyline */
.hero {
  background: linear-gradient(rgba(20, 30, 45, 0.35), rgba(20, 30, 45, 0.6)), url(../img/header.jpg) center 78% / cover no-repeat #29517a;
  color: #fff;
  padding-block: 2.2rem;
}
.hero h1 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.3rem); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); max-width: 28ch; }
.hero-home { padding-block: clamp(3rem, 9vw, 6.5rem); }
.hero-home h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.crumb { margin: 0 0 0.4rem; font-size: 0.9rem; }
.crumb a { color: #fff; text-decoration: none; opacity: 0.9; }
.crumb a:hover { text-decoration: underline; opacity: 1; }

/* Page layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 2rem; padding-block: 2rem 3rem; align-items: start; }
.layout > .content:only-child { grid-column: 1 / -1; }
.content { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 2rem); min-width: 0; }
.content > :first-child, .block > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }

/* Content blocks */
.block { margin-bottom: 1.5rem; }
.block::after { content: ""; display: block; clear: both; }
.block-title { margin-top: 0; }
.block-figure { margin: 0 0 1rem; }
.block-figure img { display: block; border-radius: 3px; }
.block-figure figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.35rem; }
.block-figure.align-center { text-align: center; }
.block-figure.align-center img { margin-inline: auto; }
.block-figure.align-right { text-align: right; }
.block-figure.align-right img { margin-left: auto; }
.block-figure.float-left { float: left; margin: 0.25rem 1.5rem 1rem 0; max-width: 50%; }
.block-figure.float-right { float: right; margin: 0.25rem 0 1rem 1.5rem; max-width: 50%; }
.file_border .block-figure img { border: 1px solid var(--line); padding: 3px; background: #fff; }
.clear_item { clear: both; }
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); align-items: center; margin-bottom: 1.5rem; }
.gallery-1 { --cols: 1; } .gallery-2 { --cols: 2; } .gallery-3 { --cols: 3; }
.gallery-4 { --cols: 4; } .gallery-5 { --cols: 5; } .gallery-6 { --cols: 6; }
.gallery-item { text-align: center; }
.gallery-item .block-figure { margin: 0; }
.gallery-item img { margin-inline: auto; }
.file-link a { font-weight: 600; }
.file-preview img { border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.file-preview figcaption { font-size: 1rem; color: inherit; margin-top: 0.6rem; }
.file-preview .file-link { margin: 0; }
.file-meta { color: var(--ink-soft); font-size: 0.85rem; }

/* Classes editors can apply to text */
.small { font-size: 0.875rem; }
.large { font-size: 1.15rem; }
.right { text-align: right; }
.centered, .center { text-align: center; }
.button, a.button {
  display: inline-block; background: var(--red); color: #fff; border: 0; border-radius: var(--radius);
  padding: 0.7rem 1.3rem; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.button:hover, a.button:hover { background: var(--red-dark); color: #fff; }
.content table { border-collapse: collapse; width: 100%; margin-bottom: 1em; }
.content th, .content td { border: 1px solid var(--line); padding: 0.4rem 0.6rem; text-align: left; vertical-align: top; }
blockquote { margin: 0 0 1em; padding-left: 1rem; border-left: 3px solid var(--red-bright); }

/* Reviews read as quotations */
.page-reviews .block { border-left: 3px solid var(--red-bright); padding-left: 1.1rem; margin-bottom: 2rem; }

/* Sub-page listings */
.subpages { display: grid; gap: 1rem; margin-block: 1.5rem; }
.subpages-heading { margin: 1rem 0 0; }
.subpage { display: flex; gap: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.subpage:last-child { border-bottom: 0; padding-bottom: 0; }
.subpage-image { flex: none; width: 150px; }
.subpage-image img { display: block; border-radius: 3px; }
.subpage h3 { margin: 0 0 0.25rem; font-size: 1.1rem; }
.subpage-date, .page-date { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.25rem; }
.subpage-summary { margin: 0; color: var(--ink-soft); }

/* Property cards */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head h2 { margin: 0; }
.more { font-weight: 600; text-decoration: none; }
.featured { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow 0.15s; }
.card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.card-image { position: relative; display: block; aspect-ratio: 32 / 21; background: #e6e7ea; }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-image.no-image::before {
  content: "Photo coming soon"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--ink-soft); font-size: 0.85rem;
}
.flag {
  position: absolute; top: 0.6rem; left: 0; background: var(--night); color: #fff;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.25rem 0.7rem;
}
.flag-inline { position: static; display: inline-block; margin-left: 0.5rem; vertical-align: middle; }
.card-body { padding: 0.9rem 1rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.card-body p { margin: 0; }
.card-kind { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.card-title { margin: 0; font-size: 1.02rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--red); text-decoration: underline; }
.card-where { color: var(--ink-soft); font-size: 0.9rem; }
.card-price { margin-top: auto !important; padding-top: 0.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Property search */
.search { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; align-items: end; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.search label, .form label { display: block; font-size: 0.875rem; font-weight: 600; }
.search-actions { display: flex; gap: 1rem; align-items: center; }
select, input[type="text"], input[type="email"], input[type="tel"], textarea {
  display: block; width: 100%; margin-top: 0.3rem; padding: 0.55rem 0.65rem; font: inherit; font-weight: 400;
  color: var(--ink); background: #fff; border: 1px solid #a9abb3; border-radius: 4px;
}
textarea { resize: vertical; }
.result-count { color: var(--ink-soft); }
.pagination { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.pagination a, .pagination .current { padding: 0.35rem 0.75rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-variant-numeric: tabular-nums; }
.pagination .current { background: var(--night); border-color: var(--night); color: #fff; }

/* Property detail */
.listing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; margin-bottom: 1.5rem; align-items: start; }
.listing-main > :first-child { margin-top: 0; }
.listing-kind { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); margin-bottom: 0.4rem; }
.listing-price { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin-bottom: 0.75rem; font-variant-numeric: tabular-nums; }
.listing-main h2 { margin-top: 0.5rem; font-size: 1.25rem; }
.listing-side { display: grid; gap: 1.5rem; }
.listing-photo { margin: 0; }
.listing-documents .block { margin: 0; }
.listing-documents .block + .block { margin-top: 1.25rem; }
.listing-documents .block-figure { margin: 0; text-align: center; float: none; max-width: 100%; }
.listing-documents .block-figure img { margin-inline: auto; }
.listing-documents .file-link { text-align: center; margin: 0; }
.listing-photo img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 2rem; margin: 0 0 1.5rem; }
.details > div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--ink-soft); }
.details dd { margin: 0; text-align: right; font-weight: 600; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2rem; align-items: start; }
.form { display: grid; gap: 0.9rem; }
.form h2 { margin: 0; }
.req { font-weight: 400; color: var(--ink-soft); }
.field-error { display: block; color: var(--red-dark); font-weight: 600; margin-top: 0.25rem; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.form-error { background: #fdecee; border: 1px solid #f3b6be; color: #7a0c1c; padding: 0.7rem 0.9rem; border-radius: 4px; margin: 0; }
.form-note { background: var(--wash); padding: 0.6rem 0.9rem; border-radius: 4px; margin: 0; }
.form .button { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-info .block-figure.float-right, .contact-info .block-figure.float-left { float: none; max-width: 100%; margin: 0 0 1rem; }

/* Sidebar */
.sidebar { display: grid; gap: 1.25rem; font-size: 0.95rem; }
.side-box { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--red-bright); border-radius: var(--radius); padding: 1.1rem; }
.side-box .block { margin: 0; }
.side-box h1, .side-box h2, .side-box .block-title { font-size: 1.15rem; margin: 0 0 0.6rem; }
.side-box .block-title a { color: var(--ink); text-decoration: none; }
.side-box .block-figure { margin: 0.5rem 0 0; text-align: center; float: none !important; max-width: 100% !important; }
.side-box .block-figure img { margin-inline: auto; }
.side-list { list-style: none; padding: 0; margin: 0 0 0.75rem; display: grid; gap: 0.7rem; }
.side-list time { display: block; font-size: 0.8rem; color: var(--ink-soft); }
.side-more { margin: 0; font-weight: 600; }
.side-more a { text-decoration: none; }
.side-review { border: 0; padding: 0; font-style: italic; color: var(--ink-soft); }
.side-review em { font-style: normal; }
.social-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-links a { display: inline-block; padding: 0.4rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); }
.social-links a:hover { border-color: var(--red); color: var(--red); }

/* Footer */
.site-footer { background: var(--night); color: #c9cbd1; padding-block: 2rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 0.3rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; padding-bottom: 1rem; margin-bottom: 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.footer-nav a { font-weight: 600; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-line { margin: 0; display: flex; flex-wrap: wrap; column-gap: 0.6rem; }
.footer-line span + span::before { content: "•"; margin-right: 0.6rem; opacity: 0.5; }
.footer-line:first-child { color: #fff; }
.copyright { margin: 1rem 0 0; font-size: 0.85rem; opacity: 0.8; }

/* Photo zoom */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.lightbox img { display: block; max-width: 96vw; max-height: 90vh; border-radius: 4px; }
.lightbox button { position: fixed; top: 0.75rem; right: 0.75rem; background: #fff; border: 0; border-radius: 999px; width: 2.5rem; height: 2.5rem; font-size: 1.4rem; line-height: 1; cursor: pointer; }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .listing, .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .listing-side { order: -1; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 0.75rem; }
  .logo img { width: 140px; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem; width: 100%; justify-content: center;
    background: #c9060f; color: #fff; border: 0; border-radius: var(--radius); padding: 0.7rem; font: 700 1.1rem var(--serif); cursor: pointer;
  }
  .menu-toggle-bars { width: 1.1rem; height: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
  .js .main-nav { display: none; }
  .js .main-nav.open { display: block; }
  .main-nav { background: #c9060f; padding-top: 0; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { border-radius: 0; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .block-figure.float-left, .block-figure.float-right { float: none; max-width: 100%; margin: 0 0 1rem; }
  .subpage-image { width: 96px; }
  .details > div { flex-direction: column; gap: 0; }
  .details dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .main-nav, .sidebar, .menu-toggle, .search, .site-footer { display: none; }
  .hero { background: none; color: #000; padding: 0; }
  .hero h1 { text-shadow: none; }
  .layout { display: block; }
  .content { border: 0; padding: 0; }
}
