/* ============================================================
   GlobalStayRental — Design System
   Colores: Azul oscuro / Blanco / Dorado elegante
   ============================================================ */

:root {
  --navy: #0b1d33;
  --navy-light: #142c4d;
  --navy-lighter: #1e3a5f;
  --gold: #c9a24b;
  --gold-light: #e0c988;
  --white: #ffffff;
  --off-white: #f8f7f4;
  --gray-50: #f7f8fa;
  --gray-100: #eef0f3;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(11, 29, 51, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 29, 51, 0.1);
  --shadow-lg: 0 20px 60px rgba(11, 29, 51, 0.16);
  --transition: 0.25s ease;
  --max-width: 1240px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: var(--gray-50); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p { color: var(--gray-500); margin-top: 14px; font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-airbnb {
  background: #FF385C;
  color: var(--white);
  width: 100%;
}
.btn-airbnb:hover { background: #e0294e; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11, 29, 51, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}
.logo .logo-mark-img {
  width: 38px; height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}
.logo .logo-gold { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14.5px;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a.active::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: flex;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}
.lang-toggle button.active {
  background: var(--gold);
  color: var(--navy);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

.nav-mobile-panel { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 70px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; font-family: 'Inter', sans-serif; letter-spacing: 0.5px; }
.footer-grid ul li { margin-bottom: 10px; font-size: 14px; }
.footer-grid ul li a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 13px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 10px;
}
.footer-logo { font-family: 'Playfair Display', serif; color: var(--white); font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer-logo-icon { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(11,29,51,0.55), rgba(11,29,51,0.85)),
              url('https://a0.muscache.com/im/pictures/4f95e59f-9b72-4355-8e86-d54f597fccf5.jpg?im_w=1440') center/cover no-repeat;
  color: var(--white);
}
.hero-content { max-width: 720px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { font-size: 54px; color: var(--white); margin-bottom: 20px; }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,0.88); max-width: 560px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

.search-bar {
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: stretch;
  padding: 8px;
  max-width: 880px;
  gap: 4px;
  flex-wrap: wrap;
}
.search-field {
  flex: 1;
  min-width: 140px;
  padding: 12px 20px;
  border-right: 1px solid var(--gray-100);
}
.search-field:last-of-type { border-right: none; }
.search-field label {
  display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--gray-500); font-weight: 700; margin-bottom: 4px;
}
.search-field select, .search-field input {
  border: none; outline: none; font-size: 14px; color: var(--gray-900);
  width: 100%; font-family: inherit; background: transparent;
}
.search-bar .btn-gold { padding: 12px 30px; border-radius: 999px; align-self: center; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 46px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.stat { text-align: center; }
.stat .num { font-family: 'Playfair Display', serif; font-size: 34px; color: var(--navy); font-weight: 700; }
.stat .label { font-size: 13px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

/* ---------- Property cards ---------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.property-card .img-wrap { position: relative; height: 240px; overflow: hidden; }
.property-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.property-card:hover .img-wrap img { transform: scale(1.06); }
.badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  padding: 6px 14px; border-radius: 999px;
}
.badge-gold { background: var(--gold); color: var(--navy); }
.fav-btn {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; border: none;
}
.property-card .body { padding: 22px; }
.property-card .loc { font-size: 12.5px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.property-card h3 { font-size: 19px; margin-bottom: 8px; }
.property-card .meta { display: flex; gap: 14px; font-size: 13px; color: var(--gray-500); margin-bottom: 14px; flex-wrap: wrap; }
.property-card .rating { display: flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.property-card .price-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--gray-100); padding-top: 14px; margin-top: 4px; }
.property-card .price { font-size: 15px; font-weight: 700; color: var(--navy); }
.property-card .price small { font-weight: 400; color: var(--gray-500); }

/* ---------- Filters bar (listing pages) ---------- */
.filters-bar {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}
.filters-bar select, .filters-bar input {
  border: 1px solid var(--gray-300); border-radius: 999px;
  padding: 10px 18px; font-size: 13.5px; font-family: inherit;
  min-width: 140px;
}

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.benefit-card { text-align: center; padding: 34px 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-100); }
.benefit-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-lighter));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--gold-light); margin: 0 auto 18px;
}
.benefit-card h3 { font-size: 17px; margin-bottom: 8px; }
.benefit-card p { font-size: 14px; color: var(--gray-500); }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--gray-100); box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: var(--gold); margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p.quote { font-size: 14.5px; color: var(--gray-700); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--navy);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: 'Playfair Display', serif;
}
.testimonial-author .name { font-weight: 700; font-size: 14px; color: var(--navy); }
.testimonial-author .sub { font-size: 12.5px; color: var(--gray-500); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), #0e2440);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,162,75,0.25), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 30px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(180deg, rgba(11,29,51,0.75), rgba(11,29,51,0.9)), var(--navy);
  background-size: cover; background-position: center;
  color: var(--white); padding: 90px 0 60px; text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 42px; margin-bottom: 12px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Property detail ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 50px;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid .main-img { grid-row: 1 / 3; }
