/*
 * RELERRA SHARED DESIGN SYSTEM
 *
 * Central live presentation layer for Relerra.com.
 * Common Relerra styling belongs here, not inside individual
 * WordPress property posts.
 */

/* ===== SHARED RELERRA FOUNDATION ===== */

/* =========================================================
   RELERRA SHARED RESPONSIVE UI
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.relerra-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 18px;
    padding-right: 18px;
    font-family: Arial, sans-serif;
    color: #111827;
}

.relerra-page img,
.relerra-page video,
.relerra-page iframe {
    max-width: 100%;
}

/* ---------- Global navigation ---------- */

.relerra-site-nav {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.relerra-site-nav-inner {
    max-width: 1200px;
    min-height: 60px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.relerra-site-brand {
    color: #111827 !important;
    text-decoration: none;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.relerra-desktop-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.relerra-desktop-nav a,
.relerra-mobile-nav a {
    color: #111827 !important;
    text-decoration: none;
    font-weight: 600;
}

.relerra-menu-button {
    display: none;
    appearance: none;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
    border-radius: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 11px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.relerra-mobile-nav {
    display: none;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 8px 18px 14px;
}

.relerra-mobile-nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid #f1f5f9;
}

.relerra-mobile-nav.relerra-mobile-menu-open {
    display: block;
}

/* ---------- Secondary / local navigation ---------- */

.relerra-scroll-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 20px 0 30px;
}

.relerra-scroll-nav a,
.relerra-nav-chip {
    flex: 0 0 auto;
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #ffffff;
    color: #172033 !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

/* ---------- Common responsive components ---------- */

.relerra-grid {
    display: grid;
    gap: 18px;
}

.relerra-card {
    min-width: 0;
}

.relerra-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 800;
}

.relerra-responsive-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ---------- Tablet ---------- */

@media (max-width: 900px) {

    .relerra-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .relerra-desktop-nav {
        display: none;
    }

    .relerra-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ---------- Phone ---------- */

@media (max-width: 640px) {

    .relerra-page {
        padding-left: 14px;
        padding-right: 14px;
    }

    .relerra-site-nav-inner {
        min-height: 56px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .relerra-site-brand {
        font-size: 21px;
    }

    /*
     * Local navigation becomes a sideways swipe row on phones.
     * It intentionally does not wrap.
     */
    .relerra-scroll-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 7px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .relerra-scroll-nav a,
    .relerra-nav-chip {
        white-space: nowrap;
    }

    .relerra-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== PROPERTY PAGE COMPONENTS ===== */

/* Property-page-only GeneratePress cleanup */
body:has(.property-wrap) .entry-header {
  display:none !important;
}

body:has(.property-wrap) .inside-article {
  padding-top:0;
}

.property-wrap {
  max-width:1200px;
  margin:0 auto;
  padding:18px;
  font-family:Arial, sans-serif;
  color:#111827;
}

.property-gallery {
  display:flex;
  flex-wrap:nowrap;
  gap:6px;
  width:100%;
  border-radius:14px;
  overflow:hidden;
  margin-bottom:12px;
  border:6px solid #ffffff;
  box-shadow:0 3px 16px rgba(0,0,0,.12);
  background:#ffffff;
}

.property-gallery-hero {
  position:relative;
  width:56%;
  height:440px;
  overflow:hidden;
}

.property-gallery-side {
  width:44%;
  height:440px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  overflow:hidden;
}

.property-gallery-tile {
  position:relative;
  width:calc(50% - 3px);
  height:217px;
  overflow:hidden;
}

.property-gallery-video > div {
  width:100%;
  height:100%;
}

.property-gallery img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.page-main {
  display:grid;
  grid-template-columns:minmax(0, 1fr) 320px;
  gap:36px;
  align-items:start;
}
.price-row {
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid #e5e7eb;
  padding-bottom:22px;
  margin-bottom:24px;
}
.price {
  font-size:34px;
  font-weight:800;
  margin:0 0 6px 0;
}
.address {
  font-size:17px;
  margin:0;
  color:#374151;
}
.stat-row {
  display:flex;
  gap:34px;
  text-align:center;
}
.stat-num {
  font-size:28px;
  font-weight:800;
  line-height:1;
}
.stat-label {
  font-size:15px;
  color:#374151;
}
.side-card {
  position:sticky;
  top:20px;
  border:1px solid #d1d5db;
  border-radius:14px;
  padding:18px;
  background:#fff;
  box-shadow:0 4px 14px rgba(0,0,0,.08);
}
.primary-btn {
  display:block;
  width:100%;
  background:#0b63ff;
  color:white !important;
  text-align:center;
  padding:15px;
  border-radius:7px;
  text-decoration:none;
  font-weight:800;
  margin-bottom:12px;
}
.secondary-btn {
  display:block;
  width:100%;
  border:1px solid #0b63ff;
  color:#0b63ff !important;
  text-align:center;
  padding:14px;
  border-radius:7px;
  text-decoration:none;
  font-weight:800;
}
.info-pills {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  margin:24px 0;
}
.info-pill {
  background:#f3f4f6;
  border-radius:8px;
  padding:14px;
  font-size:14px;
}
.section {
  border-top:1px solid #e5e7eb;
  padding-top:24px;
  margin-top:28px;
}
.section h2 {
  font-size:24px;
  margin:0 0 14px 0;
}
.remarks {
  line-height:1.7;
  font-size:16px;
  color:#1f2937;
}
.contact-form input,
.contact-form textarea {
  width:100%;
  box-sizing:border-box;
  border:1px solid #cbd5e1;
  border-radius:6px;
  padding:12px;
  margin-bottom:12px;
}
.contact-form button {
  width:100%;
  border:0;
  background:#0b63ff;
  color:white;
  padding:15px;
  border-radius:7px;
  font-weight:800;
}
@media (max-width:900px) {
  .page-main {
    grid-template-columns:1fr;
  }
  .price-row {
    display:block;
  }
  .stat-row {
    margin-top:18px;
    justify-content:space-between;
  }
  .side-card {
    position:static;
  }
  .info-pills {
    grid-template-columns:1fr;
  }

  .property-gallery {
    display:block;
    border-width:4px;
  }

  .property-gallery-hero {
    width:100%;
    height:clamp(250px, 58vw, 420px);
  }

  .property-gallery-side {
    width:100%;
    height:auto;
    margin-top:6px;
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:6px;
    overflow:visible;
  }

  .property-gallery-tile {
    width:100%;
    height:clamp(145px, 32vw, 220px);
  }
}

@media (max-width:640px) {
  .property-wrap {
    padding:12px 14px 28px;
  }

  .property-gallery {
    border-width:3px;
    border-radius:10px;
  }

  .property-gallery-hero {
    height:62vw;
    min-height:220px;
    max-height:330px;
  }

  .property-gallery-side {
    display:none;
  }

  .property-gallery-mobile-button {
    display:block !important;
  }

  .price {
    font-size:28px;
  }

  .stat-row {
    gap:12px;
  }

  .stat-num {
    font-size:23px;
  }
}

.relerra-report-link {
display:inline-block;
background:#f1f5f9;
color:#0f172a !important;
padding:7px 10px;
border-radius:999px;
font-weight:700;
font-size:13px;
line-height:1.2;
text-decoration:none;
margin:3px 4px 3px 0;
border:1px solid #dbe3ef;
}


.relerra-hub-section {
  margin-top:34px;
}

.relerra-hub-section > p {
  color:#4b5563;
  line-height:1.6;
}
