/* ── CANARY DESIGN SYSTEM ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --canary: #F5C842;
  --canary-deep: #E6A800;
  --ink: #1A1410;
  --ink-mid: #4A3F35;
  --cream: #FDFAF3;
  --cream-dark: #F5EFE0;
  --white: #FFFFFF;
  --success: #1E8449;
  --success-bg: #E8F8EE;
  --danger: #C0392B;
  --danger-bg: #FEE8E8;
  --border: rgba(26,20,16,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: 0.1px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  line-height: 1.2;
}

/* ── NAVBAR ── */
.navbar {
  background: rgba(253,250,243,0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245,200,66,0.2) !important;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand svg {
  width: 32px;
  height: 32px;
}

.nav-link {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  color: var(--ink-mid) !important;
  font-weight: 400 !important;
  transition: color 0.2s !important;
}

.nav-link:hover { color: var(--ink) !important; }

/* ── BUTTONS ── */
.btn {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  border-radius: 100px;
  transition: all 0.2s;
  letter-spacing: 0;
}

.btn-primary {
  background: var(--ink) !important;
  border-color: var(--ink) !important;
  color: var(--cream) !important;
  padding: 10px 24px;
}

.btn-primary:hover {
  background: var(--ink-mid) !important;
  border-color: var(--ink-mid) !important;
  transform: translateY(-1px);
}

.btn-canary {
  background: var(--canary);
  border: none;
  color: var(--ink);
  padding: 12px 28px;
  font-size: 15px;
}

.btn-canary:hover {
  background: var(--canary-deep);
  transform: translateY(-1px);
  color: var(--ink);
}

.btn-outline-primary {
  color: var(--ink) !important;
  border-color: var(--ink) !important;
  background: transparent !important;
  padding: 10px 24px;
}

.btn-outline-primary:hover {
  background: var(--ink) !important;
  color: var(--cream) !important;
}

.btn-outline-danger {
  border-radius: 100px !important;
}

/* ── FORMS ── */
.form-control, .form-select {
  font-family: 'DM Sans', sans-serif;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 16px;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--canary);
  box-shadow: 0 0 0 3px rgba(245,200,66,0.15);
  outline: none;
}

.form-control::placeholder { color: #BBB; }

.form-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-text {
  color: var(--ink-mid);
  font-size: 13px;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 24px rgba(26,20,16,0.06);
  overflow: hidden;
}

/* ── ALERTS ── */
.alert {
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  border: none;
  font-size: 14px;
}

.alert-success { background: var(--success-bg); color: var(--success); }
.alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert-warning { background: #FFF8E8; color: #A07000; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
}

.breadcrumb-item a {
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-item a:hover { color: var(--ink); }
.breadcrumb-item.active { color: var(--ink); }
.breadcrumb-item + .breadcrumb-item::before { color: #CCC; }

/* ── STAR RATINGS ── */
.star-rating { color: var(--canary); font-size: 1.1rem; }
.star-rating .empty-star { color: #E0E0E0; }

/* ── TAGS ── */
.tag {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--ink-mid);
  padding: 4px 12px;
  margin: 3px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}

.tag.positive { background: var(--success-bg); color: var(--success); }
.tag.negative { background: var(--danger-bg); color: var(--danger); }

/* ── RATING INPUT ── */
.rating-input {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.rating-input input[type="radio"] { display: none; }

.rating-input label {
  font-size: 2.2rem;
  color: #E0E0E0;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
}

.rating-input label:hover { transform: scale(1.15); }

.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
  color: var(--canary);
}

/* ── TAG CHECKBOXES ── */
.tag-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.form-check-input:checked {
  background-color: var(--ink);
  border-color: var(--ink);
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-mid);
}

.empty-state h3 {
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  margin-bottom: 12px;
}

/* ── NEARBY PLACEHOLDER ── */
.nearby-apartments {
  background: var(--cream-dark);
  border: 1px dashed rgba(26,20,16,0.15);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-top: 32px;
}

.nearby-apartments h4 {
  font-family: 'Playfair Display', serif;
  color: var(--ink-mid);
  margin-bottom: 8px;
}

.nearby-apartments p {
  color: var(--ink-mid);
  font-size: 14px;
  margin: 0;
}

/* ── FLAG BUTTON ── */
.btn-flag {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #AAA;
  font-family: 'DM Sans', sans-serif;
  padding: 0;
  transition: color 0.2s;
}

.btn-flag:hover { color: var(--danger); }
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 32px 0;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  margin-top: 80px;
}

footer .footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(253,250,243,0.1);
}

