/* ==========================================================================
   HAMOVAKI — Luxury Booking Modal & Widget System
   ========================================================================== */

.hm-booking-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(22, 28, 23, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.hm-booking-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.hm-booking-modal {
  background: #fbfaf5;
  color: #202c24;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(18, 26, 20, 0.28);
  border: 1px solid rgba(184, 148, 99, 0.35);
  padding: 40px 36px 36px;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hm-booking-modal-overlay.is-active .hm-booking-modal {
  transform: translateY(0) scale(1);
}

.hm-booking-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(32, 44, 36, 0.15);
  background: transparent;
  color: #202c24;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.hm-booking-close:hover {
  background: #202c24;
  color: #fbfaf5;
  border-color: #202c24;
  transform: rotate(90deg);
}

.hm-booking-header {
  margin-bottom: 24px;
}

.hm-booking-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b89463;
  margin: 0 0 8px;
}

.hm-booking-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #202c24;
}

.hm-booking-selected-card {
  background: rgba(184, 148, 99, 0.08);
  border: 1px solid rgba(184, 148, 99, 0.35);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hm-booking-selected-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hm-booking-selected-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #758273;
}

.hm-booking-change-hint {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #b89463;
  text-transform: uppercase;
}

.hm-booking-select-wrapper {
  position: relative;
  width: 100%;
}

.hm-booking-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #ffffff;
  border: 1px solid rgba(184, 148, 99, 0.45);
  border-radius: 8px;
  padding: 10px 38px 10px 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: #202c24;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.hm-booking-select:focus {
  border-color: #202c24;
  box-shadow: 0 0 0 3px rgba(184, 148, 99, 0.2);
}

.hm-booking-select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #758273;
  font-size: 14px;
  pointer-events: none;
}

.hm-booking-price-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed rgba(184, 148, 99, 0.3);
  margin-top: 2px;
  flex-wrap: wrap;
}

.hm-price-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #758273;
}

.hm-price-pill {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: #202c24;
  background: rgba(184, 148, 99, 0.18);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(184, 148, 99, 0.35);
  letter-spacing: 0.02em;
}

.hm-booking-subtitle {
  font-size: 14px;
  line-height: 1.55;
  color: #5d685c;
  margin: 0 0 20px;
}

.hm-booking-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.hm-channel-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid rgba(32, 44, 36, 0.12);
  background: #ffffff;
  color: #202c24;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.hm-channel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(32, 44, 36, 0.08);
  border-color: #b89463;
}

.hm-channel-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.hm-channel-btn--wa .hm-channel-icon-wrap {
  background: #25d366;
  color: #ffffff;
}

.hm-channel-btn--tg .hm-channel-icon-wrap {
  background: #229ed9;
  color: #ffffff;
}

.hm-channel-btn--max .hm-channel-icon-wrap {
  background: #8b3dff;
  color: #ffffff;
}

.hm-channel-btn--phone .hm-channel-icon-wrap {
  background: #334637;
  color: #fbfaf5;
}

.hm-channel-btn--vk .hm-channel-icon-wrap {
  background: #0077ff;
  color: #ffffff;
}

.hm-channel-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.hm-channel-title {
  font-family: Manrope, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #202c24;
  margin-bottom: 2px;
}

.hm-channel-desc {
  font-size: 12px;
  color: #758273;
}

.hm-channel-arrow {
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  color: #b89463;
  transition: transform 0.2s;
}

.hm-channel-btn:hover .hm-channel-arrow {
  transform: translateX(4px);
}

/* DIKIDI Container Slot */
.hm-dikidi-slot {
  background: #f3f0e8;
  border: 1px dashed rgba(184, 148, 99, 0.5);
  border-radius: 14px;
  padding: 16px 20px;
  text-align: center;
  position: relative;
}

.hm-dikidi-badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #b89463;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}

.hm-dikidi-text {
  font-size: 13px;
  color: #5d685c;
  margin: 0;
  line-height: 1.4;
}

/* Catalog Card Book Button: placed to the left of pricing */
.catalog-card__booking-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 0 !important;
}

.service-card-body {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 20px clamp(18px, 3.5vw, 42px) !important;
  margin-top: 28px !important;
}

.service-card-body .service-copy {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

.service-card-body .catalog-card__booking-bar {
  grid-column: 1 !important;
  justify-self: start !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.service-card-body .service-pricing {
  grid-column: 2 !important;
  justify-self: end !important;
  align-self: center !important;
  margin: 0 !important;
}

@media (max-width: 760px) {
  .service-card-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .service-card-body .service-pricing {
    width: 100% !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(32, 44, 36, 0.12) !important;
    padding-top: 14px !important;
    text-align: left !important;
  }
  .service-card-body .catalog-card__booking-bar {
    width: 100% !important;
    margin-top: 4px !important;
  }
  .service-card-body .catalog-card__booking-bar .btn-book-action {
    width: 100% !important;
    justify-content: center !important;
  }
}

.btn-book-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #202c24 !important;
  color: #fbfaf5 !important;
  border: 1px solid #202c24 !important;
  padding: 14px 26px !important;
  border-radius: 999px !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 11px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s !important;
  text-decoration: none !important;
}

.btn-book-action:hover {
  background: #b89463 !important;
  border-color: #b89463 !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 148, 99, 0.28);
}

.btn-book-action span {
  font-size: 14px;
  transition: transform 0.2s;
}

.btn-book-action:hover span {
  transform: translateX(3px);
}

/* Bottom Sheet behavior on mobile */
@media (max-width: 640px) {
  .hm-booking-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .hm-booking-modal {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    padding: 32px 20px calc(24px + env(safe-area-inset-bottom, 12px));
    transform: translateY(100%);
  }

  .hm-booking-modal-overlay.is-active .hm-booking-modal {
    transform: translateY(0);
  }
}
