/*
 * Ostfriesland Nordsee Portal — professional travel UI layer.
 * Loaded after the legacy component files so the portal keeps its WordPress
 * functionality while using a calmer, image-led and consistently scaled UI.
 */

:root {
  --font-display-weight: 900;
  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-sm: 0 6px 18px rgba(0, 45, 94, .06);
  --shadow: 0 18px 50px rgba(0, 45, 94, .10);
  --shadow-float: 0 18px 46px rgba(0, 45, 94, .14);
  --line: rgba(0, 45, 94, .12);
  --line-strong: rgba(0, 45, 94, .22);
  --panel-border: rgba(0, 45, 94, .11);
  --travel-green: #557869;
  --travel-sky: #dceef2;
  --travel-sand: #f5e8dc;
}

html { scroll-padding-top: 116px; }
body {
  color: #12283d;
  font-size: 16px;
  line-height: 1.58;
  overflow-wrap: break-word;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
.display-title,
.card-title,
.mega-feature h3,
.portal-intro-card h1,
.archive-intro h1,
.travel-hero h1,
.article-header h1,
.detail-head h1,
.event-hero-copy h1,
.detail-hero-copy h1 {
  font-family: var(--font-display);
  font-weight: var(--font-display-weight, 900);
  font-synthesis: none;
  font-style: normal;
  letter-spacing: 0;
  text-wrap: pretty;
}

h1 {
  margin-bottom: .4em;
  font-size: clamp(2.2rem, 3.25vw, 3.05rem);
  line-height: 1.06;
}
h2 {
  margin-bottom: .45em;
  font-size: clamp(1.8rem, 2.3vw, 2.25rem);
  line-height: 1.08;
}
h3 {
  margin-bottom: .45em;
  font-size: clamp(1.24rem, 1.55vw, 1.55rem);
  line-height: 1.12;
}
h4 { font-size: 1.06rem; }

.section { padding: clamp(56px, 6vw, 88px) 0; }
.section-sm { padding: clamp(34px, 4vw, 56px) 0; }
.section-head { align-items: flex-end; margin-bottom: clamp(24px, 3vw, 34px); }
.section-head > div { max-width: 760px; }
.section-head h2 { max-width: 19ch; }
.section-head p { max-width: 660px; margin-bottom: 0; font-size: 1.02rem; line-height: 1.58; }
.eyebrow {
  margin-bottom: 10px;
  font-size: .75rem;
  letter-spacing: .105em;
}
.eyebrow::before { width: 22px; height: 3px; }

/* Keep navigation and functional headings legible instead of applying the
   decorative display face to every small control. */
.mega-title,
.mega-column h3,
.dashboard-card h2,
.dashboard-card h3,
.info-card h3,
.footer-column h3,
.footer-col h3,
.form-label,
.portal-nav strong,
.mobile-panel h2 {
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0;
}

/* --------------------------------------------------------------------------
   Controls and common surfaces
   -------------------------------------------------------------------------- */

.btn {
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: .94rem;
  font-weight: 800;
}
.btn-sm { min-height: 38px; padding: 8px 14px; border-radius: 9px; }
.btn-lg { min-height: 52px; padding: 13px 24px; }
.btn-icon { border-radius: 50%; }
.icon-button { width: 44px; height: 44px; }

.input,
.select,
textarea,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
select,
textarea {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
textarea { min-height: 122px; }
.textarea-short { min-height: 94px; }
.textarea-large { min-height: 180px; }
.input:focus,
.select:focus,
textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 45, 94, .09);
}
.form-label { justify-content: flex-start; font-size: .86rem; }
.form-hint { line-height: 1.45; }
.form-grid,
.form-grid-3 { gap: 18px; }
.form-group { gap: 7px; }
.form-subgroup { margin-top: 22px; }

.badge,
.tag,
.status-pill { border-radius: 8px; }

/* Restrained icon language: navy for functional icons, yellow only as a
   deliberate accent. This removes the random turquoise appearance. */
.info-list .icon,
.feature-list .icon,
.event-info .icon,
.info-row .icon,
.quick-link .icon,
.notice .icon,
.upload-field .upload-icon,
.upload-box .icon,
.contact-card-icon .icon,
.form-section-head .icon,
.submission-guide .icon,
.profile-sidebar-note .icon,
.empty-state > .icon,
.metric-card .icon,
.category-icon,
.activity-icon,
.choice-large-icon {
  color: var(--blue) !important;
}