.gallery-more {
  position: absolute; bottom: 16px; right: 16px;
  background: var(--white); padding: 9px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700; box-shadow: var(--shadow-sm);
}
.gallery-wrap { position: relative; }

.detail-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 50px;
  align-items: start;
}
.detail-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--gray-100);
  flex-wrap: wrap; gap: 16px;
}
.detail-header h1 { font-size: 30px; margin-bottom: 8px; }
.detail-meta { display: flex; gap: 18px; color: var(--gray-500); font-size: 14px; flex-wrap: wrap; }
.detail-rating { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.detail-rating .stars { color: var(--gold); }

.quick-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.quick-fact {
  text-align: center; padding: 20px 10px; border-radius: var(--radius-sm);
  background: var(--gray-50); border: 1px solid var(--gray-100);
}
.quick-fact .icon { font-size: 22px; margin-bottom: 8px; }
.quick-fact .val { font-weight: 700; color: var(--navy); font-size: 15px; }
.quick-fact .lbl { font-size: 12px; color: var(--gray-500); }

.detail-section { margin-bottom: 44px; }
.detail-section h2 { font-size: 22px; margin-bottom: 18px; }
.detail-section p { color: var(--gray-700); margin-bottom: 12px; font-size: 15px; }

.amenities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.amenity-item { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--gray-700); }
.amenity-item .icon { width: 22px; text-align: center; color: var(--navy); }

.map-embed {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gray-100);
  height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.calendar-note {
  background: var(--gray-50); border: 1px dashed var(--gray-300);
  border-radius: var(--radius); padding: 24px; font-size: 14px; color: var(--gray-700);
  display: flex; gap: 16px; align-items: flex-start;
}
.calendar-note .icon { font-size: 26px; }

.review-item { border-bottom: 1px solid var(--gray-100); padding: 20px 0; }
.review-item:last-child { border-bottom: none; }
.review-item .stars { color: var(--gold); margin-bottom: 8px; }
.review-item .who { font-weight: 700; font-size: 14px; color: var(--navy); margin-bottom: 4px; }

.booking-card {
  position: sticky; top: 100px;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-md);
}
.booking-price { font-size: 26px; font-weight: 800; color: var(--navy); font-family: 'Playfair Display', serif; }
.booking-price small { font-size: 14px; font-weight: 400; color: var(--gray-500); }
.booking-card .rating-line { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--gray-500); margin: 10px 0 20px; }
.booking-card hr { border: none; border-top: 1px solid var(--gray-100); margin: 20px 0; }
.booking-card .row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--gray-700); margin-bottom: 10px; }
.share-buttons { display: flex; gap: 10px; margin-top: 16px; }
.share-buttons a {
  flex: 1; text-align: center; padding: 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--gray-300); font-size: 13px; font-weight: 600; color: var(--gray-700);
}
.share-buttons a:hover { border-color: var(--navy); color: var(--navy); }

.host-card { display: flex; gap: 16px; align-items: center; padding: 22px; background: var(--gray-50); border-radius: var(--radius); }
.host-card img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.host-card .name { font-weight: 700; color: var(--navy); }
.host-badge { display: inline-block; background: var(--navy); color: var(--gold-light); font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 8px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 14.5px; outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }
.contact-info-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 32px; margin-bottom: 24px; }
.contact-info-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-row .icon { font-size: 20px; color: var(--gold-light); }
.contact-info-row .lbl { font-size: 12px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.5px; }
.contact-info-row .val { font-size: 15px; font-weight: 600; }
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 400;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: white; display: flex; align-items: center; justify-content: center;
  font-size: 26px; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.value-card { padding: 28px; border-radius: var(--radius); background: var(--gray-50); border: 1px solid var(--gray-100); }

/* ---------- Admin teaser ---------- */
.admin-teaser {
  display: flex; align-items: center; gap: 30px; background: var(--gray-50);
  border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 34px;
}
.admin-teaser .icon-block {
  width: 70px; height: 70px; border-radius: var(--radius-sm); background: var(--navy);
  color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-actions .lang-toggle { display: none; }
  .menu-toggle { display: flex; }
  .hero h1 { font-size: 36px; }
  .search-bar { flex-direction: column; border-radius: var(--radius); }
  .search-field { border-right: none; border-bottom: 1px solid var(--gray-100); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .property-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 200px); height: auto; }
  .gallery-grid .main-img { grid-row: auto; }
  .quick-facts { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .admin-teaser { flex-direction: column; text-align: center; }

  .nav-mobile-panel {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--navy); z-index: 499;
    padding: 30px 24px; display: none; flex-direction: column; gap: 22px;
  }
  .nav-mobile-panel.open { display: flex; }
  .nav-mobile-panel a { color: var(--white); font-size: 17px; }
  .nav-mobile-panel .lang-toggle { align-self: flex-start; }
}
