:root {
  color-scheme: only light;
  --paper: #f9f7f0;
  --ink: #0c211b;
  --forest: #10382a;
  --muted: #435851;
  --line: #b6c4b8;
  --leaf: #e7efdf;
  --sprout: #dafa53;
  font-family: "Inter", "Aptos", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  scroll-padding: 1rem;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background-color: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #28764c;
  outline-offset: 3px;
}
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: absolute; z-index: 4; left: 1rem; top: .5rem; padding: .7rem 1rem; background: var(--paper); }
.shell { width: min(100% - 6rem, 1120px); margin-inline: auto; }
.site-header { border-bottom: 1px solid #ccd2c6; }
.header-layout { min-height: 76px; display: flex; align-items: center; gap: 2.5rem; }
.brand { display: inline-flex; gap: .75rem; align-items: center; flex-shrink: 0; text-decoration: none; font-size: 1.55rem; font-weight: 780; letter-spacing: -.055em; }
.brand img, .team img { flex: none; }
.header-controls { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-left: 2rem; border-left: 1px solid var(--line); }
nav, .languages { display: flex; gap: .37rem; align-items: center; }
.header-controls button { border: 0; background: transparent; padding: .46rem .7rem; border-radius: .48rem; font-weight: 580; }
.header-controls button[aria-pressed="true"], .header-controls button:hover { background: var(--leaf); }
.languages button { font-size: .88rem; }
.menu-icon, .filter-toggle { display: none; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero { position: relative; isolation: isolate; padding-top: clamp(2.8rem, 5vw, 4.4rem); }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: 0 0 auto auto; width: min(53%, 580px); height: 350px;
  background: url(contours.png) center 38% / cover no-repeat;
  mask-image: radial-gradient(ellipse at 86% 28%, #000 19%, transparent 73%);
}
.hero-copy { max-width: 750px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(3rem, 5.2vw, 4.8rem); line-height: .99; letter-spacing: -.072em; font-weight: 810; text-wrap: balance; }
.hero-copy p { margin-top: .75rem; color: var(--muted); font-size: clamp(1.2rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -.04em; }
.search { position: relative; display: flex; align-items: center; margin-top: 2rem; max-width: 790px; }
.search svg { position: absolute; left: 1.1rem; pointer-events: none; width: 1.55rem; height: 1.55rem; }
.search input { width: 100%; min-width: 0; min-height: 56px; padding: .7rem 1.1rem .7rem 3.2rem; border-radius: 2rem; border: 1px solid #96a99f; background: var(--paper); font-size: clamp(1rem, 1.9vw, 1.2rem); }
.search input::placeholder { opacity: 1; color: #43534c; }
.enter .hero-copy, .enter .search { animation: enter 220ms ease-out both; }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.filter-panel { margin-top: .9rem; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; }
.filter-row label { display: block; position: relative; min-width: 0; }
.filter-row label::after { content: ""; position: absolute; width: .43rem; height: .43rem; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; right: 1rem; top: 45%; transform: rotate(45deg); pointer-events: none; }
select, .filter-toggle { appearance: none; border: 1px solid #c8d8c0; background: var(--leaf); border-radius: 1.5rem; min-height: 44px; font-size: .94rem; font-weight: 640; }
select { width: 100%; padding: .4rem 2rem .4rem .9rem; }
select.active { border-color: #779e72; background: #dbead1; }
.text-button { min-height: 44px; padding: .25rem .4rem; border: 0; border-radius: .25rem; background: transparent; color: var(--forest); text-decoration: underline; text-underline-offset: .2em; font-size: .92rem; font-weight: 620; }
.agenda { margin-top: clamp(2rem, 4vw, 3.15rem); }
.section-head { display: flex; gap: .25rem 1rem; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.55rem); font-weight: 790; line-height: 1.12; letter-spacing: -.055em; }
#result-count, .demo-note { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.demo-note { margin-top: .45rem; }
.results { margin-top: 1.15rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; min-height: 238px; }
.results.updated .card { animation: settle 150ms ease-out both; }
@keyframes settle { from { opacity: .8; } to { opacity: 1; } }
.card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: flex-start;
  min-width: 0; min-height: 238px; padding: clamp(1rem, 2.3vw, 1.5rem);
  border: 1px solid var(--line); border-radius: 1rem; transition: transform 150ms ease;
}
.card.featured { background: #eef4e7; border-color: #c3d6ba; }
.card.featured::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0; border-radius: inherit;
  background: url(contours.png) right center / auto 132% no-repeat;
  mask-image: radial-gradient(ellipse at 98% 65%, #000, transparent 53%);
}
@media (hover: hover) { .card:hover { transform: translateY(-2px); } }
.card:focus-within { border-color: #28764c; }
.badge { display: inline-block; padding: .27rem .66rem; border-radius: .65rem; background: #dce8d6; color: #153528; font-size: .875rem; line-height: 1.25; font-weight: 660; }
.featured .badge { background: #d5e98a; }
.card h3 { margin-top: .55rem; font-size: clamp(1.45rem, 2.6vw, 2.05rem); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.details { list-style: none; display: grid; gap: .38rem; margin: .87rem 0 1rem; padding: 0; font-size: .96rem; }
.details li { display: flex; align-items: flex-start; gap: .6rem; }
.details svg { margin-top: .08rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; border: 1px solid var(--forest); border-radius: .65rem; padding: .43rem 1rem; background: var(--forest); color: #fff; font-weight: 700; text-decoration: none; }
.button:hover { background: #245641; }
.card .button { margin-top: auto; }
.secondary { background: transparent; color: var(--forest); }
.secondary:hover { background: #dcebd4; }
.empty { grid-column: 1 / -1; align-self: stretch; border: 1px dashed var(--line); border-radius: 1rem; padding: 1.25rem; }
.empty h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.empty p { color: var(--muted); margin-bottom: .4rem; }
.team { display: flex; gap: 1.15rem; align-items: center; padding: 1.15rem 1.5rem; margin-top: 1.75rem; background: #eaf1e4; border-radius: 1rem; }
.team > div { flex: 1; border-left: 1px solid var(--line); padding-left: 1.15rem; }
.team h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); letter-spacing: -.04em; }
.team p { margin-top: .3rem; color: var(--muted); font-size: .94rem; line-height: 1.45; }
.footer { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: space-between; color: var(--muted); font-size: .88rem; margin-block: 1.5rem; padding-top: 1rem; border-top: 1px solid #d6ddd1; }
#calendar-panel { padding: .9rem; margin-top: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: #f2f5eb; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: .55rem; }
.calendar-head h3 { font-size: 1.15rem; text-align: center; text-transform: capitalize; }
.calendar-head button { border: 1px solid var(--line); border-radius: .55rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--paper); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .2rem; text-align: center; align-items: stretch; }
.weekday { font-size: .86rem; padding-bottom: .3rem; color: var(--muted); text-transform: capitalize; }
.day { display: grid; align-content: center; justify-items: center; min-width: 0; min-height: 42px; border: 1px solid transparent; border-radius: .45rem; padding: .1rem; background: transparent; font-size: .95rem; }
button.day { border-color: #aec4a6; background: #e4eedb; font-weight: 750; }
button.day[aria-pressed="true"] { border-color: #2e593f; background: var(--sprout); }
.day small { font-size: .74rem; line-height: 1; }
.calendar-selection { margin-top: .55rem; display: flex; gap: .35rem .7rem; flex-wrap: wrap; align-items: center; font-size: .9rem; }
@media (max-width: 690px) {
  .shell { width: calc(100% - 2rem); }
  .header-layout { min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .45rem; }
  .brand { gap: .55rem; font-size: 1.33rem; }
  .brand img { width: 29px; height: 29px; }
  .menu-icon { display: grid; place-items: center; border: 0; border-radius: .5rem; background: transparent; width: 44px; height: 44px; }
  .menu-icon svg { width: 1.5rem; height: 1.5rem; }
  .header-controls { display: none; grid-column: 1 / -1; border: 0; padding: 0 0 .65rem; gap: .3rem; flex-wrap: wrap; }
  .header-controls.open { display: flex; }
  .header-controls button { padding: .5rem; min-height: 44px; }
  .hero { padding-top: 1.65rem; }
  .hero::before { display: none; }
  h1 { font-size: clamp(2.05rem, 9.2vw, 3.1rem); line-height: 1.01; text-wrap: initial; letter-spacing: -.063em; }
  .hero-copy p { margin-top: .45rem; font-size: clamp(1.05rem, 5vw, 1.35rem); }
  .search { margin-top: 1rem; }
  .search svg { left: .85rem; width: 1.3rem; height: 1.3rem; }
  .search input { min-height: 48px; padding-left: 2.65rem; padding-right: .65rem; letter-spacing: -.035em; }
  .filter-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .85rem; margin-top: .7rem; }
  .filter-toggle span:last-child:not([data-text]) { background: #cfe0c6; border-radius: 1rem; padding: 0 .38rem; }
  .filter-panel { display: grid; grid-template-rows: 0fr; margin-top: 0; visibility: hidden; transition: grid-template-rows 150ms ease, visibility 150ms; }
  .filter-panel.open { grid-template-rows: 1fr; visibility: visible; }
  .filter-inner { min-height: 0; overflow: hidden; }
  .filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .65rem .3rem .1rem; }
  .filter-row .text-button { justify-self: start; grid-column: 1 / -1; }
  .agenda { margin-top: 1.55rem; }
  .results { grid-template-columns: 1fr; gap: .8rem; margin-top: .85rem; min-height: 205px; }
  .card { min-height: 205px; }
  .card .button { width: 100%; }
  .team { align-items: flex-start; gap: .75rem; padding: 1rem; flex-wrap: wrap; }
  .team img { width: 29px; height: 29px; }
  .team > div { padding-left: .75rem; }
  .team .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card:hover { transform: none; }
}

/* The agenda keeps the scale and alignment of a printed event listing. */
.site-header { border-top: 4px solid var(--forest); }
.header-controls nav button { border-radius: 0; border-bottom: 2px solid transparent; }
.header-controls nav button[aria-pressed="true"] { background: transparent; border-bottom-color: var(--forest); }
.hero-copy { max-width: 46rem; }
.hero-copy p { font-family: Georgia, serif; font-style: italic; letter-spacing: -.035em; }
.section-head { border-top: 1px solid var(--forest); padding-top: 1.15rem; }
.card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; align-items: start; gap: .75rem 1rem; background-color: #fcfbf6; }
.card > :not(.date-stamp) { grid-column: 1; }
.date-stamp { grid-column: 2; grid-row: 1 / span 3; min-width: 4.7rem; border-left: 1px solid #aebdae; padding-left: 1rem; text-align: center; color: var(--forest); }
.date-stamp span { display: block; font-size: .86rem; font-weight: 720; text-transform: uppercase; letter-spacing: .12em; }
.date-stamp strong { display: block; font: 500 clamp(2.1rem, 3.5vw, 3rem)/1.1 Georgia, serif; letter-spacing: -.06em; }
.card .badge, .card .button { justify-self: start; }
.card h3 { margin: 0; text-wrap: balance; }
.card .details { margin: .15rem 0 .45rem; }
.card .button { align-self: end; }
.team { border-top: 2px solid var(--forest); }
.team .button { flex: none; background: var(--forest); color: #fff; }
.footer a { font-weight: 650; text-underline-offset: .2em; }
@media (max-width: 690px) {
  .date-stamp { min-width: 3.45rem; padding-left: .65rem; }
  .card { gap: .65rem; }
  .card .button { grid-column: 1 / -1; }
  .team .button { flex-basis: 100%; }
}
#map-panel {display:grid;grid-template-columns: minmax(15rem,.8fr) minmax(0,1.2fr);border:1px solid var(--line);border-radius:1rem;overflow:hidden;margin-top:1.2rem;background:#fcfbf6}
.map-copy {align-self:center;padding:clamp(1.1rem,3vw,2.1rem)}
.map-copy h3 {font-size:clamp(1.4rem,3vw,2.1rem);letter-spacing:-.05em;line-height:1.1}
.map-copy p {margin-top:.55rem;color:var(--muted);font-size:.95rem;line-height:1.45}
#location-status:empty {display:none}
#map-places {padding:0;list-style:none;margin:1rem 0;display:grid;gap:.45rem}
#map-places li {display:flex;align-items:baseline;gap:.55rem}
.pin-key {background:var(--forest);color:white;border-radius:50%;min-width:1.5rem;height:1.5rem;text-align:center;line-height:1.5rem;font-size:.86rem;font-weight:700}
svg.iberia {width:100%;height:auto;max-height:350px;background:#eaf1ed;stroke:none;align-self:stretch}
.iberia .land {fill:#f8f6ec;stroke:#879c8d;stroke-width:1.25}
.iberia .PRT {fill:#dce7d3}
.iberia text {fill:var(--forest);font-family:system-ui,sans-serif}
.iberia .country-name {font-size:17px;font-weight:650;letter-spacing:3px}
.iberia .pin-number {fill:white;font-weight:750;font-size:19px;text-anchor:middle;dominant-baseline:central}
@media(max-width:690px){#map-panel{grid-template-columns:1fr}.iberia{grid-row:1}svg.iberia{max-height:260px}.map-copy{padding:1rem}}

.city-choice { display:grid; gap:.3rem; max-width:23rem; margin-top:.85rem; font-size:.94rem; font-weight:650; }
.city-choice select { appearance:auto; background:var(--paper); border-radius:.6rem; padding:.45rem .7rem; }
#location-help { margin-bottom:.65rem; }

.distance-slot {display:grid;justify-items:start;gap:.15rem}
.distance-slot small,#distance-note {font-size:.875rem;line-height:1.45;color:var(--muted)}
.distance-slot .text-button {padding-inline:0;text-align:left}
.distance-slot strong {font-size:.94rem}
.distance-slot strong:empty {display:none}
#distance-note {margin:.75rem 0 1rem}
.partnership-nav {display:inline-flex;align-items:center;min-height:44px;padding:.45rem .7rem;font-weight:580;text-decoration:none}
.partnership-nav:hover {text-decoration:underline;text-underline-offset:.25em}
.partnerships {display:flex;align-items:center;justify-content:space-between;gap:1.75rem;margin-top:1.25rem;padding:1.6rem;border:1px solid var(--line);border-radius:1rem;background:#fcfbf6}
.partnerships h2 {font-size:clamp(1.35rem,2.6vw,1.8rem)}
.partnerships p {max-width:65ch;color:var(--muted);margin-top:.55rem;line-height:1.5}
.partnerships .button {flex:none}
.sponsor-label {font-size:.875rem;line-height:1.4;color:var(--forest);border-left:3px solid #879e4a;padding-left:.5rem}
@media(max-width:690px){.partnerships{display:grid;gap:1rem;padding:1rem}.partnership-nav{padding:.5rem}}
