
:root{--red:#E30A17;--bg:#fff;--text:#222;--muted:#444;--max:1040px;--radius:16px}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--text);background:var(--bg);line-height:1.5}
a{color:var(--red);text-decoration:none}
.wrap{max-width:var(--max);margin:0 auto;padding:0 16px}
header{background:var(--bg);position:sticky;top:0;z-index:10;border-bottom:1px solid #eee}
header .bar{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{display:flex;gap:10px;align-items:center;font-weight:700}
.logo-badge{width:36px;height:36px;border-radius:6px;display:block;object-fit:cover}
nav a{margin-left:16px;font-weight:600}
.hero{background:#fff}
.hero-inner{display:grid;gap:18px;align-items:center;padding:64px 0;justify-items:center;text-align:center}
.hero h1{font-size:clamp(24px,4.5vw,36px);margin:0 0 6px}
.hero p{color:var(--muted);margin:0 0 10px;max-width:720px}
.cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px;justify-content:center}
.btn{display:inline-block;padding:12px 18px;border-radius:999px;border:2px solid var(--red);font-weight:700}
.btn-primary{background:var(--red);color:#fff}
.section{padding:56px 0;border-top:1px solid #f2f2f2}
.section h2{font-size:clamp(22px,4vw,32px);margin:0 0 12px}
.muted{color:var(--muted)}
form{display:grid;gap:12px;max-width:720px}
input,select,textarea{width:100%;padding:12px 14px;border:1px solid #ddd;border-radius:10px;font:inherit}
input[type=file]{padding:10px}
.note{font-size:14px;color:#666}
.card{border:1px solid #eee;border-radius:var(--radius);padding:16px;background:#fff}
.grid{display:grid;gap:10px;grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
.grid img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px}
.map{border:2px solid #ddd;border-radius:16px;height:380px;display:grid;place-items:center;color:#666}
details{border:1px solid #eee;border-radius:12px;padding:12px;background:#fff}
details+details{margin-top:10px}
summary{cursor:pointer;font-weight:700}
footer{padding:28px 0;border-top:1px solid #eee;color:#666;font-size:14px}
.alert{padding:14px 16px;border-radius:12px;background:#fff5f5;border:1px solid #ffd6d6;color:#7a1a1a;margin:12px 0}
.success{padding:14px 16px;border-radius:12px;background:#f0fff4;border:1px solid #c6f6d5;color:#22543d;margin:12px 0}

#city-suggestion{font-size:14px;color:#b00020;margin-top:-6px}
#city-suggestion .hint{cursor:pointer;text-decoration:underline}

/* Mobile tweaks */
@media (max-width: 640px){
  header .bar{flex-wrap:wrap;justify-content:center;gap:8px;height:auto;padding:8px 0}
  nav a{margin-left:12px}
}

/* Gallery hover overlay */
.photo{position:relative;border-radius:12px;overflow:hidden}
.photo .overlay{position:absolute;inset:auto 0 0 0;background:linear-gradient(transparent, rgba(0,0,0,.7));color:#fff;padding:10px 12px;opacity:0;transition:opacity .2s ease}
.photo:hover .overlay{opacity:1}
.photo .meta{display:flex;flex-direction:column;font-size:13px;line-height:1.2}
.photo .meta strong{font-size:14px}


/* Center common text and add comfy mobile padding */
.section h2, .section p, .muted, footer .wrap { text-align:center }
@media (max-width: 640px){
  .hero-inner{ padding-left:20px; padding-right:20px }
  .hero p{ padding-left:10px; padding-right:10px }
}



/* Final hero text tuning */
.hero p.muted {
  font-size: clamp(16px, 2.6vw, 19px);
  line-height: 1.6;
}
@media (max-width: 640px){
  .hero-inner {
    padding-left: 28px;
    padding-right: 28px;
  }
  .hero p.muted {
    padding-left: 16px;
    padding-right: 16px;
  }
}



/* Lightbox */
#lightbox-overlay{
  position: fixed; inset: 0;
  background: rgba(0,0,0,.8);
  display: none; align-items: center; justify-content: center;
  padding: 24px; z-index: 9999;
}
#lightbox-overlay.open{ display: flex; }
#lightbox-overlay img{
  max-width: 90vw; max-height: 80vh; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
#lightbox-close{
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.15); border: 0; color: #fff;
  font-size: 32px; line-height: 1; width: 44px; height: 44px;
  border-radius: 8px; cursor: pointer;
}
#lightbox-cap{
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  max-width: 90vw; color: #fff; text-align: center; font-size: 14px;
  background: rgba(0,0,0,.4); padding: 8px 12px; border-radius: 8px;
}


/* Force-center photo captions under images */
.photo{display:flex;flex-direction:column;align-items:center}
.photo img{display:block;max-width:100%;height:auto}
.photo .meta{display:flex;flex-direction:column;align-items:center;text-align:center;margin-top:6px}
