/* ============================================================
   MODAL — kayak description overlay
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .55);
  padding: 20px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 1240px;
  background: #fff;
  border-radius: 20px;
  padding: 30px 20px;
  margin: auto;
  transform: scale(.94) translateY(14px);
  transition: transform .35s cubic-bezier(.34, 1.2, .64, 1);
}

.modal-overlay.is-open .modal-card {
  transform: scale(1) translateY(0);
}

@media (min-width: 1024px) {
  .modal-card {
    padding: 40px;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity .2s ease;
  z-index: 1;
}

.modal-close:hover {
  opacity: .6;
}

.modal-close svg {
  width: 24px;
  height: 24px;
  stroke: #252525;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  color: #252525;
  margin-bottom: 16px;
  padding-right: 50px;
}

@media (min-width: 1024px) {
  .modal-title {
    font-size: 36px;
    margin-bottom: 24px;
  }
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .modal-body {
    gap: 32px;
  }
}

.modal-intro {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  color: #252525;
  line-height: 1.5;
}

@media (min-width: 1024px) {
  .modal-intro {
    font-size: 20px;
  }
}

.modal-desc {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: #252525;
  line-height: 1.5;
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .modal-desc {
    font-size: 18px;
  }
}

.modal-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .modal-specs {
    max-width: 750px;
  }
}

.modal-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-bg);
  border-radius: 50px;
  padding: 8px 24px;
  min-height: 41px;
}

.modal-spec-label {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: #252525;
}

.modal-spec-value {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: #252525;
  text-align: right;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .modal-spec-label,
  .modal-spec-value {
    font-size: 16px;
  }
}

/* ============================================================
   Feature-modal action: button or phone fallback
   ============================================================ */

.feature-modal-action {
  padding-top: 20px;
}

.feature-modal-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #EC6305;
  background: transparent;
  border: 2px solid #EC6305;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.feature-modal-btn:hover {
  background: #EC6305;
  color: #fff;
}

@media (min-width: 1024px) {
  .feature-modal-btn {
    font-size: 16px;
    padding: 16px 32px;
  }
}

.feature-modal-phone {
  display: block;
  width: 100%;
  padding: 14px 24px;
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  color: #252525;
}

.feature-modal-phone a {
  color: #EC6305;
  text-decoration: none;
  white-space: nowrap;
}

.feature-modal-phone a:hover {
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .feature-modal-phone {
    font-size: 18px;
    padding: 16px 32px;
  }
}

.feature-modal-phone-note {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: #888;
  margin-top: -8px;
  padding-bottom: 8px;
}

.feature-modal-phone-note a {
  color: #EC6305;
  text-decoration: none;
}

.feature-modal-phone-note a:hover {
  text-decoration: underline;
}
