/* =============================================================
   PRINCIPE DEL PACIFICO — Detail Page Stylesheet
   /css/detail.css
   Used only by apartment detail pages (en/pages/*.html etc.)
   Version 3.0 — March 2026
   ============================================================= */

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 16px 0;
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--forest-mid); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb-sep { color: var(--ink-ghost); }

/* ── GALLERY ── */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 340px 200px;
  gap: 8px;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-12);
}
.gallery-main   { grid-row: span 2; position: relative; overflow: hidden; }
.gallery-thumb  { position: relative; overflow: hidden; }
.gallery-main img,
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gallery-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: rgba(255,255,255,.35);
  letter-spacing: .1em; text-transform: uppercase;
}
.gallery-all-btn {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(15,46,36,.8); color: var(--white);
  font-size: 11px; font-weight: 500; padding: 6px 14px;
  border-radius: var(--r-full); cursor: pointer;
  border: none; font-family: var(--font-body);
  transition: background var(--dur-fast);
  z-index: 2;
}
.gallery-all-btn:hover { background: rgba(15,46,36,1); }
.gallery-todo {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,.5); color: rgba(255,255,255,.7);
  font-size: 9px; font-weight: 500; padding: 3px 8px;
  border-radius: 4px; text-transform: uppercase; pointer-events: none;
}

/* ── DETAIL LAYOUT ── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--sp-12);
  align-items: start;
  padding-bottom: var(--sp-24);
}

/* ── APT HEADER ── */
.detail-eyebrow {
  font-size: var(--ts-xs); font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--forest-mid);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.detail-eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--forest-pale); flex-shrink: 0; }
.detail-name {
  font-family: var(--font-display);
  font-size: clamp(40px,6vw,64px);
  font-weight: 300; color: var(--ink);
  line-height: 1; letter-spacing: -.02em; margin-bottom: 8px;
}
.detail-tagline { font-size: 16px; font-weight: 300; color: var(--ink-soft); line-height: 1.5; }
.detail-badges  { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ── SPECS BAR ── */
.specs-bar {
  display: flex; flex-wrap: wrap;
  border: 1px solid var(--ink-ghost);
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--white); margin-bottom: var(--sp-8);
}
.spec {
  display: flex; flex-direction: column; gap: 3px;
  padding: 15px 18px; flex: 1; min-width: 100px;
  border-right: 1px solid var(--ink-ghost);
}
.spec:last-child { border-right: none; }
.spec-label { font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.spec-value { font-size: 15px; font-weight: 500; color: var(--ink); }
.spec-sub   { font-size: 11px; color: var(--ink-muted); margin-top: 1px; }

/* ── CONTENT SECTIONS ── */
.detail-section { margin-bottom: var(--sp-10); }
.detail-section-title {
  font-family: var(--font-display); font-size: 24px; font-weight: 400;
  color: var(--ink); margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-ghost);
}
.detail-section-text { font-size: 15px; font-weight: 300; color: var(--ink-soft); line-height: 1.75; }

