@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --gold:        #C9A96E;
  --gold-light:  #F5ECD8;
  --gold-dark:   #9B7A3F;
  --blue:        #1B3A7A;
  --blue-mid:    #24509E;
  --blue-light:  #2E65C3;
  --blue-pale:   #EBF0FA;
  --cream:       #FAF8F4;
  --cream-dark:  #F0EDE6;
  --text:        #1A1A2E;
  --text-mid:    #4A4A6A;
  --text-light:  #8888AA;
  --white:       #FFFFFF;
  --success:     #22863A;
  --error:       #B91C1C;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; background: var(--cream); color: var(--text); font-size: clamp(13px, 2.2vw, 15px); line-height: 1.7; overflow-x: hidden; font-weight: 400; }
h1,h2,h3,h4,.serif { font-family: 'Cormorant Garamond', serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: 'Poppins', sans-serif; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: clamp(60px, 12vw, 72px); padding: 0 clamp(1rem, 3vw, 3rem);
  display: flex; align-items: center; justify-content: space-between;
  transition: all 0.35s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(27,58,122,0.96);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(27,58,122,0.25);
}
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.1rem, 4vw, 1.45rem); font-weight: 600; color: #fff; letter-spacing: 0.01em; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.nav-logo span { color: #fff; text-shadow: 0 2px 4px rgba(245, 244, 235, 0.3); }
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; min-width: 44px; min-height: 44px; }
.nav-toggle span { width: 24px; height: 2.5px; background: #fff; display: block; transition: all 0.3s; border-radius: 1px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
.nav-links { display: flex; gap: clamp(1rem, 3vw, 2.5rem); list-style: none; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: clamp(0.65rem, 1.5vw, 0.8rem); letter-spacing: 0.07em; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.25rem); }
.nav-phone { color: rgba(255,255,255,0.6); font-size: clamp(0.65rem, 1.5vw, 0.82rem); }
.nav-cta { background: var(--gold); color: var(--blue); padding: 0.55rem clamp(0.75rem, 2vw, 1.35rem); font-size: clamp(0.65rem, 1.5vw, 0.75rem); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; border: none; cursor: pointer; transition: all 0.25s; white-space: nowrap; }
.nav-cta:hover { background: var(--gold-dark); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.75rem); font-size: clamp(0.65rem, 1.5vw, 0.8rem); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; border: none; cursor: pointer; transition: all 0.25s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--blue); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-wa { background: #25D366; color: #fff; }
.btn-wa:hover { opacity: 0.88; }
.btn-sm { padding: 0.5rem 1rem; font-size: clamp(0.6rem, 1.2vw, 0.72rem); }

/* ── SECTION COMMON ── */
.section-tag { font-size: clamp(0.6rem, 1.2vw, 0.68rem); letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.6rem; }
.section-tag::before { content: ''; display: block; width: 22px; height: 1.5px; background: var(--gold); }
.section-title { font-size: clamp(1.5rem, 5vw, 3rem); font-weight: 600; line-height: 1.2; margin-bottom: clamp(0.5rem, 2vw, 0.75rem); letter-spacing: -0.5px; }
.section-title em { font-style: italic; color: var(--gold-dark); }
.section-sub { font-size: clamp(0.8rem, 2vw, 0.92rem); color: var(--text-mid); max-width: 520px; line-height: 1.85; font-weight: 300; }
.container { max-width: 1380px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); box-sizing: border-box; width: 100%; overflow-x: hidden; }

/* ── PROPERTY CARD ── */
.prop-card { background: #fff; overflow: hidden; transition: transform 0.35s, box-shadow 0.35s; cursor: pointer; border-radius: 8px; }
.prop-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(27,58,122,0.15); }
.prop-img { position: relative; height: clamp(180px, 50vw, 280px); overflow: hidden; background: var(--blue); display: flex; align-items: center; justify-content: center; }