.footer-bottom-row span {
  color: rgba(253,250,243,0.45);
  font-size: 12px;
}

.footer-contact-btn {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 16px;
  border: 1px solid rgba(253,250,243,0.2);
  border-radius: 100px;
  transition: border-color 0.2s;
}

.footer-contact-btn:hover {
  border-color: rgba(253,250,243,0.6);
  color: var(--cream);
}

/* ── HERO (index page) ── */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245,200,66,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,200,66,0.15);
  border: 1px solid rgba(245,200,66,0.4);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--canary-deep);
  border-radius: 50%;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--canary-deep);
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-mid);
  font-weight: 300;
  margin-bottom: 36px;
  max-width: 520px;
}

/* ── SEARCH BAR ── */
.search-wrap {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 6px 6px 6px 22px;
  max-width: 560px;
  box-shadow: 0 4px 24px rgba(26,20,16,0.08);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap:focus-within {
  border-color: var(--canary);
  box-shadow: 0 4px 24px rgba(245,200,66,0.2);
}

.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
}

.search-wrap input::placeholder { color: #BBB; }

.search-wrap .btn-canary {
  padding: 10px 22px;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── HOW IT WORKS ── */
.how-section {
  padding: 80px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--canary-deep);
  margin-bottom: 12px;
  font-family: 'DM Sans', sans-serif;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 48px;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 700;
  color: rgba(245,200,66,0.25);
  line-height: 1;
  margin-bottom: 12px;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: var(--canary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.step h3 {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-mid);
  font-weight: 300;
}

/* ── FEATURES DARK SECTION ── */
.features-section {
  background: var(--ink);
  padding: 80px 0;
  margin: 60px 0 0;
}

.features-section .section-label { color: var(--canary); }
.features-section .section-title { color: var(--cream); margin-bottom: 40px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
}

.feature-item {
  background: var(--ink);
  padding: 36px;
  transition: background 0.2s;
}

.feature-item:hover { background: #251E18; }

.feature-item .feature-icon { font-size: 26px; margin-bottom: 14px; }

.feature-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--cream);
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(253,250,243,0.5);
  font-weight: 300;
  margin: 0;
}

/* ── UNIT CARDS ── */
.unit-card {
  border: 1.5px solid var(--border) !important;
  border-radius: 20px !important;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.unit-card:hover {
  border-color: var(--canary) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26,20,16,0.1) !important;
}

.unit-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}

/* ── REVIEW CARDS ── */
.review-card {
  border: 1px solid var(--border) !important;
  border-radius: 20px !important;
  overflow: hidden;
}

.review-header {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}

.review-body { padding: 20px; }

/* ── TIPS BOX ── */
.tips-box {
  background: var(--cream-dark);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}

.tips-box h6 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  margin-bottom: 12px;
}

.tips-box ul {
  margin: 0;
  padding-left: 18px;
}

.tips-box li {
  font-size: 13px;
  color: var(--ink-mid);
  margin-bottom: 6px;
  font-weight: 300;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-section { padding: 48px 0 40px; text-align: center; }
  .hero-eyebrow { margin-left: auto; margin-right: auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .search-wrap { border-radius: 16px; padding: 6px; flex-direction: column; margin: 0 auto; }
  .search-wrap input { padding: 10px 12px; width: 100%; }
  .search-wrap .btn-canary { width: 100%; text-align: center; border-radius: 10px !important; }
  .feature-grid { grid-template-columns: 1fr; }
  .tag-checkboxes { grid-template-columns: 1fr; }
  .how-section { padding: 48px 0; }
  .features-section { padding: 48px 0; }
  .step { text-align: center; }
  .step .step-num { text-align: center; }
  .step .step-icon { margin-left: auto; margin-right: auto; }
}

/* ── RESPONSIVE ── */
.unit-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.unit-card-link:hover { text-decoration: none; color: inherit; }
