/*
 * Ostfriesland Nordsee Portal v5
 * Visual system based on the approved travel-portal mockups.
 */

:root {
  --ofn5-bg: var(--body-bg, #fbf6f2);
  --ofn5-surface: var(--surface, #ffffff);
  --ofn5-soft: var(--beige-light, #fffaf5);
  --ofn5-beige: var(--beige-dark, #f4e5d9);
  --ofn5-blue: var(--blue, #002d5e);
  --ofn5-yellow: var(--yellow, #fab900);
  --ofn5-ink: var(--ink, #10243b);
  --ofn5-muted: var(--muted, #637486);
  --ofn5-border: #d9e2ea;
  --ofn5-green: #3c8b35;
  --ofn5-radius: 16px;
  --ofn5-radius-lg: 22px;
  --ofn5-shadow: 0 10px 30px rgba(13, 43, 73, .09);
  --ofn5-shadow-soft: 0 5px 18px rgba(13, 43, 73, .08);
  --ofn5-display: var(--display-font, Georgia, "Times New Roman", serif);
  --ofn5-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ofn5-bg);
  color: var(--ofn5-ink);
  font-family: var(--ofn5-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.ofn5-lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
svg.ofn-icon, .ofn5-header .icon, .ofn5-footer .icon { width: 1em; height: 1em; fill: currentColor; flex: 0 0 auto; }

.ofn5-container {
  width: min(100% - 56px, 1210px);
  margin-inline: auto;
}

.ofn5-skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 12px 16px;
  background: var(--ofn5-blue);
  color: #fff;
  border-radius: 0 0 10px 10px;
}
.ofn5-skip-link:focus { top: 0; }

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Header */
.ofn5-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid rgba(0, 45, 94, .1);
}
.ofn5-header__inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) minmax(240px, 310px) auto;
  align-items: center;
  gap: 24px;
}
.ofn5-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.ofn5-brand img { width: 188px; height: auto; }
.ofn5-nav { min-width: 0; }
.ofn5-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}
.ofn5-nav__list > li { position: relative; }
.ofn5-nav__list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 82px;
  color: var(--ofn5-blue);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition: color .18s ease;
}
.ofn5-nav__list > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--ofn5-yellow);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}
.ofn5-nav__list > li:hover > a::after,
.ofn5-nav__list > .current-menu-item > a::after,
.ofn5-nav__list > .current-menu-ancestor > a::after { transform: scaleX(1); }
.ofn5-nav__list .sub-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: -20px;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--ofn5-border);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--ofn5-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.ofn5-nav__list li:hover > .sub-menu,
.ofn5-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ofn5-nav__list .sub-menu a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--ofn5-blue); font-size: 14px; font-weight: 650; }
.ofn5-nav__list .sub-menu a:hover { background: var(--ofn5-soft); }

.ofn5-header-search {
  height: 44px;
  display: grid;
  grid-template-columns: 22px 1fr 34px;
  align-items: center;
  gap: 8px;
  padding: 0 7px 0 13px;
  background: #fff;
  border: 1px solid var(--ofn5-border);
  border-radius: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ofn5-header-search:focus-within { border-color: var(--ofn5-yellow); box-shadow: 0 0 0 3px rgba(250, 185, 0, .16); }
.ofn5-header-search > svg { color: #718296; font-size: 17px; }
.ofn5-header-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--ofn5-ink);
  font-size: 13px;
}
.ofn5-header-search input::placeholder { color: #7b8998; }
.ofn5-header-search button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ofn5-blue);
  cursor: pointer;
}

.ofn5-header-actions { display: flex; align-items: center; gap: 10px; }
.ofn5-header-actions--mobile { display: none; }
.ofn5-icon-button,
.ofn5-account-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ofn5-blue);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.ofn5-icon-button:hover,
.ofn5-account-button:hover { background: var(--ofn5-soft); }
.ofn5-icon-button:active,
.ofn5-account-button:active { transform: scale(.96); }
.ofn5-icon-button svg,
.ofn5-account-button svg { font-size: 22px; }
.ofn5-avatar { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }

.ofn5-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.ofn5-button:hover { transform: translateY(-1px); }
.ofn5-button--yellow { background: var(--ofn5-yellow); color: var(--ofn5-blue); box-shadow: 0 5px 14px rgba(250, 185, 0, .22); }
.ofn5-button--yellow:hover { background: #ffc423; }
.ofn5-button--outline { background: #fff; border-color: #bfcbd6; color: var(--ofn5-blue); }
.ofn5-button--outline:hover { border-color: var(--ofn5-blue); }
.ofn5-button--full { width: 100%; }
.ofn5-header-cta { min-height: 44px; padding-inline: 18px; white-space: nowrap; font-size: 14px; }

/* Overlay / drawer */
.ofn5-overlay { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; }
.ofn5-overlay[aria-hidden="false"] { visibility: visible; pointer-events: auto; }
.ofn5-overlay__backdrop { position: absolute; inset: 0; background: rgba(7, 28, 48, .54); opacity: 0; transition: opacity .22s ease; }
.ofn5-overlay[aria-hidden="false"] .ofn5-overlay__backdrop { opacity: 1; }
.ofn5-search-dialog,
.ofn5-filter-panel,
.ofn5-mobile-map,
.ofn5-gallery-dialog,
.ofn5-review-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  box-shadow: var(--ofn5-shadow);
}
.ofn5-search-dialog {
  width: min(720px, calc(100% - 32px));
  margin: 94px auto 0;
  padding: 30px;
  border-radius: var(--ofn5-radius-lg);
  transform: translateY(-18px);
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}
.ofn5-overlay[aria-hidden="false"] .ofn5-search-dialog { opacity: 1; transform: translateY(0); }
.ofn5-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.ofn5-dialog-header h2,
.ofn5-search-dialog h2 { margin: 6px 0 20px; color: var(--ofn5-blue); font-family: var(--ofn5-display); font-size: clamp(28px, 4vw, 42px); line-height: 1.08; }
.ofn5-quick-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.ofn5-quick-links a { padding: 8px 12px; border-radius: 999px; background: var(--ofn5-soft); color: var(--ofn5-blue); font-size: 13px; font-weight: 700; }
.ofn5-mobile-menu { position: absolute; top: 0; right: 0; width: min(430px, 100%); height: 100%; padding: 22px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
.ofn5-overlay[aria-hidden="false"] .ofn5-mobile-menu { transform: translateX(0); }
.ofn5-mobile-menu__header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--ofn5-border); }
.ofn5-mobile-menu__header .ofn5-brand img { width: 190px; }
.ofn5-mobile-menu__nav { display: grid; padding: 18px 0; }
.ofn5-mobile-menu__nav a { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #edf1f4; color: var(--ofn5-blue); font-size: 18px; font-weight: 750; }
.ofn5-mobile-menu__nav a > svg { font-size: 16px; }
.ofn5-mobile-menu__actions { display: grid; gap: 10px; padding-top: 20px; }

/* Shared typography */
.ofn5-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ofn5-yellow);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
.ofn5-section { padding: 64px 0; }
.ofn5-section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.ofn5-section-header h2 { margin: 6px 0 0; color: var(--ofn5-blue); font-family: var(--ofn5-display); font-size: clamp(29px, 2.85vw, 37px); font-weight: 900; line-height: 1.08; }
.ofn5-section-header--compact { align-items: center; }
.ofn5-section-header--compact h2 { margin: 0; font-size: 32px; }
.ofn5-link-arrow { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--ofn5-blue); font-weight: 800; white-space: nowrap; cursor: pointer; }
.ofn5-link-arrow svg { font-size: 14px; }
.ofn5-link-arrow:hover { color: #004888; }
.ofn5-center-action { display: flex; justify-content: center; margin-top: 24px; }

/* Search */
.ofn5-search-control {
  height: 56px;
  display: grid;
  grid-template-columns: 22px 1fr 54px;
  align-items: center;
  gap: 10px;
  padding-left: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfd9e2;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(13, 43, 73, .07);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ofn5-search-control:focus-within { border-color: var(--ofn5-yellow); box-shadow: 0 0 0 3px rgba(250, 185, 0, .16), 0 5px 14px rgba(13, 43, 73, .08); }
.ofn5-search-control > svg { color: #758698; font-size: 18px; }
.ofn5-search-control input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--ofn5-ink);
}
.ofn5-search-control input::placeholder { color: #738194; }
.ofn5-search-control button { align-self: stretch; display: grid; place-items: center; padding: 0; border: 0; background: var(--ofn5-yellow); color: var(--ofn5-blue); cursor: pointer; }
.ofn5-search-control button svg { font-size: 21px; }
.ofn5-search-control--dialog { margin-top: 8px; }

/* Homepage */
.ofn5-home-hero { position: relative; background: var(--ofn5-soft); padding-bottom: 70px; }
.ofn5-home-hero__image { width: 100%; height: 300px; overflow: hidden; }
.ofn5-home-hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.ofn5-home-hero__content { position: relative; }
.ofn5-search-card {
  width: min(900px, calc(100% - 40px));
  margin: -126px auto 0;
  padding: 30px 34px 28px;
  position: relative;
  z-index: 2;
  background: rgba(255, 252, 247, .98);
  border: 1px solid rgba(0, 45, 94, .06);
  border-radius: var(--ofn5-radius-lg);
  box-shadow: var(--ofn5-shadow);
}
.ofn5-search-card h1 { margin: 8px 0 8px; color: var(--ofn5-blue); font-family: var(--ofn5-display); font-size: clamp(34px, 3.35vw, 42px); font-weight: 900; line-height: 1.035; }
.ofn5-search-card > p { margin: 0 0 18px; color: var(--ofn5-muted); font-size: 16px; }
.ofn5-theme-strip { margin-top: -18px; padding: 0 0 26px; }
.ofn5-theme-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ofn5-theme-card { position: relative; min-height: 158px; overflow: hidden; border-radius: 13px; box-shadow: var(--ofn5-shadow-soft); isolation: isolate; }
.ofn5-theme-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ofn5-theme-card:hover > img { transform: scale(1.035); }
.ofn5-theme-card__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(1, 24, 48, .02) 22%, rgba(1, 24, 48, .88) 100%); }
.ofn5-theme-card__content { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 12px; color: #fff; }
.ofn5-theme-card__content > svg { color: var(--ofn5-yellow); font-size: 30px; }
.ofn5-theme-card__content > span { min-width: 0; display: grid; }
.ofn5-theme-card__content strong { font-size: 19px; line-height: 1.1; }
.ofn5-theme-card__content small { margin-top: 3px; color: rgba(255,255,255,.92); font-size: 12px; line-height: 1.25; }
.ofn5-theme-card__content > svg:last-child { margin-left: auto; color: #fff; font-size: 16px; }
.ofn5-section--featured { padding-top: 45px; padding-bottom: 42px; }
.ofn5-featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ofn5-featured-card {
  min-height: 190px;
  display: grid;
  grid-template-columns: 46% 1fr;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 45, 94, .08);
  border-radius: 14px;
  box-shadow: var(--ofn5-shadow-soft);
}
.ofn5-featured-card__image { min-height: 190px; overflow: hidden; }
.ofn5-featured-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ofn5-featured-card:hover .ofn5-featured-card__image img { transform: scale(1.025); }
.ofn5-featured-card__body { padding: 22px 44px 20px 20px; display: flex; flex-direction: column; }
.ofn5-featured-card h3 { margin: 9px 0 7px; color: var(--ofn5-blue); font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 700; line-height: 1.12; }
.ofn5-featured-card p { margin: 0 0 14px; color: #43586d; font-size: 14px; line-height: 1.45; }
.ofn5-pill { display: inline-flex; width: fit-content; align-items: center; min-height: 25px; padding: 3px 10px; border-radius: 999px; background: #e5f0fa; color: var(--ofn5-blue); font-size: 12px; font-weight: 800; line-height: 1.1; }
.ofn5-pill--green, .ofn5-featured-card:nth-child(even) .ofn5-pill { background: #e5f3df; color: #347a2c; }
.ofn5-rating { display: flex; align-items: center; gap: 9px; margin-top: auto; color: #526477; font-size: 13px; }
.ofn5-rating .ofn-stars { display: inline-flex; gap: 1px; color: var(--ofn5-yellow); }
.ofn-stars { display: inline-flex; gap: 1px; color: var(--ofn5-yellow); }
.ofn-stars svg { width: 16px; height: 16px; }
.ofn5-bookmark { width: 38px; height: 38px; position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ofn5-blue); cursor: pointer; }
.ofn5-bookmark:hover { background: var(--ofn5-soft); }
.ofn5-bookmark svg { font-size: 21px; }
.ofn5-section--events { padding-top: 20px; padding-bottom: 56px; }
.ofn5-event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ofn5-event-card { min-height: 150px; display: grid; grid-template-columns: 44% 1fr; overflow: hidden; background: #fff; border: 1px solid rgba(0, 45, 94, .08); border-radius: 14px; box-shadow: var(--ofn5-shadow-soft); }
.ofn5-event-card__image { position: relative; height: 150px; min-height: 150px; overflow: hidden; }
.ofn5-event-card__image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ofn5-event-card__image time { position: absolute; top: 14px; left: 14px; width: 54px; min-height: 70px; display: grid; place-items: center; align-content: center; padding: 6px; background: #fff; border-radius: 9px; box-shadow: 0 6px 16px rgba(1, 24, 48, .16); color: var(--ofn5-blue); text-align: center; line-height: 1; }
.ofn5-event-card__image time small { font-size: 10px; font-weight: 800; }
.ofn5-event-card__image time strong { margin: 3px 0; font-size: 22px; }
.ofn5-event-card__image time span { font-size: 10px; font-weight: 750; }
.ofn5-event-card__body { padding: 20px 16px; }
.ofn5-event-card h3 { margin: 0 0 15px; color: var(--ofn5-blue); font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 700; line-height: 1.18; }
.ofn5-event-card p { margin: 5px 0; display: flex; align-items: center; gap: 7px; color: #596b7d; font-size: 12px; }
.ofn5-event-card p svg { font-size: 14px; color: var(--ofn5-blue); }

/* Footer */
.ofn5-footer { margin-top: 20px; background: #fff; border-top: 1px solid var(--ofn5-border); }
.ofn5-footer__grid { display: grid; grid-template-columns: 1.35fr .8fr .9fr .8fr 1.25fr; gap: 42px; padding-top: 42px; padding-bottom: 38px; }
.ofn5-footer__brand .ofn5-brand img { width: 165px; }
.ofn5-footer__brand p,
.ofn5-footer__newsletter p { margin: 16px 0; color: #627486; font-size: 13px; line-height: 1.55; }
.ofn5-socials { display: flex; gap: 9px; }
.ofn5-socials a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--ofn5-border); border-radius: 50%; color: var(--ofn5-blue); }
.ofn5-footer h2 { margin: 0 0 14px; color: var(--ofn5-blue); font-family: var(--ofn5-sans); font-size: 14px; font-weight: 850; }
.ofn5-footer__column { display: flex; flex-direction: column; gap: 8px; }
.ofn5-footer__column a { color: #52667a; font-size: 13px; }
.ofn5-footer__column a:hover { color: var(--ofn5-blue); }
.ofn5-newsletter-form { height: 44px; display: grid; grid-template-columns: 1fr 44px; overflow: hidden; border: 1px solid var(--ofn5-border); border-radius: 8px; }
.ofn5-newsletter-form input { min-width: 0; padding: 0 13px; border: 0; outline: 0; background: #fff; }
.ofn5-newsletter-form button { border: 0; background: var(--ofn5-yellow); color: var(--ofn5-blue); cursor: pointer; }
.ofn5-footer__bottom { border-top: 1px solid var(--ofn5-border); color: #6e7d8c; font-size: 12px; }
.ofn5-footer__bottom .ofn5-container { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ofn5-footer__bottom nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }

/* Archive hero and controls */
.ofn5-discover-hero { position: relative; min-height: 300px; overflow: hidden; }
.ofn5-discover-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ofn5-discover-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(252,248,244,.18), rgba(252,248,244,0)); pointer-events: none; }
.ofn5-discover-hero__inner { position: relative; z-index: 2; padding-top: 38px; padding-bottom: 38px; }
.ofn5-discover-intro { width: min(530px, 100%); padding: 30px 32px 28px; background: rgba(255,252,247,.97); border: 1px solid rgba(0,45,94,.06); border-radius: var(--ofn5-radius-lg); box-shadow: var(--ofn5-shadow); }
.ofn5-discover-intro h1 { margin: 8px 0 8px; color: var(--ofn5-blue); font-family: var(--ofn5-display); font-size: clamp(38px, 4.5vw, 54px); line-height: 1.02; }
.ofn5-discover-intro > p { margin: 0 0 18px; color: #586d80; font-size: 15px; }
.ofn5-discover-controls { padding: 22px 0 10px; background: var(--ofn5-bg); }
.ofn5-discover-controls__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ofn5-control-button { min-height: 48px; position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; border: 1px solid #e1e7ec; border-radius: 10px; background: #fff; box-shadow: 0 4px 12px rgba(13,43,73,.07); color: var(--ofn5-blue); font-weight: 750; cursor: pointer; }
.ofn5-control-button > svg { font-size: 21px; }
.ofn5-control-button b { min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: var(--ofn5-yellow); font-size: 11px; }
.ofn5-sort-control form { position: absolute; inset: 0; }
.ofn5-sort-control select { width: 100%; height: 100%; padding: 0; opacity: 0; cursor: pointer; }
.ofn5-results-section { padding: 18px 0 48px; }
.ofn5-results-header { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.ofn5-results-header > div { display: flex; align-items: baseline; gap: 10px; color: #607184; font-size: 14px; }
.ofn5-results-header strong { color: var(--ofn5-blue); font-size: 16px; }
.ofn5-results-layout { display: grid; grid-template-columns: minmax(0, .98fr) minmax(430px, 1.02fr); gap: 20px; align-items: start; }
.ofn5-results-list { display: grid; gap: 10px; }
.ofn5-result-card { min-height: 145px; display: grid; grid-template-columns: 42% 1fr; position: relative; overflow: hidden; background: #fff; border: 1px solid rgba(0,45,94,.08); border-radius: 12px; box-shadow: 0 4px 14px rgba(13,43,73,.07); }
.ofn5-result-card__image { min-height: 145px; overflow: hidden; }
.ofn5-result-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ofn5-result-card:hover .ofn5-result-card__image img { transform: scale(1.025); }
.ofn5-result-card__body { padding: 14px 48px 12px 16px; }
.ofn5-result-card h2 { margin: 7px 0 5px; color: var(--ofn5-blue); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 700; line-height: 1.12; }
.ofn5-result-card p { margin: 0 0 9px; color: #40556a; font-size: 13px; line-height: 1.4; }
.ofn5-result-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: #536578; font-size: 12px; }
.ofn5-result-card__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ofn5-result-card__meta .ofn-stars svg { width: 13px; height: 13px; }
.ofn5-result-card__meta b { font-weight: 650; }
.ofn5-result-card__meta svg { color: var(--ofn5-blue); }
.ofn5-results-map { position: sticky; top: 16px; min-height: 610px; overflow: hidden; border-radius: 14px; background: #dbeaf3; box-shadow: var(--ofn5-shadow-soft); }
.ofn5-map-canvas, .ofn5-map-fallback { width: 100%; height: 610px; }
.ofn5-map-fallback { position: relative; overflow: hidden; background: #dcecf4; }
.ofn5-map-fallback > img { width: 100%; height: 100%; object-fit: cover; }
.ofn5-map-pin { position: absolute; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ofn5-blue); color: #fff; box-shadow: 0 5px 12px rgba(0,45,94,.25); }
.ofn5-map-pin svg { transform: rotate(45deg); }
.ofn5-map-pin--one { left: 24%; top: 30%; }
.ofn5-map-pin--two { left: 46%; top: 57%; }
.ofn5-map-pin--three { right: 18%; top: 22%; }
.ofn5-map-preview { position: absolute; right: 18px; bottom: 18px; width: min(300px, calc(100% - 36px)); display: grid; grid-template-columns: 98px 1fr; gap: 12px; padding: 10px; background: #fff; border-radius: 12px; box-shadow: 0 10px 28px rgba(13,43,73,.18); }
.ofn5-map-preview img { width: 98px; height: 92px; object-fit: cover; border-radius: 8px; }
.ofn5-map-preview > div { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ofn5-map-preview strong { margin: 5px 0 1px; color: var(--ofn5-blue); font-family: Georgia, "Times New Roman", serif; font-size: 20px; }
.ofn5-map-preview small { color: var(--ofn5-yellow); }
.ofn5-map-preview a { margin-top: auto; display: inline-flex; align-items: center; gap: 5px; color: var(--ofn5-blue); font-size: 12px; font-weight: 800; }
.ofn5-section--themes { padding-top: 4px; }

/* Pagination */
.navigation.pagination { margin-top: 12px; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--ofn5-border); border-radius: 8px; background: #fff; color: var(--ofn5-blue); font-weight: 700; }
.nav-links .current { background: var(--ofn5-blue); color: #fff; }

/* Filter / map dialogs */
.ofn5-filter-panel { position: absolute; top: 0; right: 0; width: min(560px, 100%); height: 100%; padding: 28px; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
.ofn5-overlay[aria-hidden="false"] .ofn5-filter-panel { transform: translateX(0); }
.ofn5-filter-panel h2 { margin: 6px 0 22px; color: var(--ofn5-blue); font-family: var(--ofn5-display); font-size: 34px; }
.ofn5-field { display: grid; gap: 7px; margin-bottom: 16px; }
.ofn5-field > span { color: var(--ofn5-blue); font-size: 13px; font-weight: 800; }
.ofn5-field input, .ofn5-field select, .ofn5-field textarea {
  width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #cfd9e2; border-radius: 9px; background: #fff; color: var(--ofn5-ink); outline: 0;
}
.ofn5-field input:focus, .ofn5-field select:focus, .ofn5-field textarea:focus { border-color: var(--ofn5-yellow); box-shadow: 0 0 0 3px rgba(250,185,0,.15); }
.ofn5-filter-grid, .ofn5-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.ofn5-filter-grid__wide { grid-column: 1 / -1; }
.ofn5-filter-actions { position: sticky; bottom: -28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px -28px -28px; padding: 18px 28px; background: #fff; border-top: 1px solid var(--ofn5-border); }
.ofn5-mobile-map { position: absolute; inset: 18px; display: flex; flex-direction: column; padding: 18px; border-radius: var(--ofn5-radius-lg); transform: scale(.97); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.ofn5-overlay[aria-hidden="false"] .ofn5-mobile-map { transform: scale(1); opacity: 1; }
.ofn5-mobile-map .ofn5-map-canvas, .ofn5-mobile-map .ofn5-map-fallback { flex: 1; height: auto; min-height: 0; margin-top: 14px; border-radius: 12px; }

/* Location detail */
.ofn5-location-hero { position: relative; height: 405px; overflow: hidden; background: #dce8ef; }
.ofn5-location-hero__image { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.ofn5-location-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.ofn5-photo-count { position: absolute; top: 24px; right: max(28px, calc((100vw - 1210px) / 2 + 28px)); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 13px; border: 0; border-radius: 10px; background: rgba(0,45,94,.86); color: #fff; cursor: pointer; }
.ofn5-location-shell { position: relative; margin-top: -132px; padding-bottom: 58px; }
.ofn5-location-summary { position: relative; z-index: 2; padding: 30px 32px 26px; background: rgba(255,252,247,.985); border: 1px solid rgba(0,45,94,.07); border-radius: var(--ofn5-radius-lg); box-shadow: var(--ofn5-shadow); }
.ofn5-location-summary__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.ofn5-location-title { min-width: 0; }
.ofn5-location-title h1 { margin: 9px 0 7px; color: var(--ofn5-blue); font-family: var(--ofn5-display); font-size: clamp(36px, 3.45vw, 48px); line-height: 1.045; }
.ofn5-location-place { margin: 0 0 8px; display: flex; align-items: center; gap: 7px; color: #5e7184; font-size: 15px; }
.ofn5-location-rating { display: flex; align-items: center; gap: 9px; color: #5d6f81; }
.ofn5-location-rating a { color: inherit; }
.ofn5-location-actions { display: flex; gap: 10px; }
.ofn5-action-card { width: 84px; min-height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 10px; border: 1px solid #e2e7ec; border-radius: 12px; background: #fff; box-shadow: 0 4px 12px rgba(13,43,73,.07); color: var(--ofn5-blue); font-weight: 700; cursor: pointer; }
.ofn5-action-card svg { font-size: 26px; }
.ofn5-location-facts { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid #e3e8ed; border-radius: 12px; box-shadow: 0 4px 12px rgba(13,43,73,.06); }
.ofn5-location-facts > div { min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; text-align: center; position: relative; }
.ofn5-location-facts > div + div::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: #e4e9ed; }
.ofn5-fact-icon { color: var(--ofn5-blue); font-size: 26px; }
.ofn5-fact-icon--green { color: #3c9a35; }
.ofn5-fact-icon--yellow { color: var(--ofn5-yellow); }
.ofn5-location-facts strong { margin-top: 5px; color: var(--ofn5-blue); font-size: 14px; }
.ofn5-location-facts small { margin-top: 2px; color: #637486; font-size: 12px; }
.ofn5-location-content { display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(340px, .9fr); gap: 22px; margin-top: 26px; align-items: start; }
.ofn5-location-main { display: grid; gap: 14px; }
.ofn5-detail-card, .ofn5-reviews-card, .ofn5-similar-section { background: #fff; border: 1px solid rgba(0,45,94,.08); border-radius: 14px; box-shadow: 0 4px 16px rgba(13,43,73,.07); }
.ofn5-detail-card { padding: 22px 26px; }
.ofn5-detail-card h2, .ofn5-reviews-card h2, .ofn5-similar-section h2 { margin: 0 0 12px; color: var(--ofn5-blue); font-family: var(--ofn5-display); font-size: 28px; line-height: 1.08; }
.ofn5-detail-card > p { margin: 0; color: #45596c; }
.ofn5-expectation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ofn5-expectation-grid > div { text-align: center; color: var(--ofn5-blue); }
.ofn5-expectation-grid span { display: grid; place-items: center; color: var(--ofn5-yellow); font-size: 30px; }
.ofn5-expectation-grid p { margin: 8px 0 0; font-size: 13px; line-height: 1.35; }
.ofn5-plan-list > div { display: grid; grid-template-columns: 24px 155px 1fr 16px; gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid #e6ebef; }
.ofn5-plan-list > div:first-child { border-top: 0; }
.ofn5-plan-list > div > span { color: var(--ofn5-blue); font-size: 20px; }
.ofn5-plan-list > div > strong { color: var(--ofn5-blue); font-size: 14px; }
.ofn5-plan-list > div > p { margin: 0; color: #5d6f81; font-size: 13px; }
.ofn5-plan-list > div > svg:last-child { color: var(--ofn5-blue); font-size: 13px; }
.ofn5-detail-actions { display: flex; gap: 10px; margin-top: 14px; }
.ofn5-reviews-card { padding: 22px; }
.ofn5-reviews-card > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ofn5-reviews-layout { display: grid; grid-template-columns: 120px 1fr; gap: 18px; margin-top: 6px; }
.ofn5-review-summary { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 0; text-align: center; }
.ofn5-review-summary > strong { color: var(--ofn5-blue); font-family: var(--ofn5-display); font-size: 58px; line-height: 1; }
.ofn5-review-summary .ofn-stars { margin: 10px 0 6px; }
.ofn5-review-summary small { color: #687a8a; font-size: 12px; }
.ofn5-review-list { display: grid; gap: 12px; }
.ofn5-review-item { padding: 14px; border: 1px solid #e3e8ed; border-radius: 11px; box-shadow: 0 3px 10px rgba(13,43,73,.05); }
.ofn5-review-item header { display: grid; grid-template-columns: 38px 1fr auto; gap: 9px; align-items: center; }
.ofn5-review-item header img, .ofn5-review-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; object-fit: cover; background: var(--ofn5-beige); color: var(--ofn5-blue); font-weight: 850; }
.ofn5-review-item header > div { display: grid; }
.ofn5-review-item header strong { color: var(--ofn5-blue); font-size: 13px; }
.ofn5-review-item header .ofn-stars svg { width: 12px; height: 12px; }
.ofn5-review-item header small { color: #7b8996; font-size: 10px; }
.ofn5-review-item p { margin: 10px 0 0; color: #55687a; font-size: 12px; line-height: 1.45; }
.ofn5-reviews-card > .ofn5-button { margin-top: 14px; }
.ofn5-similar-section { margin-top: 22px; padding: 20px 24px 24px; }
.ofn5-similar-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ofn5-similar-card { min-height: 170px; display: grid; grid-template-columns: 48% 1fr; position: relative; overflow: hidden; border: 1px solid #e3e8ed; border-radius: 12px; }
.ofn5-similar-card__image { min-height: 170px; overflow: hidden; }
.ofn5-similar-card__image img { width: 100%; height: 100%; object-fit: cover; }
.ofn5-similar-card > div { padding: 16px 40px 14px 16px; }
.ofn5-similar-card h3 { margin: 8px 0 5px; color: var(--ofn5-blue); font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 700; line-height: 1.12; }
.ofn5-similar-card p { margin: 8px 0 0; color: #56697b; font-size: 12px; line-height: 1.4; }
.ofn5-similar-card .ofn5-rating { font-size: 11px; }

/* Gallery / review dialog */
.ofn5-gallery-dialog, .ofn5-review-dialog { width: min(1040px, calc(100% - 36px)); max-height: calc(100% - 36px); margin: 18px auto; padding: 24px; overflow: auto; border-radius: var(--ofn5-radius-lg); transform: scale(.97); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.ofn5-overlay[aria-hidden="false"] .ofn5-gallery-dialog,
.ofn5-overlay[aria-hidden="false"] .ofn5-review-dialog { transform: scale(1); opacity: 1; }
.ofn5-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.ofn5-gallery-grid figure { margin: 0; overflow: hidden; border-radius: 12px; }
.ofn5-gallery-grid figure.is-large { grid-column: 1 / -1; }
.ofn5-gallery-grid img { width: 100%; max-height: 560px; object-fit: cover; }
.ofn5-review-dialog { width: min(650px, calc(100% - 36px)); }
.ofn5-review-form { display: grid; gap: 14px; }
.rating-choice { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; padding: 0; margin: 0; }
.rating-choice legend { width: 100%; margin-bottom: 7px; color: var(--ofn5-blue); font-weight: 800; }
.rating-choice input { position: absolute; opacity: 0; }
.rating-choice label { color: #ccd4dc; cursor: pointer; font-size: 29px; }
.rating-choice label:hover, .rating-choice label:hover ~ label, .rating-choice input:checked ~ label { color: var(--ofn5-yellow); }
.honeypot { position: absolute !important; left: -9999px !important; }

/* Compatibility / remaining templates */
.ofn5-generic-location-card, .ofn5-generic-event-card { overflow: hidden; background: #fff; border: 1px solid var(--ofn5-border); border-radius: 14px; box-shadow: var(--ofn5-shadow-soft); }
.ofn5-generic-location-card > a img, .ofn5-generic-event-card__image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ofn5-generic-location-card > div, .ofn5-generic-event-card > div { padding: 18px; }
.ofn5-generic-location-card h3, .ofn5-generic-event-card h3 { margin: 8px 0; color: var(--ofn5-blue); font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.16; }
.ofn5-generic-event-card__image { position: relative; display: block; overflow: hidden; }
.ofn5-generic-event-card__image time { position: absolute; left: 12px; top: 12px; width: 50px; min-height: 66px; display: grid; place-items: center; align-content: center; padding: 5px; border-radius: 9px; background: #fff; box-shadow: 0 7px 18px rgba(13,43,73,.17); color: var(--ofn5-blue); text-align: center; line-height: 1; }
.ofn5-generic-event-card__image time small, .ofn5-generic-event-card__image time span { font-size: 10px; font-weight: 800; }
.ofn5-generic-event-card__image time strong { margin: 3px 0; font-size: 21px; }
.ofn5-generic-event-card > div > p { margin: 7px 0 0; display: flex; align-items: center; gap: 7px; color: #5a6c7e; font-size: 13px; }

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(250,185,0,.55); outline-offset: 2px; }

/* Tablet */
@media (max-width: 1100px) {
  .ofn5-header__inner { grid-template-columns: auto 1fr auto; gap: 18px; }
  .ofn5-header-search { display: none; }
  .ofn5-nav__list { gap: 20px; }
  .ofn5-results-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); }
  .ofn5-footer__grid { grid-template-columns: 1.2fr repeat(3, 1fr); }
  .ofn5-footer__newsletter { grid-column: 1 / -1; max-width: 520px; }
}

@media (max-width: 900px) {
  .ofn5-container { width: min(100% - 36px, 760px); }
  .ofn5-header__inner { min-height: 72px; grid-template-columns: 1fr auto; }
  .ofn5-brand img { width: 205px; }
  .ofn5-nav, .ofn5-header-actions--desktop { display: none; }
  .ofn5-header-actions--mobile { display: flex; }
  .ofn5-header-actions--mobile .ofn5-icon-button { width: 44px; height: 44px; }
  .ofn5-home-hero__image { height: 270px; }
  .ofn5-search-card { margin-top: -96px; }
  .ofn5-theme-grid { grid-template-columns: repeat(2, 1fr); }
  .ofn5-featured-grid { grid-template-columns: 1fr; }
  .ofn5-event-grid { grid-template-columns: 1fr 1fr; }
  .ofn5-event-card:last-child { grid-column: 1 / -1; }
  .ofn5-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .ofn5-footer__brand { grid-column: 1 / -1; }
  .ofn5-footer__newsletter { grid-column: 1 / -1; }
  .ofn5-discover-hero { min-height: 280px; }
  .ofn5-discover-intro { width: min(510px, 100%); }
  .ofn5-results-layout { grid-template-columns: 1fr; }
  .ofn5-results-map { display: none; }
  .ofn5-location-content { grid-template-columns: 1fr; }
  .ofn5-reviews-card { order: 2; }
  .ofn5-expectation-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 15px; }
  .ofn5-container { width: calc(100% - 32px); }
  .ofn5-header { position: relative; }
  .ofn5-header__inner { min-height: 70px; gap: 8px; }
  .ofn5-brand img { width: 190px; max-width: 54vw; }
  .ofn5-header-actions { gap: 2px; }
  .ofn5-icon-button { width: 40px; height: 40px; }
  .ofn5-icon-button svg { font-size: 21px; }
  .ofn5-mobile-menu { padding: 18px; }
  .ofn5-mobile-menu__header .ofn5-brand img { width: 180px; }
  .ofn5-search-dialog { width: calc(100% - 24px); margin-top: 76px; padding: 20px; }
  .ofn5-search-dialog h2 { font-size: 30px; }
  .ofn5-section { padding: 44px 0; }
  .ofn5-section-header { align-items: flex-end; gap: 12px; margin-bottom: 17px; }
  .ofn5-section-header h2 { font-size: 27px; }
  .ofn5-section-header .ofn5-link-arrow { font-size: 12px; }
  .ofn5-section-header--compact h2 { font-size: 27px; }
  .ofn5-eyebrow { font-size: 10px; }
  .ofn5-home-hero { padding-bottom: 44px; }
  .ofn5-home-hero__image { height: 225px; }
  .ofn5-search-card { width: calc(100% - 24px); margin-top: -70px; padding: 22px 20px 20px; border-radius: 18px; }
  .ofn5-search-card h1 { font-size: 30px; line-height: 1.06; }
  .ofn5-search-card > p { margin-bottom: 15px; font-size: 14px; }
  .ofn5-search-control { height: 52px; grid-template-columns: 20px 1fr 50px; padding-left: 13px; }
  .ofn5-search-control input { height: 50px; font-size: 13px; }
  .ofn5-theme-strip { margin-top: 0; padding-bottom: 8px; }
  .ofn5-theme-grid { gap: 10px; }
  .ofn5-theme-card { min-height: 135px; border-radius: 12px; }
  .ofn5-theme-card__content { left: 13px; right: 13px; bottom: 12px; gap: 8px; }
  .ofn5-theme-card__content > svg { font-size: 24px; }
  .ofn5-theme-card__content strong { font-size: 16px; }
  .ofn5-theme-card__content small { font-size: 10px; }
  .ofn5-theme-card__content > svg:last-child { display: none; }
  .ofn5-section--featured { padding-top: 34px; padding-bottom: 24px; }
  .ofn5-featured-grid { gap: 12px; }
  .ofn5-featured-card { min-height: 160px; grid-template-columns: 42% 1fr; border-radius: 13px; }
  .ofn5-featured-card__image { min-height: 160px; }
  .ofn5-featured-card__body { padding: 14px 36px 13px 13px; }
  .ofn5-featured-card h3 { margin: 6px 0 5px; font-size: 17px; }
  .ofn5-featured-card p { margin-bottom: 9px; font-size: 11px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ofn5-pill { min-height: 21px; padding: 3px 8px; font-size: 10px; }
  .ofn5-rating { gap: 5px; font-size: 10px; }
  .ofn5-rating .ofn-stars svg { width: 12px; height: 12px; }
  .ofn5-bookmark { width: 34px; height: 34px; right: 4px; bottom: 5px; }
  .ofn5-bookmark svg { font-size: 18px; }
  .ofn5-section--events { padding-top: 18px; padding-bottom: 42px; }
  .ofn5-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ofn5-event-card { min-height: 0; display: block; }
  .ofn5-event-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 42% 1fr; }
  .ofn5-event-card__image { height: 104px; min-height: 104px; }
  .ofn5-event-card:last-child .ofn5-event-card__image { height: 122px; min-height: 122px; }
  .ofn5-event-card__image time { top: 9px; left: 9px; width: 44px; min-height: 60px; }
  .ofn5-event-card__image time strong { font-size: 18px; }
  .ofn5-event-card__body { padding: 11px 12px 12px; min-width: 0; }
  .ofn5-event-card h3 { margin-bottom: 8px; font-size: 15px; line-height: 1.18; }
  .ofn5-event-card p { margin: 3px 0; font-size: 10px; }
  .ofn5-center-action { display: none; }
  .ofn5-footer__grid { grid-template-columns: 1fr; gap: 26px; padding-top: 32px; }
  .ofn5-footer__brand, .ofn5-footer__newsletter { grid-column: auto; }
  .ofn5-footer__column { display: none; }
  .ofn5-footer__bottom .ofn5-container { min-height: auto; padding-top: 18px; padding-bottom: 18px; flex-direction: column; align-items: flex-start; }
  .ofn5-footer__bottom nav { justify-content: flex-start; gap: 12px 18px; }

  /* Archive mobile: follows approved mobile screenshot, no image hero. */
  .ofn5-discover-hero { min-height: auto; background: var(--ofn5-bg); overflow: visible; }
  .ofn5-discover-hero__image { display: none; }
  .ofn5-discover-hero::after { display: none; }
  .ofn5-discover-hero__inner { padding-top: 30px; padding-bottom: 16px; }
  .ofn5-discover-intro { width: 100%; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .ofn5-discover-intro h1 { margin-top: 8px; font-size: 34px; }
  .ofn5-discover-intro > p { margin-bottom: 18px; font-size: 14px; line-height: 1.5; }
  .ofn5-discover-controls { padding: 10px 0 16px; }
  .ofn5-discover-controls__grid { gap: 8px; }
  .ofn5-control-button { min-height: 58px; padding: 7px 5px; flex-direction: column; gap: 4px; border-radius: 13px; font-size: 13px; }
  .ofn5-control-button > svg { font-size: 21px; }
  .ofn5-control-button b { position: absolute; top: 5px; right: 5px; }
  .ofn5-results-section { padding-top: 8px; }
  .ofn5-results-header { margin-bottom: 9px; }
  .ofn5-results-header > div { gap: 8px; font-size: 13px; }
  .ofn5-results-header strong { font-size: 14px; }
  .ofn5-results-header .ofn5-link-arrow { display: none; }
  .ofn5-results-list { gap: 10px; }
  .ofn5-result-card { min-height: 156px; grid-template-columns: 40% 1fr; border-radius: 13px; }
  .ofn5-result-card__image { min-height: 156px; }
  .ofn5-result-card__body { padding: 12px 37px 10px 12px; }
  .ofn5-result-card h2 { margin: 6px 0 4px; font-size: 19px; }
  .ofn5-result-card p { margin-bottom: 8px; font-size: 11px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ofn5-result-card__meta { gap: 7px; font-size: 10px; }
  .ofn5-result-card__meta .ofn-stars svg { width: 11px; height: 11px; }
  .ofn5-section--themes { padding-top: 10px; }
  .ofn5-filter-panel { top: auto; bottom: 0; width: 100%; height: min(88vh, 720px); padding: 20px 18px; border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .ofn5-overlay[aria-hidden="false"] .ofn5-filter-panel { transform: translateY(0); }
  .ofn5-filter-panel h2 { font-size: 29px; }
  .ofn5-filter-grid, .ofn5-form-grid { grid-template-columns: 1fr; }
  .ofn5-filter-actions { bottom: -20px; margin: 8px -18px -20px; padding: 15px 18px calc(15px + env(safe-area-inset-bottom)); }
  .ofn5-mobile-map { inset: 0; border-radius: 0; padding: 16px; }

  /* Location mobile */
  .ofn5-location-hero { height: 265px; }
  .ofn5-photo-count { top: 14px; right: 14px; min-height: 36px; padding: 6px 10px; font-size: 12px; }
  .ofn5-location-shell { width: calc(100% - 24px); margin-top: -62px; padding-bottom: 42px; }
  .ofn5-location-summary { padding: 20px 18px 18px; border-radius: 18px; }
  .ofn5-location-summary__top { display: grid; gap: 14px; }
  .ofn5-location-title h1 { font-size: 27px; line-height: 1.07; }
  .ofn5-location-place { font-size: 13px; }
  .ofn5-location-actions { position: absolute; top: 18px; right: 14px; gap: 6px; }
  .ofn5-action-card { width: 48px; min-height: 48px; padding: 6px; border-radius: 10px; }
  .ofn5-action-card svg { font-size: 21px; }
  .ofn5-action-card span { display: none; }
  .ofn5-location-title { padding-right: 102px; }
  .ofn5-location-facts { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
  .ofn5-location-facts > div { min-height: 96px; padding: 11px 8px; }
  .ofn5-location-facts > div + div::before { display: none; }
  .ofn5-location-facts > div:nth-child(even) { border-left: 1px solid #e4e9ed; }
  .ofn5-location-facts > div:nth-child(n+3) { border-top: 1px solid #e4e9ed; }
  .ofn5-location-facts strong { font-size: 12px; }
  .ofn5-location-facts small { font-size: 10px; }
  .ofn5-location-content { margin-top: 14px; gap: 12px; }
  .ofn5-location-main { gap: 12px; }
  .ofn5-detail-card, .ofn5-reviews-card, .ofn5-similar-section { border-radius: 13px; }
  .ofn5-detail-card { padding: 18px; }
  .ofn5-detail-card h2, .ofn5-reviews-card h2, .ofn5-similar-section h2 { font-size: 24px; }
  .ofn5-detail-card > p { font-size: 13px; }
  .ofn5-expectation-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; }
  .ofn5-expectation-grid p { font-size: 11px; }
  .ofn5-plan-list > div { grid-template-columns: 21px 112px 1fr 12px; gap: 8px; }
  .ofn5-plan-list > div > strong { font-size: 12px; }
  .ofn5-plan-list > div > p { font-size: 11px; }
  .ofn5-detail-actions { flex-direction: column; }
  .ofn5-reviews-card { padding: 18px; }
  .ofn5-reviews-layout { grid-template-columns: 1fr; }
  .ofn5-review-summary { flex-direction: row; justify-content: flex-start; gap: 9px; text-align: left; }
  .ofn5-review-summary > strong { font-size: 42px; }
  .ofn5-review-summary .ofn-stars { margin: 0; }
  .ofn5-similar-section { padding: 18px; }
  .ofn5-similar-grid { grid-template-columns: 1fr; gap: 10px; }
  .ofn5-similar-card { min-height: 128px; display: grid; grid-template-columns: 39% 1fr; }
  .ofn5-similar-card__image { min-height: 128px; height: auto; }
  .ofn5-similar-card > div { padding: 11px 30px 10px 11px; }
  .ofn5-similar-card h3 { margin-top: 6px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; line-height: 1.12; }
  .ofn5-similar-card p { display: -webkit-box; margin-top: 6px; font-size: 10px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ofn5-similar-card .ofn5-rating { font-size: 9px; }
  .ofn5-similar-card .ofn5-rating .ofn-stars svg { width: 10px; height: 10px; }
  .ofn5-gallery-dialog, .ofn5-review-dialog { width: calc(100% - 20px); max-height: calc(100% - 20px); margin: 10px auto; padding: 18px; }
  .ofn5-gallery-grid { grid-template-columns: 1fr; }
  .ofn5-gallery-grid figure.is-large { grid-column: auto; }
}

@media (max-width: 390px) {
  .ofn5-brand img { width: 170px; }
  .ofn5-search-card h1 { font-size: 28px; }
  .ofn5-theme-card { min-height: 126px; }
  .ofn5-featured-card { grid-template-columns: 40% 1fr; }
  .ofn5-featured-card h3 { font-size: 16px; }
  .ofn5-event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofn5-event-card:last-child { grid-column: 1 / -1; }
  .ofn5-result-card { grid-template-columns: 39% 1fr; }
  .ofn5-result-card h2 { font-size: 18px; }
  .ofn5-plan-list > div { grid-template-columns: 20px 96px 1fr 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Event archive and event detail – v5 design system */
.ofn5-event-archive-hero { position: relative; min-height: 320px; overflow: hidden; }
.ofn5-event-archive-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.ofn5-event-archive-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(252,248,244,.15), rgba(252,248,244,0)); }
.ofn5-event-archive-hero__inner { position: relative; z-index: 2; padding-top: 38px; padding-bottom: 38px; }
.ofn5-event-archive-intro { width: min(570px, 100%); padding: 30px 32px 28px; background: rgba(255,252,247,.97); border: 1px solid rgba(0,45,94,.06); border-radius: var(--ofn5-radius-lg); box-shadow: var(--ofn5-shadow); }
.ofn5-event-archive-intro h1 { margin: 8px 0; color: var(--ofn5-blue); font-family: var(--ofn5-display); font-size: clamp(36px, 4vw, 50px); line-height: 1.04; }
.ofn5-event-archive-intro > p { margin: 0 0 18px; color: #586d80; font-size: 15px; }
.ofn5-event-period-section { padding: 22px 0 0; }
.ofn5-event-periods { display: flex; flex-wrap: wrap; gap: 9px; }
.ofn5-event-periods a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 15px; border: 1px solid #d9e2ea; border-radius: 999px; background: #fff; color: var(--ofn5-blue); font-size: 13px; font-weight: 750; }
.ofn5-event-periods a:hover, .ofn5-event-periods a.is-active { border-color: var(--ofn5-blue); background: var(--ofn5-blue); color: #fff; }
.ofn5-event-results-section { padding-top: 26px; }
.ofn5-event-results-header { margin-bottom: 20px; }
.ofn5-event-results-actions { display: flex; align-items: center; gap: 10px; }
.ofn5-event-results-actions .ofn5-button b { min-width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--ofn5-yellow); color: var(--ofn5-blue); font-size: 11px; }
.ofn5-event-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ofn5-event-archive-card { position: relative; overflow: hidden; background: #fff; border: 1px solid rgba(0,45,94,.08); border-radius: 15px; box-shadow: var(--ofn5-shadow-soft); }
.ofn5-event-archive-card__image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.ofn5-event-archive-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ofn5-event-archive-card:hover .ofn5-event-archive-card__image img { transform: scale(1.03); }
.ofn5-event-archive-card__image time { position: absolute; top: 14px; left: 14px; width: 56px; min-height: 72px; display: grid; place-items: center; align-content: center; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 6px 16px rgba(1,24,48,.16); color: var(--ofn5-blue); text-align: center; line-height: 1; }
.ofn5-event-archive-card__image time small { font-size: 10px; font-weight: 850; }
.ofn5-event-archive-card__image time strong { margin: 4px 0; font-size: 23px; }
.ofn5-event-archive-card__image time span { font-size: 10px; font-weight: 800; }
.ofn5-event-archive-card__body { padding: 18px 42px 20px 18px; }
.ofn5-event-archive-card h2 { margin: 8px 0 7px; color: var(--ofn5-blue); font-family: Georgia, "Times New Roman", serif; font-size: 22px; line-height: 1.15; }
.ofn5-event-archive-card__excerpt { margin: 0 0 13px; color: #53687b; font-size: 13px; line-height: 1.45; }
.ofn5-event-archive-card__meta { display: grid; gap: 5px; color: #5c6e80; font-size: 12px; }
.ofn5-event-archive-card__meta span { display: flex; align-items: center; gap: 7px; }
.ofn5-event-archive-card__meta svg { color: var(--ofn5-blue); }
.ofn5-event-empty { min-height: 300px; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; background: #fff; border: 1px solid var(--ofn5-border); border-radius: 18px; box-shadow: var(--ofn5-shadow-soft); }
.ofn5-event-empty > div { align-self: center; padding: 42px; }
.ofn5-event-empty h2 { margin: 8px 0; color: var(--ofn5-blue); font-family: var(--ofn5-display); font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.ofn5-event-empty p { color: #5c6e80; }
.ofn5-event-empty > div > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ofn5-event-empty img { width: 100%; height: 100%; object-fit: cover; }

.ofn5-event-detail-hero { height: 405px; overflow: hidden; background: #dce8ef; }
.ofn5-event-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.ofn5-event-detail-shell { position: relative; margin-top: -118px; padding-bottom: 58px; }
.ofn5-event-summary { position: relative; z-index: 2; padding: 30px 32px 26px; background: rgba(255,252,247,.985); border: 1px solid rgba(0,45,94,.07); border-radius: var(--ofn5-radius-lg); box-shadow: var(--ofn5-shadow); }
.ofn5-event-summary__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.ofn5-event-summary h1 { margin: 9px 0 7px; color: var(--ofn5-blue); font-family: var(--ofn5-display); font-size: clamp(36px, 3.45vw, 48px); line-height: 1.045; }
.ofn5-event-place { margin: 0; display: flex; align-items: center; gap: 7px; color: #5e7184; font-size: 15px; }
.ofn5-event-facts { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid #e3e8ed; border-radius: 12px; box-shadow: 0 4px 12px rgba(13,43,73,.06); }
.ofn5-event-facts > div { min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; text-align: center; position: relative; }
.ofn5-event-facts > div + div::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: #e4e9ed; }
.ofn5-event-facts strong { margin-top: 5px; color: var(--ofn5-blue); font-size: 14px; }
.ofn5-event-facts small { margin-top: 2px; color: #637486; font-size: 12px; }
.ofn5-event-detail-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 22px; margin-top: 26px; align-items: start; }
.ofn5-event-detail-main { display: grid; gap: 14px; }
.ofn5-event-ticket-card { position: sticky; top: 22px; padding: 25px; background: #fff; border: 1px solid #e1e7ec; border-radius: 15px; box-shadow: var(--ofn5-shadow-soft); }
.ofn5-event-ticket-card time { width: 88px; min-height: 102px; display: grid; place-items: center; align-content: center; margin-bottom: 18px; padding: 10px; background: var(--ofn5-soft); border: 1px solid #e5e9ed; border-radius: 12px; color: var(--ofn5-blue); text-align: center; line-height: 1; }
.ofn5-event-ticket-card time strong { font-family: var(--ofn5-display); font-size: 42px; }
.ofn5-event-ticket-card time span { margin-top: 5px; font-size: 11px; font-weight: 850; }
.ofn5-event-ticket-card h2 { margin: 0 0 16px; color: var(--ofn5-blue); font-family: Georgia, "Times New Roman", serif; font-size: 24px; }
.ofn5-event-ticket-card p { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0; color: #54687b; }
.ofn5-event-ticket-card p svg { margin-top: 3px; color: var(--ofn5-blue); }
.ofn5-event-ticket-card .ofn5-button { margin-top: 10px; }
.ofn5-event-archive-grid--related { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .ofn5-event-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ofn5-event-detail-layout { grid-template-columns: 1fr; }
  .ofn5-event-ticket-card { position: static; }
}

@media (max-width: 640px) {
  .ofn5-event-archive-hero { min-height: auto; background: var(--ofn5-bg); overflow: visible; }
  .ofn5-event-archive-hero__image, .ofn5-event-archive-hero::after { display: none; }
  .ofn5-event-archive-hero__inner { padding-top: 30px; padding-bottom: 16px; }
  .ofn5-event-archive-intro { width: 100%; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
  .ofn5-event-archive-intro h1 { font-size: 32px; }
  .ofn5-event-archive-intro > p { font-size: 14px; }
  .ofn5-event-period-section { padding-top: 8px; overflow: hidden; }
  .ofn5-event-periods { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .ofn5-event-periods::-webkit-scrollbar { display: none; }
  .ofn5-event-periods a { flex: 0 0 auto; min-height: 39px; font-size: 12px; }
  .ofn5-event-results-section { padding-top: 22px; }
  .ofn5-event-results-header { align-items: flex-start; gap: 14px; }
  .ofn5-event-results-actions { width: 100%; }
  .ofn5-event-results-actions .ofn5-button { flex: 1; min-width: 0; padding-inline: 10px; font-size: 12px; }
  .ofn5-event-archive-grid, .ofn5-event-archive-grid--related { grid-template-columns: 1fr; gap: 12px; }
  .ofn5-event-archive-card { min-height: 152px; display: grid; grid-template-columns: 40% 1fr; }
  .ofn5-event-archive-card__image { height: 100%; min-height: 152px; aspect-ratio: auto; }
  .ofn5-event-archive-card__image time { top: 9px; left: 9px; width: 46px; min-height: 61px; }
  .ofn5-event-archive-card__image time strong { font-size: 18px; }
  .ofn5-event-archive-card__body { padding: 12px 34px 11px 12px; }
  .ofn5-event-archive-card h2 { margin: 6px 0 4px; font-size: 18px; }
  .ofn5-event-archive-card__excerpt { margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; }
  .ofn5-event-archive-card__meta { gap: 3px; font-size: 10px; }
  .ofn5-event-empty { min-height: 0; grid-template-columns: 1fr; }
  .ofn5-event-empty > div { padding: 24px 20px; }
  .ofn5-event-empty h2 { font-size: 29px; }
  .ofn5-event-empty img { height: 180px; }

  .ofn5-event-detail-hero { height: 250px; }
  .ofn5-event-detail-shell { width: calc(100% - 24px); margin-top: -58px; padding-bottom: 42px; }
  .ofn5-event-summary { padding: 20px 18px 18px; border-radius: 18px; }
  .ofn5-event-summary__top { display: grid; gap: 14px; }
  .ofn5-event-summary h1 { padding-right: 110px; font-size: 30px; }
  .ofn5-event-place { font-size: 13px; }
  .ofn5-event-facts { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
  .ofn5-event-facts > div { min-height: 96px; padding: 11px 8px; }
  .ofn5-event-facts > div + div::before { display: none; }
  .ofn5-event-facts > div:nth-child(even) { border-left: 1px solid #e4e9ed; }
  .ofn5-event-facts > div:nth-child(n+3) { border-top: 1px solid #e4e9ed; }
  .ofn5-event-facts strong { font-size: 12px; }
  .ofn5-event-facts small { font-size: 10px; }
  .ofn5-event-detail-layout { margin-top: 14px; gap: 12px; }
  .ofn5-event-ticket-card { padding: 18px; border-radius: 13px; }
  .ofn5-event-ticket-card time { width: 76px; min-height: 88px; }
  .ofn5-event-ticket-card time strong { font-size: 34px; }
}

/* 5.0 final responsive refinements */
@media (max-width: 640px) {
  .ofn5-brand img { width: 166px; max-width: 47vw; }
  .ofn5-header__inner { min-height: 72px; }
  .ofn5-home-hero__image { height: 242px; }
  .ofn5-search-card { margin-top: -78px; }
  .ofn5-search-card h1 { max-width: 13ch; font-size: 29px; }
  .ofn5-search-card > p { max-width: 31ch; }
  .ofn5-section-header h2 { max-width: 13ch; }
  .ofn5-section-header .ofn5-link-arrow { align-self: flex-end; padding-bottom: 3px; }

  .ofn5-location-title h1 { font-size: 28px; }
  .ofn5-location-title { padding-right: 100px; }
  .ofn5-location-actions { right: 12px; }
  .ofn5-action-card { width: 46px; min-height: 46px; }
  .ofn5-action-card svg { font-size: 20px; }
  .ofn5-detail-card h2,
  .ofn5-reviews-card h2,
  .ofn5-similar-section h2 { font-size: 22px; }

  .ofn5-plan-list > div {
    grid-template-columns: 22px minmax(0, 1fr) 14px;
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 2px;
    align-items: start;
  }
  .ofn5-plan-list > div > span {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
  }
  .ofn5-plan-list > div > strong {
    grid-column: 2;
    grid-row: 1;
    font-size: 12px;
    line-height: 1.35;
  }
  .ofn5-plan-list > div > p {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
    line-height: 1.45;
  }
  .ofn5-plan-list > div > svg:last-child {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .ofn5-reviews-card > header { align-items: flex-start; }
  .ofn5-reviews-card > header .ofn5-link-arrow { padding-top: 4px; font-size: 10px; }
  .ofn5-review-summary { flex-wrap: wrap; }
  .ofn5-review-summary small { flex-basis: 100%; }
}

@media (max-width: 390px) {
  .ofn5-brand img { width: 156px; max-width: 46vw; }
  .ofn5-search-card { padding-inline: 18px; }
  .ofn5-search-card h1 { font-size: 27px; }
  .ofn5-section-header h2 { font-size: 25px; }
  .ofn5-location-title h1 { font-size: 26px; }
  .ofn5-location-title { padding-right: 92px; }
  .ofn5-action-card { width: 43px; min-height: 43px; }
}

/* Feedback and saved states used on the v5 core templates. */
.ofn5-bookmark.is-saved,
.ofn5-action-card.is-saved,
.ofn5-bookmark[aria-pressed="true"],
.ofn5-action-card[aria-pressed="true"] {
  background: #fff4c8;
  color: var(--ofn5-blue);
}
.ofn5-bookmark.is-saved svg,
.ofn5-action-card.is-saved svg,
.ofn5-bookmark[aria-pressed="true"] svg,
.ofn5-action-card[aria-pressed="true"] svg { color: var(--ofn5-yellow); }
.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 5000;
  display: grid;
  gap: 9px;
  max-width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}
.toast {
  padding: 12px 15px;
  transform: translateY(12px);
  opacity: 0;
  border: 1px solid rgba(0,45,94,.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(13,43,73,.18);
  color: var(--ofn5-blue);
  font-size: 14px;
  font-weight: 700;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast-error { border-color: rgba(181,34,73,.28); color: #8d1737; }
@media (max-width: 640px) {
  .toast-region { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
}

.ofn5-location-page, .ofn5-event-detail-page { min-width: 0; }
.ofn5-filter-wide { grid-column: 1 / -1; }
.ofn5-map-fallback--mobile { width: 100%; height: 100%; min-height: 420px; }
.ofn5-map-fallback--mobile > img { width: 100%; height: 100%; object-fit: cover; }
