/* ============================================================
   GUEST GUIDE – Styles  (Shared + Guest page)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --sky:      #0ea5e9;
  --sky-d:    #0284c7;
  --sky-l:    #e0f2fe;
  --sky-glow: rgba(14,165,233,.28);

  --green:    #22c55e;
  --green-bg: #dcfce7;
  --red:      #ef4444;
  --red-bg:   #fff1f2;
  --red-border:#fecdd3;
  --amber:    #f59e0b;
  --amber-bg: #fef3c7;
  --wa:       #25d366;
  --wa-d:     #128c7e;
  --maps:     #4285f4;

  --bg:    #f2f2f7;
  --white: #ffffff;
  --ink:   #111827;
  --ink-2: #374151;
  --ink-3: #6b7280;
  --ink-4: #d1d5db;
  --ink-5: #f3f4f6;
  --ink-6: #e5e7eb;

  --sh-xs: 0 1px 4px rgba(0,0,0,.06);
  --sh-sm: 0 2px 14px rgba(0,0,0,.08);
  --sh-md: 0 6px 28px rgba(0,0,0,.11);
  --sh-lg: 0 20px 60px rgba(0,0,0,.18);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-f:  9999px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --t: .17s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; -webkit-text-size-adjust: 100%; }
body  { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.5; }
img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
button{ cursor: pointer; font-family: inherit; border: none; background: none; }
input,textarea,select { font-family: inherit; }

/* ── Utility ────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Lucide Icon Sizing ──────────────────────────────────────── */
.lucide    { width: 20px; height: 20px; stroke-width: 1.75; vertical-align: middle; flex-shrink: 0; }
.lucide-sm { width: 16px; height: 16px; }
.lucide-lg { width: 24px; height: 24px; }

/* ── Buttons (shared) ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 9px 18px; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 600; line-height: 1.25;
  transition: all var(--t); white-space: nowrap;
  text-decoration: none; border: none; cursor: pointer;
}
.btn:active { transform: scale(.96); }
.btn-primary  { background: var(--sky);   color: #fff; }
.btn-primary:hover { background: var(--sky-d); }
.btn-secondary{ background: var(--sky-l); color: var(--sky-d); }
.btn-ghost    { background: transparent;  color: var(--ink-3); }
.btn-ghost:hover { background: var(--ink-5); }
.btn-danger   { background: var(--red);   color: #fff; }
.btn-whatsapp { background: var(--wa);    color: #fff; }
.btn-whatsapp:hover { background: var(--wa-d); }
.btn-maps     { background: var(--maps);  color: #fff; }
.btn-maps:hover { background: #3367d6; }
.btn-call     { background: var(--white); color: var(--sky-d); border: 1.5px solid var(--sky); }
.btn-call:hover { background: var(--sky-l); }
.btn-sm  { padding: 6px 12px; font-size: .8125rem; }
.btn-lg  { padding: 12px 24px; font-size: 1rem; }
.btn-full{ width: 100%; justify-content: center; }
.btn-pill{ border-radius: var(--r-f); }

/* ── Badges (shared) ────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-f);
  font-size: .72rem; font-weight: 700; line-height: 1.4;
}
.badge-primary     { background: var(--sky-l);    color: var(--sky-d); }
.badge-success     { background: var(--green-bg); color: #15803d; }
.badge-emergency   { background: var(--red-bg);   color: #b91c1c; }
.badge-host        { background: var(--sky-l);    color: var(--sky-d); }
.badge-maintenance { background: var(--amber-bg); color: #92400e; }
.badge-other       { background: var(--ink-5);    color: var(--ink-3); }

/* ── Card (shared) ──────────────────────────────────────────── */
.card { background: var(--white); border-radius: var(--r); box-shadow: var(--sh-xs); overflow: hidden; }

/* ── Loading ────────────────────────────────────────────────── */
#loading {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); z-index: 999;
}
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--ink-4); border-top-color: var(--sky);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Not Found ──────────────────────────────────────────────── */
#not-found {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center; background: var(--white);
}
#not-found .icon { font-size: 3.5rem; margin-bottom: 14px; }
#not-found h1    { font-size: 1.375rem; font-weight: 700; margin-bottom: 8px; }
#not-found p     { color: var(--ink-3); margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════════
   GUEST PAGE
