/* modern.css - homepage refresh. Loaded last, scoped to body.home-modern so other pages are untouched. */
:root {
  --brand: #005f82;
  --brand-dark: #0b3a4d;
  --accent: #0fa1e0;
  --ink: #1b2b34;
  --muted: #55656e;
  --band: #f1f7f9;
  --line: #dbe7ec;
  --radius: 14px;
  --font-body: Lato, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: Montserrat, Lato, system-ui, sans-serif;
}

body.home-modern { font-family: var(--font-body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
body.home-modern .footer-i { margin-top: 0 !important; }

/* ---------- Header and menu (restyles the existing includes) ---------- */
body.home-modern #header { background: #fff !important; border-bottom: 1px solid var(--line); }
body.home-modern #header .navigation > li > a {
  font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .09em;
  color: var(--ink) !important; border-bottom: 2px solid transparent; padding-bottom: 6px; transition: color .2s, border-color .2s;
}
body.home-modern #header .navigation > li > a:hover,
body.home-modern #header .navigation > li.sfHover > a,
body.home-modern #header .navigation > li:hover > a { color: var(--brand) !important; border-bottom-color: var(--accent); }
body.home-modern #header .navigation ul {
  background: var(--brand-dark) !important; border: 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(8, 40, 55, .28); padding: 6px 0; min-width: 210px;
}
body.home-modern #header .navigation > li ul li { border: 0; }
body.home-modern #header .navigation > li ul a,
body.home-modern #header .navigation > li ul a:visited {
  background: transparent; color: #fff !important; font-family: var(--font-head); font-size: 11px; letter-spacing: .06em; padding: 10px 16px;
}
body.home-modern #header .navigation > li ul a:hover { background: rgba(255, 255, 255, .12) !important; color: #fff !important; }

/* ---------- Hero carousel ---------- */
.hero { position: relative; background: var(--brand-dark); }
.hero__track {
  position: relative; display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; padding: 0; list-style: none; }
.hero__slide a { display: block; }
.hero__slide img {
  display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 1900 / 750;
  object-fit: cover; max-height: 76vh; background: var(--brand-dark);
}
.hero::after { /* soft fade into the page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px; pointer-events: none;
  background: linear-gradient(to top, rgba(8, 40, 55, .35), transparent);
}
.hero__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .88); color: var(--brand-dark); font-size: 22px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: background .2s, transform .2s;
}
.hero__btn:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hero__btn:focus-visible, .hero__dot:focus-visible, .share a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hero__btn--prev { left: 18px; }
.hero__btn--next { right: 18px; }
.hero__dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 10px; }
.hero__dot {
  width: 11px; height: 11px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: background .2s, transform .2s;
}
.hero__dot[aria-current="true"] { background: #fff; transform: scale(1.25); }

/* ---------- Content ---------- */
.wrap { width: min(100% - 32px, 1080px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 32px, 760px); }
.intro { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); text-align: center; }
body.home-modern .intro h1 {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1.15;
  letter-spacing: -.01em; color: var(--brand-dark); margin: 0 0 24px;
}
.intro h1 span { display: inline-block; }
.intro .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.7; color: var(--ink); margin: 0 0 18px; }
.intro p { font-size: 1.05rem; line-height: 1.75; color: var(--muted); margin: 0; }

.about { background: var(--band); padding: clamp(40px, 6vw, 68px) 0; }
.about p { font-size: 1.05rem; line-height: 1.8; color: var(--ink); margin: 0 0 18px; }
.about .tagline {
  margin: 28px 0 0; padding: 22px 26px; background: #fff; border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.5; color: var(--brand); box-shadow: 0 6px 22px rgba(0, 60, 80, .08);
}

.social { padding: clamp(36px, 5vw, 60px) 0 12px; }
.social__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; justify-content: center;
  box-shadow: 0 8px 28px rgba(0, 60, 80, .07); overflow: hidden;
}
.social__card .fb-page, .social__card .fb-page span, .social__card .fb-page iframe { max-width: 100% !important; }