/* --------------------------------------------------------------------------
   Header refinements
   -------------------------------------------------------------------------- */

.site-header .header-shell {
  padding-inline: 17px 10px;
  border-radius: 22px;
}
.site-logo-desktop { width: clamp(205px, 15vw, 245px); }
.primary-nav { gap: 4px; }
.nav-trigger,
.nav-link { min-height: 42px; padding: 8px 12px; border-radius: 10px; font-size: .9rem; }
.nav-trigger.active,
.nav-trigger[aria-expanded="true"] { background: var(--beige-dark); }
.header-actions { gap: 5px; }
.header-actions > .btn { min-height: 44px; padding-inline: 19px; }

.site-header .mega-menu {
  padding: 26px 30px 30px;
  border-radius: 20px;
}
.mega-head { margin-bottom: 20px; }
.mega-title { font-size: 1.23rem; }
.mega-grid { gap: 30px; }
.mega-column h3 { margin-bottom: 10px; font-size: .95rem; }
.mega-list a { padding: 5px 0; font-size: .95rem; }
.mega-feature { padding: 22px; border-radius: 16px; }
.mega-feature h3 { font-size: 1.55rem; line-height: 1.08; }
.mega-feature p { font-size: .92rem; }

.site-header .search-body { border-radius: 0 0 20px 20px; }
.site-header .search-result { border-radius: 13px; }
.site-header .search-result strong { display: block; }
.site-header .search-card-type { display: block; margin-bottom: 3px; font-size: .7rem; letter-spacing: .08em; }

/* --------------------------------------------------------------------------
   Image-led travel homepage
   -------------------------------------------------------------------------- */

.travel-home { padding-bottom: 24px; }
.travel-hero { padding: 12px 0 0; }
.travel-hero-frame {
  position: relative;
  min-height: clamp(440px, 53vw, 590px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--travel-sky);
  box-shadow: var(--shadow-sm);
}
.travel-hero-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.travel-hero-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 29, 62, .68) 0%, rgba(0, 29, 62, .32) 48%, rgba(0, 29, 62, .05) 78%);
  pointer-events: none;
}
.travel-hero-copy {
  position: absolute;
  z-index: 1;
  bottom: 62px;
  left: clamp(28px, 5vw, 70px);
  width: min(610px, calc(100% - 56px));
  color: #fff;
}
.travel-hero-copy .eyebrow { color: #fff; }
.travel-hero-copy h1 {
  max-width: 18ch;
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(2.3rem, 3.45vw, 3.15rem);
  line-height: 1.035;
}
.travel-hero-copy p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
}

.travel-search {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(270px, 1.35fr) minmax(190px, .72fr) minmax(190px, .72fr) auto;
  align-items: stretch;
  width: min(1120px, calc(100% - 56px));
  margin: -31px auto 0;
  padding: 8px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 45, 94, .13);
}
.travel-search-field {
  position: relative;
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 1px;
  padding: 7px 18px 7px 45px;
  border-right: 1px solid var(--line);
}
.travel-search-field > .icon {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: var(--blue);
}
.travel-search-field label {
  color: var(--blue);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .035em;
}
.travel-search-field input,
.travel-search-field select {
  width: 100%;
  min-height: 24px;
  padding: 0 24px 0 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ink);
  font-size: .96rem;
}
.travel-search-submit { min-width: 132px; margin-left: 8px; }

.travel-shortcuts { padding-top: 40px; }
.travel-shortcut-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.travel-shortcut {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.travel-shortcut:hover { transform: translateY(-2px); border-color: rgba(0, 45, 94, .22); box-shadow: var(--shadow-sm); text-decoration: none; }
.travel-shortcut-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--beige-dark);
  color: var(--blue);
}
.travel-shortcut-icon .icon { width: 23px; height: 23px; }
.travel-shortcut strong { display: block; margin-bottom: 3px; color: var(--blue); font-size: .98rem; }
.travel-shortcut small { display: block; color: var(--muted); font-size: .79rem; line-height: 1.35; }
.travel-shortcut > .icon { width: 18px; height: 18px; }
.travel-shortcut.is-events .travel-shortcut-icon,
.travel-shortcut.is-coast .travel-shortcut-icon { background: var(--yellow); }