═══════════════════════════════════════════════════════════ */

/* ── Header ─────────────────────────────────────────────────── */
.property-header {
  position: relative;
  height: 52vh; min-height: 260px; max-height: 400px;
  overflow: hidden;
}
.cover-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform 8s ease;
}
.property-header:hover .cover-bg { transform: scale(1); }
.header-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.06) 0%, rgba(0,0,0,.0) 30%, rgba(0,0,0,.72) 100%);
}
.header-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 20px 26px;
}
.welcome-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.28); color: #fff;
  padding: 4px 12px; border-radius: var(--r-f);
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 10px;
}
.property-name {
  font-size: 2rem; font-weight: 800; color: #fff;
  line-height: 1.12; letter-spacing: -.03em;
  text-shadow: 0 2px 16px rgba(0,0,0,.4); margin-bottom: 5px;
}
.property-address {
  font-size: .85rem; color: rgba(255,255,255,.78);
  display: flex; align-items: center; gap: 4px; font-weight: 500;
}

/* ── Section Cards ────────────────────────────────────────────  */
.guest-main { padding: 20px 16px 40px; }

.section-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sec-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 20px 16px 14px;
  display: flex; flex-direction: column; gap: 5px;
  box-shadow: var(--sh-sm);
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t);
  -webkit-tap-highlight-color: transparent;
}
.sec-card:hover  { transform: translateY(-2px); box-shadow: var(--sh-md); }
.sec-card:active { transform: scale(.97); box-shadow: var(--sh-xs); }
.sec-card-icon   { color: var(--sky); margin-bottom: 4px; }
.sec-card-label  { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.sec-card-sub    { font-size: .78rem; color: var(--ink-3); line-height: 1.4; }
.sec-card-arrow  { color: var(--ink-4); margin-top: 8px; align-self: flex-end; }

/* ── Guest Modal (bottom-sheet) ───────────────────────────────── */
.guest-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 150;
  display: flex; align-items: flex-end;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.guest-modal-overlay.hidden { display: none !important; }

.modal-sheet {
  background: var(--white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  width: 100%;
  max-height: 92dvh;
  display: flex; flex-direction: column;
  animation: sheetUp .3s cubic-bezier(.22,1,.36,1);
}
@keyframes sheetUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-handle {
  width: 36px; height: 4px;
  background: var(--ink-4); border-radius: var(--r-f);
  margin: 10px auto 0; flex-shrink: 0;
}
.modal-header-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 14px; border-bottom: 1px solid var(--ink-6); flex-shrink: 0;
}
.modal-title-row { display: flex; align-items: center; gap: 10px; }
.modal-title-icon .lucide,
.modal-title-icon .lucide-lg { color: var(--sky); }
.modal-title-text { font-size: 1.0625rem; font-weight: 800; color: var(--ink); }
.modal-close-btn {
  background: var(--ink-5); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3); transition: all var(--t); flex-shrink: 0;
}
.modal-close-btn:hover  { background: var(--ink-4); color: var(--ink); }
.modal-close-btn:active { transform: scale(.9); }
.modal-scroll-body { overflow-y: auto; flex: 1; padding: 20px 16px 36px; }

@media (min-width: 600px) {
  .guest-modal-overlay { align-items: center; padding: 24px; }
  .modal-sheet { border-radius: var(--r-xl); max-width: 540px; width: 100%; margin: 0 auto; }
}

