/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   VARIABLES
========================= */
:root{
  --bg:#f5f7f8;
  --card:#ffffff;
  --text:#1b1f23;
  --muted:#5f656b;
  --line:#e4e8ec;

  --green:#1f5a3a;
  --blue:#245f8f;

  --radius:14px;

  /* Layout */
  --reading: 980px;
  --videoWidth: 720px;

  /* Slider size */
  --sliderW: 673px;
  --sliderH: 449px;
}

/* =========================
   BASE
========================= */
html, body{
  width: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* =========================
   LINKS
========================= */
a, a:visited, a:hover, a:active{
  text-decoration: none !important;
  color: inherit;
}

/* =========================
   WRAPPERS
========================= */
.container,
.page-wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 18px;
}

/* =========================
   HEADER / NAV
========================= */
.site-header{
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.nav-container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo{
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
}

.main-nav{
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: center;
}

.main-nav a{
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 500;
}

.main-nav a:hover{
  background: rgba(31,90,58,.12);
}

/* =========================
   LOGO SIZING (HEADER)
========================= */
.logo{
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-image{
  display: block;
  height: 40px;     /* controls visible size */
  width: auto;      /* preserves aspect ratio */
  max-width: 160px; /* prevents it from getting too wide */
}

/* =========================
   FOOTER
========================= */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 26px 18px;
  margin-top: 60px;
  background: #fff;
}

.site-footer p{
  text-align: center;
  color: var(--muted);
}

/* =========================
   HEADINGS
========================= */
h1{
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1f2f36;
}

/* Homepage H1 */
.container h1{
  text-align: center;
  font-size: 2.1rem;
  margin-bottom: 10px;
}

/* =========================
   HOMEPAGE GRID / CARDS
========================= */
.properties-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.property-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 26px rgba(16,24,40,0.10);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.property-card::before{
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.property-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(16,24,40,0.14);
}

.property-card a{
  display: block;
}

.property-image{
  height: 185px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.property-card h2{
  font-size: 1.12rem;
  font-weight: 600;
  margin: 14px 14px 6px;
}

.property-card p{
  margin: 0 14px 16px;
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.45;
}

/* =========================
   PROPERTY PAGE CARD
========================= */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* =========================
   PROPERTY HEADER (UPDATED)
========================= */
.property-header{
  padding: 44px 22px 10px;
}

/* 🔒 FINAL: 42px padding left + right */
.property-header h1{
  width: 100%;
  box-sizing: border-box;
  padding-left: 42px;
  padding-right: 42px;
  text-align: center;
  font-size: 2.05rem;
  margin-bottom: 14px;
}

.property-header h1::after{
  content:"";
  display:block;
  width:80px;
  height:4px;
  margin:14px auto 0;
  border-radius:4px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

/* =========================
   PROPERTY PAGE MEDIA
========================= */
.media-grid{
  padding: 10px 22px;
}

.media-single{
  max-width: var(--reading);
  margin: 0 auto;
}

.media-meta{
  text-align: center;
  margin-top: 16px;
  margin-bottom: 10px;
}

.media-kicker{
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.media-caption{
  color: var(--muted);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto 10px;
}

/* =========================
   IMAGE SLIDER (FIXED)
========================= */
.slider{
  position: relative;
  width: min(100%, var(--sliderW));
  height: var(--sliderH);
  margin: 0 auto 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #e6e9ee;

  /* Brave/Chromium seam killer */
  clip-path: inset(0);
  font-size: 0;
}

.slides{
  display: flex;
  height: 100%;
  transition: transform .5s ease;

  gap: 0;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0,0,0);
}

.slides img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex: 0 0 100%;
  display: block;
  backface-visibility: hidden;
}

.slider-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(36,95,143,.9);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.slider-arrow.prev{ left: 10px; }
.slider-arrow.next{ right: 10px; }

/* =========================
   PROPERTY CONTENT
========================= */
.property-content{
  max-width: var(--reading);
  margin: 0 auto;
  padding: 10px 22px 28px;
}

.property-content h2{
  margin: 36px 0 24px;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 600;
}

.property-content p,
.property-content li{
  line-height: 1.75;
  margin-bottom: 10px;
  margin-left: 20px;  /* added manually */
  font-size: 1.03rem;
}

/* =========================
   CONTACT BUTTON (GLOSSY, NO SHADOW)
========================= */
.contact-btn{
  position: relative;
  display: inline-block;

  /* spacing */
  margin: 18px 0 18px; /* added top space */

  padding: 12px 20px;

  font-size: 1.05rem;
  font-weight: 600;

  color: #ffffff !important;

  background: linear-gradient(
    135deg,
    var(--green),
    var(--blue)
  );

  border-radius: 12px;
  overflow: hidden; /* required for sheen effect */

  transition: transform 160ms ease;
}

/* subtle lift only (no shadow) */
.contact-btn:hover{
  transform: translateY(-1px);
}

/* glossy sheen */
.contact-btn::after{
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;

  background: linear-gradient(
    120deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.35),
    rgba(255,255,255,0)
  );

  transform: skewX(-20deg);
}

/* animate sheen on hover */
.contact-btn:hover::after{
  left: 125%;
  transition: left 600ms ease;
}

/* =========================
   BOTTOM VIDEO
========================= */
.bottom-video{
  margin-top: 58px;
  margin-bottom: 34px;
}

.bottom-video .media-meta{
  text-align: center;
}

.video--bottom{
  max-width: var(--videoWidth);
  margin: 0 auto;
}

/* =========================
   EMBEDDED VIDEO (RESPONSIVE, SMALLER)
========================= */
.video--bottom{
  max-width: var(--videoWidth);
  margin: 0 auto;
}

.video--bottom iframe{
  width: 100%;
  aspect-ratio: 16 / 9;   /* perfect for YouTube */
  height: auto;

  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* =========================
   GOOGLE MAP EMBEDS
========================= */
.map-embed{
  max-width: 720px;          /* matches video width */
  margin: 36px auto 44px;    /* more space above + below */
}

.map-embed iframe{
  width: 100%;
  height: 380px;

  border: 1px solid var(--line);
  border-radius: var(--radius);

  display: block;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 760px){
  .slider{
    width: 100%;
    height: auto;
    aspect-ratio: 1170 / 780;
  }
  .slides img{
    width: 100%;
    height: auto;
    aspect-ratio: 1170 / 780;
  }
}

/* =========================
   ASKING PRICE BADGE (WARM ORANGE, NO SHADOW)
========================= */
.asking-price{
  display: inline-block;

  /* spacing */
  margin: 10px 12px 18px 0; /* 12px right margin */

  padding: 10px 16px;

  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;

  color: #7a3f00; /* warm orange-brown text */

  background: linear-gradient(
    135deg,
    rgba(255, 170, 85, 0.35),
    rgba(255, 140, 60, 0.22)
  );

  border: 1px solid rgba(255, 140, 60, 0.55);
  border-radius: 12px;

  /* shadow removed */
}

/* =========================
   ASKING PRICE — CENTERED VARIANT
========================= */
.asking-price--center{
  display: table;              /* ensures true centering */
  margin: 38px auto 22px;      /* center horizontally */
  text-align: center;
}

/* =========================
   MAP LOCATION BADGE (PURPLE – VISUALLY BALANCED)
========================= */
.map-badge{
  display: inline-flex;
  align-items: center;

  /* 👇 INTENTIONALLY asymmetrical padding for visual balance */
  padding: 10px 16px 10px 12px; /* left is smaller */

  margin: 10px 12px 18px 12px;

  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;

  color: #3d235c;

  background: linear-gradient(
    135deg,
    rgba(180, 140, 220, 0.38),
    rgba(150, 110, 200, 0.28)
  );

  border: 1px solid rgba(150, 110, 200, 0.65);
  border-radius: 12px;

  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

/* Hover */
.map-badge:hover{
  background: linear-gradient(
    135deg,
    rgba(180, 140, 220, 0.48),
    rgba(150, 110, 200, 0.38)
  );
  border-color: rgba(150, 110, 200, 0.85);
}

/* Icon */
.map-badge::before{
  content: "📍";
  font-size: 0.95rem;
  line-height: 1;
  margin-right: 6px;
}

/* =========================
   CENTER ACTION BUTTON ROW
========================= */
.action-row{
  display: flex;
  justify-content: center;   /* centers the whole group */
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;           /* allows wrapping on small screens */
  margin: 24px 0 32px;
}

/* Remove each element’s own margins ONLY inside the row */
.action-row .asking-price,
.action-row .contact-btn,
.action-row .map-badge{
  margin: 0 !important;
}

/* Ensure lists don't keep big default margins that confuse spacing */
.property-content ul{
  margin: 0 0 12px 18px;   /* controlled bottom margin + indent */
  padding: 0;
}

.property-section-title{
  margin: 28px 0 16px;
  padding: 10px 16px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: #1f2f36;
  background: linear-gradient(90deg, rgba(31,90,58,0.10), rgba(36,95,143,0.10));
  border-radius: 8px;
}

/* =========================
   CONTACT PAGE – MATCH HOMEPAGE CARD CONTRAST
   (paste at bottom of style.css)
========================= */
.contact-card{
  position: relative;
  background:
    linear-gradient(135deg, rgba(36,95,143,0.06), rgba(31,90,58,0.06)),
    var(--card);
  box-shadow: 0 10px 26px rgba(16,24,40,0.10);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-card::before{
  content:"";
  display:block;
  height:4px;
  width:100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.contact-header{
  padding: 44px 22px 12px;
  text-align: center;
}

.contact-subtitle{
  color: var(--muted);
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto 8px;
}

.form-alert{
  max-width: var(--reading);
  margin: 14px auto 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 600;
  background: rgba(255,255,255,0.65);
}

.form-alert.success{
  background: rgba(31, 90, 58, 0.12);
  border-color: rgba(31, 90, 58, 0.25);
  color: #1f5a3a;
}

.form-alert.error{
  background: rgba(180, 60, 60, 0.12);
  border-color: rgba(180, 60, 60, 0.28);
  color: #7a1f1f;
}

.contact-form{
  max-width: var(--reading);
  margin: 18px auto 26px;
  padding: 0 22px 26px;
}

.form-panel{
  background:
    radial-gradient(900px 420px at 20% 0%, rgba(36,95,143,0.08), transparent 60%),
    radial-gradient(900px 420px at 80% 0%, rgba(31,90,58,0.08), transparent 60%),
    rgba(255,255,255,0.72);
  border: 1px solid rgba(228,232,236,0.9);
  border-radius: 14px;
  padding: 18px;
}

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full{
  grid-column: 1 / -1;
}

label{
  font-weight: 650;
  color: #1f2f36;
  letter-spacing: 0.01em;
}

.optional{
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}

.required{
  color: #b23b3b;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(228,232,236,1);
  background: rgba(255,255,255,0.92);
  font-size: 1rem;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(36,95,143,0.55);
  background: #fff;
}

.form-actions{
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.form-note{
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 760px){
  .form-grid{ grid-template-columns: 1fr; }
  .form-panel{ padding: 16px; }
}

/* Homepage property card images */
#prop-img-1{
  background-image: url("/images/property1-cover.jpg");
}

#prop-img-2{
  background-image: url("/images/property2-cover.jpg");
}

#prop-img-3{
  background-image: url("/images/property3-cover.jpg");
}

/* =========================
   CONTACT PHONE CTA (INLINE)
========================= */
.contact-phone{
  text-align: center;
  padding: 22px 18px 6px;
}

.contact-phone-label{
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-phone-row{
  display: inline-flex;
  align-items: center;
  gap: 26px; /* increased horizontal space */
}

.contact-phone-number{
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Tighten space between contact subtitle and phone section */
.contact-subtitle{
  margin-bottom: 4px;   /* reduced  */
}

.contact-phone{
  padding-top: 4px;    /* reduced  */
}

/* =========================
   CONTACT PHONE NUMBER STYLE
========================= */
.contact-phone-number{
  display: inline-flex;
  align-items: center;

  padding: 10px 14px;

  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;

  color: #1f2f36;

  background: linear-gradient(
    135deg,
    rgba(36, 95, 143, 0.08),
    rgba(31, 90, 58, 0.08)
  );

  border: 1px solid rgba(36, 95, 143, 0.25);
  border-radius: 12px;

  white-space: nowrap;
}

/* Force more space between Call Us button and phone number */
.contact-phone-row{
  gap: 16px !important;
}

/* Force visible vertical spacing BEFORE section headings */
.property-content p + .property-section-title,
.property-content ul + .property-section-title,
.property-content .action-row + .property-section-title {
  margin-top: 56px !important;
}
