/* ============================================================
   Rentas Cortas Medellín — Sistema de Diseño
   Paleta Airbnb: Rausch #FF385C | Texto #222222 | Gris #717171
   Fuente: Plus Jakarta Sans (equivalente a Airbnb Cereal)
   ============================================================ */

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

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

:root {
  /* Paleta Gold Luxury */
  --primary:        #d6be6e;   /* Gold */
  --primary-hover:  #bda45a;
  --primary-light:  #f8f4e6;
  --primary-dark:   #8c7b45;

  /* Texto */
  --dark:           #222222;
  --gray:           #484848;   /* body text */
  --gray-mid:       #717171;   /* secondary text */
  --gray-light:     #EBEBEB;   /* borders / dividers */
  --gray-faint:     #F7F7F7;   /* backgrounds */

  /* Superficies */
  --white:          #FFFFFF;
  --bg:             #F7F7F7;

  /* Sombras Luxury */
  --shadow-sm:  0 1px 2px rgba(214,190,110,.08), 0 4px 12px rgba(214,190,110,.05);
  --shadow-md:  0 6px 16px rgba(214,190,110,.12);
  --shadow-lg:  0 8px 28px rgba(214,190,110,.15);
  --shadow-xl:  0 14px 44px rgba(214,190,110,.18);

  /* Radios */
  --radius:    12px;
  --radius-sm:  8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Font */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --transition: .2s ease;
}

[data-theme="dark"] {
  --dark:           #f7f7f7;
  --gray:           #e5e5e5;
  --gray-mid:       #b0b0b0;
  --gray-light:     #333333;
  --gray-faint:     #1a1a1a;
  --white:          #121212;
  --bg:             #000000;
  --nav-bg:         #121212;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul  { list-style: none; }
button, input, select, textarea { font-family: var(--font); }

/* ── Tipografía ───────────────────────── */
h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--dark);
}
h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--dark);
}
h3 { font-size: 1.125rem; font-weight: 600; color: var(--dark); }
h4 { font-size: 1rem;     font-weight: 600; color: var(--dark); }
p  { color: var(--gray-mid); line-height: 1.6; }

/* ── Navbar ───────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg, rgba(255,255,255,.97));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-light);
  padding: 0 2rem;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar__logo img { height: 38px; }

/* ── Botones ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.5rem;
  border: none; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--primary); color: #fff;
  background: linear-gradient(to right, #d6be6e, #bda45a);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(214,190,110,.35);
}

.btn-outline {
  background: transparent; color: var(--dark);
  border: 1.5px solid var(--dark);
}
.btn-outline:hover { background: var(--gray-faint); }

.btn-ghost {
  background: transparent; color: var(--gray-mid);
  border: 1.5px solid var(--gray-light);
}
.btn-ghost:hover { background: var(--gray-faint); color: var(--dark); }

.btn-sm   { padding: .5rem 1rem;    font-size: .8125rem; }
.btn-lg   { padding: .9rem 2rem;    font-size: 1rem; }
.btn-full { width: 100%; }

/* ── Formularios ──────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block; margin-bottom: .45rem;
  font-size: .875rem; font-weight: 600; color: var(--dark);
}

.form-control {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--dark);
  box-shadow: 0 0 0 3px rgba(34,34,34,.08);
}
.form-control::placeholder { color: #B0B0B0; }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23717171' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  padding-right: 2.5rem;
}

/* ── Badge ────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: .25rem .75rem; border-radius: 50px;
  font-size: .75rem; font-weight: 600;
}
.badge-success { background: #F0FDF4; color: #16A34A; }
.badge-warning { background: #FEFCE8; color: #CA8A04; }
.badge-danger  { background: var(--primary-light); color: var(--primary); }
.badge-gray    { background: var(--gray-faint); color: var(--gray-mid); }
.badge-soon {
  background: linear-gradient(135deg, var(--primary, #d6be6e) 0%, var(--primary-hover, #bda45a) 100%);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  line-height: 1;
  margin-left: 4px;
  box-shadow: 0 2px 4px rgba(214,190,110,0.15);
}

/* ── Divider ──────────────────────────── */
.divider { height: 1px; background: var(--gray-light); margin: 1.5rem 0; }

/* ── Containers ───────────────────────── */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-sm { max-width:  720px; margin: 0 auto; padding: 0 2rem; }

/* ── Sección ──────────────────────────── */
.section { padding: 3rem 0; }
.section-title { margin-bottom: 1.5rem; }
.section-title h2 { margin-bottom: .375rem; }
.section-title p  { font-size: .9375rem; }

/* ── Properties grid (legacy) ─────────── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Skeleton ─────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #F0F0F0 25%, #E8E8E8 50%, #F0F0F0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Footer ───────────────────────────── */
.footer {
  background: var(--dark);
  color: #717171;
  padding: 2.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer a { color: #717171; transition: color var(--transition); }
.footer a:hover { color: var(--white); }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__brand img { height: 30px; filter: brightness(0) invert(1); margin-bottom: .75rem; }
.footer__brand p   { font-size: .875rem; line-height: 1.65; color: #717171; }
.footer__col h4    { color: var(--white); font-size: .875rem; font-weight: 600; margin-bottom: 1rem; }
.footer__col ul li { margin-bottom: .625rem; font-size: .875rem; }
.footer__bottom {
  padding-top: 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8125rem; color: #717171;
}

/* ── Scroll to top ────────────────────── */
.scroll-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 99; border: none; cursor: pointer;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover   { transform: translateY(-3px); }

/* ── Toast ────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column; gap: .5rem;
}
.toast {
  background: var(--dark); color: var(--white);
  padding: .875rem 1.375rem; border-radius: 12px;
  font-size: .875rem; font-weight: 500;
  box-shadow: var(--shadow-xl);
  animation: toast-in .25s ease forwards;
  white-space: nowrap;
}
.toast.success { background: #008A05; }
.toast.error   { background: var(--primary); }
@keyframes toast-in {
  from { opacity:0; transform:translateY(10px) scale(.96); }
  to   { opacity:1; transform:translateY(0)   scale(1); }
}

/* ── Responsive ───────────────────────── */
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .navbar { padding: 0 1.25rem; height: 70px; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .properties-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1.25rem; }
}
