/*
Theme Name: Quieroloma Premium
Theme URI: https://quieroloma.com
Author: Quieroloma Team
Author URI: https://quieroloma.com
Description: Plantilla turística ultra-premium para el directorio de República Dominicana con diseño moderno, mapas interactivos, integración nativa de Directorist, filtros dominicanos y conversión directa por WhatsApp.
Version: 1.0.1
Text Domain: quieroloma-theme
*/

:root {
  --ql-primary: #0d9488;
  --ql-primary-dark: #0f766e;
  --ql-primary-light: #2dd4bf;
  --ql-secondary: #f59e0b;
  --ql-accent: #0284c7;
  --ql-coral: #f43f5e;
  --ql-emerald: #10b981;
  --ql-navy: #0f172a;
  --ql-slate: #1e293b;
  --ql-gray-50: #f8fafc;
  --ql-gray-100: #f1f5f9;
  --ql-gray-200: #e2e8f0;
  --ql-gray-300: #cbd5e1;
  --ql-gray-400: #94a3b8;
  --ql-gray-600: #475569;
  --ql-gray-800: #1e293b;
  --ql-gray-900: #0f172a;
  --ql-radius-sm: 8px;
  --ql-radius-md: 14px;
  --ql-radius-lg: 20px;
  --ql-radius-xl: 28px;
  --ql-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --ql-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --ql-shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --ql-shadow-glow: 0 0 30px rgba(13, 148, 136, 0.25);
  --ql-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--ql-gray-50);
  color: var(--ql-gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--ql-navy);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--ql-primary);
  text-decoration: none;
  transition: var(--ql-transition);
}

a:hover {
  color: var(--ql-primary-dark);
}

.ql-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVBAR ─────────────────────────────────────────── */
.ql-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ql-gray-200);
  box-shadow: var(--ql-shadow-sm);
}

.ql-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.ql-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ql-navy);
  letter-spacing: -0.5px;
}
.ql-system-logo { display:block; width:clamp(150px,18vw,220px); height:auto; max-height:52px; object-fit:contain; object-position:left center; }
.ql-system-logo-footer { width:190px; filter:drop-shadow(0 2px 8px rgba(0,0,0,.18)); }

.ql-brand-badge {
  background: linear-gradient(135deg, #0d9488, #059669);
  color: white;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ql-nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.ql-nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ql-gray-600);
}

.ql-nav-link:hover, .ql-nav-link.active {
  color: var(--ql-primary);
}

.ql-nav-actions { display:flex; align-items:center; gap:12px; }
.ql-mobile-only { display:none; }

.ql-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: white !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--ql-radius-md);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--ql-transition);
}

.ql-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.45);
}

.ql-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: white !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: var(--ql-radius-md);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  border: none;
  cursor: pointer;
  transition: var(--ql-transition);
}

.ql-btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* ── HERO BANNER ─────────────────────────────────────── */
.ql-hero {
  position: relative;
  background: linear-gradient(135deg, #0a192f 0%, #0f766e 50%, #0d9488 100%);
  padding: 80px 0 100px;
  color: white;
  overflow: hidden;
}

.ql-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(45, 212, 191, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.ql-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.ql-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fef08a;
  margin-bottom: 20px;
}

.ql-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.ql-hero-subtitle {
  font-size: 1.2rem;
  color: #ccfbf1;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* ── SEARCH BOX ──────────────────────────────────────── */
.ql-search-box {
  background: white;
  border-radius: var(--ql-radius-xl);
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ql-search-row-main {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr auto;
  gap: 12px;
  align-items: center;
}

.ql-input-group {
  display: flex;
  align-items: center;
  background: var(--ql-gray-100);
  border: 1px solid var(--ql-gray-200);
  border-radius: var(--ql-radius-md);
  padding: 10px 14px;
  gap: 10px;
}

.ql-input-group i {
  color: var(--ql-gray-400);
  font-size: 1.1rem;
}

.ql-input-group input,
.ql-input-group select {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ql-navy);
  outline: none;
}

.ql-search-filters-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--ql-gray-200);
}

.ql-amenity-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ql-amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ql-gray-100);
  border: 1px solid var(--ql-gray-200);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ql-gray-600);
  cursor: pointer;
  user-select: none;
  transition: var(--ql-transition);
}

.ql-amenity-chip input {
  display: none;
}

.ql-amenity-chip.active,
.ql-amenity-chip:has(input:checked) {
  background: #ccfbf1;
  border-color: var(--ql-primary);
  color: var(--ql-primary-dark);
}

/* ── CATEGORIES BAR ──────────────────────────────────── */
.ql-categories-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 30px 0 10px;
  scrollbar-width: none;
}

.ql-cat-card {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--ql-gray-200);
  padding: 12px 20px;
  border-radius: var(--ql-radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ql-navy);
  box-shadow: var(--ql-shadow-sm);
  transition: var(--ql-transition);
  cursor: pointer;
}

