/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand-blue: #1a56db;
  --brand-dark: #0f172a;
  --brand-accent: #e91e8c;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,.12);
  --nav-h: 56px;
  --bottom-nav-h: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── Page Wrapper ──────────────────────────────────────────────────────── */
.page-wrapper {
  min-height: 100dvh;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-top: var(--nav-h);
}

/* ─── Top Navigation ────────────────────────────────────────────────────── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--brand-dark);
  box-shadow: 0 1px 8px rgba(0,0,0,.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 16px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-power  { color: #ffffff; }
.logo-search { color: var(--brand-accent); }
.logo-nyc    { color: #94a3b8; font-size: 0.9rem; margin-left: 2px; }

.menu-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.menu-btn:hover { background: rgba(255,255,255,.1); }

.nav-menu {
  display: none;
  flex-direction: column;
  background: var(--brand-dark);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 8px 0;
}
.nav-menu.open { display: flex; }
.nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: #cbd5e1;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-menu a:hover,
.nav-menu a.active { background: rgba(255,255,255,.07); color: #fff; }
.nav-menu a.active { color: var(--brand-accent); }

/* ─── Bottom Navigation ─────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--bottom-nav-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 500;
  transition: color .15s;
  padding: 6px 4px 2px;
}
.bottom-nav a i { font-size: 1.2rem; }
.bottom-nav a.active,
.bottom-nav a:hover { color: var(--brand-blue); }

/* ─── Sections ──────────────────────────────────────────────────────────── */
.section { padding: 20px 0; }
.section:first-child { padding-top: 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.see-all {
  font-size: 0.85rem;
  color: var(--brand-blue);
  font-weight: 600;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1a56db 100%);
  padding: 32px 16px 28px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.08)"/></svg>') repeat;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--brand-accent); }

.hero-sub {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ─── Search Bar ────────────────────────────────────────────────────────── */
.search-bar {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.search-bar.hero { }

.search-bar.inline {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.search-fields {
  display: flex;
  flex-direction: column;
}

.search-field {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.search-field label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.search-field input,
.search-field select {
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  border: none;
  outline: none;
  background: transparent;
  padding: 0;
  width: 100%;
  -webkit-appearance: none;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--brand-blue), #1e40af);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: filter .2s;
  letter-spacing: 0.2px;
}
.search-btn:hover { filter: brightness(1.1); }

/* ─── Category Pills ────────────────────────────────────────────────────── */
.categories-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 16px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.categories-scroll::-webkit-scrollbar { display: none; }

.category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  width: 72px;
  cursor: pointer;
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.category-pill:active .cat-icon {
  transform: scale(0.93);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}

.cat-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
}

/* ─── Hotel Cards ───────────────────────────────────────────────────────── */
.hotels-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hotels-scroll::-webkit-scrollbar { display: none; }

.hotel-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: block;
}
.hotel-card:active {
  transform: scale(0.97);
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
}

.hotel-img-wrap {
  position: relative;
  height: 130px;
  overflow: hidden;
  background: #e2e8f0;
}
.hotel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.hotel-card:hover .hotel-img-wrap img { transform: scale(1.04); }

.hotel-tag {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--brand-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.hotel-info { padding: 10px 12px 12px; }

.hotel-name {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hotel-reviews {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.stars { color: #f59e0b; font-size: 0.65rem; }
.review-count { font-size: 0.7rem; color: var(--text-muted); }

.hotel-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
}
.price-from  { font-size: 0.65rem; color: var(--text-muted); }
.price-value { font-size: 1rem; font-weight: 800; color: var(--brand-blue); }
.price-night { font-size: 0.65rem; color: var(--text-muted); }

/* ─── Neighborhoods Grid ────────────────────────────────────────────────── */
.neighborhoods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
}

.neighborhood-card {
  position: relative;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}
.neighborhood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.neighborhood-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.65));
  display: flex;
  align-items: flex-end;
  padding: 10px 10px;
}
.neighborhood-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ─── Things To Do Banner ───────────────────────────────────────────────── */
.todo-banner {
  margin: 0 16px;
  background: linear-gradient(135deg, #0f172a, #1a56db);
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
}
.todo-banner h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.todo-banner p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.todo-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.todo-stats span {
  background: rgba(255,255,255,.1);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}
.todo-cta {
  display: inline-block;
  background: var(--brand-accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: filter .2s;
}
.todo-cta:hover { filter: brightness(1.1); }

/* ─── Blog Cards ────────────────────────────────────────────────────────── */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}

.blog-card {
  display: flex;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
  align-items: stretch;
}

.blog-card img {
  width: 100px;
  flex-shrink: 0;
  object-fit: cover;
  background: #e2e8f0;
}

.blog-info {
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  flex: 1;
}

.blog-category {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-accent);
  letter-spacing: 0.5px;
}