/* ── Empty state (inside modal) ──────────────────────────────── */
.empty-section {
  color: var(--ink-3); padding: 40px 0;
  text-align: center; font-size: .9rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section label ───────────────────────────────────────────── */
.sec-subtitle { font-size: .85rem; color: var(--ink-3); margin-top: -4px; }

/* ── Wi-Fi Card ─────────────────────────────────────────────── */
.wifi-card {
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
  border-radius: var(--r-xl); padding: 22px 20px 18px;
  box-shadow: 0 8px 28px var(--sky-glow); color: #fff;
  margin-bottom: 12px;
}
.wifi-top {
  display: flex; align-items: center; gap: 6px;
  font-size: .65rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; opacity: .7; margin-bottom: 18px;
}
.wifi-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 18px;
}
.wifi-label { font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .65; margin-bottom: 4px; }
.wifi-val   { font-size: 1rem; font-weight: 700; word-break: break-all; }
.wifi-val.mono { font-family: 'Courier New', monospace; font-size: .95rem; letter-spacing: .03em; }
.wifi-copy-btn {
  width: 100%; padding: 11px;
  background: rgba(255,255,255,.17);
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: var(--r-sm); color: #fff;
  font-size: .875rem; font-weight: 700; cursor: pointer;
  transition: all var(--t); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.wifi-copy-btn:hover  { background: rgba(255,255,255,.26); }
.wifi-copy-btn:active { transform: scale(.98); }
.wifi-copy-btn.copied { background: rgba(255,255,255,.95); color: var(--sky-d); border-color: transparent; }

/* ── Check-in / out ─────────────────────────────────────────── */
.times-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.time-box {
  background: var(--white); border-radius: var(--r);
  padding: 18px 14px; text-align: center; box-shadow: var(--sh-xs);
}
.time-label {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  font-size: .62rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .09em; color: var(--ink-3); margin-bottom: 7px;
}
.time-val   { font-size: 1.5rem; font-weight: 800; color: var(--ink); line-height: 1; }

/* ── Accordion ──────────────────────────────────────────────── */
.accordion { background: var(--white); border-radius: var(--r); box-shadow: var(--sh-xs); overflow: hidden; }
.accordion-item + .accordion-item { border-top: 1px solid var(--ink-5); }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px; background: none; border: none;
  text-align: left; font-size: .9375rem; font-weight: 600; color: var(--ink);
  gap: 12px; transition: background var(--t);
}
.accordion-trigger:hover { background: var(--ink-5); }
.accordion-trigger.open  { color: var(--sky-d); }
.accordion-chevron { color: var(--ink-3); transition: transform var(--t); flex-shrink: 0; }
.accordion-trigger.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  display: none; padding: 2px 16px 16px;
  font-size: .875rem; color: var(--ink-2); line-height: 1.75;
}
.accordion-body.open { display: block; }

/* ═══════════════════════════════════════════════════════════
   CONTACTS
═══════════════════════════════════════════════════════════ */

