/* ============================================================
   Room Detail Page — page-room.php
   CSS ported from apartman.html / apartment.css prototype.
   Inherits :root variables from landing.css (loaded first).
   v2.5.3
   ============================================================ */

/* ── Font override (mirrors landing.css for the room template) ── */
html body.phb-room-page,
body.phb-room-page p, body.phb-room-page h1, body.phb-room-page h2,
body.phb-room-page h3, body.phb-room-page h4, body.phb-room-page h5,
body.phb-room-page div, body.phb-room-page span, body.phb-room-page a,
body.phb-room-page button, body.phb-room-page input,
body.phb-room-page textarea, body.phb-room-page label,
body.phb-room-page li, body.phb-room-page select {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif !important;
}
body.phb-room-page {
  background: var(--bg, #f5efe4);
  color: var(--ink, #0E2949);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  margin: 0; padding: 0;
}
body.phb-room-page *, body.phb-room-page *::before, body.phb-room-page *::after {
  box-sizing: border-box;
}
body.phb-room-page img { max-width: 100%; display: block; }

/* ── Page wrapper ── */
.apt-page {
  padding-top: 64px; /* below fixed nav */
}

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: 1200px; margin: 0 auto;
  padding: 22px 32px 0;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

/* ============================================================
   GALLERY
   ============================================================ */
.apt-gallery {
  max-width: 1200px; margin: 18px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 8px;
}
.apt-gallery .gx {
  position: relative; overflow: hidden;
  border-radius: var(--r-md, 10px);
  background: var(--line, #e0d9c8);
  cursor: pointer;
  border: 0; padding: 0;
  background-size: cover; background-position: center;
}
.apt-gallery .gx .ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  color: rgba(255,255,255,.78);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(14,41,73,.45);
  transition: filter .25s, transform .4s;
}
.apt-gallery .gx:hover .ph { filter: brightness(1.06); transform: scale(1.03); }
.apt-gallery .gx:hover { opacity: .9; }
.apt-gallery .gx.main { grid-row: span 2; }
.apt-gallery .gx.main .ph { font-size: 13px; }
.apt-gallery .more-badge {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(14,41,73,.82); backdrop-filter: blur(4px);
  color: #fff; padding: 8px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  display: inline-flex; align-items: center; gap: 7px; pointer-events: none;
}
.apt-gallery .more-badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

@media (max-width: 820px) {
  .apt-gallery {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 180px 180px;
    padding: 0 16px;
  }
  .apt-gallery .gx.g3, .apt-gallery .gx.g4 { display: none; }
}
@media (max-width: 520px) {
  .apt-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 260px;
    padding: 0 16px;
  }
  .apt-gallery .gx:not(.main) { display: none; }
}

/* ============================================================
   LAYOUT (two-column)
   ============================================================ */
.apt-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 920px) {
  .apt-layout { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px 120px; }
}

/* ============================================================
   MAIN COLUMN
   ============================================================ */

