:root {
  --brand: #005b8d;
  --brand-bright: #1092d5;
  --deep-blue: #003753;
  --paper: #fff;
  --pale-blue: #edf6fc;
  --ink: var(--brand);
  --muted: var(--brand);
  --line: #d6e5ef;
  --gutter: 8%;
  --serif: Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--brand-bright); outline-offset: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: .5rem; z-index: 9; background: white; padding: .5rem 1rem; }

.workbar { background: var(--brand); color: white; }
.workbar-inner, .header-inner { width: min(calc(100% - 2 * var(--gutter)), 1320px); margin-inline: auto; }
.workbar-inner { min-height: 32px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .8125rem; }
.workbar a { text-decoration: underline; text-underline-offset: .22em; }
.workbar-public .workbar-inner { justify-content: flex-end; }
.workbar-public .language-picker { border-left: 0; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 88px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: .6rem; color: var(--brand); }
.brand-globe, .brand-wordmark { display: block; background: url('./assets/logo.png') no-repeat; mix-blend-mode: multiply; }
/* Two views of the same original mark. Preserve the globe, lettering and waves. */
.brand-globe { width: 54px; aspect-ratio: 235 / 232; background-size: 212.766% 215.517%; background-position: 50.943% 26.493%; }
.brand-wordmark { width: 153px; aspect-ratio: 408 / 112; background-size: 122.549% 446.429%; background-position: 46.739% 77.835%; }
.header-inner nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); font-size: .9375rem; }
.header-inner nav a { padding-block: .55rem; }
.header-inner nav a:hover, .header-inner nav [aria-current] { color: var(--brand); text-decoration: underline; text-underline-offset: .45em; }
.header-contact { justify-self: end; }
@media (min-width: 801px) and (max-width: 1024px) {
  .header-inner:has(.nav-guide), .header-inner nav:has(.nav-guide) { column-gap: 1rem; }
}