.blog-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--brand-dark);
  padding: 28px 16px 20px;
  color: #94a3b8;
}
.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.footer-tagline {
  font-size: 0.8rem;
  margin-bottom: 20px;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.footer-col h4 {
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  padding: 3px 0;
  transition: color .15s;
}
.footer-col a:hover { color: #94a3b8; }
.footer-copy {
  font-size: 0.75rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 16px;
}

/* ─── Search Page ───────────────────────────────────────────────────────── */
.search-page { }

.search-page-header {
  background: linear-gradient(135deg, #0f172a, #1a56db);
  padding: 24px 16px 20px;
  color: #fff;
}
.search-page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.search-page-header p {
  color: #94a3b8;
  font-size: 0.88rem;
}

.search-form-section {
  padding: 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
}

.filters-section { padding: 16px; }

.filters-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.filter-group { margin-bottom: 20px; }

.filter-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

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

.filter-pill {
  display: inline-block;
  padding: 7px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.filter-pill:hover,
.filter-pill:active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.full-search-cta {
  margin-top: 24px;
  text-align: center;
}
.full-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--brand-blue), #1e40af);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: filter .2s;
}
.full-search-btn:hover { filter: brightness(1.08); }

/* ─── Things To Do Page ─────────────────────────────────────────────────── */
.todo-page { }

.todo-page-header {
  background: linear-gradient(135deg, #0f172a, #4a1d96);
  padding: 24px 16px 20px;
  color: #fff;
}
.todo-page-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.todo-page-header p {
  color: #c4b5fd;
  font-size: 0.88rem;
}

.todo-stats-row {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 14px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.todo-stats-row::-webkit-scrollbar { display: none; }

.todo-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 24px;
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}
.todo-stat i { color: var(--brand-blue); font-size: 0.9rem; }
.todo-stat span { font-size: 0.8rem; font-weight: 600; }

.todo-section { padding: 20px 0; }

.todo-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
}

.activities-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.activities-scroll::-webkit-scrollbar { display: none; }

.activity-card {
  flex-shrink: 0;
  width: 180px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s;
  display: block;
}
.activity-card:active { transform: scale(0.97); }

.activity-img-wrap {
  height: 120px;
  overflow: hidden;
  background: #e2e8f0;
}
.activity-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-info { padding: 10px 12px 12px; }
.activity-rating { color: #f59e0b; font-size: 0.7rem; margin-bottom: 3px; }
.activity-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.activity-price { font-size: 0.82rem; color: var(--text-muted); }
.activity-price strong { color: var(--brand-blue); font-weight: 700; }

.todo-explore-more {
  padding: 24px 16px;
  background: #f1f5f9;
  margin-top: 8px;
}
.todo-explore-more h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.explore-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.explore-link {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: background .15s, border-color .15s;
}
.explore-link i { color: var(--brand-blue); width: 16px; text-align: center; }
.explore-link:hover {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}
.explore-link:hover i { color: #fff; }

/* ─── Responsive tweaks ─────────────────────────────────────────────────── */
@media (min-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hotel-card { width: 220px; }
  .activity-card { width: 200px; }
}

@media (min-width: 640px) {
  .neighborhoods-grid { grid-template-columns: 1fr 1fr 1fr; }
  .explore-links { grid-template-columns: repeat(3, 1fr); }
  .blog-list { flex-direction: row; flex-wrap: wrap; }
  .blog-card { width: calc(50% - 6px); flex-direction: column; }
  .blog-card img { width: 100%; height: 140px; }
}

@media (min-width: 768px) {
  :root { --nav-h: 60px; }
  .menu-btn { display: none; }
  .nav-menu {
    display: flex !important;
    flex-direction: row;
    border-top: none;
    padding: 0;
    height: var(--nav-h);
    align-items: center;
    gap: 4px;
    padding-right: 8px;
  }
  .nav-menu a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    height: auto;
  }
  .explore-links { grid-template-columns: repeat(4, 1fr); }
  .neighborhoods-grid { grid-template-columns: repeat(3, 1fr); }
  .neighborhood-card { height: 110px; }
}
