:root {
  --sun: #F5922B;
  --sun-dark: #C96A0A;
  --sea: #0F6FA8;
  --deep: #0A3D5C;
  --sky: #E8F4FA;
  --white: #FFFFFF;
  --text: #1C2B36;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 { font-family: "Young Serif", Georgia, serif; font-weight: 400; line-height: 1.15; }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

/* Header */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 5vw;
}
.logo { font-family: "Young Serif", serif; font-size: 1.35rem; color: var(--white); text-decoration: none; }
.site-header nav { display: flex; gap: 1.5rem; align-items: center; }
.site-header nav a { color: var(--white); text-decoration: none; font-weight: 600; }
.site-header nav a:hover { text-decoration: underline; }
.nav-cta { background: var(--sun); padding: .5rem 1.1rem; border-radius: 999px; color: var(--deep) !important; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: 82vh; display: flex; align-items: center;
  padding: 8rem 5vw 7rem;
  background: linear-gradient(180deg, var(--deep) 0%, var(--sea) 100%);
  color: var(--white);
}
.sun {
  position: absolute; right: 8vw; top: 16%;
  width: clamp(140px, 24vw, 300px); aspect-ratio: 1;
  border-radius: 50%; background: var(--sun);
  box-shadow: 0 0 0 28px rgba(245,146,43,.22), 0 0 0 60px rgba(245,146,43,.1);
}
.hero-text { position: relative; max-width: 560px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 46ch; }
.waves { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; }
.waves path { fill: var(--white); }

/* Buttons */
.btn {
  display: inline-block; padding: .85rem 1.6rem; border-radius: 999px;
  background: var(--sun); color: var(--deep); font-weight: 700;
  text-decoration: none; transition: background .2s;
}
.btn:hover { background: #FFA84D; }
.btn.wa { background: var(--deep); color: var(--white); }
.btn.wa:hover { background: var(--sea); }
.btn.ghost { background: transparent; border: 2px solid var(--deep); color: var(--deep); }
.btn.ghost:hover { background: var(--deep); color: var(--white); }

/* Sections */
.section { padding: 4.5rem 5vw; max-width: 1200px; margin: 0 auto; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--deep); margin-bottom: .6rem; }
.lead { font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 55ch; }

/* Unit cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid #D5E6EF; border-radius: var(--radius); overflow: hidden; }
.photo { aspect-ratio: 4 / 3; }
.p1 { background: linear-gradient(135deg, var(--sun), #FFD08A); }
.p2 { background: linear-gradient(135deg, var(--sea), #7CC4E8); }
.p3 { background: linear-gradient(135deg, #FFB75E, var(--sun-dark)); }
.p4 { background: linear-gradient(135deg, var(--deep), var(--sea)); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; }
.card h3 { font-size: 1.5rem; color: var(--deep); margin-bottom: .3rem; }
.type { font-weight: 700; }
.guests { color: var(--sea); font-weight: 600; }
.where { margin-top: .6rem; font-size: .95rem; color: #4A5E6B; }

/* Locations */
.alt { max-width: none; background: var(--sky); }
.alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.locations { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.loc { background: var(--white); border-left: 6px solid var(--sun); border-radius: var(--radius); padding: 1.5rem; }
.loc h3 { font-size: 1.5rem; color: var(--deep); }
.note { margin-top: 1.5rem; color: #4A5E6B; }

/* Contact */
.contact { text-align: center; }
.contact .lead { margin-left: auto; margin-right: auto; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Footer */
.site-footer { background: var(--deep); color: var(--white); text-align: center; padding: 2rem 5vw; }

/* Mobile */
@media (max-width: 600px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .sun { right: -40px; top: 10%; opacity: .85; }
  .hero { min-height: 75vh; }
}

/* ===== Clickable cards ===== */
button.card { font: inherit; color: inherit; text-align: left; width: 100%; padding: 0; cursor: pointer; transition: transform .2s, box-shadow .2s; }
button.card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(10,61,92,.15); }
button.card:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.photo { position: relative; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.more { margin-top: .8rem; font-weight: 700; color: var(--sun-dark); }

/* ===== Popup ===== */
dialog { border: none; border-radius: var(--radius); padding: 0; width: min(900px, 94vw); max-height: 92vh; overflow: auto; color: var(--text); }
dialog::backdrop { background: rgba(10,61,92,.65); }
dialog[open] { display: grid; grid-template-columns: 1.2fr 1fr; }
.close { position: absolute; top: .6rem; right: .8rem; z-index: 2; width: 2.4rem; height: 2.4rem; border: none; border-radius: 50%; background: var(--white); color: var(--deep); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.close:focus-visible { outline: 3px solid var(--sun); }
.gallery { background: var(--sky); padding: 1rem; }
.main-photo { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, var(--sun), #FFD08A); }
.main-photo.lavandula { background: linear-gradient(135deg, var(--sea), #7CC4E8); }
.main-photo.rosmarinus { background: linear-gradient(135deg, #FFB75E, var(--sun-dark)); }
.main-photo.rubus { background: linear-gradient(135deg, var(--deep), var(--sea)); }
.main-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.main-photo img[hidden] { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .6rem; }
.thumbs button { border: 2px solid transparent; border-radius: 8px; padding: 0; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: var(--white); }
.thumbs button:hover, .thumbs button:focus-visible { border-color: var(--sun); outline: none; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-body { padding: 2rem 1.6rem 1.6rem; }
.m-body h3 { font-size: 2rem; color: var(--deep); }
.m-sub { color: var(--sea); font-weight: 600; margin: .3rem 0 1rem; }
.m-body h4 { margin: 1.2rem 0 .3rem; color: var(--deep); }
.m-body ul { padding-left: 1.2rem; }
.m-body .btn { margin-top: 1.6rem; }
[hidden] { display: none !important; }

@media (max-width: 720px) {
  dialog[open] { grid-template-columns: 1fr; }
  .m-body { padding-top: 1.4rem; }
}

/* ===== Fixes: fixed photo size + centered popup ===== */
.photo { aspect-ratio: 4 / 3; overflow: hidden; }
.photo img { max-width: none; }
dialog { margin: auto; }
.gallery { min-width: 0; }
.thumbs { min-width: 0; }

/* ===== Location cards (open Google Maps) ===== */
a.loc {
  position: relative; display: flex; align-items: flex-end;
  min-height: 190px; padding: 1rem; overflow: hidden;
  border-left: none; text-decoration: none; color: var(--text);
  background-color: #DCEFF7;
  background-image:
    linear-gradient(115deg, transparent 44%, #fff 44%, #fff 49%, transparent 49%),
    linear-gradient(28deg, transparent 58%, #FFE3BD 58%, #FFE3BD 62%, transparent 62%),
    linear-gradient(0deg, rgba(255,255,255,.75) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,.75) 2px, transparent 2px);
  background-size: auto, auto, 38px 38px, 38px 38px;
  border: 1px solid #BFDDEB;
  transition: transform .2s, box-shadow .2s;
}
a.loc:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(10,61,92,.18); }
a.loc:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.pin { position: absolute; top: 18px; right: 22px; width: 46px; height: 46px; fill: var(--sun); filter: drop-shadow(0 3px 3px rgba(10,61,92,.35)); }
.loc-label { background: rgba(255,255,255,.94); border-radius: 10px; padding: .9rem 1.1rem; width: 100%; }
.open { display: inline-block; margin-top: .4rem; font-weight: 700; color: var(--sun-dark); }
