/* pleasy hub light theme */
:root {
  --primary: #D84020;
  --bg: #f7f7f9;
  --surface: #ffffff;
  --muted: #666a73;
  --text: #0b0b0d;
  --danger: #ef4444;
  --ring: var(--primary);
  --border: #e6e7eb;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
}
.nav .logo { height: 32px; display:block; }
.brand { font-weight: 800; letter-spacing:.2px; margin-left:10px; font-size: 18px; }
.nav-left { display:flex; align-items:center; gap:10px; }
.nav-right { display:flex; gap:10px; }

.btn {
  appearance: none; border: 1px solid transparent; padding: 10px 14px;
  border-radius: 12px; font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .05s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--primary); color: white; }
.btn.primary:hover { opacity: .93; }
.btn.ghost { background: white; border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: #d4d6db; }
.btn.danger { background: var(--danger); color: white; }
.btn.sm { padding: 6px 10px; border-radius:10px; font-size: 14px; }

.hero #map { width: 100%; height: 420px; background:#e9eaee; }

.search-row {
  display:flex; justify-content:center; padding: 16px 16px 8px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(216,64,32,0.06), transparent);
}
.search-inner {
  width:min(780px, 95vw); display:grid; grid-template-columns: 1fr auto;
  gap: 8px; align-items:center;
}
.search-inner input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; color: var(--text); outline: none;
}
.search-inner input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring), transparent 70%); }

.columns { display:grid; grid-template-columns: 280px 1fr 280px; gap: 16px; padding: 16px; }
.col.side { position: sticky; top: 68px; align-self: start; height: fit-content; }
.ad-card {
  background: var(--surface); border:1px dashed #cfd2d9; border-radius: 14px; padding: 20px; text-align:center; color: var(--muted); margin-bottom: 16px;
}
.col.center { min-height: 60vh; }
.grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1200px) { .columns { grid-template-columns: 240px 1fr 240px; } }
@media (max-width: 992px) { .columns { grid-template-columns: 1fr; } .col.side { position: relative; top: 0; } }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 580px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--surface); border:1px solid var(--border); border-radius: 16px; overflow: clip; }
.card .thumb { position: relative; aspect-ratio: 16 / 9; background: #f2f3f6; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display:block; }
.card .photo-count {
  position: absolute; right: 8px; bottom: 8px; background: rgba(11,11,13,0.75);
  color: #fff; padding: 6px 10px; border-radius: 999px; font-weight: 600; font-size: 12px;
}
.card-body { padding: 16px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 6px 0; }
.muted { color: var(--muted); }

.modal::backdrop { background: rgba(0,0,0,.35); }
.modal { border:none; padding:0; background: transparent; }
.modal-card {
  width: min(520px, 92vw); background: #fff; border: 1px solid var(--border);
  border-radius: 16px; padding: 20px;
}
.modal-card h2 { margin: 0 0 12px; }
.modal-card label { display:block; margin-top:10px; font-weight:600; }
.modal-card input {
  width: 100%; padding: 12px 14px; margin-top:6px;
  border-radius: 12px; border:1px solid var(--border); background:#fff; color:var(--text); outline:none;
}
.modal-card input:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring), transparent 70%); }
.modal-actions { display:flex; gap:10px; justify-content:flex-end; margin-top: 16px; flex-wrap: wrap; }
.modal-divider { margin: 10px 0; border: 0; border-top: 1px solid var(--border); }
.modal-row { display:flex; justify-content:center; margin-top: 8px; }
.modal-row a { width: 100%; display:flex; justify-content:center; }

#lightboxOverlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
#lightboxOverlay.active { display: flex; }
.lb-content { position: relative; max-width: 100%; max-height: 100%; width: min(960px, 100%); }
.lb-img { width: 100%; height: auto; display:block; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.lb-controls {
  position: absolute; top: 50%; transform: translateY(-50%); width: 100%;
  display:flex; justify-content: space-between; pointer-events: none;
}
.lb-btn {
  pointer-events: all; border: none; background: rgba(255,255,255,0.2); color: #fff;
  font-size: 18px; padding: 10px 14px; border-radius: 10px; cursor: pointer;
}
.lb-close {
  position: absolute; top: 8px; right: 8px; border: none; background: rgba(0,0,0,0.5); color: #fff;
  font-size: 20px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
}

.row.two { display:grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .row.two { grid-template-columns: 1fr; } }

/* --- Add Review: star rating styles --- */
.stars { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.star { font-size: 24px; line-height: 1; color: #c4c7cf; transition: transform .05s ease; user-select: none; }
.star.filled { color: var(--primary); }
.star:hover { transform: scale(1.07); }
.inline-actions { display:flex; gap:8px; align-items:center; flex-wrap: wrap; }
.hidden { display:none !important; }

/* === Patch: search button + Add Review form tidy === */
.search-inner { grid-template-columns: 1fr auto auto; gap: 8px; }
.search-inner .btn.sm { height: 44px; }
.modal-card textarea,
.modal-card select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; color: var(--text); outline: none;
}
.modal-card textarea:focus,
.modal-card select:focus { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring), transparent 70%); }
.modal-card .seg { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.modal-card .mt { margin-top: 10px; }
.form-row { padding: 10px 0; }
.stars { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.star { font-size: 24px; line-height: 1; color: #c4c7cf; transition: transform .05s ease; user-select: none; }
.star.filled { color: var(--primary); }
.star:hover { transform: scale(1.07); }