/* Emergency section */
.emerg-section {
  background: var(--red-bg);
  border: 1.5px solid var(--red-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 8px;
}
.emerg-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px 8px;
  font-size: .65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--red);
}
.emerg-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}
.emerg-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  text-decoration: none; color: inherit;
  transition: background var(--t);
}
.emerg-row + .emerg-row { border-top: 1px solid var(--red-border); }
.emerg-row:hover  { background: rgba(239,68,68,.07); }
.emerg-row:active { background: rgba(239,68,68,.12); }
.emerg-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.emerg-info { flex: 1; min-width: 0; }
.emerg-name { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.emerg-sub  { font-size: .78rem; color: var(--ink-3); margin-top: 1px; }
.emerg-chip {
  display: flex; align-items: center; gap: 3px;
  font-size: .75rem; font-weight: 700; color: var(--red);
  background: rgba(239,68,68,.1);
  padding: 4px 10px; border-radius: var(--r-f);
  white-space: nowrap; flex-shrink: 0;
}

/* Normal contact sections */
.contact-section { margin-top: 4px; }
.contact-section-label {
  display: flex; align-items: center; gap: 5px;
  font-size: .63rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); padding: 8px 0 4px;
}
.contact-card {
  background: var(--white); border-radius: var(--r);
  box-shadow: var(--sh-xs); overflow: hidden;
}
.contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; transition: background var(--t);
}
.contact-row + .contact-row { border-top: 1px solid var(--ink-5); }
.contact-row:hover { background: var(--ink-5); }
.c-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.c-avatar.host        { background: var(--sky-l);    color: var(--sky-d); }
.c-avatar.maintenance { background: var(--amber-bg); color: #92400e; }
.c-avatar.other       { background: var(--ink-5);    color: var(--ink-3); }
.c-info  { flex: 1; min-width: 0; }
.c-name  { font-size: .9375rem; font-weight: 700; color: var(--ink); }
.c-desc  { font-size: .78rem; color: var(--ink-3); margin-top: 1px; }
.c-btns  { display: flex; gap: 7px; flex-shrink: 0; }
.c-icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t); text-decoration: none; flex-shrink: 0;
}
.c-icon-btn:active { transform: scale(.9); }
.c-icon-btn.call { background: #dbeafe; color: var(--sky-d); }
.c-icon-btn.call:hover { background: #bfdbfe; }
.c-icon-btn.wa   { background: #dcfce7; color: var(--wa-d); }
.c-icon-btn.wa:hover   { background: #bbf7d0; }

/* ═══════════════════════════════════════════════════════════
   NEARBY
═══════════════════════════════════════════════════════════ */

.cat-tabs {
  display: flex; gap: 7px; overflow-x: auto;
  scrollbar-width: none; padding: 2px 0 12px;
}
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 14px; border-radius: var(--r-f);
  background: var(--white); border: 1.5px solid var(--ink-4);
  font-size: .8125rem; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; flex-shrink: 0;
  transition: all var(--t); cursor: pointer;
}
.cat-tab:hover  { border-color: var(--sky); color: var(--sky-d); }
.cat-tab.active { background: var(--sky); border-color: var(--sky); color: #fff; }

.rec-grid { display: flex; flex-direction: column; gap: 8px; }

.rec-card {
  background: var(--white); border-radius: var(--r);
  box-shadow: var(--sh-xs); overflow: hidden;
}
.rec-card-inner { display: flex; gap: 12px; padding: 14px; }

.rec-thumb {
  width: 66px; height: 66px; border-radius: var(--r-sm);
  flex-shrink: 0; overflow: hidden;
  background: var(--ink-5);
  display: flex; align-items: center; justify-content: center;
}
.rec-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-thumb-icon { color: var(--ink-3); }

.rec-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rec-top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rec-name { font-size: .9375rem; font-weight: 700; color: var(--ink); }

.dist-pill {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .65rem; font-weight: 700; white-space: nowrap; flex-shrink: 0;
  padding: 2px 8px; border-radius: var(--r-f);
  background: var(--sky-l); color: var(--sky-d);
}
.rec-desc { font-size: .8125rem; color: var(--ink-3); line-height: 1.5; }
.rec-actions { display: flex; gap: 6px; margin-top: 6px; }
.rec-icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t); text-decoration: none; flex-shrink: 0;
}
.rec-icon-btn:active { transform: scale(.9); }
.rec-icon-btn.maps { background: #dbeafe; color: var(--maps); }
.rec-icon-btn.maps:hover { background: #bfdbfe; }
.rec-icon-btn.wa   { background: #dcfce7; color: var(--wa-d); }
.rec-icon-btn.wa:hover   { background: #bbf7d0; }
.rec-icon-btn.call { background: var(--ink-5); color: var(--ink-2); }
.rec-icon-btn.call:hover { background: var(--ink-6); }

/* ═══════════════════════════════════════════════════════════
   ACTIVITIES
═══════════════════════════════════════════════════════════ */

.act-list { display: flex; flex-direction: column; gap: 16px; }

.act-card {
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}

/* Image with overlay title */
.act-visual {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--ink-5);
  overflow: hidden;
}
.act-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s ease;
}
.act-card:hover .act-img { transform: scale(1.03); }
.act-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--sky-d);
  background: linear-gradient(135deg, var(--sky-l), #bae6fd);
}
.act-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,.82) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 16px;
}
.act-price-label { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.72); margin-bottom: 4px; letter-spacing: .02em; }
.act-title       { font-size: 1.125rem; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.2; text-shadow: 0 1px 6px rgba(0,0,0,.3); }

/* Card footer */
.act-foot { padding: 14px 16px 16px; }
.act-desc { font-size: .875rem; color: var(--ink-3); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.act-btns { display: flex; gap: 8px; margin-top: 12px; }
.act-btns .btn { flex: 1; border-radius: var(--r-f); font-size: .875rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (min-width: 480px) {
  .property-name { font-size: 2.375rem; }
  .act-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (min-width: 720px) {
  .property-header { height: 56vh; }
  .guest-main { max-width: 680px; margin: 0 auto; padding: 28px 24px 48px; }
  .section-cards { gap: 16px; }
  .sec-card { padding: 24px 20px 18px; }
}
