/* J&J Apartelle — Surigao City | Black & Gold theme */

:root {
  --black: #0c0c0c;
  --black-2: #171717;
  --black-3: #222222;
  --gold: #c9a84c;
  --gold-deep: #a8863a;
  --gold-soft: #e8d9ab;
  --white: #ffffff;
  --offwhite: #f7f5f0;
  --gray: #8a8a8a;
  --ink: #1c1c1c;
  --border: #2a2a2a;
  --border-light: #e5e0d3;
  --radius: 10px;
  --max-width: 1160px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 0 0.5em;
  line-height: 1.15;
  color: var(--black);
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 700;
  margin-bottom: 0.6em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-deep);
}

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-dark {
  background: var(--black);
  color: var(--gold);
  border-color: var(--black);
}

.btn-dark:hover {
  background: var(--black-2);
}

.btn-block {
  width: 100%;
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.brand .brand-mark {
  color: var(--gold);
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--black-3);
  color: var(--gold);
}

.nav-links a.active {
  color: var(--black);
  background: var(--gold);
}

.nav-links a.nav-cta {
  border: 1.5px solid var(--gold);
  color: var(--gold);
}

.nav-links a.nav-cta:hover {
  background: var(--gold);
  color: var(--black);
}

.nav-links a.nav-cta.active-cta {
  background: var(--gold);
  color: var(--black);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .brand-logo {
    height: 36px;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--black);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 10px;
    border-radius: 6px;
  }

  .nav-links a.nav-cta {
    margin-top: 8px;
    text-align: center;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.55) 0%, rgba(12, 12, 12, 0.78) 65%, rgba(12, 12, 12, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 110px 24px 100px;
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.hero-content .eyebrow {
  color: var(--gold-soft);
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 760px;
  margin: 0 auto 0.4em;
}

.hero-content p.lead {
  max-width: 560px;
  margin: 0 auto 2em;
  color: #e9e6df;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* small hero used on rooms/book pages */
.page-hero {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 70px 24px 56px;
}

.page-hero .eyebrow {
  color: var(--gold-soft);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.3em;
}

.page-hero p {
  color: #cfcbc2;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Sections ---------- */

section {
  padding: 84px 0;
}

.section-dark {
  background: var(--black);
  color: #e9e6df;
}

.section-dark h2 {
  color: var(--white);
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3em;
}

/* ---------- About / intro ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.about-photos img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}

.about-photos .photo-tall {
  grid-column: span 1;
  margin-top: 32px;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-photos .photo-tall {
    margin-top: 0;
  }
}

/* ---------- Amenities ---------- */

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 22px;
}

.amenity {
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}

.amenity .amenity-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.amenity h3 {
  color: var(--gold);
  font-size: 1.02rem;
  margin-bottom: 4px;
  font-family: "Inter", sans-serif;
  font-weight: 700;
}

.amenity p {
  color: #b9b6ad;
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Room preview cards (home) ---------- */

.room-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.room-preview-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  transition: transform 0.15s ease;
}

.room-preview-card:hover {
  transform: translateY(-4px);
}

.room-preview-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.room-preview-card .rpc-body {
  padding: 16px 18px 20px;
}

.room-preview-card h3 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.room-preview-card .price {
  color: var(--gold-deep);
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .room-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .room-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, var(--black) 0%, #262115 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 24px;
}

.cta-banner h2 {
  color: var(--white);
}

.cta-banner p {
  color: #cfcbc2;
  max-width: 520px;
  margin: 0 auto 1.8em;
}

.cta-banner .eyebrow {
  color: var(--gold-soft);
}

.or-divider {
  text-align: center;
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 8px 0 44px;
}

/* ---------- Review ---------- */

.review-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.review-card .stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.review-card p.quote {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ink);
}

.review-card .reviewer {
  margin-top: 12px;
  font-weight: 700;
  color: var(--gold-deep);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--black);
  color: #b9b6ad;
  padding: 46px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-grid .brand {
  margin-bottom: 6px;
}

.footer-col h4 {
  color: var(--gold);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.footer-col p, .footer-col a {
  display: block;
  color: #b9b6ad;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-col a.footer-messenger {
  color: var(--gold);
  font-weight: 700;
}

.footer-col a.footer-messenger:hover {
  color: var(--gold-soft);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 0.82rem;
  color: #777;
  text-align: center;
}

/* ============================================================
   ROOMS PAGE
   ============================================================ */

.rooms-list {
  display: flex;
  flex-direction: column;
  gap: 46px;
}

.room-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.room-card:nth-child(even) .room-media {
  order: 2;
}

.room-media {
  position: relative;
}

.room-media .main-photo {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  cursor: pointer;
}

.room-media .thumb-strip {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.room-media .thumb-strip img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.room-media .thumb-strip img:hover {
  border-color: var(--gold);
}

.room-body {
  padding: 34px 38px;
  display: flex;
  flex-direction: column;
}

.room-body .door-name {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.room-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}

.tag-price {
  background: var(--gold);
  color: var(--black);
}

.tag-guests {
  background: var(--offwhite);
  border: 1px solid var(--border-light);
  color: var(--ink);
}

.room-body p.desc {
  color: #55524a;
  margin-bottom: 22px;
  flex-grow: 1;
}

.room-body .btn {
  align-self: flex-start;
}

@media (max-width: 860px) {
  .room-card {
    grid-template-columns: 1fr;
  }

  .room-card:nth-child(even) .room-media {
    order: 0;
  }

  .room-media .main-photo {
    min-height: 240px;
  }

  .room-body {
    padding: 26px 24px 30px;
  }
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: 999px;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next {
    width: 40px;
    height: 40px;
  }
}

/* ============================================================
   BOOKING PAGE
   ============================================================ */

.booking-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 44px;
  align-items: start;
}

.booking-summary {
  background: var(--black);
  color: var(--white);
  border-radius: 14px;
  padding: 34px 30px;
  position: sticky;
  top: 96px;
}

.booking-summary h3 {
  color: var(--white);
  font-size: 1.2rem;
}

.booking-summary ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.booking-summary li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: #d8d5cc;
}

.booking-summary li strong {
  color: var(--gold);
}

.booking-form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}

.form-field .hint {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 400;
}

.form-field input,
.form-field select {
  padding: 13px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border-light);
  font-size: 0.98rem;
  font-family: inherit;
  background: var(--offwhite);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}

.form-field .error {
  color: #b3352c;
  font-size: 0.82rem;
  min-height: 1em;
}

.form-actions {
  grid-column: 1 / -1;
  margin-top: 6px;
}

@media (max-width: 860px) {
  .booking-wrap {
    grid-template-columns: 1fr;
  }

  .booking-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .booking-form-card {
    padding: 28px 22px;
  }
}

/* Confirmation panel */

.confirmation {
  display: none;
  text-align: center;
  padding: 20px 4px 6px;
}

.confirmation.show {
  display: block;
}

.confirmation .check {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.confirmation h3 {
  margin-bottom: 8px;
}

.confirmation .details {
  background: var(--offwhite);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 18px 22px;
  text-align: left;
  margin: 22px auto;
  max-width: 420px;
}

.confirmation .details p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.confirmation .details p:last-child {
  margin-bottom: 0;
}

.confirmation .details span.k {
  color: var(--gray);
}

.confirmation .details span.v {
  font-weight: 700;
}

.booking-form-card.submitted form {
  display: none;
}

/* utility */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