.travel-section { border-top: 1px solid rgba(0, 45, 94, .07); }
.travel-section:first-of-type { border-top: 0; }
.travel-section-head .link-arrow { margin-bottom: 5px; }
.travel-card-grid { gap: 20px; }

.planner-promo {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  min-height: 480px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--blue);
  color: #fff;
}
.planner-promo-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(34px, 5vw, 64px); }
.planner-promo-copy .eyebrow { color: #fff; }
.planner-promo-copy h2 { max-width: 15ch; color: #fff; font-size: clamp(1.9rem, 2.65vw, 2.5rem); }
.planner-promo-copy p { max-width: 570px; color: rgba(255, 255, 255, .88); }
.planner-promo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 24px; }
.planner-promo-tags span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px; background: rgba(255,255,255,.08); font-size: .8rem; }
.planner-promo-tags .icon { width: 16px; height: 16px; color: var(--yellow); }
.planner-promo-visual { position: relative; min-height: 430px; overflow: hidden; background: var(--travel-sky); }
.planner-promo-visual > img { width: 100%; height: 100%; object-fit: cover; }
.planner-promo-note { position: absolute; right: 24px; bottom: 24px; display: grid; gap: 2px; max-width: 270px; padding: 16px 18px; border-radius: 13px; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: var(--shadow-sm); }
.planner-promo-note span { color: var(--muted); font-size: .82rem; }

/* --------------------------------------------------------------------------
   Travel cards
   -------------------------------------------------------------------------- */

.card {
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(0, 45, 94, .18); box-shadow: 0 14px 34px rgba(0,45,94,.09); }
.card-image { aspect-ratio: 3 / 2; }
.card-image .badge { top: 12px; left: 12px; }
.card-save { top: 10px; right: 10px; width: 40px; height: 40px; }
.card-body { align-content: start; gap: 9px; padding: 18px 18px 17px; }
.card-tone { background: #fff; }
.card-tone .card-body { min-height: 0; }
.card-title,
.card-body h3 { margin: 0; font-size: clamp(1.28rem, 1.55vw, 1.55rem); line-height: 1.12; }
.card-body p { display: -webkit-box; overflow: hidden; margin: 0; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .91rem; line-height: 1.5; }
.card-meta { gap: 7px 12px; font-size: .79rem; }
.card-meta .icon { width: 15px; height: 15px; color: var(--blue); }
.card-footer { margin-top: 5px; }
.card-arrow { width: 37px; height: 37px; border-radius: 10px; }
.event-date { font-size: .84rem; }

/* --------------------------------------------------------------------------
   Location and event archives
   -------------------------------------------------------------------------- */

.archive-intro { padding: 14px 0 28px; }
.archive-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  background: #fff;
}
.archive-intro-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(34px, 5vw, 62px); }
.archive-intro-copy h1 { max-width: 14ch; margin-bottom: 13px; font-size: clamp(2rem, 2.7vw, 2.55rem); }
.archive-intro-copy p { max-width: 650px; margin-bottom: 22px; color: var(--muted); font-size: 1.02rem; }
.archive-intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.archive-intro-visual { min-height: 310px; overflow: hidden; background: var(--travel-sky); }
.archive-intro-visual img { width: 100%; height: 100%; object-fit: cover; }

.archive-content { padding: 12px 0 78px; }
.filter-panel {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.filter-form { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, .72fr)) auto; align-items: end; gap: 12px; }
.filter-form .form-group { gap: 5px; }
.filter-form .form-label { font-size: .74rem; letter-spacing: .025em; }
.filter-form .input,
.filter-form .select { min-height: 44px; }
.filter-form .btn { min-height: 44px; }
.filter-panel > .cluster { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--line); }
.filter-panel .tag { padding: 6px 9px; border: 1px solid var(--line); background: var(--beige-light); font-size: .78rem; text-decoration: none; }
.filter-panel .tag:hover { border-color: var(--blue); }