.share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 28px 0 clamp(36px, 5vw, 56px); }
.share__label { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.share a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .04em; transition: transform .2s, box-shadow .2s;
}
.share a:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); color: #fff; }
.share .share--fb { background: #1877f2; }
.share .share--tw { background: #111; }

/* ---------- Small screens ---------- */
@media (max-width: 768px) {
  body.home-modern #header { height: auto !important; }
  body.home-modern #header .pre-head { display: none; }
  .hero__slide img { aspect-ratio: 4 / 3; max-height: 60vh; }
  .hero__btn { width: 40px; height: 40px; font-size: 18px; }
  .hero__btn--prev { left: 10px; }
  .hero__btn--next { right: 10px; }
  .hero__dots { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__track { scroll-behavior: auto; }
  .hero__btn, .hero__dot, .share a { transition: none; }
}

/* ==========================================================
   Destination pages (Olongapo, Barretto, Subic Bay, Zambales)
   ========================================================== */
.page-banner { background: var(--brand-dark); line-height: 0; }
.page-banner img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }

.dest-intro { padding: clamp(36px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
body.home-modern .dest-intro h1 {
  font-family: var(--font-head); font-weight: 400; font-size: clamp(1.8rem, 4.2vw, 2.9rem); line-height: 1.15;
  letter-spacing: -.01em; color: var(--brand-dark); text-align: center; margin: 0 0 28px;
}
body.home-modern .dest-intro h1 strong { font-weight: 700; color: var(--brand); }
.dest-intro p { font-size: 1.05rem; line-height: 1.8; color: var(--ink); margin: 0 0 18px; }
.dest-intro p:first-of-type { font-size: clamp(1.08rem, 1.8vw, 1.2rem); }
body.home-modern .dest-intro h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .01em; color: var(--brand);
  margin: 34px 0 8px; padding-left: 14px; border-left: 4px solid var(--accent);
}

.dest-tiles { padding: clamp(24px, 4vw, 48px) 0 clamp(44px, 6vw, 80px); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 4 / 5; background: var(--brand-dark); text-align: left; font: inherit; color: #fff; text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 60, 80, .16); transition: transform .25s, box-shadow .25s;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 30, 42, .82) 0%, rgba(6, 30, 42, .15) 55%, transparent 100%); }
.tile__title {
  position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.2; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.tile__title span { color: #7fd6ff; }
.tile:hover, .tile:focus-visible { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0, 60, 80, .26); color: #fff; text-decoration: none; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 360px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 16 / 10; } }

/* ---------- Pop-up lists (inside Featherlight) ---------- */
.home-modern .featherlight .featherlight-content { border-radius: 18px; }
.lightbox { font-family: var(--font-body); color: var(--ink); max-width: 860px; }
.lightbox .lb-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.8rem); line-height: 1.2; color: var(--brand-dark); margin: 0 0 6px; }
.lightbox .lb-def { margin: 0 0 6px; color: var(--muted); font-style: italic; }
.lightbox .lb-count { margin: 0 0 18px; font-size: 12px; font-weight: 700; font-style: italic; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.venue { display: flex; gap: 22px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); }
.venue__img { flex: 0 0 240px; display: block; border-radius: 12px; overflow: hidden; line-height: 0; }
.venue__img img { width: 100%; height: auto; display: block; transition: transform .4s; }
.venue__img:hover img { transform: scale(1.04); }
.venue__body { flex: 1; min-width: 0; }
.venue h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--brand-dark); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 3px solid #e25102; display: inline-block; }
.venue p { margin: 0 0 10px; line-height: 1.7; }
.venue .venue__addr { font-size: .95rem; font-style: italic; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; line-height: 0; }
.gallery img { width: 100%; height: auto; display: block; }
.lightbox .lb-text { line-height: 1.75; margin: 0 0 14px; }
.lightbox .lb-close { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.lightbox .featherlight-close {
  display: inline-block; padding: 9px 26px; border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: 12px; letter-spacing: .1em; transition: background .2s;
}
.lightbox .featherlight-close:hover { background: var(--brand-dark); }
@media (max-width: 640px) {
  .venue { flex-direction: column; gap: 14px; }
  .venue__img { flex-basis: auto; width: 100%; }
}

/* Tile sub-label */
.tile__title { bottom: 40px; }
.tile__sub { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }

/* Accommodation page */
body.home-modern#bg-image { background: #fff !important; }
.pay { padding: 8px 0 clamp(36px, 5vw, 56px); }
.pay .whitebg { background: var(--band); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; }
.pay hr { display: none; }

/* Getting around */
.ways { display: grid; gap: 22px; padding: 8px 0 clamp(40px, 6vw, 72px); }
.way {
  display: flex; gap: 26px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 8px 28px rgba(0, 60, 80, .07);
}
.way__icon { flex: 0 0 88px; width: 88px; height: 88px; object-fit: contain; padding: 16px; border-radius: 50%; background: var(--band); }
.way__body { flex: 1; min-width: 0; }
body.home-modern .way h2 {
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.25; color: var(--brand-dark);
  margin: 0 0 12px; padding: 0; background: none; border: 0; text-align: left;
}
body.home-modern .way h3 {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--brand); margin: 22px 0 6px; padding-left: 12px; border-left: 4px solid var(--accent);
}
.way p { margin: 0 0 10px; font-size: 1.02rem; line-height: 1.75; color: var(--ink); text-align: left; }
.way a { color: var(--brand); font-weight: 700; }
@media (max-width: 640px) { .way { flex-direction: column; gap: 16px; padding: 22px; } .way__icon { flex-basis: auto; } }

/* ===== Sights and activities ===== */
body.home-modern .lightbox .attr{margin:22px 0 0;padding-top:18px;border-top:1px solid #e2ecf0}
body.home-modern .lightbox .attr h3{margin:0 0 8px;font-size:1.15rem;color:var(--brand);border-left:4px solid var(--accent);padding-left:10px}
body.home-modern .lightbox .attr p{margin:0 0 12px;line-height:1.65}
body.home-modern .gallery img{aspect-ratio:3/2;object-fit:cover;width:100%;height:auto;border-radius:6px}
body.home-modern .lb-close{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center;margin-top:24px}
body.home-modern .lb-book{display:inline-block;background:#2e9e4f;color:#fff!important;padding:12px 26px;border-radius:999px;font-weight:700;text-decoration:none}
body.home-modern .lb-book:hover{background:#25813f}

/* ===== Nature and adventure: tiles inside a pop-up ===== */
body.home-modern .lightbox .tiles--in{margin:20px 0 4px;grid-template-columns:repeat(2,1fr);gap:12px}
@media(min-width:700px){body.home-modern .lightbox .tiles--in{grid-template-columns:repeat(4,1fr)}}

/* ===== Advertise: three-up tiles ===== */
@media(min-width:901px){body.home-modern .tiles--3{grid-template-columns:repeat(3,1fr);max-width:900px;margin-left:auto;margin-right:auto}}

/* ===== Contact ===== */
body.home-modern .contact-map{margin-bottom:28px}
body.home-modern .contact-map iframe{display:block;width:100%;border-radius:12px;background:var(--band)}
body.home-modern .contact-grid{display:block;max-width:600px;margin:0 auto;padding-bottom:clamp(44px,6vw,80px)}
/* contactus-form.php brings its own .container > .row > .col-sm-6 wrapper: neutralise it */
body.home-modern .contact-wrap .container{width:auto;max-width:none;padding:0;margin:0}
body.home-modern .contact-wrap .row{margin:0}
body.home-modern .contact-wrap .contact-form{float:none;width:100%;padding:0;margin:0}
body.home-modern .contact-wrap .form-group{margin:0 0 18px}
body.home-modern .contact-wrap label{display:block;margin:0 0 6px;font-weight:700;color:var(--brand-dark)}
body.home-modern .contact-wrap .form-control{display:block;width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #c9d8de;border-radius:8px;font:inherit;box-shadow:none;height:auto}
body.home-modern .contact-wrap textarea.form-control{min-height:150px;resize:vertical}
body.home-modern .contact-wrap .form-control:focus{outline:3px solid rgba(15,161,224,.3);border-color:var(--accent)}
body.home-modern .contact-wrap .form-text{display:block;margin-top:6px;font-size:.85rem;color:#5b7480}
body.home-modern .contact-wrap .btn-primary{background:var(--brand);border:0;color:#fff;border-radius:999px;padding:12px 34px;font-weight:700}
body.home-modern .contact-wrap .btn-primary:hover{background:var(--brand-dark)}
body.home-modern .contact-wrap .alert{border-radius:8px;padding:12px 16px;margin:0 0 20px!important}