@media(max-width: 768px) {
  .prop-img { height: clamp(160px, 60vw, 220px); }
}
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.prop-card:hover .prop-img img { transform: scale(1.05); }
.prop-img-placeholder { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3.5rem); color: rgba(255,255,255,0.08); }
.prop-badge { position: absolute; top: clamp(0.5rem, 2vw, 1rem); left: clamp(0.5rem, 2vw, 1rem); padding: 0.3rem 0.8rem; font-size: clamp(0.55rem, 1.2vw, 0.65rem); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.badge-sale { background: var(--gold); color: var(--blue); }
.badge-rent { background: var(--blue); color: var(--gold); border: 1px solid rgba(201,169,110,0.3); }
.badge-featured { position: absolute; top: clamp(0.5rem, 2vw, 1rem); right: clamp(0.5rem, 2vw, 1rem); background: rgba(27,58,122,0.75); backdrop-filter: blur(6px); color: var(--gold); font-size: clamp(0.55rem, 1vw, 0.62rem); padding: 0.25rem 0.65rem; border: 1px solid rgba(201,169,110,0.3); }
.prop-body { padding: clamp(0.8rem, 2vw, 1.35rem); }
.prop-type { font-size: clamp(0.6rem, 1.2vw, 0.65rem); letter-spacing: 0.13em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.prop-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(1rem, 3vw, 1.25rem); font-weight: 500; color: var(--blue); margin-bottom: 0.3rem; line-height: 1.2; }
.prop-loc { font-size: clamp(0.65rem, 1.5vw, 0.78rem); color: var(--text-light); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.3rem; }
.prop-price { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.3rem, 4vw, 1.65rem); font-weight: 600; color: var(--text); margin-bottom: 0.9rem; }
.prop-price-unit { font-family: 'DM Sans', sans-serif; font-size: clamp(0.6rem, 1.2vw, 0.72rem); font-weight: 400; color: var(--text-light); }
.prop-specs { display: flex; gap: clamp(0.7rem, 2vw, 1.1rem); padding-top: 0.9rem; border-top: 1px solid var(--cream-dark); margin-bottom: 1rem; flex-wrap: wrap; }
.prop-spec { font-size: clamp(0.65rem, 1.2vw, 0.75rem); color: var(--text-mid); display: flex; align-items: center; gap: 0.3rem; }
.prop-actions { display: flex; gap: 0.5rem; flex-direction: column; }
.prop-actions .btn { flex: 1; padding: clamp(0.5rem, 1.5vw, 0.68rem); font-size: clamp(0.6rem, 1.2vw, 0.72rem); }

/* ── GRID ── */
.props-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1rem, 3vw, 1.5rem); }