.archive-toolbar { margin-bottom: 18px; }
.archive-toolbar-left strong { font-size: .9rem; }
.archive-toolbar .select { min-width: 160px; min-height: 42px; }
.view-toggle { padding: 3px; border-radius: 10px; }
.view-toggle button { width: 38px; height: 36px; border-radius: 8px; }
.view-toggle button.is-active { background: var(--yellow); }
.archive-layout { gap: 22px; }
.location-list { gap: 20px; }
.empty-state {
  min-height: 0;
  padding: clamp(32px, 4vw, 48px);
  border: 1px dashed rgba(0,45,94,.24);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.empty-state > .icon { width: 42px; height: 42px; margin-bottom: 14px; }
.empty-state h1,
.empty-state h2 { max-width: 20ch; margin-inline: auto; font-size: clamp(1.8rem, 2.8vw, 2.45rem); }
.empty-state h3 { font-size: 1.45rem; }
.empty-state p { max-width: 600px; }
.compact-empty { padding: 34px; }
.archive-map { min-height: 480px; border-radius: 18px; }

/* --------------------------------------------------------------------------
   Detail pages and magazine
   -------------------------------------------------------------------------- */

.detail-gallery { margin-top: 14px; gap: 10px; }
.detail-gallery-main,
.detail-gallery-side > div { border-radius: 18px; }
.detail-gallery-main { min-height: 520px; }
.detail-head { padding: 30px 0; }
.detail-head h1 { max-width: 840px; font-size: clamp(2.05rem, 3vw, 2.85rem); }
.detail-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: clamp(28px, 4vw, 54px); }
.detail-content > section { padding: 28px 0; }
.detail-content h2 { font-size: clamp(1.8rem, 2.45vw, 2.35rem); }
.detail-sidebar { top: 116px; }
.info-card,
.fit-box,
.review,
.rating-big { border-radius: 16px; }
.info-card { padding: 21px; border: 1px solid var(--panel-border); }
.info-list .icon { color: var(--blue) !important; }
.rating-big strong { font-size: 3rem; }
.article-header { padding: 28px 0 18px; }
.article-header-inner { max-width: 860px; }
.article-header h1 { font-size: clamp(2.05rem, 3.05vw, 2.9rem); }
.article-intro { font-size: 1.1rem; }
.article-cover { border-radius: 20px; }

/* --------------------------------------------------------------------------
   Portal dashboard and navigation
   -------------------------------------------------------------------------- */

.portal-shell { padding: 24px 0 76px; }
.portal-layout { grid-template-columns: 238px minmax(0, 1fr); gap: 22px; }
.portal-nav { top: 112px; border: 1px solid var(--panel-border); border-radius: 16px; box-shadow: none; }
.portal-link { min-height: 44px; border-radius: 9px; font-size: .9rem; }
.portal-link.is-active { background: var(--yellow); color: var(--blue); }
.portal-main .page-hero-box,
.portal-intro-card {
  margin-bottom: 22px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.portal-main .page-hero-box.is-yellow { background: var(--beige-light); }
.portal-main .page-hero-box h1,
.portal-intro-card h1 { max-width: 17ch; margin-bottom: 10px; font-size: clamp(2rem, 2.9vw, 2.65rem); }
.portal-main .page-hero-box p,
.portal-intro-card p { max-width: 680px; margin: 0; color: var(--muted); font-size: .98rem; }
.dashboard-head { gap: 22px; }
.metric-grid { gap: 12px; }
.metric-card { padding: 17px; border: 1px solid var(--panel-border); border-radius: 14px; }
.metric-card .icon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; }
.metric-card strong { margin-top: 12px; font-size: 1.65rem; }
.metric-card span { font-size: .8rem; }
.dashboard-grid { gap: 18px; }
.dashboard-card { padding: 22px; border: 1px solid var(--panel-border); border-radius: 16px; box-shadow: none; }
.dashboard-card .section-head { margin-bottom: 20px; }
.dashboard-card h2 { font-size: 1.18rem; }
.quick-links { gap: 8px; }
.quick-link { min-height: 52px; padding: 11px 12px; border-radius: 10px; }
.recommendation-card { border-radius: 11px; }
.portal-content-row { border-radius: 11px; }

/* --------------------------------------------------------------------------
   Professional submission forms
   -------------------------------------------------------------------------- */

.portal-intro-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
}
.portal-intro-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.portal-intro-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; background: var(--beige-light); color: var(--blue); font-size: .78rem; font-weight: 750; }
.portal-intro-meta .icon { width: 16px; height: 16px; }

