:root {
  --ink: #0d2b34;
  --ink-soft: #52707a;
  --ink-faint: #86a0a8;
  --amber: #f5a83c;
  --amber-deep: #de8916;
  --teal: #0f95a8;
  --teal-deep: #0a6e7d;
  --teal-dark: #0a3d47;
  --bg: #ffffff;
  --bg-alt: #f2f8fa;
  --white: #ffffff;
  --line: #e3edf0;
  --radius: 18px;
  --shadow: 0 14px 36px rgba(13, 43, 52, 0.1);
  --shadow-lg: 0 24px 60px rgba(13, 43, 52, 0.18);
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .price-tag, .brand {
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.site-nav a { position: relative; padding: 4px 0; }
.site-nav a:hover { color: var(--teal-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--teal-deep);
  color: white;
  box-shadow: 0 8px 20px rgba(10, 110, 125, 0.3);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(10, 110, 125, 0.38); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: inherit;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
  isolation: isolate;
  background: #0a2830;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/bradenton-hero.jpg");
  background-size: cover;
  background-position: center 65%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 34, 41, 0.55) 0%, rgba(8, 34, 41, 0.72) 55%, rgba(8, 34, 41, 0.94) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.08;
  margin: 0 0 20px;
  font-weight: 700;
  text-wrap: balance;
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.92rem;
}

.hero-badges span { display: flex; align-items: center; gap: 8px; }

/* ---------- Search widget shell ---------- */
.search-shell {
  max-width: 920px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  padding: 22px;
  min-height: 76px;
}

.widget-placeholder {
  border: 2px dashed #c9d8dc;
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  background: var(--bg-alt);
}

.widget-placeholder strong { color: var(--teal-deep); }

/* ---------- Section headings ---------- */
.section {
  padding: 92px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-head .eyebrow {
  background: rgba(15, 149, 168, 0.1);
  border: none;
  color: var(--teal-deep);
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin: 0 0 14px;
  font-weight: 700;
}

.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* ---------- Property cards ---------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 760px) {
  .property-grid { grid-template-columns: 1fr; }
}

.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid var(--line);
}

.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.property-photo {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}

.property-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.property-card:hover .property-photo img { transform: scale(1.05); }

.property-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.property-body h3 { margin: 0; font-size: 1.35rem; font-weight: 700; }

.property-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.property-meta {
  display: flex;
  gap: 16px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.property-desc { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.55; flex: 1; }

.property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.price-tag { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.price-tag span { font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); font-family: "Inter", sans-serif; }

/* ---------- Why book direct ---------- */
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 760px) {
  .perks { grid-template-columns: 1fr; }
}

.perk-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid var(--line);
}

.perk-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: white;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 1.5rem;
  box-shadow: 0 8px 18px rgba(222, 137, 22, 0.3);
}

.perk-card h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; }
.perk-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.5; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--teal-dark), var(--teal-deep) 60%, var(--teal));
  color: white;
  text-align: center;
  padding: 76px 0;
}

.cta-band h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; }
.cta-band p { margin: 0 0 32px; opacity: 0.9; font-size: 1.05rem; }
.cta-band .btn-primary { background: white; color: var(--teal-deep); box-shadow: 0 10px 24px rgba(0,0,0,0.2); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
  font-size: 0.92rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.site-footer .logo-img { filter: brightness(1.05); }

.optima-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-top: 18px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.optima-badge:hover { opacity: 1; }

.optima-badge-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.optima-logo-img { height: 26px; width: auto; max-width: 100%; }

.site-footer a:hover { color: white; }

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.65;
}

/* ---------- Property detail page ---------- */
.detail-hero {
  aspect-ratio: 21 / 9;
  background: var(--bg-alt);
  overflow: hidden;
  border-radius: var(--radius);
}

.detail-hero img { width: 100%; height: 100%; object-fit: cover; }

.detail-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 44px;
}

@media (max-width: 860px) {
  .detail-layout { grid-template-columns: 1fr; }
}

.detail-main h1 { font-size: 2rem; margin: 0 0 10px; font-weight: 700; }

.detail-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 0.96rem;
  font-weight: 500;
}

.detail-main h2 { font-size: 1.25rem; margin: 36px 0 14px; font-weight: 700; }
.detail-main p { color: var(--ink-soft); line-height: 1.7; font-size: 1rem; }

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  color: var(--ink-soft);
  padding: 0;
}

.amenity-grid li { list-style: none; padding-left: 30px; position: relative; font-size: 0.97rem; }
.amenity-grid li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(15, 149, 168, 0.12);
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.photo-strip .thumb {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--bg-alt);
  overflow: hidden;
}

.photo-strip .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.photo-strip .thumb:hover img { transform: scale(1.08); }

.booking-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  position: sticky;
  top: 110px;
  border: 1px solid var(--line);
}

.booking-panel h3 { margin: 0 0 4px; font-size: 1.1rem; }
.booking-panel .price-tag { margin-bottom: 18px; }

/* ---------- Search results page ---------- */
.results-shell { margin-top: 32px; }

.results-header {
  padding: 56px 0 24px;
  background: var(--bg-alt);
  text-align: center;
}

.results-header h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 8px; font-weight: 700; }
.results-header p { color: var(--ink-soft); margin: 0 0 28px; }

/* ---------- Photo gallery + lightbox ---------- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
  margin-top: 12px;
  position: relative;
}

.photo-gallery .g-item {
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}

.photo-gallery .g-item:nth-child(n+5) { display: none; }

.photo-gallery .g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-gallery .g-item:hover img { transform: scale(1.06); }

.gallery-more-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  cursor: pointer;
}

@media (max-width: 700px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 20, 24, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox:not([hidden]) {
  display: flex;
}

.lightbox-figure {
  margin: 0;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.05rem; }
}

/* ---------- Reviews ---------- */
.reviews-section { margin-top: 40px; }

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.reviews-score { font-size: 2.6rem; font-weight: 700; font-family: "Poppins", sans-serif; line-height: 1; }

.reviews-stars .star, .review-stars .star {
  color: var(--line);
  font-size: 1rem;
}

.reviews-stars .star.filled, .review-stars .star.filled { color: var(--amber); }

.reviews-count { color: var(--ink-soft); font-size: 0.92rem; margin-top: 4px; }

.reviews-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
  margin-bottom: 32px;
}

@media (max-width: 700px) {
  .reviews-categories { grid-template-columns: 1fr; }
}

.category-row {
  display: grid;
  grid-template-columns: 110px 1fr 32px;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.category-bar {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.category-bar span {
  display: block;
  height: 100%;
  background: var(--ink);
  border-radius: 999px;
}

.category-value { text-align: right; font-weight: 600; color: var(--ink); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

.review-card {
  padding: 20px;
  background: var(--bg-alt);
  border-radius: 14px;
}

.review-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.review-name { font-weight: 600; font-size: 0.95rem; }
.review-date { font-size: 0.8rem; color: var(--ink-faint); }
.review-stars { margin-bottom: 8px; font-size: 0.85rem; }
.review-text { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }

/* ---------- Mobile header ---------- */
@media (max-width: 700px) {
  .site-nav { display: none; }
  .site-header .btn-primary { padding: 10px 16px; font-size: 0.85rem; white-space: nowrap; }
  .logo-img { height: 44px; }
  .hero { padding: 90px 0 70px; }
}
