:root {
  --ip-ink: #17343d;
  --ip-muted: #5c7076;
  --ip-brand: #006d77;
  --ip-brand-dark: #075760;
  --ip-sand: #f6f2e8;
  --ip-sky: #e8f5f6;
  --ip-line: #dbe4e5;
  --ip-white: #fff;
}

.ip-beach-detail { color: var(--ip-ink); background: var(--ip-white); }
.ip-beach-detail *, .ip-beach-detail *::before, .ip-beach-detail *::after { box-sizing: border-box; }
.ip-beach-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ip-beach-hero { padding: 64px 0 38px; background: linear-gradient(120deg, var(--ip-sand), #fff 72%); border-bottom: 1px solid var(--ip-line); }
.ip-beach-eyebrow, .ip-beach-kicker { margin: 0 0 10px; color: var(--ip-brand); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.ip-beach-hero h1 { max-width: 900px; margin: 0; color: var(--ip-ink); font-size: clamp(2.45rem, 7vw, 5.4rem); font-weight: 750; letter-spacing: -.055em; line-height: .98; text-transform: none; }
.ip-beach-location { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; color: var(--ip-muted); font-size: .96rem; }
.ip-beach-location a { color: var(--ip-brand-dark); text-decoration: none; border-bottom: 1px solid transparent; }
.ip-beach-location a:hover { border-color: currentColor; }
.ip-beach-cover { position: relative; z-index: 1; overflow: hidden; margin: -1px 0 0; aspect-ratio: 16 / 8.2; background: var(--ip-sky); border-radius: 0 0 24px 24px; }
.ip-beach-cover__image { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-beach-facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); width: calc(100% - 72px); margin: -42px auto 82px; padding: 0; background: var(--ip-white); border: 1px solid var(--ip-line); border-radius: 16px; box-shadow: 0 18px 44px rgba(23,52,61,.12); }
.ip-beach-facts > div { min-width: 0; padding: 22px 26px; border-right: 1px solid var(--ip-line); }
.ip-beach-facts > div:last-child { border-right: 0; }
.ip-beach-facts dt, .ip-detail-list dt, .ip-status-list dt { margin-bottom: 4px; color: var(--ip-muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ip-beach-facts dd { margin: 0; color: var(--ip-ink); font-size: 1.1rem; font-weight: 750; }
.ip-beach-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr); gap: 72px; align-items: start; margin-bottom: 88px; }
.ip-beach-section { padding: 78px 0; border-top: 1px solid var(--ip-line); }
.ip-beach-main .ip-beach-section { padding: 0; border-top: 0; }
.ip-beach-detail h2 { margin: 0 0 26px; color: var(--ip-ink); font-size: clamp(1.75rem, 3.2vw, 2.65rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.08; }
.ip-beach-detail h3 { color: var(--ip-ink); }
.ip-beach-copy { color: #314b53; font-size: 1.08rem; line-height: 1.78; }
.ip-beach-copy h2, .ip-beach-copy h3 { margin-top: 1.4em; }
.ip-beach-copy > h2:first-of-type { margin-top: 0; }
.ip-beach-copy img { max-width: 100%; height: auto; }
.ip-beach-status { position: sticky; top: 32px; padding: 30px; background: var(--ip-sky); border-radius: 18px; }
.ip-beach-status h2 { margin-bottom: 22px; font-size: 1.65rem; }
.ip-weather { display: flex; gap: 12px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(0,109,119,.18); }
.ip-weather img { width: 64px; height: 64px; }
.ip-weather strong, .ip-weather span { display: block; }
.ip-weather span { margin-top: 4px; color: var(--ip-muted); }
.ip-status-list { margin: 8px 0 0; }
.ip-status-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(0,109,119,.14); }
.ip-status-list dt, .ip-status-list dd { margin: 0; }
.ip-status-note { margin: 0; line-height: 1.6; }
.ip-status-caveat { margin: 22px 0 0; padding-top: 18px; color: var(--ip-muted); font-size: .82rem; line-height: 1.5; border-top: 1px solid rgba(0,109,119,.18); }
.ip-beach-planning { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 78px; }
.ip-beach-panel { padding: 36px; background: var(--ip-sand); border-radius: 18px; }
.ip-beach-panel:nth-child(2) { background: var(--ip-ink); color: #eaf1f2; }
.ip-beach-panel:nth-child(2) h2, .ip-beach-panel:nth-child(2) dt { color: var(--ip-white); }
.ip-beach-panel:nth-child(2) .ip-beach-kicker { color: #7dd8df; }
.ip-beach-panel h2 { font-size: 2rem; }
.ip-detail-list { margin: 0; }
.ip-detail-list > div { display: grid; grid-template-columns: minmax(105px, .65fr) 1.35fr; gap: 18px; padding: 13px 0; border-top: 1px solid rgba(92,112,118,.2); }
.ip-detail-list dt, .ip-detail-list dd { margin: 0; }
.ip-detail-list dd { line-height: 1.45; }
.ip-beach-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ip-beach-tags a { display: block; padding: 10px 15px; color: var(--ip-brand-dark); font-size: .9rem; font-weight: 700; text-decoration: none; background: var(--ip-sky); border-radius: 999px; }
.ip-beach-tags a:hover { color: var(--ip-white); background: var(--ip-brand); }
.ip-beach-section-heading { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; }
.ip-beach-section-heading > a { flex: 0 0 auto; color: var(--ip-brand-dark); font-weight: 700; }
.ip-beach-section-heading > span { color: var(--ip-muted); }
.ip-beach-gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; gap: 14px; }
.ip-beach-gallery__item { overflow: hidden; background: var(--ip-sky); border-radius: 14px; }
.ip-beach-gallery__item--featured { grid-row: span 2; }
.ip-beach-gallery__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.ip-beach-gallery__item:hover img { transform: scale(1.025); }
.ip-beach-map { overflow: hidden; height: 460px; background: var(--ip-sky); border-radius: 18px; }
.ip-beach-map iframe { width: 100%; height: 100%; border: 0; }
.ip-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ip-related-card { overflow: hidden; background: var(--ip-white); border: 1px solid var(--ip-line); border-radius: 14px; }
.ip-related-card__media { display: block; height: 170px; background: linear-gradient(135deg, var(--ip-sky), var(--ip-sand)); }
.ip-related-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ip-related-card__media span { display: grid; height: 100%; place-items: center; color: var(--ip-brand); font-weight: 800; }
.ip-related-card > div { padding: 20px; }
.ip-related-card p, .ip-guide-links p { margin: 0 0 7px; color: var(--ip-brand); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.ip-related-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.ip-related-card h3 a, .ip-guide-links h3 a { color: inherit; text-decoration: none; }
.ip-guide-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; background: var(--ip-line); border: 1px solid var(--ip-line); border-radius: 14px; }
.ip-guide-links article { display: flex; flex-direction: column; min-height: 210px; padding: 28px; background: var(--ip-white); }
.ip-guide-links article:only-child { grid-column: 1 / -1; }
.ip-guide-links h3 { margin: 0 0 24px; font-size: 1.25rem; line-height: 1.3; }
.ip-guide-links article > a { margin-top: auto; color: var(--ip-brand-dark); font-weight: 750; }
.ip-beach-opinions { padding-bottom: 100px; }
.ip-beach-opinions .text-block { max-width: 760px; }
.ip-beach-opinions .btn-primary { background: var(--ip-brand); border-color: var(--ip-brand); }

@media (max-width: 900px) {
  .ip-beach-layout { grid-template-columns: 1fr; gap: 38px; }
  .ip-beach-status { position: static; }
  .ip-related-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-guide-links { grid-template-columns: 1fr; }
  .ip-guide-links article { min-height: 0; }
}

@media (max-width: 680px) {
  .ip-beach-shell { width: min(100% - 30px, 1180px); }
  .ip-beach-hero { padding: 42px 0 30px; }
  .ip-beach-hero h1 { font-size: clamp(2.35rem, 13vw, 3.55rem); }
  .ip-beach-cover { margin-inline: -15px; border-radius: 0; aspect-ratio: 4 / 3; }
  .ip-beach-facts { grid-template-columns: repeat(2, 1fr); width: 100%; margin: 18px 0 58px; box-shadow: none; }
  .ip-beach-facts > div { padding: 17px; border-bottom: 1px solid var(--ip-line); }
  .ip-beach-facts > div:nth-child(2n) { border-right: 0; }
  .ip-beach-facts > div:nth-last-child(-n+2) { border-bottom: 0; }
  .ip-beach-layout { margin-bottom: 58px; }
  .ip-beach-copy { font-size: 1rem; }
  .ip-beach-status, .ip-beach-panel { padding: 24px; border-radius: 14px; }
  .ip-beach-planning { grid-template-columns: 1fr; margin-bottom: 58px; }
  .ip-detail-list > div { grid-template-columns: 1fr; gap: 3px; }
  .ip-beach-section { padding: 56px 0; }
  .ip-beach-section-heading { display: block; }
  .ip-beach-section-heading > a, .ip-beach-section-heading > span { display: inline-block; margin: -12px 0 24px; }
  .ip-beach-gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .ip-beach-gallery__item--featured { grid-row: auto; }
  .ip-beach-map { height: 360px; margin-inline: -15px; border-radius: 0; }
  .ip-related-grid { grid-template-columns: 1fr; }
  .ip-related-card { display: grid; grid-template-columns: 120px 1fr; }
  .ip-related-card__media { height: 100%; min-height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  .ip-beach-gallery__item img { transition: none; }
}