.button, button { display: inline-block; background: var(--brand); color: white; border: 1px solid var(--brand); padding: .8rem 1.4rem; cursor: pointer; font-size: .9375rem; font-weight: 600; }
.button:hover, button:hover { background: var(--deep-blue); border-color: var(--deep-blue); }
.button.light { background: white; color: var(--brand); border-color: white; }
.button.light:hover { background: var(--pale-blue); border-color: var(--pale-blue); }
.button.outline { background: transparent; color: inherit; border-color: currentColor; }
.button.outline:hover { background: #1092d51a; }
.hero { min-height: clamp(610px, 50vw, 710px); display: flex; align-items: center; color: white; background: linear-gradient(90deg, #082a32ba, #082a3210), url('./assets/coast.png') center / cover; }
.hero-content { width: min(calc(100% - 2 * var(--gutter)), 1320px); margin-inline: auto; padding-block: 3.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8125rem; font-weight: 700; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(2.75rem, 5.8vw, 5rem); margin: 1.375rem 0; }
h2 { font-size: clamp(2.1875rem, 4vw, 3.25rem); margin: 1rem 0 1.5rem; }
h3 { font-size: 1.75rem; margin: 1rem 0 .625rem; }
.hero p { max-width: 480px; color: white; font-size: 1.125rem; margin: 0 0 1.875rem; }
.actions { display: flex; gap: .875rem; flex-wrap: wrap; }

.service-trail { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); border-bottom: 1px solid var(--line); }
.service-trail a { padding: 1.5rem 0; color: var(--brand); }
.service-trail a + a { padding-left: clamp(1.25rem, 4vw, 4rem); border-left: 1px solid var(--line); }
.service-name { display: block; font: 1.65rem/1.3 var(--serif); }
.service-trail a:hover .service-name { text-decoration: underline; text-underline-offset: .18em; }
.section { padding: 5.5rem var(--gutter); max-width: 1500px; margin-inline: auto; }
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.intro p { max-width: 530px; color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.card p { color: var(--muted); margin-top: 0; }
.card .meta { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; margin: 1.1rem 0 .25rem; color: var(--brand); }
.card h3 { margin-top: .25rem; }
.text-link { color: var(--brand); border-bottom: 1px solid; padding-bottom: .2rem; font-size: .9375rem; }
.split { background: var(--pale-blue); display: grid; grid-template-columns: 1fr 1fr; }
.split img { display: block; width: 100%; height: 100%; min-height: 550px; object-fit: cover; }
.split-content { padding: 4.5rem 12%; }
.split p { color: var(--muted); }
.service-list { padding: 0; list-style: none; margin: 1.75rem 0; }
.service-list li { padding: .75rem 0; border-bottom: 1px solid #cbdde9; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4.375rem); }
.details details { border-bottom: 1px solid var(--line); padding: 1.2rem 0; }
.details summary { cursor: pointer; font-size: 1.125rem; }
.contact { background: var(--brand); color: white; padding: 4.5rem var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 1.875rem; }
.contact p { color: #e2f3ff; }
.contact h2 { max-width: 650px; }
footer { padding: 2.2rem var(--gutter); display: flex; justify-content: space-between; gap: 1.5rem; font-size: .875rem; color: var(--muted); }
footer a:hover { text-decoration: underline; }
.page-hero { padding: 4.375rem var(--gutter) 2.5rem; max-width: 1100px; }
.page-hero p { max-width: 650px; }
.feature { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.swatch { display: inline-block; width: 28px; height: 28px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.review-panel { border: 1px solid #bfd9ea; background: var(--pale-blue); padding: 1.75rem; margin-top: 2rem; }
label { display: block; margin: 1rem 0 .3rem; }
select, textarea { width: 100%; padding: .75rem; border: 1px solid #9dbed4; background: white; color: var(--ink); }
textarea { min-height: 120px; }
.notice { font-size: .875rem; color: var(--muted); }
#saved { min-height: 26px; }

@media (max-width: 800px) {
  :root { --gutter: 6%; }
  .header-inner { grid-template-columns: 1fr auto; column-gap: .75rem; row-gap: 0; padding-top: .65rem; }
  .header-inner nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; border-top: 1px solid var(--line); margin-top: .65rem; }
  .header-contact { grid-column: 2; grid-row: 1; padding: .55rem .8rem; }
  .brand-globe { width: 42px; }
  .brand-wordmark { width: 116px; }
  .hero { min-height: 570px; background-image: linear-gradient(90deg, #082a32cc, #082a3259), url('./assets/coast.png'); }
  .hero-content { padding-block: 3rem; }
  .hero h1 { font-size: clamp(2.45rem, 8.8vw, 3.75rem); }
  .service-trail a { padding-block: 1rem; }
  .service-name { font-size: clamp(1.125rem, 4vw, 1.6rem); }
  .intro, .split, .details { grid-template-columns: 1fr; gap: 1.5rem; }
  .cards { grid-template-columns: 1fr; }
  .section { padding-block: 3.5rem; }
  .section-head { align-items: start; flex-direction: column; }
  .split img { min-height: 0; max-height: 380px; aspect-ratio: 4 / 3; }
  .split-content { padding: 2rem var(--gutter) 3rem; }
  .contact { display: block; }
  .contact .actions { margin-top: 1.5rem; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.workbar-tools, .language-picker { display: flex; align-items: center; gap: .85rem; }
.language-picker { gap: .15rem; padding-left: .65rem; border-left: 1px solid #ffffff66; }
.language-picker a { padding: .2rem .38rem; text-decoration: none; }
.language-picker a[aria-current], .language-picker a:hover { background: white; color: var(--brand); }
.hero h1 { font-size: clamp(2.5rem, 5.45vw, 4.8rem); }
.section-compact { padding-top: 1.5rem; }
.section-head p { max-width: 42rem; margin-bottom: 0; color: var(--muted); }
.section-head .text-link { flex-shrink: 0; }
.experience-list { display: flex; flex-wrap: wrap; gap: .5rem .9rem; padding: 0; list-style: none; }
.experience-list li { color: var(--brand); font-size: .9rem; }
.experience-list li + li::before { content: '·'; margin-right: .65rem; }
.founder { display: grid; grid-template-columns: minmax(0, 410px) minmax(0, 610px); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.founder-photo { margin: 0; background: var(--pale-blue); }
.founder-photo img { display: block; width: 100%; height: auto; }
.founder-lead { font-size: 1.2rem; color: var(--brand); }
.review-section { max-width: 1000px; margin-inline: 0; }
.review-panel .actions { margin-top: 1.25rem; }

@media (max-width: 800px) {
  .founder { grid-template-columns: minmax(0, 1fr); }
  .founder-copy { grid-row: 1; }
  .founder-photo { max-width: 400px; }
  .hero h1 { font-size: clamp(2.25rem, 7.6vw, 3.75rem); }
  .section-compact { padding-top: 1rem; }
  .workbar-tools { gap: .45rem; }
  .language-picker { padding-left: .38rem; }
  .language-picker a { padding-inline: .25rem; }
}

/* The catalogue keeps the existing brand palette and gives the photographs the first word. */
.header-inner nav { font-size: 1.0625rem; }
.header-inner .nav-listing { color: var(--brand); font-weight: 700; }
.header-contact.button {
  min-height: 46px;
  padding: .63rem 1.25rem;
  border-color: #a8c8dc;
  background: #f4faff;
  color: var(--brand);
  font-size: 1rem;
  white-space: nowrap;
}
.header-contact.button:hover, .header-contact.button[aria-current] {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}
.button, button { border-radius: 999px; }
.hero h1 { font-size: clamp(3rem, 6.1vw, 5.35rem); }
.hero p { max-width: 530px; font-size: 1.25rem; line-height: 1.55; }
.hero .button { padding: .9rem 1.5rem; }
.hero .hero-primary { box-shadow: 0 4px 14px #04223840; }
.hero .outline { background: #00375342; }
.hero .outline:hover { background: #003753b0; }

.villa-section { padding-top: clamp(3rem, 6vw, 5.5rem); }
.page-hero + .villa-section { padding-top: .75rem; }
.villa-section-head { margin-bottom: 1.55rem; }
.villa-section-head h2 { margin-top: .55rem; }
.villa-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.villa-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip {
  min-height: 42px;
  padding: .5rem .9rem;
  border-color: var(--line);
  background: white;
  color: var(--ink);
}
.filter-chip:hover { border-color: var(--brand); background: var(--pale-blue); color: var(--brand); }
.filter-chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: white; }
.villa-count { margin: 0; color: var(--muted); font-size: .9375rem; white-space: nowrap; }
.villa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.2vw, 2rem); }
.villa-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: 0 4px 20px #0037530a;
}
.villa-card[hidden], .villa-toolbar[hidden] { display: none; }
.villa-photo { display: block; overflow: hidden; border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0; }
.villa-photo:focus-visible { outline-offset: -5px; }
.villa-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.villa-card-body { flex: 1; padding: 1rem 1.1rem .7rem; }
.villa-location { margin: 0; color: var(--brand); font-size: .875rem; font-weight: 700; }
.villa-card h3 { margin: .4rem 0 .55rem; }
.villa-card h3 a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: .15em; }
.villa-summary { margin: 0; color: var(--muted); line-height: 1.45; }
.villa-facts { display: flex; flex-wrap: wrap; gap: .32rem .65rem; padding: 0; margin: 1rem 0 0; list-style: none; }
.villa-facts li { padding: .17rem .55rem; border-radius: 999px; background: var(--pale-blue); color: var(--brand); font-size: .875rem; }
.villa-card-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .65rem; padding: .85rem 1.1rem 1rem; border-top: 1px solid var(--line); }
.villa-card-actions .button { padding: .5rem .8rem; color: var(--brand); }
.rental-help { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; padding: 1.35rem 1.65rem; background: var(--pale-blue); border-radius: 1rem; }
.rental-help h3, .rental-help p { margin: 0; }
.rental-help p { margin-top: .35rem; color: var(--muted); }
.rental-help .button { flex-shrink: 0; color: var(--brand); }
.mission-section { padding-top: 1rem; }

.villa-detail-intro { padding-bottom: 1.25rem; }
.villa-detail-intro h1 { margin: .45rem 0 .7rem; }
.villa-detail-intro .eyebrow { margin-top: 1.6rem; }
.villa-detail-description { max-width: 46rem; color: var(--muted); font-size: 1.125rem; }
.villa-detail { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); align-items: start; gap: clamp(1.25rem, 4vw, 3.5rem); }
.villa-detail-photo { margin: 0; }
.villa-detail-photo img { display: block; width: 100%; height: auto; border-radius: 1rem; }
.villa-photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; }
.villa-photo-gallery img { aspect-ratio: 3 / 2; object-fit: cover; }
.villa-photo-gallery-captioned { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }
.villa-photo-gallery-captioned figcaption { margin-top: .35rem; color: var(--muted); }
.villa-stay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem 2rem; }
.villa-stay-grid h3 { margin-top: 0; font-size: 1.4rem; }
.villa-stay-grid p { margin: 0; color: var(--muted); }
.guide-beaches, .owner-case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.guide-villas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.guide-villas > div { border: 1px solid var(--line); border-radius: 1rem; padding: 1.1rem; }
.guide-villas p { margin-bottom: 0; }
.owner-person { display: flex; align-items: center; gap: .7rem; font-weight: 600; margin-block: 1rem; }
.owner-person img { width: 3rem; height: 3rem; border-radius: .5rem; object-fit: cover; object-position: 50% 28%; }
.contact-person img { flex-shrink: 0; }
.contact-person small { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; }
.contact-whatsapp {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: .15rem;
  vertical-align: middle;
  border-radius: 50%;
}
.contact-whatsapp:hover { background: var(--pale-blue); }
.contact-whatsapp img { display: block; width: 1.375rem; height: auto; }
.villa-booking { margin: 0; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--pale-blue); }
.villa-booking h2 { margin: 0 0 .65rem; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.villa-booking p { margin: 0 0 1.25rem; color: var(--muted); }
.villa-booking .actions { align-items: flex-start; }

.owners-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.owners-hero h1 { max-width: 13ch; font-size: clamp(2.9rem, 5.2vw, 4.95rem); }
.owners-hero p { color: var(--muted); font-size: 1.125rem; }
.owners-hero-photo { margin: 0; }
.owners-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 1rem; }
.owner-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
.owner-benefits > * { padding: 1.15rem 0 .4rem; border-top: 2px solid #aacadd; }
.owner-benefits h3 { margin: 0 0 .45rem; }
.owner-benefits p { margin: 0; color: var(--muted); }
.owners-priority { background: var(--pale-blue); }
.owners-priority .section { padding-block: 3.5rem; }
.owners-priority h2 { margin: 0; }
.owner-process { padding-bottom: 2.5rem; }
.owner-contact { display: grid; grid-template-columns: 154px 1fr; align-items: center; gap: min(5vw, 4rem); padding-top: 2.5rem; }
.owner-contact h2 { margin: 0; }
.owner-contact img { display: block; width: 154px; height: 154px; border-radius: 1rem; object-fit: cover; object-position: center 25%; }

@media (max-width: 1000px) {
  .villa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .header-inner nav { gap: .55rem; font-size: clamp(.875rem, 3.65vw, 1rem); }
  .header-contact.button { padding-inline: .8rem; font-size: .9375rem; }
  .hero h1 { font-size: clamp(2.38rem, 8.2vw, 3.8rem); }
  .hero p { font-size: 1.125rem; }
  .villa-toolbar { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .owners-hero, .villa-detail, .guide-beaches, .owner-case { grid-template-columns: 1fr; }
  .owners-hero h1 { max-width: 16ch; }
  .villa-booking { order: -1; }
  .rental-help { align-items: flex-start; flex-direction: column; gap: .85rem; }
  .owner-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .villa-grid { grid-template-columns: 1fr; }
  .owner-contact { grid-template-columns: 1fr; gap: 1rem; }
  .owner-contact img { width: 104px; height: 104px; }
}

.years-in-costa-rica, .owners-hero p.owner-since { color: var(--brand); font-weight: 700; }
.years-in-costa-rica { margin: 0 0 .6rem; }
.owners-editorial { gap: clamp(1.5rem, 6vw, 6.5rem); padding-block: clamp(2.6rem, 5vw, 4.5rem); }
.owners-editorial .actions { align-items: center; column-gap: 1.2rem; }
.owners-editorial .owners-hero-photo img { aspect-ratio: 4 / 5; max-height: 510px; object-position: 50% 66%; }
.owners-hero p.owner-since { margin: 0; }
.owner-editorial-services { padding-top: 0; }
.owner-editorial-services > h2 { margin: 0 0 1.6rem; }
.owner-service-row {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.owner-service-copy h3 { margin: 0 0 1.25rem; font-size: clamp(1.85rem, 3.25vw, 2.7rem); }
.owner-service-list { margin: 0; }
.owner-service-list > div + div { margin-top: 1.2rem; }
.owner-service-list dt { color: var(--brand); font-size: 1.0625rem; font-weight: 700; }
.owner-service-list dd { margin: .2rem 0 0; color: var(--muted); }
.owner-service-photo { margin: 0; }
.owner-service-photo img { display: block; width: 100%; height: auto; border-radius: 1rem; }
.owner-service-row-stay > .owner-service-photo { grid-column: 1; grid-row: 1; }
.owner-photo-pair { position: relative; padding: 0 1.55rem 2.15rem 0; }
.owner-photo-pair .owner-concierge-detail {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(39%, 185px);
  border: 5px solid white;
  box-shadow: 0 6px 24px #00375324;
}
.owner-testimonial { margin: 2.75rem 0 0; padding: .6rem 0 .6rem 1.6rem; border-left: 3px solid var(--brand); }
.owner-testimonial blockquote { margin: 0 0 .7rem; font: clamp(1.35rem, 2.4vw, 2rem)/1.35 var(--serif); max-width: 43ch; }
.owner-testimonial figcaption { color: var(--muted); font-size: .9375rem; }
@media (max-width: 800px) {
  .owners-editorial .owners-hero-photo img { aspect-ratio: 5 / 4; max-height: 440px; }
  .owner-service-row { grid-template-columns: 1fr; }
  .owner-service-row-stay > .owner-service-photo { grid-column: auto; grid-row: auto; }
}

.primary-menu { display: flex; gap: inherit; list-style: none; margin: 0; padding: 0; }
.header-inner nav:has(.primary-menu) { --menu-gap: clamp(1rem, 3vw, 3rem); }
.primary-menu { gap: var(--menu-gap); }
.azul-design .wp-block-group > .wp-block-group__inner-container { display: contents; }
.wp-azul-flush { padding-top: 0; }
.wp-azul-compact { padding-top: 20px; }
@media (max-width: 800px) {
  .primary-menu { width: 100%; justify-content: space-between; }
}

@media (max-width: 380px) {
  .header-inner .brand { gap: .4rem; }
  .header-inner .brand-globe { width: 36px; }
  .header-inner .brand-wordmark { width: 100px; }
  .header-contact.button { padding-inline: .5rem; font-size: .85rem; }
}
