.jkpeace-card {
  --jkp-ink: #1e293b;
  --jkp-muted: #6b7280;
  --jkp-brand: #0f766e;
  --jkp-brand-strong: #115e59;
  --jkp-accent: #d97706;
  --jkp-surface: #ffffff;
  --jkp-soft: #fff7ed;
  width: 100%;
  max-width: 760px;
  border-radius: 24px;
  border: 1px solid #e9dbc3;
  background: linear-gradient(170deg, #fffaf2 0%, #ffffff 58%, #f8fffb 100%);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  position: relative;
}

.jkpeace-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(217, 119, 6, 0.08), transparent 45%, rgba(15, 118, 110, 0.08));
}

.jkpeace-card__media {
  position: relative;
  padding: 16px 16px 0;
}

.jkpeace-card__gallery {
  position: relative;
}

.jkpeace-card__img,
.jkpeace-card__gslide {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.jkpeace-card__gslide {
  display: none;
}

.jkpeace-card__gslide.is-active {
  display: block;
}

.jkpeace-card__gbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(15, 23, 42, 0.48);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.jkpeace-card__gbtn--prev {
  left: 14px;
}

.jkpeace-card__gbtn--next {
  right: 14px;
}

.jkpeace-card__badge {
  position: absolute;
  top: 28px;
  left: 28px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #f97316);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.3);
}

.jkpeace-card__body {
  padding: 18px 18px 20px;
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.jkpeace-card__title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.jkpeace-card__title {
  margin: 0;
  color: var(--jkp-ink);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
}

.jkpeace-card__rating-wrap {
  text-align: right;
  background: #ffffff;
  border: 1px solid #dce4ea;
  border-radius: 14px;
  padding: 8px 10px;
  min-width: 120px;
}

.jkpeace-card__stars {
  color: #f59e0b;
  letter-spacing: 0.12em;
  font-size: 15px;
  line-height: 1.1;
}

.jkpeace-card__reviews {
  color: var(--jkp-muted);
  font-size: 12px;
  margin-top: 3px;
}

.jkpeace-card__divider {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #fcd34d 40%, #5eead4);
  opacity: 0.65;
}

.jkpeace-card__pricing {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: var(--jkp-soft);
  border: 1px solid #f2dbc0;
}

.jkpeace-card__price-label {
  color: #9a3412;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jkpeace-card__prices {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.jkpeace-card__price-old {
  color: #7f1d1d;
  text-decoration: line-through;
  font-size: 16px;
  font-weight: 700;
}

.jkpeace-card__price-new {
  color: #0f766e;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.jkpeace-card__agent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jkpeace-card__agent-left {
  min-width: 0;
}

.jkpeace-card__agent-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--jkp-ink);
}

.jkpeace-card__icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--jkp-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.jkpeace-card__icon-circle i {
  color: #fff;
  font-size: 15px;
}

.jkpeace-card__icon-circle svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

.jkpeace-card__agent-name {
  color: inherit;
  font-weight: 700;
  font-size: 15px;
}

.jkpeace-card__dur-badge {
  border: 1px solid #c3ddd8;
  background: #f0fdfa;
  color: #115e59;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.jkpeace-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.jkpeace-card__btn {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 12px 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  cursor: pointer;
}

.jkpeace-card__btn:hover {
  transform: translateY(-1px);
}

.jkpeace-card__btn--primary {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  border-color: #0f766e;
  color: #fff;
  box-shadow: 0 10px 18px rgba(15, 118, 110, 0.24);
  animation: jkpeaceTalkBtnZoom 1.6s ease-in-out infinite;
  transform-origin: center;
  will-change: transform;
}

.jkpeace-card__btn--primary:hover {
  animation-play-state: paused;
  transform: scale(1.06);
}

.jkpeace-card__btn--accent {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border-color: #ea580c;
  color: #fff;
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.25);
}

.jkpeace-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.jkpeace-btn-icon i {
  color: currentColor;
  font-size: 15px;
}

.jkpeace-btn-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.jkpeace-btn-text {
  white-space: nowrap;
}

@keyframes jkpeaceTalkBtnZoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jkpeace-card__btn--primary {
    animation: none;
  }
}

.jkpeace-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
}

.jkpeace-modal.is-open {
  display: block;
}

.jkpeace-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(1px);
}

.jkpeace-modal__dialog {
  position: relative;
  margin: 28px auto;
  width: min(960px, calc(100% - 24px));
  max-height: calc(100vh - 56px);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fffdf8;
  border: 1px solid #eed5b7;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.35);
}

.jkpeace-modal__header {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #ecdabf;
  background: linear-gradient(90deg, #fff8ee, #f0fdfa);
}

.jkpeace-modal__title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #1e293b;
  font-weight: 800;
}

.jkpeace-modal__close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.jkpeace-modal__tabs {
  padding: 12px 14px;
  border-bottom: 1px solid #ecdabf;
  background: #fff;
}

.jkpeace-modal__tabs-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.jkpeace-modal .jkpeace-modal__tabs .jkpeace-modal__tab {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  height: auto !important;
  border: 1px solid #d6dde5;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: 10px 14px !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2 !important;
  min-height: 42px !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0;
  cursor: pointer;
}

.jkpeace-modal__tab.is-active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.jkpeace-modal__content {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  color: #334155;
}

.jkpeace-modal .jkpeace-modal__header .jkpeace-modal__close {
  box-sizing: border-box;
  min-width: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  padding: 0;
  margin: 0;
}

.jkpeace-modal__content ul,
.jkpeace-modal__content ol {
  margin: 0 0 0 18px;
}

.jkpeace-modal__content p {
  margin-top: 0;
}

.jkpeace-modal__panel {
  display: none;
}

.jkpeace-modal__panel.is-active {
  display: block;
}

body.jkpeace-modal-open {
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .jkpeace-card__title {
    font-size: 24px;
  }

  .jkpeace-card__img,
  .jkpeace-card__gslide {
    height: 260px;
  }

  .jkpeace-card__price-new {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .jkpeace-card {
    border-radius: 20px;
  }

  .jkpeace-card__media {
    padding: 12px 12px 0;
  }

  .jkpeace-card__img,
  .jkpeace-card__gslide {
    height: 220px;
    border-radius: 14px;
  }

  .jkpeace-card__badge {
    top: 20px;
    left: 20px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .jkpeace-card__body {
    padding: 14px;
    gap: 12px;
  }

  .jkpeace-card__title-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .jkpeace-card__rating-wrap {
    text-align: left;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .jkpeace-card__pricing {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .jkpeace-card__prices {
    justify-content: flex-start;
  }

  .jkpeace-card__agent {
    flex-direction: row;
    align-items: center;
  }

  .jkpeace-card__actions {
    grid-template-columns: 1fr;
  }

  .jkpeace-btn-text {
    white-space: normal;
  }

  .jkpeace-modal__dialog {
    margin: 12px auto;
    max-height: calc(100vh - 24px);
    border-radius: 16px;
  }

  .jkpeace-modal__tabs {
    padding: 10px 12px;
  }

  .jkpeace-modal__tabs-track {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .jkpeace-modal .jkpeace-modal__tabs .jkpeace-modal__tab {
    min-height: 40px !important;
    padding: 9px 13px !important;
  }

  .jkpeace-modal__title {
    font-size: 18px;
  }
}

/* Keep requested package-card mobile layout stable up to Elementor mobile widths */
@media (max-width: 767px) {
  .jkpeace-card__title-row .jkpeace-card__rating-wrap {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .jkpeace-card__agent {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .jkpeace-card__agent-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .jkpeace-card__dur-badge {
    flex: 0 0 auto;
  }
}