/* Highlights grid */
.highlights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.highlight {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px;
  background: var(--white); border: 1px solid var(--ink-ghost); border-radius: 14px;
  transition: box-shadow var(--dur-base), transform var(--dur-base) var(--ease-spring);
}
.highlight:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.highlight-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--forest-ghost);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--forest);
}
.highlight-icon svg { width: 17px; height: 17px; }
.highlight-title { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.highlight-desc  { font-size: 11px; color: var(--ink-muted); margin-top: 2px; line-height: 1.4; }

/* Amenities */
.amenities-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.amenity {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  background: var(--white); border: 1px solid var(--ink-ghost); border-radius: 10px;
}
.amenity svg { width: 17px; height: 17px; color: var(--forest-mid); flex-shrink: 0; }
.amenity-text { font-size: 13px; color: var(--ink-soft); }

/* Policies */
.policies-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.policy {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px;
  background: var(--white); border: 1px solid var(--ink-ghost); border-radius: 12px;
}
.policy-label { font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.policy-value { font-size: 14px; font-weight: 500; color: var(--ink); }
.policy-sub   { font-size: 11px; color: var(--ink-muted); margin-top: 1px; }

/* Other apartments */
.other-apts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.other-apt {
  background: var(--white); border: 1px solid var(--ink-ghost);
  border-radius: 14px; overflow: hidden; display: block;
  transition: box-shadow var(--dur-base), transform var(--dur-base) var(--ease-spring);
}
.other-apt:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.other-apt-img { height: 100px; position: relative; overflow: hidden; }
.other-apt-img-inner { position: absolute; inset: 0; }
.other-apt-body { padding: 12px 14px; }
.other-apt-name { font-family: var(--font-display); font-size: 18px; font-weight: 400; color: var(--ink); margin-bottom: 2px; }
.other-apt-diff { font-size: 11px; color: var(--forest-mid); font-weight: 500; margin-bottom: 5px; }
.other-apt-price { font-size: 13px; color: var(--ink-muted); }
.other-apt-price strong { font-family: var(--font-display); font-size: 16px; color: var(--ink); }

/* ── BOOKING SIDEBAR ── */
.booking-sidebar { position: sticky; top: 80px; }
.booking-card {
  background: var(--white);
  border: 1px solid var(--ink-ghost);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.booking-header { background: var(--forest-deep); padding: 24px; position: relative; }
.booking-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 20%, rgba(74,140,114,.2) 0%, transparent 60%);
}
.booking-eyebrow { position: relative; z-index: 1; font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--forest-pale); margin-bottom: 8px; }
.booking-price { position: relative; z-index: 1; font-family: var(--font-display); font-size: 42px; font-weight: 600; color: var(--white); line-height: 1; letter-spacing: -.02em; }
.booking-price-per { font-family: var(--font-body); font-size: 14px; font-weight: 300; color: var(--forest-pale); }
.booking-price-note { position: relative; z-index: 1; font-size: 11px; color: var(--forest-pale); margin-top: 6px; opacity: .85; }
.booking-body { padding: 20px; }
.booking-fields { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.booking-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.booking-field { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1.5px solid var(--ink-ghost); border-radius: 12px; transition: border-color var(--dur-fast); }
.booking-field:focus-within { border-color: var(--forest); }
.booking-field.error { border-color: rgba(184,64,64,.5); background: rgba(184,64,64,.04); }
.booking-label { font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); cursor: pointer; }
.booking-input { font-size: 15px; color: var(--ink); border: none; outline: none; background: none; font-family: var(--font-body); width: 100%; cursor: pointer; }
.booking-input::placeholder { color: var(--ink-muted); }
select.booking-input { appearance: none; -webkit-appearance: none; }
.booking-total { background: var(--forest-ghost); border-radius: 12px; padding: 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.booking-total-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); }
.booking-total-row--bold { font-weight: 500; color: var(--ink); font-size: 15px; padding-top: 8px; border-top: 1px solid var(--forest-wash); }
.booking-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--forest); color: var(--white);
  padding: 16px; border-radius: 14px;
  font-size: 15px; font-weight: 500;
  font-family: var(--font-body); cursor: pointer;
  transition: background var(--dur-fast), transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base);
  box-shadow: var(--shadow-cta);
  border: none;
}
.booking-btn:hover { background: var(--forest-deep); transform: translateY(-1px); box-shadow: var(--shadow-cta-hover); }
.booking-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.booking-guarantee { text-align: center; font-size: 11px; color: var(--forest-mid); margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.booking-guarantee::before { content: '✓'; }
.booking-sep { height: 1px; background: var(--ink-ghost); margin: 16px 0; }
.booking-perks { display: flex; flex-direction: column; gap: 6px; }
.booking-perk { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--forest-ghost); border-radius: 10px; }
.booking-perk svg { width: 14px; height: 14px; color: var(--forest-mid); flex-shrink: 0; }
.booking-perk-text { font-size: 12px; color: var(--ink-soft); }
.booking-perk-text strong { color: var(--forest-mid); font-weight: 500; }
.booking-contact { display: flex; flex-direction: column; gap: 8px; }
.booking-contact-title { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 2px; }
.booking-contact-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); transition: color var(--dur-fast); }
.booking-contact-item:hover { color: var(--forest); }
.booking-contact-item svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--forest-mid); }

/* ── MOBILE BOOKING BAR (detail pages) ── */
.detail-mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--forest-deep); padding: 12px 20px; z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(100%); transition: transform var(--dur-slow) var(--ease-out);
}
.detail-mobile-cta.visible { transform: translateY(0); }
.detail-mob-price { display: flex; flex-direction: column; gap: 1px; }
.detail-mob-label { font-size: 11px; color: rgba(255,255,255,.5); }
.detail-mob-val   { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--white); }
.detail-mob-btn {
  background: var(--white); color: var(--forest-deep);
  font-size: 14px; font-weight: 500; padding: 11px 24px;
  border-radius: var(--r-full); white-space: nowrap; flex-shrink: 0;
  transition: opacity var(--dur-fast); border: none; cursor: pointer;
  font-family: var(--font-body);
}
.detail-mob-btn:hover { opacity: .9; }

/* ── RESPONSIVE ── */
@media (max-width: 1023px) { .detail-layout { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 240px 150px 150px; }
  .gallery-main { grid-row: span 1; }
  .highlights-grid { grid-template-columns: 1fr; }
  .amenities-grid  { grid-template-columns: 1fr 1fr; }
  .policies-grid   { grid-template-columns: 1fr; }
  .other-apts-grid { grid-template-columns: 1fr 1fr; }
  .spec { border-right: none; border-bottom: 1px solid var(--ink-ghost); }
  .spec:last-child { border-bottom: none; }
  .detail-mobile-cta { display: flex; }
}