.submission-workspace {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.submission-guide {
  position: sticky;
  top: 112px;
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 15px;
  background: #fff;
}
.submission-guide-head { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.submission-guide-head > .icon { display: grid; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--yellow); }
.submission-guide-head strong { display: block; color: var(--blue); font-size: .9rem; }
.submission-guide-head small { display: block; color: var(--muted); font-size: .72rem; }
.submission-step-nav { display: grid; gap: 2px; margin: 12px 0; }
.submission-step-nav a { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; min-height: 39px; padding: 5px 7px; border-radius: 8px; color: var(--ink); font-size: .81rem; font-weight: 700; text-decoration: none; }
.submission-step-nav a:hover { background: var(--beige-light); }
.submission-step-nav a span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--blue); font-size: .72rem; }
.submission-guide-tip { padding: 12px; border-radius: 10px; background: var(--beige-light); }
.submission-guide-tip strong { font-size: .78rem; }
.submission-guide-tip p { margin: 3px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.4; }
.submission-main { display: grid; gap: 16px; min-width: 0; }
.form-section-card {
  padding: clamp(22px, 3vw, 30px);
  scroll-margin-top: 112px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}
.form-section-head { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; margin-bottom: 22px; }
.form-section-number {
  width: 38px;
  height: 38px;
  aspect-ratio: 1;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: .86rem;
  font-weight: 900;
}
.form-section-head h2 { margin: 0 0 4px; font-size: clamp(1.45rem, 2vw, 1.78rem); line-height: 1.12; }
.form-section-head p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.48; }
.compact-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.choice-card {
  min-height: 45px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  font-size: .84rem;
}
.choice-card input { flex: 0 0 auto; width: 17px; height: 17px; }
.choice-card:has(input:checked) { border-color: var(--blue); background: #fff5d4; box-shadow: none; }
.form-details { margin-top: 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--beige-light); }
.form-details summary { padding: 13px 15px; color: var(--blue); font-size: .86rem; font-weight: 800; cursor: pointer; }
.form-details[open] summary { border-bottom: 1px solid var(--line); }
.form-details > :not(summary) { margin: 15px; }
.advanced-fields { background: #fff; }
.map-setup-note { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--beige-light); color: var(--muted); font-size: .82rem; }
.map-setup-note .icon { width: 20px; height: 20px; color: var(--blue); }
.submission-map { height: 350px; margin-top: 18px; border-radius: 13px; }
.upload-field {
  display: grid;
  min-height: 150px;
  place-items: center;
  gap: 6px;
  padding: 22px;
  border: 1.5px dashed rgba(0,45,94,.28);
  border-radius: 12px;
  background: var(--beige-light);
  text-align: center;
  cursor: pointer;
}
.upload-field:hover { border-color: var(--blue); }
.upload-field .upload-icon { width: 42px; height: 42px; padding: 10px; border-radius: 10px; background: var(--yellow); }
.upload-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.single-upload-preview { margin-top: 12px; }
.single-upload-preview img { max-width: 320px; border-radius: 11px; }
.submission-review-note { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 16px; border: 1px solid var(--panel-border); border-radius: 12px; background: var(--beige-light); }
.submission-review-note > .icon { width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--yellow); color: var(--blue); }
.submission-review-note strong { display: block; margin-bottom: 3px; font-size: .9rem; }
.submission-review-note p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.submission-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 18px;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.submission-actions > div:first-child { display: grid; }
.submission-actions strong { font-size: .88rem; }
.submission-actions span { color: var(--muted); font-size: .78rem; }
.submission-action-buttons { display: flex; flex-wrap: wrap; gap: 9px; }

/* --------------------------------------------------------------------------
   Profile form
   -------------------------------------------------------------------------- */