.ql-cat-card:hover, .ql-cat-card.active {
  background: var(--ql-primary);
  color: white;
  border-color: var(--ql-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
}

/* ── LISTINGS GRID ───────────────────────────────────── */
.ql-section {
  padding: 60px 0;
}

.ql-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.ql-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ql-navy);
}

.ql-section-subtitle {
  color: var(--ql-gray-600);
  font-size: 1rem;
  margin-top: 4px;
}

.ql-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

/* ── LISTING CARD ────────────────────────────────────── */
.ql-card {
  background: white;
  border-radius: var(--ql-radius-lg);
  overflow: hidden;
  box-shadow: var(--ql-shadow-sm);
  border: 1px solid var(--ql-gray-200);
  transition: var(--ql-transition);
  display: flex;
  flex-direction: column;
}

.ql-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ql-shadow-lg);
  border-color: var(--ql-gray-300);
}

.ql-card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #cbd5e1;
}

.ql-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ql-card:hover .ql-card-img {
  transform: scale(1.06);
}

.ql-card-badges-top {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}

.ql-card-price {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: white;
  padding: 6px 12px;
  border-radius: var(--ql-radius-sm);
  font-weight: 800;
  font-size: 0.92rem;
  z-index: 2;
}

.ql-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ql-card-cat-loc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ql-primary);
  margin-bottom: 8px;
}

.ql-card-loc {
  color: var(--ql-gray-400);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ql-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.35;
}

.ql-card-title a {
  color: var(--ql-navy);
}

.ql-card-title a:hover {
  color: var(--ql-primary);
}

.ql-card-amenities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.ql-card-badge {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--ql-gray-100);
  color: var(--ql-gray-600);
}

.ql-badge-verified {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
}

.ql-badge-featured {
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
}

.ql-card-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ql-gray-100);
}

/* ── MAP CONTAINER ───────────────────────────────────── */
#ql-interactive-map {
  height: 480px;
  width: 100%;
  border-radius: var(--ql-radius-lg);
  box-shadow: var(--ql-shadow-md);
  border: 1px solid var(--ql-gray-200);
  z-index: 1;
}

/* ── SINGLE LISTING PAGE ─────────────────────────────── */
.ql-single-hero {
  position: relative;
  background: var(--ql-navy);
  color: white;
  padding: 40px 0 60px;
}

.ql-single-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.ql-single-card {
  background: white;
  border-radius: var(--ql-radius-lg);
  padding: 32px;
  box-shadow: var(--ql-shadow-md);
  border: 1px solid var(--ql-gray-200);
  margin-bottom: 30px;
}

.ql-booking-widget {
  background: white;
  border-radius: var(--ql-radius-lg);
  padding: 28px;
  box-shadow: var(--ql-shadow-lg);
  border: 2px solid var(--ql-primary);
  position: sticky;
  top: 100px;
}

/* ── FOOTER ─────────────────────────────────────────── */
.ql-footer {
  background: var(--ql-navy);
  color: #cbd5e1;
  padding: 60px 0 30px;
  margin-top: 80px;
}

.ql-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.ql-footer-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.ql-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ql-footer-links a {
  color: #94a3b8;
}

.ql-footer-links a:hover {
  color: white;
}

.ql-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #64748b;
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 992px) {
  .ql-hero-title { font-size: 2.4rem; }
  .ql-search-row-main { grid-template-columns: 1fr; }
  .ql-single-layout { grid-template-columns: 1fr; }
  .ql-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .ql-container { padding-left: 16px; padding-right: 16px; }
  .ql-nav-inner { height: 64px; }
  .ql-system-logo { width: 132px; max-height: 42px; }
  .ql-nav-actions { display: none; }
  .ql-hero-title { font-size: 1.8rem; }
  .ql-grid { grid-template-columns: 1fr; }
  .ql-single-hero { padding: 28px 0 48px; }
  .ql-single-card { padding: 20px 16px; border-radius: 14px; }
  .ql-booking-widget { position: static; padding: 20px 16px; }
  body.ql-nav-open { overflow: hidden; }
  .ql-nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px; background: var(--ql-gray-100); cursor: pointer; z-index: 1002; }
  .ql-nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ql-navy); }
  .ql-nav-backdrop { position: fixed; inset: 0; z-index: 1000; background: rgba(15,23,42,.55); }
  .ql-nav-backdrop[hidden] { display: none; }
  .ql-nav-menu { display: flex; position: fixed; z-index: 1001; top: 0; right: 0; bottom: 0; width: min(84vw, 340px); padding: calc(5rem + env(safe-area-inset-top)) 1.25rem 2rem; flex-direction: column; gap: .5rem; background: #fff; box-shadow: -12px 0 35px rgba(15,23,42,.2); transform: translateX(105%); transition: transform .2s ease; overflow-y: auto; }
  .ql-nav-menu.is-open { transform: translateX(0); }
  .ql-nav-menu .ql-mobile-only { display:list-item; }
  .ql-nav-link { display: flex; align-items: center; min-height: 44px; padding: .5rem; }
  .ql-footer-grid { grid-template-columns: 1fr; }
}

@media (min-width: 641px) { .ql-nav-toggle, .ql-nav-backdrop { display: none; } }

:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
