/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #7A6248;
  --accent-dk: #5C4A35;
  --bg:        #F8F6F2;
  --surface:   #FFFFFF;
  --text:      #2C2C2C;
  --muted:     #6B6B6B;
  --border:    #E0DAD0;
  --radius:    6px;
  --shadow:    0 2px 12px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
}
h2 { font-size: 1.75rem; margin-bottom: .5rem; }
h3 { font-size: 1.2rem; }

.section-label {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .35rem;
}

/* ===== Layout Helpers ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 4rem 0; }
section:nth-child(even) { background: var(--surface); }

/* ===== Header ===== */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: flex; flex-direction: column; }
.brand-name {
  font-family: Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .02em;
}
.brand-tag {
  font-size: .7rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

nav { display: flex; gap: 1.5rem; align-items: center; }
nav a {
  font-size: .85rem;
  color: var(--muted);
  font-weight: 500;
}
nav a:hover { color: var(--accent); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); text-decoration: none; }
.btn-outline   { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn-lg { padding: .75rem 1.6rem; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/front.jpg');
  background-size: cover;
  background-position: center 60%;
  filter: brightness(.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  color: #fff;
}

.hero-address {
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-city { font-size: 1.1rem; margin-top: .3rem; opacity: .9; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
}
.hero-stat {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 1rem;
  font-weight: 600;
  opacity: .95;
}
.hero-stat::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.hero-rent {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}
.hero-rent .rent-period { font-size: 1rem; font-weight: 400; opacity: .8; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ===== Available Badge ===== */
.available-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #2E7D32;
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 999px;
  margin-bottom: .75rem;
  letter-spacing: .04em;
}
.available-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #A5D6A7; }

/* ===== Highlights ===== */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.highlight-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.highlight-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: .1rem;
}
.highlight-title { font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.highlight-desc  { font-size: .85rem; color: var(--muted); }

/* ===== Description ===== */
.description-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 780px;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease, filter .3s ease;
}
.gallery-item:hover img { transform: scale(1.04); filter: brightness(.9); }
.gallery-item::after {
  content: '⤢';
  position: absolute;
  bottom: .5rem;
  right: .65rem;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.gallery-item:hover::after { opacity: 1; }

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.lightbox.active { display: flex; }

.lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: .8;
  transition: opacity .15s;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev, .lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(0,0,0,.35);
  border: none;
  padding: .5rem .75rem;
  border-radius: var(--radius);
  opacity: .75;
  transition: opacity .15s, background .15s;
}
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; background: rgba(0,0,0,.6); }
.lightbox-prev { left: .75rem; }
.lightbox-next { right: .75rem; }

.lightbox-caption {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-size: .85rem;
}

/* ===== Room Details ===== */
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.rooms-level h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .4rem;
}

.room-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  gap: 1rem;
}
.room-name  { font-weight: 500; }
.room-size  { color: var(--muted); white-space: nowrap; }
.room-note  { font-size: .78rem; color: var(--muted); padding: .25rem 0 .4rem; }

/* ===== Upgrades ===== */
.upgrades-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.upgrades-list li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: .95rem;
}
.upgrade-year {
  font-weight: 700;
  color: var(--accent);
  min-width: 2.5rem;
  font-size: .85rem;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; flex-direction: column; gap: .2rem; }
.contact-item-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.contact-item-value { font-size: 1.05rem; font-weight: 500; }

.zillow-btn { margin-top: .5rem; }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label { font-size: .85rem; font-weight: 500; display: block; margin-bottom: .3rem; }
input, textarea, select {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color .15s;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 110px; }

.form-notice {
  font-size: .78rem;
  color: var(--muted);
}

.form-success {
  font-size: 1rem;
  color: #2E7D32;
  background: #f1f8e9;
  border: 1px solid #c5e1a5;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

/* ===== Share Button ===== */
.btn-share {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(4px);
}
.btn-share:hover { background: rgba(255,255,255,.25); text-decoration: none; }
.btn-share.share-copied { background: rgba(46,125,50,.7); border-color: transparent; }

/* Floating share button — mobile only */
.share-float {
  display: flex;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .7rem 1.25rem .7rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  align-items: center;
  gap: .45rem;
  transition: background .15s, transform .15s;
}
.share-float:hover  { background: var(--accent-dk); }
.share-float:active { transform: scale(.96); }
.share-float.share-copied { background: #2E7D32; }

/* ===== Footer ===== */
footer {
  background: #1E1C1A;
  color: rgba(255,255,255,.6);
  padding: 2rem 0;
  font-size: .85rem;
  text-align: center;
}
footer strong { color: rgba(255,255,255,.85); }

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .gallery-grid    { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid      { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  nav              { display: none; }
  .hero { min-height: 400px; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  h2 { font-size: 1.4rem; }
}
