﻿:root{
  --bg:#0b1220;
  --card:#0f1a2e;
  --text:#e8eefc;
  --muted:#9fb0d0;
  --line:rgba(255,255,255,.10);
  --radius:18px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial}
a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:22px}

.topbar{position:sticky;top:0;backdrop-filter: blur(10px);background:rgba(11,18,32,.7);border-bottom:1px solid var(--line);z-index:10}
.topbar-inner{display:flex;align-items:center;justify-content:space-between}
.brand{font-weight:800;letter-spacing:.2px}
.hint{color:var(--muted);font-size:13px}

.hero{padding:22px 0 10px}
.hero h1{margin:0 0 6px;font-size:34px}
.hero p{margin:0;color:var(--muted)}

.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:18px}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:12px;border:1px solid var(--line);
  background:rgba(255,255,255,.04);
}
.btn:hover{border-color:rgba(255,255,255,.22)}

.search-wrap{margin:18px 0 10px}
.search-form{
  background:rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:22px;
  padding:16px;
}
.search-label{display:block;color:var(--muted);font-size:13px;margin-bottom:10px}
.search-row{display:flex;gap:10px;align-items:center}
.search-input{
  flex:1;
  height:54px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(11,18,32,.45);
  color:var(--text);
  padding:0 16px;
  font-size:18px;
  outline:none;
}
.search-input:focus{border-color:rgba(106,167,255,.55);box-shadow:0 0 0 4px rgba(106,167,255,.10)}
.search-btn{
  height:54px;
  padding:0 18px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
}
.search-btn:hover{border-color:rgba(255,255,255,.22)}
.search-hint{margin-top:10px;color:var(--muted);font-size:13px}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
@media (max-width: 900px){ .grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 560px){ .grid{grid-template-columns:1fr} }

.trip-card{
  overflow:hidden;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:var(--card);
  transition: transform .12s ease, border-color .12s ease;
}
.trip-card:hover{transform: translateY(-2px);border-color:rgba(255,255,255,.22)}
.trip-cover{height:180px;background:rgba(255,255,255,.03);display:flex;align-items:center;justify-content:center}
.trip-cover img{width:100%;height:100%;object-fit:cover;display:block}
.cover-fallback{color:var(--muted)}
.trip-body{padding:14px}
.trip-title{font-weight:800;margin-bottom:4px}
.trip-dates{color:var(--muted);font-size:13px;margin-bottom:8px}
.trip-blurb-small{color:rgba(232,238,252,.85);font-size:14px}

.trip-head{
  display:flex;gap:16px;align-items:flex-start;justify-content:space-between;
  margin:16px 0 10px;
}
.trip-head h1{margin:0 0 6px;font-size:30px}
.trip-meta{color:var(--muted);font-size:13px}
.trip-blurb{margin:10px 0 0;color:rgba(232,238,252,.9)}
.trip-actions{flex:0 0 auto}

.masonry{
  column-count: 3;
  column-gap: 14px;
  margin-top: 16px;
}
@media (max-width: 900px){ .masonry{column-count:2} }
@media (max-width: 560px){ .masonry{column-count:1} }

.masonry-item{
  display:inline-block;
  width:100%;
  margin:0 0 14px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
}
.masonry-item img{width:100%;height:auto;display:block;transition: transform .15s ease}
.masonry-item:hover img{transform: scale(1.01)}

.footer{margin-top:30px;border-top:1px solid var(--line);background:rgba(255,255,255,.02)}
.footer-inner{display:flex;justify-content:space-between;color:var(--muted);font-size:13px}
.muted{opacity:.9}

/* HERO */
.hero {
  text-align: center;
  padding: 60px 20px 20px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero p {
  color: #94a3b8;
}

/* FLOATING SEARCH */
.search-wrap {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.search-form {
  width: 100%;
  max-width: 700px;
}

.search-row {
  display: flex;
  background: #0f172a;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  font-size: 18px;
  padding: 10px;
}

.search-btn {
  background: #f5c86b;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

/* MAP */
.map-section {
  margin-top: 40px;
}

#travel-map {
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
}

/* LATEST TRIPS */
.section-title {
  margin-top: 40px;
  font-size: 24px;
}
