/* Rockhill Estate — shared stylesheet
   Modern, clean take on a warm, traditional theme — suited to an over-55s residential park home estate. */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --cream: #faf8f4;
  --cream-dark: #f1ece2;
  --green: #4a6350;
  --green-dark: #23372a;
  --gold: #b98d4f;
  --gold-light: #e7d3ad;
  --text: #26261f;
  --text-light: #6c6558;
  --white: #ffffff;
  --border: #eae3d5;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --max-width: 1160px;
  --shadow: 0 8px 28px rgba(35, 55, 42, 0.07);
  --shadow-lg: 0 22px 55px rgba(35, 55, 42, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--text);
  font-size: 19px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Outfit', 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
}

a { color: var(--green); }
a:hover { color: var(--gold); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  background: rgba(185, 141, 79, 0.1);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.divider {
  width: 44px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin: 0 auto 28px;
  border: none;
}

/* Header / nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(35, 55, 42, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--cream);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--cream);
}

.brand .name {
  font-family: 'Outfit', sans-serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand .tagline {
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 500;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  display: inline-block;
  transition: background 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold-light);
}

nav.main-nav a.active {
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  color: var(--white);
  padding: 150px 24px 120px;
  text-align: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,32,24,0.35) 0%, rgba(20,32,24,0.55) 55%, rgba(20,32,24,0.82) 100%),
    linear-gradient(90deg, rgba(20,32,24,0.35) 0%, rgba(20,32,24,0.05) 40%, rgba(20,32,24,0.05) 60%, rgba(20,32,24,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.14);
}

.hero h1 {
  font-size: 52px;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero p {
  font-size: 20px;
  max-width: 620px;
  margin: 0 auto 36px;
  font-weight: 300;
  color: #f1ead9;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.2px;
  border: 1px solid var(--gold);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(185, 141, 79, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  background: #a67c3f;
  border-color: #a67c3f;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(185, 141, 79, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--cream);
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
}

/* Sections */
section { padding: 88px 0; }

section h2 {
  font-size: 34px;
  color: var(--green-dark);
  margin-bottom: 10px;
  text-align: center;
  letter-spacing: -0.6px;
}

.section-head { text-align: center; margin-bottom: 46px; }

.section-intro {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
  color: var(--text-light);
  font-size: 19px;
}

.alt-bg { background: var(--cream-dark); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.feature-card .icon {
  font-size: 30px;
  margin-bottom: 14px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-dark);
  border-radius: var(--radius-pill);
  margin-left: auto;
  margin-right: auto;
}

.feature-card h3 {
  color: var(--green-dark);
  margin: 6px 0 10px;
  font-size: 20px;
}

.feature-card p { color: var(--text-light); }

/* Homepage gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
}

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

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

.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(0deg, rgba(20,32,24,0.8), transparent);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Listings grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

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

.listing-photo-link { display: block; cursor: pointer; }

.listing-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-dark);
  overflow: hidden;
}

.ribbon {
  position: absolute;
  top: 22px;
  left: -46px;
  width: 190px;
  padding: 9px 0;
  background: var(--green-dark);
  color: var(--gold-light);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transform: rotate(-45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 2;
}

.listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.listing-photo-link:hover .listing-photo img { transform: scale(1.06); }

.listing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.listing-actions .btn { flex: 1; text-align: center; padding-left: 20px; padding-right: 20px; }

.listing-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }

.listing-status {
  display: inline-block;
  align-self: flex-start;
  background: var(--gold-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.listing-body h3 {
  color: var(--green-dark);
  margin: 0 0 6px;
  font-size: 24px;
}

.listing-price {
  font-size: 21px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--gold);
  margin: 4px 0 14px;
}

.listing-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  color: var(--text-light);
  font-size: 17px;
}

.listing-specs li { margin-bottom: 4px; }

.listing-body p.desc { flex: 1; margin-bottom: 22px; color: var(--text-light); }

.notice-box {
  background: #fbf6e8;
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 20px 26px;
  margin-bottom: 40px;
}

.notice-box strong { color: var(--green-dark); }

/* Legal / document pages */
.doc-page h1 { text-align: center; font-size: 40px; letter-spacing: -0.8px; }
.doc-page h2 {
  text-align: left;
  margin-top: 40px;
  font-size: 22px;
}

.placeholder {
  background: #fbf6e8;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 4px 16px;
  color: var(--text-light);
  font-style: italic;
}

/* Home detail page */
.detail-gallery {
  margin: 8px 0 48px;
}

.detail-gallery .gallery-item { aspect-ratio: 4 / 3; }

.detail-gallery .detail-gallery-main {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

@media (max-width: 640px) {
  .detail-gallery .detail-gallery-main { grid-column: span 1; }
}

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

.detail-main h2 { text-align: left; font-size: 25px; margin-top: 0; }
.detail-main p { color: var(--text-light); }

.detail-side .contact-card { position: sticky; top: 96px; }

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

/* Lightbox (photo popup for detail-gallery images) */
.detail-gallery .gallery-item { cursor: pointer; }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 70px 90px;
}

.lightbox-overlay.open { display: flex; }

.lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

.lightbox-counter {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  letter-spacing: 0.5px;
  text-align: center;
}

.lightbox-close,
.lightbox-arrow {
  position: fixed;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1001;
}

.lightbox-close:hover,
.lightbox-arrow:hover { background: rgba(255, 255, 255, 0.25); }

.lightbox-close {
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  font-size: 26px;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 640px) {
  .lightbox-overlay { padding: 60px 20px; }
  .lightbox-arrow { width: 44px; height: 44px; font-size: 16px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { width: 40px; height: 40px; font-size: 22px; top: 14px; right: 14px; }
}

/* Map section (Visit Us) — clickable map background that opens a popup with the full map */
.map-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.map-bg-trigger {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
  cursor: pointer;
}

.map-bg-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  filter: grayscale(25%) brightness(0.85) saturate(1.1);
}

.map-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 55, 42, 0.82) 0%, rgba(35, 55, 42, 0.72) 100%);
}

.map-content {
  position: relative;
  z-index: 1;
}

.map-content .eyebrow { color: var(--gold-light); }
.map-content h2 { color: var(--white); }
.map-content .divider { border-color: rgba(255, 255, 255, 0.3); }
.map-content .section-intro { color: rgba(255, 255, 255, 0.9); }

.map-hint {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.3px;
}

/* Map popup (opened by clicking the map background) */
.lightbox-map {
  width: min(92vw, 900px);
  height: min(75vh, 600px);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  background: var(--white);
}

.lightbox-map-link {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  text-decoration: underline;
}

.lightbox-map-link:hover { color: var(--white); }

@media (max-width: 640px) {
  .lightbox-map { width: 94vw; height: 60vh; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.contact-card h3 { color: var(--green-dark); margin-top: 0; }

.contact-card a.big-link {
  display: block;
  font-size: 18px;
  margin: 10px 0;
  text-decoration: none;
}

/* Footer */
footer.site-footer {
  background: var(--green-dark);
  color: var(--cream);
  padding: 50px 24px 28px;
  margin-top: 40px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.footer-grid h4 {
  font-family: 'Outfit', sans-serif;
  color: var(--gold-light);
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.footer-grid a { color: var(--cream); text-decoration: none; }
.footer-grid a:hover { color: var(--gold); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 26px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(247,242,231,0.15);
  font-size: 14px;
  color: rgba(247,242,231,0.65);
  text-align: center;
}

@media (max-width: 640px) {
  .hero { padding: 100px 20px 84px; }
  .hero h1 { font-size: 36px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  section { padding: 64px 0; }
}
