:root {
  --blue: #0968e8;
  --blue-dark: #063a7a;
  --ink: #08244c;
  --muted: #64748b;
  --line: #dce9f7;
  --soft: #eef6ff;
  --card: #ffffff;
  --green: #22c55e;
  --shadow: 0 16px 42px rgba(15, 55, 105, .13);
  --container: 1320px;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 12% 12%, rgba(51, 153, 255, .16), transparent 32%), linear-gradient(180deg, #eaf6ff 0%, #f8fbff 45%, #ffffff 100%);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }

.public-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(190, 211, 235, .75);
  backdrop-filter: blur(18px);
}
.public-header.is-home { grid-template-columns: auto minmax(0, 1fr) auto; }
.public-brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; font-weight: 900; }
.public-logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #0b70ff, #12b7a8); box-shadow: 0 10px 24px rgba(9, 104, 232, .22); }
.public-brand strong { display: block; font-size: 1.35rem; line-height: 1; letter-spacing: 0; }
.public-brand small { display: block; color: var(--blue-dark); font-size: .62rem; font-weight: 900; }
.public-search { justify-self: center; display: flex; align-items: center; gap: 8px; width: min(360px, 100%); min-height: 40px; padding: 0 14px; border-radius: 999px; background: #f0f6fd; color: #6b7c92; }
.public-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.public-nav { display: flex; align-items: center; justify-content: end; gap: clamp(16px, 2vw, 30px); font-size: .92rem; font-weight: 900; }
.public-nav a { position: relative; white-space: nowrap; }
.public-nav a:hover { color: var(--blue); }
.public-nav a[href$="/trip-planner"] { color: var(--blue); }
.public-nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 3px; border-radius: 999px; background: var(--blue); }
.public-actions { position: relative; display: inline-flex; align-items: center; justify-content: end; gap: 10px; min-width: max-content; }
.public-login-link,
.public-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid #dbe9f8;
  border-radius: 999px;
  background: #f5f9ff;
  color: var(--blue-dark);
  font-weight: 1000;
}
.public-login-link { padding: 0 16px; }
.public-user-menu { position: relative; }
.public-user-trigger { padding: 5px 12px 5px 6px; cursor: pointer; box-shadow: 0 10px 24px rgba(15, 55, 105, .08); }
.public-user-trigger:hover,
.public-user-menu.open .public-user-trigger,
.public-login-link:hover { border-color: #b8d6f7; background: #edf6ff; color: var(--blue); }
.public-user-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(145deg, #0b70ff, #8ec5ff);
  color: #fff;
  font-weight: 1000;
  line-height: 1;
}
.public-user-avatar.large { width: 46px; height: 46px; }
.public-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.public-user-copy { display: grid; gap: 1px; min-width: 0; text-align: left; line-height: 1.15; }
.public-user-copy strong { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.public-user-copy small { color: var(--muted); font-size: .68rem; font-weight: 900; }
.public-user-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 70;
  display: none;
  width: min(320px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow);
}
.public-user-menu.open .public-user-panel { display: block; }
.public-user-head { display: flex; align-items: center; gap: 12px; padding: 8px 8px 12px; border-bottom: 1px solid #edf4fb; }
.public-user-head span:last-child { display: grid; gap: 3px; min-width: 0; }
.public-user-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.public-user-head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .78rem; font-weight: 800; }
.public-user-list { display: grid; gap: 4px; padding-top: 8px; }
.public-user-item,
.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
}
.public-user-item { padding: 11px 10px; color: var(--blue-dark); font-weight: 900; }
.public-user-item:hover,
.mobile-menu a:hover { background: #edf6ff; color: var(--blue); }
.public-user-item i,
.mobile-menu a i { width: 18px; text-align: center; }
.public-user-item.danger,
.mobile-menu a.danger { color: #dc2626; }
.public-user-item.danger:hover,
.mobile-menu a.danger:hover { background: #fff1f2; color: #b91c1c; }
.mobile-filter-button { display: none; border: 0; width: 42px; height: 42px; border-radius: 14px; background: #edf5ff; color: var(--blue-dark); }
.mobile-menu { display: none; }

.home-hero {
  position: relative;
  min-height: clamp(520px, 48vw, 720px);
  display: grid;
  place-items: center;
  padding: 54px clamp(16px, 5vw, 72px) 64px;
  background: linear-gradient(180deg, rgba(236, 247, 255, .04), rgba(236, 247, 255, .82)), var(--brand-cover, url("images/nong-prajak-auth-hero.png")) center 42%/cover;
  border-bottom: 1px solid rgba(190, 211, 235, .6);
}
.hero-copy { width: min(760px, 100%); text-align: center; }
.hero-brand-lockup { display: grid; gap: 4px; justify-items: center; margin-bottom: 14px; color: var(--blue-dark); text-shadow: 0 2px 14px rgba(255, 255, 255, .75); }
.hero-brand-lockup strong { font-size: clamp(3.2rem, 7vw, 5.6rem); line-height: .86; font-weight: 1000; }
.hero-brand-lockup span { font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 1000; }
.home-hero h1 { margin-bottom: 6px; color: var(--blue-dark); font-size: clamp(1.5rem, 3.1vw, 2.2rem); line-height: 1.25; text-shadow: 0 2px 16px rgba(255, 255, 255, .78); }
.home-hero p { margin-bottom: 22px; color: var(--blue-dark); font-weight: 800; text-shadow: 0 2px 16px rgba(255, 255, 255, .82); }
.hero-search { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: min(620px, 100%); margin: 0 auto; padding: 11px 12px 11px 20px; border: 8px solid rgba(255, 255, 255, .48); border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.hero-search i { color: var(--blue); font-size: 1.3rem; }
.hero-search input { min-width: 0; height: 42px; border: 0; outline: 0; color: var(--ink); }
.hero-search button, .btn-primary { border: 0; border-radius: 14px; background: linear-gradient(180deg, #1678ff, #0064e5); color: #fff; font-weight: 900; padding: 12px 24px; cursor: pointer; box-shadow: 0 12px 24px rgba(9, 104, 232, .25); }

.quick-section, .places-section, .list-shell, .detail-layout {
  width: min(var(--container), calc(100% - 36px));
  margin-inline: auto;
  padding: 28px 0 48px;
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.eyebrow { display: inline-flex; gap: 6px; color: var(--blue); font-weight: 1000; }
.section-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.section-heading h2 i { color: #f5b301; }
.section-heading a { color: var(--blue); font-weight: 900; }
.quick-grid { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: clamp(12px, 2vw, 22px); }
.quick-card { display: grid; justify-items: center; gap: 10px; padding: 14px 10px 10px; border-radius: 18px; color: var(--ink); font-weight: 900; text-align: center; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; }
.quick-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .72); box-shadow: 0 12px 24px rgba(15, 55, 105, .08); }
.quick-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 999px; color: #fff; box-shadow: 0 12px 24px rgba(10, 36, 76, .14); }
.quick-icon i { font-size: 27px; line-height: 1; }
.quick-card.orange .quick-icon { background: #f97316; }
.quick-card.brown .quick-icon { background: #7c4a25; }
.quick-card.blue .quick-icon { background: #0b72ef; }
.quick-card.green .quick-icon { background: #16a34a; }
.quick-card.pink .quick-icon { background: #ec4899; }
.quick-card.violet .quick-icon { background: #7c5cff; }

.place-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.place-list { display: grid; gap: 14px; }
.place-card { display: grid; gap: 12px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 10px 26px rgba(15, 55, 105, .09); overflow: hidden; }
.place-card-list { grid-template-columns: 210px minmax(0, 1fr); align-items: stretch; padding: 10px; border-radius: 18px; }
.place-card-image { display: block; min-height: 142px; border-radius: 12px; overflow: hidden; background: #e8f2fc; }
.place-card-list .place-card-image { min-height: 134px; }
.place-card-image img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; }
.image-placeholder { display: grid; place-items: center; gap: 8px; min-height: inherit; height: 100%; color: #7890ad; font-weight: 900; }
.image-placeholder.large { min-height: 430px; font-size: 1.2rem; }
.place-card-body { display: flex; flex-direction: column; gap: 9px; min-width: 0; padding: 12px; }
.place-card-list .place-card-body { padding: 4px 8px; }
.place-card-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; min-width: 0; }
.place-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; color: var(--blue-dark); }
.place-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.chip, .filter-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 11px; border-radius: 999px; background: #eaf4ff; color: var(--blue-dark); font-size: .8rem; font-weight: 900; }
.chip:first-child { background: #e8f9ef; color: #14783f; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: 999px; padding: 7px 10px; background: #edf2f7; color: #64748b; font-size: .78rem; font-weight: 900; }
.status-pill i { font-size: .55rem; }
.status-pill.is-open { background: #e6f9ef; color: #0f8a48; }
.place-summary { line-height: 1.55; color: #425c7d !important; }
.place-card-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .86rem; font-weight: 800; }
.place-card-actions { display: flex; gap: 9px; margin-top: auto; }
.btn-primary-soft, .btn-ghost, .btn-clear, .btn-filter { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--blue-dark); font-weight: 900; }
.btn-primary-soft { margin-left: auto; background: var(--blue); border-color: var(--blue); color: #fff; }

.page-hero.compact { display: flex; align-items: end; justify-content: space-between; gap: 18px; width: min(var(--container), calc(100% - 36px)); margin-inline: auto; padding: 34px 0 18px; }
.page-hero h1 { margin: 0 0 4px; color: var(--blue-dark); font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; }
.page-hero p { margin: 0; color: var(--muted); }
.page-hero strong { white-space: nowrap; color: var(--ink); }
.list-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.list-content { min-width: 0; }
.filter-panel { position: sticky; top: 92px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, .86); box-shadow: var(--shadow); }
.filter-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 900; }
.filter-panel-head button { display: none; border: 0; background: transparent; }
.filter-form { display: grid; gap: 12px; }
.filter-form label { display: grid; gap: 6px; color: var(--blue-dark); font-weight: 900; }
.filter-form input, .filter-form select { width: 100%; min-height: 44px; border: 1px solid #cfe1f5; border-radius: 999px; padding: 0 14px; background: #fff; color: var(--ink); }
.list-toolbar { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 14px; }
.btn-filter { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; max-width: 100%; }
.filter-chip.active, .filter-chip:hover { background: var(--blue); color: #fff; }
.filter-chip.reset { background: #fff; border: 1px solid var(--line); }
.public-pager { margin-top: 20px; }
.public-pager ul { display: flex; gap: 6px; padding: 0; list-style: none; flex-wrap: wrap; }
.public-pager a, .public-pager span { display: grid; place-items: center; min-width: 36px; min-height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.public-pager .active a, .public-pager .active span { background: var(--blue); color: #fff; }

.public-page { width: min(var(--container), calc(100% - 36px)); margin-inline: auto; }
.article-list-page { padding: 34px 0 48px; }
.article-list-page .page-heading { max-width: 760px; margin: 0 0 24px; }
.article-list-page .page-heading .eyebrow { margin-bottom: 8px; }
.article-list-page .page-heading h1 { margin: 0 0 8px; color: var(--blue-dark); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; }
.article-list-page .page-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }
.article-list-page .article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.article-list-page .empty-state { grid-column: 1 / -1; width: 100%; min-height: 220px; }
.article-list-page .empty-state h2 { margin: 0; color: var(--blue-dark); font-size: 1.2rem; }
.article-list-page .empty-state p { margin: 2px 0 0; }
.article-list-page .public-pagination { margin-top: 22px; }
.article-detail-page { padding: 28px 0 48px; }
.account-page { padding: 34px 0 48px; }

.detail-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); gap: 20px; width: min(var(--container), calc(100% - 36px)); margin-inline: auto; padding: 28px 0 18px; align-items: start; }
.detail-gallery { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 10px; min-width: 0; align-items: start; }
.detail-hero-image { position: relative; aspect-ratio: 1.28 / 1; min-height: 0; overflow: hidden; border-radius: 18px; background: #e8f2fc; box-shadow: var(--shadow); }
.detail-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(7, 32, 72, .78); color: #fff; font-weight: 900; font-size: .82rem; }
.detail-thumbs { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 10px; height: min(476px, 35vw); min-height: 0; }
.detail-thumbs button { position: relative; min-height: 0; border: 0; padding: 0; overflow: hidden; border-radius: 14px; background: #e8f2fc; cursor: pointer; }
.detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumbs span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 18, 40, .72); color: #fff; font-weight: 900; text-align: center; }
.detail-hero-copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .88); box-shadow: var(--shadow); }
.back-link { display: inline-flex; gap: 8px; align-items: center; width: fit-content; color: var(--blue); font-weight: 900; }
.detail-hero h1 { margin: 0; color: var(--blue-dark); font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.15; }
.detail-hero-copy > p { margin: 0; color: #425c7d; line-height: 1.7; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; background: #eef6ff; color: var(--blue-dark); font-weight: 900; font-size: .86rem; }
.detail-meta .is-open { background: #e6f9ef; color: #0f8a48; }
.detail-meta .is-closed { background: #fff3e6; color: #a34a00; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.detail-actions .btn-primary, .detail-actions .btn-ghost { flex: 1 1 auto; }
.detail-actions .copied::after { content: "คัดลอกแล้ว"; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.detail-main { display: grid; gap: 16px; min-width: 0; }
.detail-card { padding: clamp(18px, 3vw, 24px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(15, 55, 105, .08); }
.detail-card h2 { margin-bottom: 12px; color: var(--blue-dark); font-size: 1.3rem; }
.detail-card h3 { margin: 16px 0 8px; font-size: 1rem; }
.detail-card p { color: #304a6d; line-height: 1.75; }
.muted { color: var(--muted) !important; }
.map-frame { height: 260px; overflow: hidden; margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: #edf5ff; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.hours-list { display: grid; gap: 6px; }
.hours-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf2f7; }
.amenity-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.amenity-grid span, .contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 9px 12px; border-radius: 12px; background: #eef6ff; color: var(--blue-dark); font-weight: 900; }
.contact-list { display: grid; gap: 9px; }
.sticky-card { position: sticky; top: 92px; }
.reference-link { display: block; color: var(--blue); font-weight: 900; word-break: break-word; }

.empty-state { display: grid; place-items: center; gap: 8px; min-height: 160px; padding: 28px; border: 1px dashed #bfd5ee; border-radius: 20px; background: rgba(255, 255, 255, .82); color: var(--muted); text-align: center; }
.empty-state i { font-size: 2rem; color: var(--blue); }
.empty-state strong { color: var(--blue-dark); font-size: 1.15rem; }
.public-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; width: min(var(--container), calc(100% - 36px)); margin-inline: auto; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); }
.public-footer strong { color: var(--blue-dark); }
.public-legal-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.public-legal-links a { color: #426182; font-size: .82rem; font-weight: 800; }
.public-legal-links a:hover { color: var(--blue); }
.legal-page { max-width: 920px; padding-top: 42px; padding-bottom: 54px; }
.legal-heading { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal-heading h1 { margin: 7px 0 8px; color: var(--blue-dark); font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.2; }
.legal-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.legal-section { padding: 18px 0; border-bottom: 1px solid #e7eff8; }
.legal-section h2, .legal-contact h2 { margin: 0 0 10px; color: #173b63; font-size: 1.1rem; }
.legal-section ul { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: #465f7a; line-height: 1.75; }
.legal-section li { padding-left: 3px; }
.legal-contact { margin-top: 20px; padding: 18px 20px; border: 1px solid #cfe1f5; border-radius: 10px; background: #f3f8fd; }
.legal-contact p { margin: 0; color: #536d88; line-height: 1.7; }
.legal-contact a { display: inline-flex; align-items: center; gap: 8px; color: #075fc9; font-weight: 900; overflow-wrap: anywhere; }
.legal-related { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 24px; }
.legal-related a { color: #075fc9; font-size: .9rem; font-weight: 900; }
.filter-backdrop, .lightbox { display: none; }
.lightbox.open { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(6, 20, 43, .82); }
.lightbox img { max-height: 86vh; border-radius: 16px; }
.lightbox button { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: #fff; }

body:has(.maintenance-page) {
  background: #eef5fc;
}
body:has(.maintenance-page) .public-footer {
  display: none;
}
body:has(.maintenance-page) .public-header {
  position: relative;
  z-index: 5;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 0 rgba(20, 70, 130, .08);
}
.maintenance-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: max(620px, calc(100vh - 74px));
  padding: 48px 24px 76px;
  background:
    linear-gradient(90deg, rgba(239, 247, 255, .68), rgba(247, 251, 255, .82)),
    var(--brand-cover, url("images/nong-prajak-auth-hero.png")) center 48%/cover no-repeat;
}
.maintenance-inner {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}
.maintenance-card {
  display: grid;
  justify-items: center;
  padding: 48px 58px 40px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 30px 90px rgba(28, 73, 122, .18);
  text-align: center;
  backdrop-filter: blur(14px);
}
.maintenance-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin-bottom: 24px;
  border-radius: 26px;
  background: #e8f3ff;
  color: #1674db;
  font-size: 36px;
}
.maintenance-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #fff4df;
  color: #98550c;
  font-size: 13px;
  font-weight: 800;
}
.maintenance-eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0a62d;
  box-shadow: 0 0 0 4px #ffe9bd;
  animation: maintenance-pulse 2.4s ease-in-out infinite;
}
@keyframes maintenance-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.maintenance-page h1 {
  margin: 0 0 10px;
  max-width: 22em;
  color: #123b68;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.3;
  font-weight: 900;
  text-wrap: balance;
}
.maintenance-note {
  margin: 0;
  max-width: 38em;
  color: #60758e;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 500;
}
.maintenance-eta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(100%, 440px);
  min-height: 48px;
  margin: 28px 0 26px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #f3f8fd;
  color: #315578;
  font-size: 14px;
  font-weight: 800;
}
.maintenance-eta i { color: #2580de; font-size: 16px; }
.maintenance-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
}
.maintenance-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 170px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid #d4e3f2;
  border-radius: 12px;
  background: #fff;
  color: #28547f;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.maintenance-links a:hover { background: #f4f9ff; transform: translateY(-1px); }
.maintenance-links .maintenance-contact {
  border-color: #126fe5;
  background: #126fe5;
  color: #fff;
  box-shadow: 0 9px 20px rgba(18, 111, 229, .2);
}
.maintenance-links .maintenance-contact:hover { background: #075cc8; }
.maintenance-foot {
  position: absolute;
  bottom: clamp(18px, 3vw, 28px);
  left: 0;
  right: 0;
  margin: 0;
  color: #6d8299;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 1080px) {
  .public-header { grid-template-columns: auto auto; }
  .public-search, .public-nav { display: none; }
  .public-actions { justify-self: end; }
  .mobile-filter-button { display: inline-grid; place-items: center; justify-self: end; }
  .mobile-menu.open { position: fixed; top: 76px; right: 14px; z-index: 60; display: grid; gap: 8px; min-width: 250px; max-width: calc(100vw - 28px); padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .mobile-menu a { padding: 10px 12px; font-weight: 900; }
  .mobile-account-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: #f4f9ff; }
  .mobile-account-card span:last-child { display: grid; gap: 2px; min-width: 0; }
  .mobile-account-card strong,
  .mobile-account-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-account-card small { color: var(--muted); font-size: .78rem; font-weight: 900; }
  .mobile-login-link { background: #f4f9ff; color: var(--blue-dark); }
  .mobile-menu-separator { height: 1px; margin: 2px 0; background: #e6f0fb; }
  .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-shell, .detail-layout, .detail-hero { grid-template-columns: 1fr; }
  .filter-panel { position: fixed; inset: auto 0 0 0; z-index: 50; max-height: 84vh; overflow: auto; border-radius: 24px 24px 0 0; transform: translateY(110%); transition: transform .2s ease; }
  .filter-panel.open { transform: translateY(0); }
  .filter-panel-head button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: #eef4fb; }
  .filter-backdrop.open { position: fixed; inset: 0; z-index: 45; display: block; background: rgba(6, 20, 43, .42); }
  .btn-filter { display: inline-flex; }
  .active-filters { flex: 1 1 auto; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .filter-chip { white-space: nowrap; }
  .sticky-card { position: static; }
  .maintenance-notes { display: none; }
}

@media (max-width: 720px) {
  .public-header { min-height: 66px; padding: 10px 16px; }
  .public-logo { width: 38px; height: 38px; border-radius: 12px; }
  .public-brand strong { font-size: 1.05rem; }
  .public-brand small { font-size: .55rem; }
  .public-login-link { display: none; }
  .public-user-trigger { min-height: 40px; padding: 3px; border: 0; background: transparent; box-shadow: none; }
  .public-user-trigger .fa-chevron-down,
  .public-user-copy { display: none; }
  .public-user-avatar { width: 38px; height: 38px; }
  .public-user-panel { right: -50px; }
  .home-hero { min-height: 430px; padding: 34px 14px 38px; border-radius: 0 0 24px 24px; }
  .hero-brand-lockup strong { font-size: 2.1rem; }
  .home-hero h1 { font-size: 1.25rem; }
  .home-hero p { font-size: .9rem; }
  .hero-search { grid-template-columns: auto 1fr; border-width: 5px; border-radius: 22px; padding: 8px 12px; }
  .hero-search button { grid-column: 1 / -1; width: 100%; border-radius: 16px; }
  .quick-section, .places-section, .list-shell, .detail-layout, .detail-hero, .page-hero.compact { width: calc(100% - 28px); padding-left: 0; padding-right: 0; }
  .section-heading { align-items: center; }
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .quick-card { font-size: .78rem; }
  .quick-icon { width: 48px; height: 48px; }
  .quick-icon i { font-size: 23px; }
  .place-grid { grid-template-columns: 1fr; }
  .place-card, .place-card-list { grid-template-columns: 108px minmax(0, 1fr); padding: 8px; border-radius: 16px; }
  .place-card-image, .place-card-list .place-card-image { width: 100%; min-height: 0; height: auto; aspect-ratio: 1 / 1; align-self: start; }
  .place-card-body { padding: 2px 4px; gap: 6px; }
  .place-card h3 { font-size: .98rem; }
  .place-card p { font-size: .78rem; }
  .place-summary, .place-card-actions .btn-ghost, .place-card-actions { display: none; }
  .status-pill { font-size: .72rem; padding: 5px 8px; }
  .page-hero.compact { display: block; }
  .page-hero h1 { font-size: 1.55rem; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-hero-image { min-height: 245px; border-radius: 16px; }
  .detail-thumbs { grid-template-columns: repeat(4, 1fr); grid-template-rows: none; width: 100%; height: auto; }
  .detail-thumbs button { aspect-ratio: 1 / 1; }
  .detail-hero-copy { padding: 0; border: 0; box-shadow: none; background: transparent; }
  .detail-hero-copy .detail-actions { margin-top: 0; }
  .detail-hero-copy .detail-actions > :not(.favorite-form) { display: none; }
  .detail-hero-copy .favorite-button { width: 42px; height: 42px; }
  .back-link { margin-bottom: 2px; }
  .detail-hero h1 { font-size: 1.4rem; }
  .detail-actions .btn-primary, .detail-actions .btn-ghost { flex: 1 1 92px; min-height: 42px; padding: 9px 10px; }
  .map-frame { height: 220px; }
  .hours-list div { align-items: center; font-size: .92rem; }
  .public-footer { display: grid; justify-content: center; text-align: center; }
  .public-legal-links { justify-content: center; }
  .legal-page { padding-top: 24px; padding-bottom: 36px; }
  .legal-heading { margin-bottom: 14px; }
  .legal-section { padding: 15px 0; }
  .legal-section h2, .legal-contact h2 { font-size: 1rem; }
  .legal-section ul { padding-left: 20px; font-size: .92rem; }
  .legal-contact { padding: 16px; }
  .maintenance-page { min-height: max(620px, calc(100vh - 66px)); padding: 24px 14px 58px; }
  .maintenance-card { padding: 30px 20px 26px; border-radius: 20px; }
  .maintenance-icon { width: 72px; height: 72px; margin-bottom: 18px; border-radius: 22px; font-size: 30px; }
  .maintenance-eyebrow { margin-bottom: 15px; font-size: 12px; }
  .maintenance-page h1 { margin-bottom: 10px; font-size: clamp(1.45rem, 6.8vw, 1.8rem); }
  .maintenance-note { font-size: 14px; }
  .maintenance-eta { margin: 23px 0 20px; padding: 11px 12px; font-size: 13px; }
  .maintenance-links { display: grid; grid-template-columns: 1fr; gap: 9px; width: 100%; }
  .maintenance-links a { width: 100%; min-height: 48px; }
  .maintenance-foot { bottom: 12px; padding-inline: 12px; font-size: 11px; }
}

/* Reviews */
.star-rating { display: inline-flex; gap: 2px; color: #f5a623; font-size: 14px; }
.review-summary { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.review-avg { font-size: 30px; color: #10213d; }
.review-summary .muted { color: #7b8aa3; font-size: 13px; }
.review-form { background: #f8fbff; border: 1px solid #e2eaf5; border-radius: 12px; padding: 16px; margin-bottom: 18px; }
.review-form .form-label { display: block; font-weight: 700; color: #173150; margin: 8px 0 6px; font-size: 14px; }
.review-star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.review-star-input input { position: absolute; opacity: 0; pointer-events: none; }
.review-star-input label { cursor: pointer; font-size: 24px; color: #c9d4e4; transition: color .12s ease; }
.review-star-input label:hover, .review-star-input label:hover ~ label,
.review-star-input input:checked ~ label { color: #f5a623; }
.review-textarea { width: 100%; border: 1px solid #dfe5ee; border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 14px; resize: vertical; }
.review-textarea:focus { outline: none; border-color: #0d6efd; }
.review-form-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.review-delete { color: #c0392b; }
.review-login-hint a { color: #0d6efd; font-weight: 700; }
.review-list { display: grid; gap: 12px; }
.review-item { border: 1px solid #eef2f8; border-radius: 12px; padding: 14px 16px; background: #fff; }
.review-item.mine { border-color: #bcd6ff; background: #f4f9ff; }
.review-item header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-item header > div { min-width: 0; flex: 1; }
.review-item strong { display: block; color: #10213d; }
.review-item small { display: block; color: #7b8aa3; font-size: 12px; }
.review-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #0d6efd; color: #fff; font-weight: 800; }
.review-item p { margin: 0; color: #415675; font-size: 14px; line-height: 1.6; }

/* Places map */
.places-map-panel { background: #fff; border: 1px solid #e2eaf5; border-radius: 14px; overflow: hidden; margin: 18px 0; }
.places-map-panel .places-map { width: 100%; height: 420px; }
.places-map-panel .places-map-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.places-map-panel .places-map-toggle strong { color: #10213d; }
.leaflet-container { font: inherit; }
.place-popup strong { display: block; color: #10213d; margin-bottom: 2px; }
.place-popup small { color: #607089; }
@media (max-width: 640px) { .places-map-panel .places-map { height: 300px; } }

/* Near-me search */
.location-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-near-me { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 16px; border-radius: 999px; border: 1px solid #cfe0ff; background: #eef4ff; color: #0d6efd; font-weight: 800; font-size: 13px; cursor: pointer; transition: background .15s ease; }
.btn-near-me:hover { background: #ddeafc; }
.btn-near-me:disabled { opacity: .65; cursor: wait; }
.location-active { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: #10213d; font-size: 13px; }
.location-radius { border: 1px solid #dfe5ee; border-radius: 999px; padding: 8px 12px; font: inherit; font-size: 13px; background: #fff; color: #415675; }
.place-distance { margin: 8px 0 0; color: #0d6efd; font-size: 12.5px; font-weight: 700; }
.place-distance i { margin-right: 4px; }
.user-location-marker div { background: #0d6efd; border: 3px solid #fff; border-radius: 50%; width: 18px; height: 18px; box-shadow: 0 0 0 4px rgba(13,110,253,.25); }

/* Home hero near-me */
.hero-near-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.hero-near-btn { background: #fff; color: var(--blue); border-color: rgba(255, 255, 255, .7); box-shadow: var(--shadow); }
.hero-near-btn:hover { background: #f0f7ff; }
.hero-near-row small { color: var(--blue-dark); font-weight: 700; text-shadow: 0 2px 14px rgba(255, 255, 255, .8); }

/* Toolbar overflow fixes */
.list-toolbar { flex-wrap: wrap; row-gap: 10px; }
.location-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; margin-left: auto; }
@media (max-width: 768px) {
  .list-shell, .list-content, .list-toolbar { min-width: 0; max-width: 100%; }
  .list-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "filter view" "location location" "filters filters"; align-items: stretch; gap: 10px; }
  .list-toolbar .btn-filter { grid-area: filter; }
  .list-toolbar .view-switcher { grid-area: view; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  .view-switcher a { min-width: 0; padding-inline: 8px; text-align: center; white-space: nowrap; }
  .list-toolbar .btn-filter { width: 100%; min-width: 0; }
  .location-controls { grid-area: location; justify-content: flex-start; width: 100%; gap: 8px; }
  .location-active, .btn-near-me { min-width: 0; max-width: 100%; }
  .location-controls .location-active { flex: 1 1 100%; }
  .location-radius { flex: 1 1 140px; width: auto; max-width: none; min-width: 0; }
  .location-controls .filter-chip.reset { flex: 1 1 100%; justify-content: center; min-width: 0; padding: 8px 10px; font-size: 12px; white-space: normal; text-align: center; }
  .active-filters { grid-area: filters; min-width: 0; overflow-x: auto; flex-wrap: nowrap; padding: 2px 2px 8px; scrollbar-width: thin; }
  .filter-chip { flex: 0 0 auto; white-space: nowrap; }
  .place-list, .place-card, .place-card-list { min-width: 0; max-width: 100%; }
  .place-card-list { grid-template-columns: minmax(92px, 30%) minmax(0, 1fr); }
  .place-card-body, .place-card-top, .place-card h3 { min-width: 0; overflow-wrap: anywhere; }
}

.brand-logo-img { background: #fff; object-fit: cover; padding: 0; box-shadow: 0 4px 14px rgba(9, 104, 232, .18); }
img.public-logo { background: #fff; }

/* Language switcher */
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid #dfe8f5;
  border-radius: 999px;
  background: #f7fbff;
}
.language-switcher a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #415675;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.language-switcher a.active {
  background: #0d6efd;
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 110, 253, .22);
}
.mobile-menu a.active {
  color: #0d6efd;
  font-weight: 900;
}
@media (max-width: 980px) {
  .language-switcher { display: none; }
}
.suggestion-wrap { position: relative; flex: 1; min-width: 0; }
.suggestion-wrap input { width: 100%; box-sizing: border-box; }
.search-suggestions { position: absolute; z-index: 1100; top: calc(100% + 10px); left: 0; right: 0; min-width: 220px; max-height: 320px; overflow-y: auto; background: #fff; border: 1px solid #d4e2f3; border-radius: 8px; box-shadow: 0 8px 24px #17375825; }
.search-suggestions[hidden] { display: none; }
.search-suggestions a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: #173758; text-align: left; overflow-wrap: anywhere; }
.search-suggestions a:hover, .search-suggestions a:focus { background: #eaf3ff; }
.place-card { position: relative; }
.place-card .favorite-form { position: absolute; z-index: 2; top: 10px; right: 10px; }
.favorite-form { margin: 0; }
.favorite-button { width: 40px; height: 40px; border: 1px solid #d4e2f3; border-radius: 8px; background: #fff; color: #42607e; cursor: pointer; }
.favorite-button.saved { color: #0667d9; background: #e8f2ff; border-color: #7eb4f4; }
.favorite-button:disabled { opacity: .6; cursor: wait; }
.place-card-top { padding-right: 48px; }
.public-toast { position: fixed; z-index: 5000; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 12px 20px; background: #173758; color: #fff; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .15s; overflow-wrap: anywhere; }
.public-toast.visible { opacity: 1; }
.public-dialog { width: min(440px, calc(100vw - 40px)); box-sizing: border-box; padding: 24px; border: 1px solid #d4e2f3; border-radius: 8px; color: #173758; }
.public-dialog::backdrop { background: #10213d80; }
.public-dialog h2 { font-size: 20px; margin-top: 0; }
.public-dialog textarea { width: 100%; box-sizing: border-box; margin: 10px 0 20px; padding: 12px; border: 1px solid #b8cde7; border-radius: 6px; font: inherit; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.view-switcher { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid #d4e2f3; border-radius: 8px; background: #fff; }
.view-switcher a { padding: 8px 12px; border-radius: 6px; color: #42607e; }
.view-switcher a.active { color: #fff; background: #0667d9; }
.filter-form .open-only { display: flex; align-items: center; gap: 10px; }
.filter-form .open-only input { width: 18px; height: 18px; margin: 0; }
.map-heading { font-size: 20px; }
.place-popup img { display: block; width: 180px; height: 100px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.place-popup strong, .place-popup small, .place-popup a { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.public-message { max-width: 1100px; margin: 16px auto; padding: 12px 20px; background: #e7f6ee; border-radius: 6px; }
.public-message.error { background: #ffeded; color: #9b2222; }
.review-item p { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .search-suggestions { min-width: 0; }
  .public-toast { bottom: 16px; }
  .public-message { margin: 12px; }
  .review-item header { flex-wrap: wrap; }
  .place-card-top { display: block; padding-right: 0; }
  .place-card-top h3 { margin-right: 42px; }
  .place-card-top .status-pill { position: static; margin-top: 6px; }
  .place-card-body { min-width: 0; }
  .place-card .favorite-button { width: 34px; height: 34px; }
}

.account-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.account-activity { display: grid; gap: 16px; }
.account-form { display: grid; gap: 14px; }
.account-form label { display: grid; gap: 6px; color: #173758; font-weight: 600; }
.account-form input, .account-form select, .account-form textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #cbdced; border-radius: 6px; font: inherit; color: #173758; background: #fff; }
.account-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #e8eef5; color: #173758; text-decoration: none; }
.account-row:last-of-type { border-bottom: 0; }
.account-row small { display: block; max-width: 440px; margin-top: 4px; color: #6a7f95; overflow-wrap: anywhere; }
.account-row > span:last-child { color: #54708d; font-size: 13px; text-align: right; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-card { overflow: hidden; border: 1px solid #dbe6f2; border-radius: 8px; background: #fff; box-shadow: 0 8px 24px #2143650b; }
.article-card a { display: block; height: 100%; color: inherit; text-decoration: none; }
.article-card img, .article-card > a > .image-placeholder { display: block; width: 100%; height: 190px; object-fit: cover; }
.article-card > a > div { padding: 16px; }
.article-card h2 { margin: 8px 0; color: #12345a; font-size: 19px; }
.article-card p { color: #60758b; }
.article-detail { max-width: 850px; margin: 0 auto 30px; }
.article-detail > header { margin: 28px 0; }
.article-detail h1 { color: #113d75; }
.article-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: 8px; }
.article-cover.image-placeholder { display: grid; min-height: 220px; place-items: center; color: #7890ad; background: #e8f2fc; }
.article-body { padding: 24px 0; color: #344d67; font-size: 17px; line-height: 1.9; overflow-wrap: anywhere; }
.nearby-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nearby-section { width: min(var(--container), calc(100% - 36px)); margin: 0 auto 18px; }
.nearby-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e1eaf5; border-radius: 14px; color: #173758; background: #fff; text-decoration: none; box-shadow: 0 5px 16px rgba(15, 55, 105, .06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.nearby-card:hover { transform: translateY(-3px); border-color: #b8d4f2; box-shadow: 0 12px 24px rgba(15, 55, 105, .12); }
.nearby-card img, .nearby-card .image-placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: 0; background: #edf5ff; }
.nearby-card strong, .nearby-card small { overflow-wrap: anywhere; }
.nearby-card strong { padding: 11px 12px 0; line-height: 1.45; }
.nearby-card small { padding: 5px 12px 12px; color: #6b8096; line-height: 1.4; }
.mobile-place-actions { display: none; }
.assistant-launch { position: fixed; right: 22px; bottom: 20px; z-index: 1000; display: flex; align-items: center; gap: 9px; padding: 12px 17px; border: 0; border-radius: 999px; color: #fff; background: #0878d1; box-shadow: 0 8px 24px #183a5c38; font: inherit; font-weight: 700; }
.assistant-dialog { position: fixed; inset: auto 22px 82px auto; width: min(390px, calc(100vw - 28px)); max-height: min(620px, calc(100dvh - 105px)); margin: 0; padding: 0; border: 1px solid #d4e2f3; border-radius: 12px; color: #173758; box-shadow: 0 16px 48px #10213d38; }
.assistant-dialog::backdrop { background: #10213d55; }
.assistant-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 17px; border-bottom: 1px solid #e3ebf4; }
.assistant-dialog > header strong, .assistant-dialog > header small { display: block; }
.assistant-dialog > header small { margin-top: 4px; color: #6a7f95; }
.assistant-dialog > header button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eff5fb; color: #173758; }
.assistant-messages { display: flex; flex-direction: column; gap: 10px; max-height: 380px; min-height: 140px; overflow-y: auto; padding: 14px; }
.assistant-note { margin: 0; padding: 9px 11px; border-radius: 6px; color: #60758b; background: #f2f7fc; font-size: 12px; }
.assistant-message { align-self: flex-start; max-width: 92%; margin: 0; padding: 10px 12px; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; background: #f0f5fa; }
.assistant-message.user { align-self: flex-end; color: #fff; background: #0878d1; }
.assistant-message.error { color: #9d3030; background: #fff1f1; }
.assistant-dialog form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 12px; border-top: 1px solid #e3ebf4; }
.assistant-dialog textarea { min-width: 0; resize: vertical; padding: 10px; border: 1px solid #cbdced; border-radius: 6px; font: inherit; }
.assistant-dialog form .btn-primary { display: inline-flex; align-items: center; gap: 7px; align-self: end; padding: 10px 12px; border: 0; border-radius: 6px; color: #fff; background: #0878d1; }
.assistant-dialog form .btn-primary:disabled { opacity: .6; }
.assistant-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.assistant-sources a { padding: 5px 8px; border-radius: 5px; color: #075ca7; background: #e2f1ff; font-size: 12px; }
@media (max-width: 700px) {
  .public-page { width: min(var(--container), calc(100% - 28px)); }
  .article-list-page, .account-page { padding-top: 24px; padding-bottom: 36px; }
  .article-list-page .page-heading { margin-bottom: 18px; }
  .article-list-page .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .article-list-page .empty-state { min-height: 190px; padding: 22px 16px; }
  .article-detail-page { padding-top: 20px; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-card img, .article-card > a > .image-placeholder { height: 140px; }
  .nearby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nearby-section { width: calc(100% - 28px); margin-bottom: 16px; }
  .mobile-place-actions { position: fixed; inset: auto 0 0; z-index: 900; display: flex; justify-content: space-around; gap: 8px; padding: 9px max(12px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); border-top: 1px solid #dbe6f2; background: #fff; box-shadow: 0 -5px 20px #183a5c12; }
  .mobile-place-actions a, .mobile-place-actions button { display: inline-flex; flex: 1; justify-content: center; align-items: center; gap: 7px; min-height: 42px; border: 1px solid #dbe6f2; border-radius: 6px; color: #15599a; background: #fff; font: inherit; text-decoration: none; }
  .mobile-place-actions .primary { color: #fff; border-color: #0878d1; background: #0878d1; }
  .detail-layout { padding-bottom: 74px; }
  .assistant-launch { right: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); padding: 11px 14px; }
  .assistant-dialog { inset: auto 8px calc(66px + env(safe-area-inset-bottom)) 8px; width: auto; max-height: calc(100dvh - 88px - env(safe-area-inset-bottom)); }
  .assistant-messages { max-height: min(42dvh, 340px); }
}
@media (max-width: 420px) {
  .article-list-page .article-grid, .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-list-page .page-heading h1 { font-size: 1.65rem; }
  .article-card img, .article-card > a > .image-placeholder { height: 180px; }
}

.trip-planner-page { width: min(1060px, calc(100% - 40px)); margin: 0 auto; padding: clamp(32px, 5vw, 66px) 0 72px; }
.trip-planner-heading { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.trip-planner-heading .eyebrow, .trip-results-heading .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 900; }
.trip-planner-heading h1 { margin: 9px 0; color: var(--blue-dark); font-size: clamp(1.8rem, 4vw, 2.6rem); }
.trip-planner-heading p { margin: 0; color: var(--muted); }
.trip-planner-form, .trip-results, .trip-empty-state { padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.trip-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.trip-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--blue-dark); font-weight: 800; }
.trip-field > span { display: flex; align-items: center; gap: 8px; }
.trip-field > span i { width: 18px; color: var(--blue); text-align: center; }
.trip-field select, .trip-field input[type=time] { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #cbdcf0; border-radius: 12px; outline-color: var(--blue); color: var(--ink); background: #fff; }
.trip-field-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 9px 14px; padding: 16px; border-radius: 15px; background: #f4f9ff; }
.trip-field-wide > span, .trip-field-wide select, .trip-field-wide small { grid-column: 1; }
.trip-field-wide select { grid-row: 2; }
.trip-location-button { grid-column: 2; grid-row: 2; min-height: 46px; padding: 0 14px; border: 1px solid #b9d5f5; border-radius: 12px; color: var(--blue-dark); background: #fff; font-weight: 800; cursor: pointer; }
.trip-location-button:disabled { opacity: .65; cursor: wait; }
.trip-field-wide small { color: var(--muted); font-size: .82rem; font-weight: 500; }
.trip-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.trip-form-footer p, .trip-results-heading p, .trip-estimate-note { margin: 0; color: var(--muted); font-size: .9rem; }
.trip-form-footer p i, .trip-estimate-note i { color: var(--blue); }
.trip-form-footer .btn-primary, .trip-route-button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; color: #fff; background: var(--blue); font-weight: 900; box-shadow: 0 8px 20px #0968e833; cursor: pointer; }
.trip-results { margin-top: 26px; }
.trip-results-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.trip-results-heading h2 { margin: 4px 0; color: var(--blue-dark); }
.trip-stops { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: stops; }
.trip-stop { display: grid; grid-template-columns: 38px 100px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.trip-stop-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 900; }
.trip-stop-image { display: grid; place-items: center; width: 100px; height: 82px; overflow: hidden; border-radius: 12px; color: #80a4ca; background: #edf5ff; }
.trip-stop-image img { width: 100%; height: 100%; object-fit: cover; }
.trip-stop-content { min-width: 0; }
.trip-stop-content h3 { margin: 2px 0 5px; overflow-wrap: anywhere; color: var(--blue-dark); font-size: 1.08rem; }
.trip-stop-content p { margin: 0; color: var(--muted); font-size: .88rem; }
.trip-stop-time { color: #19894b; font-size: .82rem; font-weight: 900; }
.trip-stop-link { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 800; white-space: nowrap; }
.trip-estimate-note { margin-top: 16px; }
.trip-empty-state { margin-top: 26px; text-align: center; }
.trip-empty-state > i { color: var(--blue); font-size: 2rem; }
.trip-empty-state h2 { margin: 12px 0 6px; color: var(--blue-dark); }
.trip-empty-state p { max-width: 650px; margin: 0 auto; color: var(--muted); }
.hero-trip-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; padding: 10px 16px; border: 1px solid #b8d6f7; border-radius: 999px; color: var(--blue-dark); background: rgba(255,255,255,.88); font-weight: 900; box-shadow: 0 8px 22px #0d37651c; }
.hero-trip-link i:last-child { color: var(--blue); }
@media (max-width: 700px) {
  .trip-planner-page { width: min(100% - 28px, 620px); padding-top: 28px; }
  .trip-form-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .trip-field-wide { grid-column: auto; }
  .trip-form-footer, .trip-results-heading { align-items: stretch; flex-direction: column; }
  .trip-form-footer .btn-primary, .trip-route-button { width: 100%; }
  .trip-stop { grid-template-columns: 32px 72px minmax(0, 1fr); gap: 10px; padding: 9px; }
  .trip-stop-number { width: 30px; height: 30px; }
  .trip-stop-image { width: 72px; height: 70px; }
  .trip-stop-content h3 { font-size: .98rem; }
  .trip-stop-content p { font-size: .8rem; }
  .trip-stop-link { grid-column: 3; font-size: .84rem; }
}
@media (max-width: 420px) {
  .trip-field-wide { grid-template-columns: minmax(0, 1fr); }
  .trip-field-wide > span, .trip-field-wide select, .trip-field-wide small, .trip-location-button { grid-column: 1; grid-row: auto; }
  .trip-location-button { width: 100%; }
}