.profile-intro-card { align-items: center; }
.profile-completion-card { flex: 0 0 190px; padding: 16px; border-radius: 13px; background: var(--beige-light); }
.profile-completion-card strong { display: block; color: var(--blue); font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.profile-completion-card > span { display: block; margin: 5px 0 10px; color: var(--muted); font-size: .75rem; }
.profile-completion-card .progress { height: 7px; }
.profile-settings-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.profile-settings-sidebar { position: sticky; top: 112px; padding: 18px; border: 1px solid var(--panel-border); border-radius: 15px; background: #fff; }
.profile-person-card { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.profile-person-card .avatar { width: 54px; height: 54px; }
.profile-person-card strong { display: block; overflow: hidden; color: var(--blue); font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-person-card span { display: block; overflow: hidden; color: var(--muted); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-section-nav { display: grid; gap: 2px; margin: 12px 0; }
.profile-section-nav a { display: grid; grid-template-columns: 27px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 39px; padding: 5px 7px; border-radius: 8px; color: var(--ink); font-size: .81rem; font-weight: 700; text-decoration: none; }
.profile-section-nav a:hover { background: var(--beige-light); }
.profile-section-nav a span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--blue); font-size: .7rem; }
.profile-sidebar-note { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 12px; border-radius: 10px; background: var(--beige-light); }
.profile-sidebar-note .icon { width: 21px; height: 21px; }
.profile-sidebar-note p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.profile-settings-main { display: grid; gap: 16px; min-width: 0; }
.profile-avatar-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-avatar-preview .avatar { width: 68px; height: 68px; }
.input-file { padding: 8px; }
.profile-remove-avatar { align-self: center; font-size: .78rem; }
.input-with-suffix { position: relative; }
.input-with-suffix .input { padding-right: 48px; }
.input-with-suffix span { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--muted); font-size: .82rem; }
.profile-save-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; border: 1px solid var(--panel-border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.profile-save-bar > span { color: var(--muted); font-size: .78rem; }
.profile-security-section { margin-top: 22px; }
.profile-security-section .form-submit-row { justify-content: flex-end; }

/* Backward-compatible cleanup for any remaining profile/forms that still use
   legacy classes. */
.profile-form-section { padding: 24px; border: 1px solid var(--panel-border); border-radius: 16px; box-shadow: none; }
.form-actions-sticky { position: static; padding: 15px 17px; border-radius: 12px; box-shadow: var(--shadow-sm); backdrop-filter: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { margin-top: 54px; }
.footer-cta { border-radius: 18px 18px 0 0; }
.footer-main { padding-top: 46px; }
.footer-column h3,
.footer-col h3 { font-size: .96rem; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .travel-shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-form .btn { align-self: end; }
  .planner-promo { grid-template-columns: 1fr 1fr; }
  .submission-workspace,
  .profile-settings-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .compact-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .travel-search { grid-template-columns: 1fr 1fr; width: min(760px, calc(100% - 36px)); }
  .travel-search-field { border-bottom: 1px solid var(--line); }
  .travel-search-field:nth-child(2) { border-right: 0; }
  .travel-search-field:nth-child(3) { border-bottom: 0; }
  .travel-search-submit { margin: 7px; }
  .archive-intro-grid { grid-template-columns: 1fr 38%; }
  .archive-intro-visual { min-height: 280px; }
  .planner-promo { grid-template-columns: 1fr; }
  .planner-promo-visual { min-height: 330px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submission-workspace,
  .profile-settings-layout { grid-template-columns: 1fr; }
  .submission-guide,
  .profile-settings-sidebar { position: static; }
  .submission-step-nav,
  .profile-section-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .submission-step-nav a,
  .profile-section-nav a { grid-template-columns: 25px 1fr; }
  .submission-guide-tip,
  .profile-sidebar-note { display: none; }
}

@media (max-width: 782px) {
  body { font-size: 15.5px; }
  h1 { font-size: clamp(1.95rem, 7vw, 2.3rem); }
  h2 { font-size: clamp(1.7rem, 6.5vw, 2.15rem); }
  h3 { font-size: 1.35rem; }
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }

  .travel-hero { padding-top: 0; }
  .travel-hero .container { width: 100%; }
  .travel-hero-frame { min-height: 520px; border-radius: 0; }
  .travel-hero-frame::after { background: linear-gradient(180deg, rgba(0,29,62,.03) 25%, rgba(0,29,62,.78) 100%); }
  .travel-hero-copy { right: 20px; bottom: 74px; left: 20px; width: auto; }
  .travel-hero-copy h1 { max-width: 14ch; font-size: clamp(2.05rem, 8vw, 2.45rem); }
  .travel-hero-copy p { font-size: .98rem; }
  .travel-search { grid-template-columns: 1fr; width: calc(100% - 28px); margin-top: -48px; padding: 7px; border-radius: 15px; }
  .travel-search-field { min-height: 62px; border-right: 0; border-bottom: 1px solid var(--line); }
  .travel-search-field:nth-child(3) { border-bottom: 1px solid var(--line); }
  .travel-search-submit { width: 100%; margin: 7px 0 0; }
  .travel-shortcuts { padding-top: 30px; }
  .travel-shortcut-grid { grid-template-columns: 1fr 1fr; }
  .travel-shortcut { min-height: 92px; }
  .planner-promo { border-radius: 18px; }
  .planner-promo-copy { padding: 30px 24px; }
  .planner-promo-copy h2 { font-size: 2.2rem; }
  .planner-promo-visual { min-height: 280px; }

  .archive-intro { padding-top: 0; }
  .archive-intro .container { width: 100%; }
  .archive-intro-grid { grid-template-columns: 1fr; border-width: 0 0 1px; border-radius: 0; }
  .archive-intro-copy { padding: 30px 20px; }
  .archive-intro-copy h1 { font-size: clamp(2rem, 7.5vw, 2.35rem); }
  .archive-intro-visual { order: -1; min-height: 210px; }
  .archive-intro-actions { gap: 13px; }
  .archive-content { padding-top: 0; }
  .filter-panel { padding: 18px; border-radius: 16px 16px 0 0; }
  .filter-form { grid-template-columns: 1fr; }
  .filter-form .btn { width: 100%; }
  .location-list { grid-template-columns: 1fr; }
  .location-list.list-view .card { grid-template-columns: 1fr; }
  .archive-toolbar { align-items: stretch; }

  .portal-shell { padding-top: 14px; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-main .page-hero-box,
  .portal-intro-card { padding: 26px 20px; border-radius: 15px; }
  .portal-main .page-hero-box h1,
  .portal-intro-card h1 { font-size: clamp(1.95rem, 7vw, 2.25rem); }
  .portal-intro-card { align-items: flex-start; flex-direction: column; }
  .portal-intro-meta { justify-content: flex-start; }
  .profile-completion-card { width: 100%; flex-basis: auto; }

  .submission-guide-head,
  .profile-person-card { border-bottom: 0; }
  .submission-step-nav,
  .profile-section-nav { display: flex; overflow-x: auto; margin-bottom: 0; padding-bottom: 3px; scrollbar-width: none; }
  .submission-step-nav::-webkit-scrollbar,
  .profile-section-nav::-webkit-scrollbar { display: none; }
  .submission-step-nav a,
  .profile-section-nav a { flex: 0 0 auto; white-space: nowrap; }
  .form-section-card { padding: 22px 18px; }
  .form-section-head { grid-template-columns: 34px minmax(0, 1fr); }
  .form-section-number { width: 34px; height: 34px; }
  .form-section-head h2 { font-size: 1.45rem; }
  .form-grid,
  .form-grid-3 { grid-template-columns: 1fr; }
  .compact-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submission-actions,
  .profile-save-bar { align-items: stretch; flex-direction: column; }
  .submission-action-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .submission-action-buttons .btn,
  .profile-save-bar .btn { width: 100%; }
  .profile-avatar-row { grid-template-columns: 68px minmax(0, 1fr); }
  .profile-remove-avatar { grid-column: 1 / -1; }

  .detail-gallery { grid-template-columns: 1fr; }
  .detail-gallery-main { min-height: 360px; }
  .detail-gallery-side { display: none; }
  .detail-head { align-items: flex-start; grid-template-columns: 1fr; }
  .detail-head h1,
  .article-header h1 { font-size: clamp(2rem, 7vw, 2.4rem); }
  .detail-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container,
  .content-width { width: min(100% - 28px, var(--container)); }
  .travel-shortcut-grid { grid-template-columns: 1fr; }
  .travel-shortcut small { font-size: .8rem; }
  .planner-promo-tags { display: none; }
  .archive-intro-actions { align-items: stretch; flex-direction: column; }
  .archive-intro-actions .btn { width: 100%; }
  .compact-choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 43px; }
  .submission-action-buttons { grid-template-columns: 1fr; }
  .profile-avatar-row { grid-template-columns: 1fr; }
  .profile-avatar-preview { display: none; }
  .profile-remove-avatar { grid-column: auto; }
  .card-body { padding: 16px; }
  .footer-cta,
  .footer-main { border-radius: 0; }
}

/* --------------------------------------------------------------------------
   Generic page introductions, planner and contact
   -------------------------------------------------------------------------- */

.page-hero { padding: 14px 0 30px; }
.page-hero-box {
  padding: clamp(30px, 4vw, 46px);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  box-shadow: none;
}
.page-hero-box.is-yellow { background: var(--beige-light); }
.page-hero-box.is-blue { background: var(--blue); }
.page-hero-box h1 { max-width: 18ch; margin-bottom: 11px; font-size: clamp(2rem, 2.7vw, 2.55rem); }
.page-hero-box p { max-width: 720px; font-size: 1rem; }
.page-hero-box.is-blue h1,
.page-hero-box.is-blue h2,
.page-hero-box.is-blue p { color: #fff; }

.wizard-shell { grid-template-columns: 230px minmax(0, 1fr); gap: 20px; }
.wizard-sidebar {
  top: 112px;
  padding: 20px;
  border-radius: 16px;
  background: var(--blue);
}
.wizard-sidebar-icon { width: 40px; height: 40px; margin-bottom: 13px; padding: 9px; border-radius: 10px; }
.wizard-sidebar h2 { margin-bottom: 7px; color: #fff; font-family: var(--font-body); font-size: 1.15rem; font-weight: 850; }
.wizard-sidebar p { color: rgba(255,255,255,.76); font-size: .8rem; line-height: 1.45; }
.wizard-progress { gap: 7px; margin-top: 17px; }
.wizard-step-indicator { grid-template-columns: 29px 1fr; gap: 8px; font-size: .78rem; }
.wizard-step-indicator span:first-child { width: 29px; height: 29px; font-size: .72rem; }
.wizard-main {
  min-height: 0;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: #fff;
}
.wizard-main h2 { max-width: 19ch; font-size: clamp(1.65rem, 2.25vw, 2.05rem); }
.choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.choice-large {
  min-height: 116px;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
}
.choice-large:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.choice-large:has(input:checked) { background: #fff5d4; box-shadow: inset 0 0 0 1px var(--blue); }
.choice-large-icon { width: 43px; height: 43px; border-radius: 10px; }
.choice-large-icon .icon { width: 21px; height: 21px; }
.choice-large strong { font-size: .9rem; }
.choice-large-copy { min-height: 132px; padding: 15px; }
.choice-large-copy small { font-size: .76rem; }
.wizard-actions { margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); }
.info-panel,
.planner-finish { padding: 15px 17px; border-radius: 11px; background: var(--beige-light); }
.info-panel > .icon,
.planner-finish > .icon { width: 36px; height: 36px; flex-basis: 36px; padding: 8px; border-radius: 9px; background: var(--yellow); color: var(--blue); }

.form-card { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--panel-border); border-radius: 16px; box-shadow: none; }
.form-card > h2 { font-size: clamp(1.65rem, 2.1vw, 2rem); }
.contact-layout { gap: 22px; }
.contact-sidebar { gap: 14px; }
.contact-sidebar .info-card { border-radius: 14px; }

@media (max-width: 980px) {
  .wizard-shell { grid-template-columns: 1fr; }
  .wizard-sidebar { position: static; }
  .wizard-sidebar > p { max-width: 600px; }
  .wizard-progress { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
  .page-hero { padding-top: 0; }
  .page-hero .container { width: 100%; }
  .page-hero-box { padding: 28px 20px; border-width: 0 0 1px; border-radius: 0; }
  .page-hero-box h1 { font-size: clamp(1.95rem, 7vw, 2.3rem); }
  .wizard-main { padding: 24px 18px; }
  .wizard-progress { display: flex; overflow-x: auto; }
  .wizard-step-indicator { flex: 0 0 auto; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .choice-grid { grid-template-columns: 1fr; }
  .choice-large { min-height: 86px; align-items: center; justify-content: flex-start; flex-direction: row; text-align: left; }
  .choice-large-copy { min-height: 0; }
  .wizard-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .wizard-actions .btn { width: 100%; }
  .wizard-actions [data-wizard-submit] { grid-column: 1 / -1; }
}

/* Prevent wide step labels or form controls from defining the mobile grid's
   intrinsic width. */
.submission-workspace,
.profile-settings-layout,
.submission-guide,
.submission-main,
.profile-settings-sidebar,
.profile-settings-main,
.form-section-card,
.form-grid,
.form-group { min-width: 0; max-width: 100%; }
@media (max-width: 980px) {
  .submission-workspace,
  .profile-settings-layout { grid-template-columns: minmax(0, 1fr); }
}