/* Head */
.apt-head .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold, #b8946a);
  margin-bottom: 10px;
}
.apt-head .tag svg { stroke: var(--gold, #b8946a); fill: none; }
.apt-head h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  letter-spacing: -.02em; color: var(--navy, #0E2949); line-height: 1.1;
}
.apt-head .sub-row {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  font-size: 14px; color: var(--ink-2, #3a4659);
  margin-bottom: 8px;
}
.apt-head .sub-row .rt {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(14,41,73,.06); padding: 4px 10px; border-radius: 999px;
  font-weight: 700; color: var(--navy, #0E2949);
}
.apt-head .sub-row .rt .star { color: var(--gold, #b8946a); }
.apt-head .sub-row .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3, #7a8395); }

/* Key facts strip */
.apt-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin: 24px 0;
  padding: 20px 0;
  border-top: 1px solid var(--line, #e0d9c8);
  border-bottom: 1px solid var(--line, #e0d9c8);
}
.apt-facts .f {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.apt-facts .f .ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(184,148,106,.13); color: var(--gold, #b8946a);
  display: grid; place-items: center;
}
.apt-facts .f .ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.apt-facts .f .k { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3, #7a8395); }
.apt-facts .f .v { font-size: 14px; font-weight: 700; color: var(--navy, #0E2949); line-height: 1.25; }

@media (max-width: 620px) {
  .apt-facts { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* Sections */
.apt-section { margin: 36px 0; }
.apt-section h2 {
  font-size: 20px; font-weight: 700; color: var(--navy, #0E2949);
  letter-spacing: -.01em; margin: 0 0 14px;
}
.apt-section p {
  font-size: 15px; line-height: 1.7; color: var(--ink-2, #3a4659);
  margin: 0 0 14px;
}
.apt-section .lede {
  font-size: 17px; line-height: 1.6; color: var(--ink, #0E2949); font-weight: 500;
}

/* Amenities grid */
.apt-amen {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.apt-amen .a {
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; color: var(--ink-2, #3a4659);
}
.apt-amen .a .ic {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--cream, #f5efe4); border: 1px solid var(--line, #e0d9c8);
  display: grid; place-items: center; color: var(--navy, #0E2949);
  flex-shrink: 0;
}
.apt-amen .a .ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
/* filled icons (pet) */
.apt-amen .a .ic svg[fill="currentColor"] { fill: currentColor; stroke: none; }

@media (max-width: 480px) { .apt-amen { grid-template-columns: 1fr; } }

/* Sleeping arrangement */
.apt-sleep {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--line, #e0d9c8); border-radius: var(--r-md, 10px);
  overflow: hidden;
}
.apt-sleep .s {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2, #ece5d5);
}
.apt-sleep .s:last-child { border-bottom: 0; }
.apt-sleep .s .ic { color: var(--gold, #b8946a); }
.apt-sleep .s .ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.apt-sleep .s .nm { font-size: 14px; font-weight: 700; color: var(--navy, #0E2949); min-width: 110px; }
.apt-sleep .s .dt { font-size: 14px; color: var(--ink-2, #3a4659); }

/* Rules */
.apt-rules {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}
.apt-rules .r {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--ink-2, #3a4659);
}
.apt-rules .r .ic { color: var(--ink-3, #7a8395); flex-shrink: 0; }
.apt-rules .r .ic svg { display: block; }
.apt-rules .r b { color: var(--navy, #0E2949); font-weight: 700; }

@media (max-width: 480px) { .apt-rules { grid-template-columns: 1fr; } }

/* ============================================================
   BOOKING CARD (sticky aside)
   ============================================================ */
.apt-booking {
  position: sticky; top: 84px;
  background: #fff; border: 1px solid var(--line, #e0d9c8);
  border-radius: var(--r-lg, 16px);
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.apt-booking .price-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 4px;
}
.apt-booking .price-row .amt { font-size: 34px; font-weight: 700; color: var(--navy, #0E2949); letter-spacing: -.03em; }
.apt-booking .price-row .per { font-size: 14px; color: var(--ink-3, #7a8395); }
.apt-booking .price-note { font-size: 13px; color: var(--ink-3, #7a8395); margin-bottom: 18px; }
.apt-booking .price-note .gold { color: var(--gold, #b8946a); font-weight: 700; }

.apt-booking .seasons {
  border: 1px solid var(--line, #e0d9c8); border-radius: var(--r-md, 10px);
  overflow: hidden; margin-bottom: 18px;
}
.apt-booking .seasons .sr {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font-size: 13px;
  border-bottom: 1px solid var(--line-2, #ece5d5);
}
.apt-booking .seasons .sr:last-child { border-bottom: 0; }
.apt-booking .seasons .sr .lbl { color: var(--ink-2, #3a4659); }
.apt-booking .seasons .sr .pr { font-weight: 700; color: var(--navy, #0E2949); }

.apt-booking .book-cta {
  width: 100%; background: var(--navy, #0E2949); color: #fff;
  border: 0; padding: 16px; border-radius: var(--r-md, 10px);
  font-size: 14px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer;
  transition: background .15s, transform .1s;
  margin-bottom: 10px; font-family: inherit;
}
.apt-booking .book-cta:hover { background: var(--gold, #b8946a); }
.apt-booking .book-cta:active { transform: scale(.98); }

.apt-booking .contact-row {
  display: flex; gap: 8px; margin-bottom: 0;
}
.apt-booking .contact-row a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px; border-radius: var(--r-md, 10px);
  text-decoration: none; font-size: 13px; font-weight: 700;
  border: 1px solid var(--line, #e0d9c8);
  color: var(--ink-2, #3a4659);
  transition: border-color .15s, color .15s;
}
.apt-booking .contact-row a:hover { border-color: var(--navy, #0E2949); color: var(--navy, #0E2949); }
.apt-booking .contact-row a svg { width: 16px; height: 16px; fill: currentColor; }
.apt-booking .contact-row a.wa svg { fill: #25D366; }
.apt-booking .contact-row a.tg svg { fill: #2AABEE; }

.apt-booking .reassure {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line-2, #ece5d5);
  display: flex; flex-direction: column; gap: 9px;
}
.apt-booking .reassure .ri {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-2, #3a4659);
}
.apt-booking .reassure .ri svg { width: 16px; height: 16px; stroke: #1f8a5b; fill: none; stroke-width: 2.4; flex-shrink: 0; }

@media (max-width: 920px) {
  .apt-booking { position: static; }
}

/* ============================================================
   CROSS-SELL SECTION
   ============================================================ */
.apt-cross {
  background: var(--cream-2, #ebe2d2);
  padding: 64px 32px;
}
.apt-cross-inner { max-width: 1200px; margin: 0 auto; }
.apt-cross h2 {
  font-size: clamp(24px, 3vw, 32px); font-weight: 700;
  color: var(--navy, #0E2949); letter-spacing: -.02em;
  margin: 0 0 6px;
}
.apt-cross .sub { color: var(--ink-2, #3a4659); font-size: 15px; margin: 0 0 32px; }

.apt-cross .phb-rooms-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

@media (max-width: 900px) {
  .apt-cross .phb-rooms-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 580px) {
  .apt-cross { padding: 48px 16px; }
  .apt-cross .phb-rooms-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   MOBILE STICKY BAR
   ============================================================ */
.apt-mobile-bar {
  display: none;
}
@media (max-width: 920px) {
  .apt-mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 65;
    background: #fff; border-top: 1px solid var(--line, #e0d9c8);
    padding: 12px 18px;
    box-shadow: 0 -4px 16px rgba(14,41,73,.08);
  }
  .apt-mobile-bar .p .amt { font-size: 22px; font-weight: 700; color: var(--navy, #0E2949); letter-spacing: -.02em; }
  .apt-mobile-bar .p .per { font-size: 12px; color: var(--ink-3, #7a8395); }
  .apt-mobile-bar button {
    background: var(--navy, #0E2949); color: #fff; border: 0;
    padding: 14px 28px; border-radius: var(--r-md, 10px);
    font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    cursor: pointer; font-family: inherit;
    transition: background .15s;
  }
  .apt-mobile-bar button:hover { background: var(--gold, #b8946a); }
}

/* ============================================================
   ROOM DETAIL PAGE — room-action links in cross-sell
   ============================================================ */
.apt-cross .room-actions {
  display: flex; gap: 8px; margin-top: 12px;
}
.apt-cross .detail-btn {
  flex: 1; text-align: center;
  padding: 10px 14px; border-radius: var(--r-md, 10px);
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--line, #e0d9c8); color: var(--ink-2, #3a4659);
  text-decoration: none; transition: border-color .15s, color .15s;
}
.apt-cross .detail-btn:hover { border-color: var(--navy, #0E2949); color: var(--navy, #0E2949); }
.apt-cross .book-btn {
  flex: 1; padding: 10px 14px; border-radius: var(--r-md, 10px);
  font-size: 13px; font-weight: 700;
  background: var(--navy, #0E2949); color: #fff; border: 0;
  cursor: pointer; font-family: inherit; transition: background .15s;
}
.apt-cross .book-btn:hover { background: var(--gold, #b8946a); }
