/* ── Services page ─────────────────────── */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ── Grid ──────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  align-items: stretch;
}

/* ── Card ──────────────────────────────── */
.card {
  background: var(--cream);
  border: 1px solid #c4aa7a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* logo placeholder */
.card-img-logo {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.card-body {
  flex: 1;
  text-align: center;
  padding: 1.1rem 1rem 0.9rem;
}

.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.divider {
  width: 36px;
  height: 1px;
  background: #b8ae99;
  margin: 0 auto 1rem;
}

.divider-sm {
  margin-top: 0.9rem;
  margin-bottom: 0.75rem;
}

.card-note {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
}

.price {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: #7a7060;
  letter-spacing: 0.02em;
}

/* ── Buttons ───────────────────────────── */
.btn {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: #5a6147;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: none;
  flex-shrink: 0;
}

.btn:hover { background: #5a6147; }


/* ── Custom Booking ────────────────────── */
.booking-section {
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.booking-card {
  background: var(--cream);
  border: 1px solid #c4aa7a;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.booking-brand {
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.brand-salt {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 300;
  color: #6b6456;
  line-height: 1;
  display: block;
  margin-bottom: 0.2rem;
}

.brand-smile {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: #6b6456;
  display: block;
  margin-bottom: 0.8rem;
}

.brand-rule {
  width: 60px;
  height: 1px;
  background: #b8ae99;
  margin-bottom: 0.8rem;
}

.brand-suite {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: #6b6456;
  display: block;
  margin-bottom: 1.5rem;
}

.booking-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.btn-booking {
  max-width: none;
}

/* ── Booking note ──────────────────────── */
.booking-note {
  max-width: 520px;
  text-align: center;
}

.booking-note-heading {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.booking-note p:last-child {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.8;
}

/* ── Responsive ────────────────────────── */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .grid { grid-template-columns: 1fr; }
  main { padding: 2rem 1.25rem 4rem; }
}

/* ── Card hover cursor ─────────────────── */
.card, .card-no-btn { cursor: pointer; }
.card { transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.13); }

/* ══════════════════════════════════════════
   QUICK VIEW MODAL
══════════════════════════════════════════ */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 27, 22, 0.55);
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--cream);
  display: flex;
  width: 90vw;
  max-width: 940px;
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Close button ──────────────────────── */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  z-index: 10;
  padding: 0.2rem 0.4rem;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }

/* ── Gallery side ──────────────────────── */
.modal-gallery {
  display: flex;
  flex: 0 0 50%;
  overflow: hidden;
  background: #111;
}

.modal-thumbs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  overflow-y: auto;
  background: #1a1a1a;
  flex-shrink: 0;
}

.thumb {
  width: 58px;
  height: 58px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.thumb.active { border-color: var(--cream); }
.thumb:hover  { border-color: rgba(255,255,255,0.5); }

.modal-main-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

#modalImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s;
}
.gallery-arrow:hover { background: rgba(255,255,255,0.3); }
.gallery-prev { left: 0.5rem; }
.gallery-next { right: 0.5rem; }

/* ── Info side ─────────────────────────── */
.modal-info {
  flex: 1;
  padding: 2.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-name {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.modal-price {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.modal-desc {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

.modal-desc p { margin-bottom: 0.8rem; }
.modal-desc p:last-child { margin-bottom: 0; }

.modal-color-note {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.modal-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ── Options ───────────────────────────── */
.modal-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.opt-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.custom-select {
  position: relative;
}

.custom-select select {
  width: 100%;
  appearance: none;
  background: #fff;
  border: 1px solid #d4cdc0;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.custom-select select:focus { border-color: var(--olive); }

.custom-select::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text-muted);
  pointer-events: none;
}

/* ── Modal CTA ─────────────────────────── */
.modal-btn {
  width: 100%;
  margin-top: auto;
  padding: 1rem;
  flex-shrink: 0;
}

/* ── Modal responsive ──────────────────── */
@media (max-width: 720px) {
  .modal-panel {
    flex-direction: column;
    max-height: 95vh;
    width: 96vw;
  }
  .modal-gallery {
    flex: 0 0 45vw;
    max-height: 42vw;
  }
  .modal-thumbs { flex-direction: row; flex: none; overflow-x: auto; padding: 8px; }
  .thumb { width: 48px; height: 48px; flex-shrink: 0; }
  .modal-main-wrap { flex: 1; }
  .modal-info { padding: 1.5rem 1.25rem; }
  .modal-name { font-size: 1.5rem; }
}