/* ── FORMS ── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: clamp(0.6rem, 2vw, 0.85rem); }
.form-label { font-size: clamp(0.6rem, 1.2vw, 0.68rem); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }
.form-input { padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1rem); border: 1.5px solid var(--cream-dark); background: var(--cream); font-size: clamp(0.8rem, 1.5vw, 0.88rem); color: var(--text); outline: none; transition: border-color 0.2s, background 0.2s; }
.form-input:focus { border-color: var(--gold); background: #fff; }
.form-textarea { resize: vertical; min-height: 85px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888AA' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; padding-right: 2.25rem; cursor: pointer; }

/* ── BADGES ── */
.status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 0.68rem; font-weight: 600; }
.status-active { background: #DCFCE7; color: #166534; }
.status-inactive { background: #F3F4F6; color: #6B7280; }
.status-new { background: #DBEAFE; color: #1E40AF; }
.status-contacted { background: #FEF3C7; color: #92400E; }
.status-closed { background: #DCFCE7; color: #166534; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; padding: 0.75rem 1.75rem; font-size: 0.85rem; font-weight: 500; z-index: 9999; opacity: 0; transition: opacity 0.3s; pointer-events: none; box-shadow: 0 8px 24px rgba(27,58,122,0.3); }
.toast.show { opacity: 1; }
.toast.error { background: #B91C1C; }
.toast.success { background: #166534; }

/* ── WA FLOAT ── */
.wa-float { position: fixed; bottom: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); width: clamp(48px, 10vw, 58px); height: clamp(48px, 10vw, 58px); border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; z-index: 200; box-shadow: 0 4px 20px rgba(37,211,102,0.45); cursor: pointer; transition: transform 0.25s; }
.wa-float:hover { transform: scale(1.1); }
.wa-float-pulse { position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(37,211,102,0.35); animation: wapulse 2s infinite; }
@keyframes wapulse { 0%,100%{transform:scale(1);opacity:.7}50%{transform:scale(1.2);opacity:0} }

/* ── FOOTER ── */
.footer { background: #0D1F45; padding: clamp(2rem, 5vw, 4rem) 0 clamp(1rem, 3vw, 2rem); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.1rem, 3vw, 1.4rem); color: #fff; margin-bottom: clamp(0.5rem, 2vw, 0.85rem); }
.footer-logo span { color: var(--gold); }
.footer-desc { font-size: clamp(0.7rem, 1.5vw, 0.8rem); color: rgba(255,255,255,0.32); line-height: 1.85; margin-bottom: 1rem; }
.footer-heading { font-size: clamp(0.6rem, 1.2vw, 0.65rem); letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: clamp(0.6rem, 1.5vw, 1rem); }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links a { font-size: clamp(0.7rem, 1.5vw, 0.8rem); color: rgba(255,255,255,0.38); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: clamp(1rem, 2vw, 1.75rem); display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; font-size: clamp(0.65rem, 1.2vw, 0.72rem); color: rgba(255,255,255,0.22); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:translateY(0)} }
.fade-up { opacity: 0; }
.fade-up.visible { animation: fadeUp 0.65s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── RESPONSIVE ── */
/* Mobile Phone: 320px - 480px */
@media (max-width: 480px) {
  .nav { height: 56px; padding: 0 1rem; }
  .nav-logo { font-size: 1rem; }
  .nav-phone { display: none; }
  .nav-links { gap: 0.5rem; }
  .nav-links a { font-size: 0.6rem; }
  .nav-toggle { display: flex; }
  .nav-right { gap: 0.75rem; }
  .nav-cta { padding: 0.45rem 0.75rem; font-size: 0.65rem; }

  .container { padding: 0 1rem; }

  .section-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
  .section-sub { font-size: 0.8rem; }

  .btn { padding: 0.5rem 1rem; font-size: 0.65rem; }

  .prop-actions { flex-direction: column; }

  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }

  body { font-size: 13px; }
}

/* Tablet: 481px - 768px */
@media (max-width: 768px) {
  .nav { padding: 0 1.5rem; }
  .nav-phone { display: none; }
  .nav-links { gap: 1rem; }
  .nav-toggle { display: flex; }

  .container { padding: 0 1.5rem; }

  .section-title { font-size: clamp(1.5rem, 4vw, 2.2rem); }

  body { font-size: 14px; }
}

/* Small Devices: 769px - 1024px */
@media (max-width: 1024px) {
  .nav { padding: 0 2rem; }
  .nav-phone { display: none; }
  .nav-links { gap: 1.5rem; }

  .container { padding: 0 2rem; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Large Devices: 1025px+ */
@media (min-width: 1025px) {
  .nav-toggle { display: none; }
}

/* Touch Device Optimization */
@media (hover: none) and (pointer: coarse) {
  .btn { padding: clamp(0.6rem, 2vw, 0.85rem) clamp(1.2rem, 3vw, 2rem); }
  .prop-card:hover { transform: none; }
  .prop-card:active { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(27,58,122,0.13); }
}

/* Print Styles */
@media print {
  .nav, .wa-float, .footer { display: none; }
  .container { padding: 0; }
}
