﻿/* ============================================================
   DUBAI GUIDE TOURS — TOUR PAGE BOOKING MODAL
   ============================================================ */

.bkm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  overflow-y: auto;
  padding: 40px 16px;
}
.bkm-overlay.open {
  opacity: 1;
  visibility: visible;
}

.bkm-modal {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 90px -20px rgba(0,0,0,.6);
  overflow: hidden;
  transform: translateY(20px) scale(.97);
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(201,169,97,.2);
}
.bkm-overlay.open .bkm-modal {
  transform: translateY(0) scale(1);
}
.bkm-modal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #c9a961, transparent);
}

/* ===== HEADER ===== */
.bkm-head {
  padding: 32px 32px 22px;
  background: linear-gradient(135deg, #0d1117 0%, #1a2230 100%);
  position: relative;
  overflow: hidden;
}
.bkm-head::before {
  content: "";
  position: absolute;
  top: -60%; right: -20%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(201,169,97,.18), transparent 65%);
  pointer-events: none;
}
.bkm-head-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.bkm-head-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #c9a961, #b08f42);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 20px rgba(201,169,97,.4);
}
.bkm-head-text { flex: 1; min-width: 0; }
.bkm-head-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #e8d5a0;
  margin-bottom: 6px;
}
.bkm-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.25;
  word-break: break-word;
}
.bkm-head-tour {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.bkm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all .22s ease;
  z-index: 3;
}
.bkm-close:hover {
  background: rgba(255,255,255,.2);
  transform: rotate(90deg);
}

/* ===== BODY ===== */
.bkm-body {
  padding: 26px 32px 24px;
}
.bkm-field {
  margin-bottom: 16px;
}
.bkm-field > label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 7px;
  letter-spacing: .1px;
}
.bkm-field > label i {
  color: #c9a961;
  font-size: 12px;
}
.bkm-req { color: #dc2626; }
.bkm-opt { color: #9ca3af; font-weight: 400; font-size: 11.5px; }

.bkm-input {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  color: #1f2937;
  background: #fff;
  transition: all .2s ease;
  box-sizing: border-box;
}
.bkm-input:focus {
  outline: none;
  border-color: #c9a961;
  box-shadow: 0 0 0 3px rgba(201,169,97,.14);
}
.bkm-input::placeholder { color: #9ca3af; }
select.bkm-input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236b7280' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

.bkm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Tier selector */
.bkm-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.bkm-tier {
  cursor: pointer;
  display: block;
}
.bkm-tier input { display: none; }
.bkm-tier span {
  display: block;
  padding: 12px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  text-align: center;
  background: #fff;
  transition: all .22s ease;
}
.bkm-tier strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 2px;
}
.bkm-tier small {
  font-size: 10.5px;
  color: #6b7280;
  line-height: 1.3;
}
.bkm-tier input:checked + span {
  border-color: #c9a961;
  background: linear-gradient(135deg, #fffaed, #fff);
  box-shadow: 0 0 0 3px rgba(201,169,97,.14);
}

/* Price box */
.bkm-price {
  margin: 20px 0 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d1117 0%, #1a2230 100%);
  color: #fff;
  display: none;
  border: 1px solid rgba(201,169,97,.2);
}
.bkm-price.show { display: block; }
.bkm-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  font-size: 13.5px;
  color: rgba(255,255,255,.7);
}
.bkm-price-row strong { color: #fff; font-weight: 600; text-align: right; }
.bkm-price-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(201,169,97,.35);
}
.bkm-price-total span { font-weight: 600; color: #fff; }
.bkm-price-total strong {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #e8d5a0;
  letter-spacing: -.02em;
}
.bkm-price small {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}

/* Actions */
.bkm-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f1f3;
}
.bkm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .24s ease;
  border: 1.5px solid transparent;
  letter-spacing: .2px;
}
.bkm-btn-cancel {
  background: transparent;
  border-color: #e5e7eb;
  color: #1f2937;
  flex-shrink: 0;
}
.bkm-btn-cancel:hover {
  border-color: #1f2937;
  background: #f6f7f9;
}
.bkm-btn-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  flex: 1;
  box-shadow: 0 6px 20px rgba(37,211,102,.35);
}
.bkm-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37,211,102,.5);
}
.bkm-btn-wa i { font-size: 17px; }

/* Trust row */
.bkm-trust {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f0f1f3;
}
.bkm-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 500;
}
.bkm-trust i { color: #c9a961; font-size: 11px; }

/* Toast */
.bkm-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0d1117;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  opacity: 0;
  transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
  pointer-events: none;
  border-left: 4px solid #c9a961;
  max-width: 90vw;
}
.bkm-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== BODY SCROLL LOCK ===== */
body.bkm-locked {
  overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .bkm-overlay { padding: 16px 12px; }
  .bkm-modal { border-radius: 18px; }
  .bkm-head { padding: 24px 20px 18px; }
  .bkm-head h3 { font-size: 17px; }
  .bkm-body { padding: 20px 20px 18px; }
  .bkm-row { grid-template-columns: 1fr; gap: 0; }
  .bkm-tier-grid { grid-template-columns: 1fr; }
  .bkm-actions { flex-direction: column-reverse; }
  .bkm-btn-cancel { width: 100%; }
  .bkm-btn-wa { width: 100%; }
  .bkm-price-total strong { font-size: 20px; }
}