/* =========================================================
   KKF Partner Dashboard
   Version: 1.0.0
   Loads after kkf-trip-basket.css and reuses its tokens.
   ========================================================= */

.kkf-pd {
  --d-sun: var(--kkf-sun, #f0522b);
  --d-mango: var(--kkf-mango, #f7941d);
  --d-ink: var(--kkf-ink, #17211f);
  --d-soft: var(--kkf-ink-soft, #5f6f6a);
  --d-line: var(--kkf-line, #ecdfd3);
  --d-sand: var(--kkf-sand, #fbf6f0);
  --d-teal: var(--kkf-teal, #0e6e63);
  --d-ease: 0.22s cubic-bezier(0.32, 0.72, 0.35, 1);

  max-width: 1160px;
  margin: 0 auto;
  font-family: var(--kkf-font-body, "Plus Jakarta Sans", system-ui, sans-serif);
  color: var(--d-ink);
  font-size: 16px;
  line-height: 1.65;
}

.kkf-pd *,
.kkf-pd *::before,
.kkf-pd *::after {
  box-sizing: border-box;
}

/* ---------------------------------------- hero */

.kkf-pd-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 16px;
  padding: 30px 32px;
  border-radius: var(--kkf-radius-lg, 24px);
  background:
    radial-gradient(120% 150% at 100% 0%, #ffb347 0%, rgba(255, 179, 71, 0) 55%),
    linear-gradient(115deg, #f7941d 0%, #f0522b 52%, #d63e1c 100%);
  color: #fff;
  box-shadow: 0 14px 40px -18px rgba(23, 33, 31, 0.28);
}

.kkf-pd-hero-copy { position: relative; z-index: 1; min-width: 0; }

.kkf-pd .kkf-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.kkf-pd-hero h2 {
  margin: 0;
  font-family: var(--kkf-font-display, "Fraunces", Georgia, serif);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}

.kkf-pd-hero p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.kkf-pd-hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kkf-pd-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 13px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.kkf-pd-stat strong {
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

/* ---------------------------------------- notices */

.kkf-pd-notice {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
}

.kkf-pd-notice strong { display: block; }

.kkf-pd-notice.is-good {
  background: var(--kkf-teal-wash, #eaf5f3);
  color: var(--d-teal);
}

.kkf-pd-notice.is-warn {
  background: var(--kkf-warning-wash, #fff6e6);
  color: var(--kkf-warning, #96560a);
}

/* ---------------------------------------- layout */

.kkf-pd-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.kkf-pd-nav {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--d-line);
  border-radius: 20px;
  background: #fff;
}

.kkf-pd-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 11px 15px;
  border: 0;
  border-radius: 12px;
  background: none;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--d-soft);
  text-align: left;
  cursor: pointer;
  transition: background var(--d-ease), color var(--d-ease);
}

.kkf-pd-link:hover {
  background: var(--d-sand);
  color: var(--d-ink);
}

.kkf-pd-link.is-active {
  background: var(--kkf-sun-wash, #fff1ea);
  color: var(--kkf-sun-deep, #c33b16);
}

.kkf-pd-pane[hidden] { display: none; }

.kkf-pd-panel {
  padding: 26px;
  border: 1px solid var(--d-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(23, 33, 31, 0.04);
}

.kkf-pd-panel + .kkf-pd-panel { margin-top: 16px; }

.kkf-pd-panel h3 {
  margin: 0 0 14px;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 21px;
  font-weight: 600;
}

.kkf-pd-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.kkf-pd-panel-head h3 { margin: 0; }

.kkf-pd-hint {
  margin: 0 0 18px;
  color: var(--d-soft);
  font-size: 14px;
}

.kkf-pd-add {
  min-height: 42px;
  padding: 10px 20px;
  border: 1.5px solid var(--d-sun);
  border-radius: 999px;
  background: #fff;
  color: var(--d-sun);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--d-ease), color var(--d-ease);
}

.kkf-pd-add:hover {
  background: var(--d-sun);
  color: #fff;
}

/* ---------------------------------------- overview cards */

.kkf-pd-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.kkf-pd-card {
  padding: 20px;
  border: 1px solid var(--d-line);
  border-radius: 18px;
  background: #fff;
}

.kkf-pd-card-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-soft);
}

.kkf-pd-card-value {
  display: block;
  margin: 6px 0 2px;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.kkf-pd-card-note {
  font-size: 12.5px;
  color: var(--d-soft);
}

.kkf-pd-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kkf-pd-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--d-line);
  font-size: 14.5px;
  color: var(--d-soft);
}

.kkf-pd-checklist li:last-child { border-bottom: 0; }

.kkf-pd-checklist li::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 2px solid var(--d-line);
  border-radius: 50%;
}

.kkf-pd-checklist li.is-done {
  color: var(--d-ink);
  font-weight: 600;
}

.kkf-pd-checklist li.is-done::before {
  border-color: var(--d-teal);
  background: var(--d-teal)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
    center / 13px 13px no-repeat;
}

/* ---------------------------------------- forms */

.kkf-pd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.kkf-pd .kkf-field { display: block; margin-bottom: 16px; }

.kkf-pd .kkf-field > span,
.kkf-pd .kkf-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d-soft);
}

.kkf-pd .kkf-field input,
.kkf-pd .kkf-field select,
.kkf-pd .kkf-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1.5px solid var(--d-line);
  border-radius: 13px;
  background: var(--d-sand);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--d-ink);
  transition: border-color var(--d-ease), background var(--d-ease),
    box-shadow var(--d-ease);
}

.kkf-pd .kkf-field textarea {
  min-height: 130px;
  line-height: 1.65;
  resize: vertical;
}

.kkf-pd .kkf-field input:focus,
.kkf-pd .kkf-field select:focus,
.kkf-pd .kkf-field textarea:focus {
  outline: none;
  border-color: var(--d-sun);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(240, 82, 43, 0.13);
}

.kkf-pd-message {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
}

.kkf-pd-message.is-ok {
  background: var(--kkf-teal-wash, #eaf5f3);
  color: var(--d-teal);
}

.kkf-pd-message.is-error {
  background: #fef2f1;
  color: #b42318;
}

/* ---------------------------------------- rooms */

.kkf-pd-rooms {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.kkf-pd-room {
  position: relative;
  padding: 18px 18px 4px;
  border: 1px solid var(--d-line);
  border-left: 4px solid var(--d-mango);
  border-radius: 16px;
  background: var(--d-sand);
}

.kkf-pd-room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.kkf-pd-room-name { grid-column: 1 / -1; }

.kkf-pd-room .kkf-field input { background: #fff; }

.kkf-pd-room-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid var(--d-line);
  border-radius: 999px;
  background: #fff;
  color: var(--d-soft);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.kkf-pd-room-remove:hover {
  border-color: #f3c3bf;
  background: #fef2f1;
  color: #b42318;
}

/* ---------------------------------------- facilities */

.kkf-pd-facilities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.kkf-pd-facility {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--d-line);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: border-color var(--d-ease), background var(--d-ease);
}

.kkf-pd-facility:hover { border-color: #f6c9b6; }

.kkf-pd-facility input {
  width: 18px;
  height: 18px;
  accent-color: var(--d-sun);
}

/* ---------------------------------------- payments */

.kkf-pd-steps {
  margin: 0 0 22px;
  padding-left: 20px;
}

.kkf-pd-steps li {
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--d-soft);
}

.kkf-pd-steps strong { color: var(--d-ink); }

.kkf-pd-example {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--d-line);
  border-radius: 16px;
  background: var(--d-sand);
}

.kkf-pd-example h4 {
  margin: 0 0 12px;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 17px;
  font-weight: 600;
}

.kkf-pd-example-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--d-line);
  font-size: 14.5px;
  color: var(--d-soft);
}

.kkf-pd-example-row.is-total {
  border-bottom: 0;
  padding-top: 12px;
  color: var(--d-ink);
}

.kkf-pd-example-row.is-total strong {
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 24px;
  color: var(--d-teal);
}

/* ---------------------------------------- misc */

.kkf-pd-empty {
  padding: 40px 24px;
  border: 1.5px dashed var(--d-line);
  border-radius: 16px;
  background: var(--d-sand);
  text-align: center;
}

.kkf-pd-empty strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 18px;
  font-weight: 600;
}

.kkf-pd-empty p {
  margin: 0 auto;
  max-width: 46ch;
  color: var(--d-soft);
  font-size: 14px;
}

.kkf-pd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.kkf-pd-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.kkf-pd-details {
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 0;
}

.kkf-pd-details dt {
  padding: 12px 0;
  border-bottom: 1px solid var(--d-line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-soft);
}

.kkf-pd-details dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--d-line);
  font-size: 15px;
}

.kkf-pd-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* banner on the traveller account page */

.kkf-partner-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid var(--kkf-line, #ecdfd3);
  border-left: 5px solid var(--kkf-sun, #f0522b);
  border-radius: 18px;
  background: #fff;
  font-family: var(--kkf-font-body, system-ui, sans-serif);
}

.kkf-partner-banner strong { display: block; font-size: 16px; }

.kkf-partner-banner span {
  color: var(--kkf-ink-soft, #5f6f6a);
  font-size: 14px;
}

/* ---------------------------------------- responsive */

@media (max-width: 900px) {
  .kkf-pd-body { grid-template-columns: minmax(0, 1fr); }

  .kkf-pd-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    border-radius: 999px;
  }

  .kkf-pd-link { white-space: nowrap; }
}

@media (max-width: 620px) {
  .kkf-pd-hero { padding: 22px 18px; border-radius: 16px; }
  .kkf-pd-panel { padding: 18px 16px; border-radius: 16px; }
  .kkf-pd-details { grid-template-columns: minmax(0, 1fr); }
  .kkf-pd-details dt { padding-bottom: 0; border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .kkf-pd * { transition: none !important; }
}

/* =========================================================
   Front end photo manager
   ========================================================= */

.kkf-pd-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--d-mango), var(--d-sun));
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(240, 82, 43, 0.95);
  transition: transform var(--d-ease);
}

.kkf-pd-upload:hover { transform: translateY(-2px); }

.kkf-pd-upload::before {
  content: "";
  width: 17px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5'/%3E%3Cpath d='M4 16v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.kkf-pd-upload.is-small {
  min-height: 36px;
  padding: 8px 14px;
  font-size: 12.5px;
  width: 100%;
}

.kkf-pd-upload.is-small::before { width: 13px; height: 13px; }

/* main photo */

.kkf-pd-featured {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.kkf-pd-featured-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--d-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--d-sand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kkf-pd-featured-frame img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: cover;
  display: block;
}

.kkf-pd-featured-empty {
  color: #a9b4b0;
  font-size: 14px;
}

/* dropzone */

.kkf-pd-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  margin-bottom: 16px;
  padding: 20px;
  border: 2px dashed var(--d-line);
  border-radius: 16px;
  background: var(--d-sand);
  color: var(--d-soft);
  font-size: 14px;
  text-align: center;
  transition: border-color var(--d-ease), background var(--d-ease),
    color var(--d-ease);
}

.kkf-pd-dropzone.is-over {
  border-color: var(--d-sun);
  background: var(--kkf-sun-wash, #fff1ea);
  color: var(--kkf-sun-deep, #c33b16);
}

/* gallery tiles */

.kkf-pd-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--d-sand);
}

.kkf-pd-photo img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: cover;
  display: block;
}

.kkf-pd-photo-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.75);
  color: #fff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background var(--d-ease);
}

.kkf-pd-photo-remove:hover { background: #b42318; }

/* room photo */

.kkf-pd-room {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.kkf-pd-room-photo {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kkf-pd-room-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1.5px dashed var(--d-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a9b4b0;
  font-size: 12px;
}

.kkf-pd-room-frame img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0;
  object-fit: cover;
  display: block;
}

.kkf-pd-room .kkf-pd-room-grid { padding-bottom: 4px; }

.kkf-pd-room-remove { top: 14px; right: 14px; }

@media (max-width: 620px) {
  .kkf-pd-room { grid-template-columns: minmax(0, 1fr); }
  .kkf-pd-room-frame { max-width: 200px; }
}

/* =========================================================
   Live preview
   ========================================================= */

.kkf-pd-body {
  grid-template-columns: 200px minmax(0, 1fr) 420px;
}

.kkf-pd-work { min-width: 0; }

.kkf-pd-preview {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;

  /* A real height, not just a cap, so the frame has room to fill. */
  height: calc(100vh - 60px);
  min-height: 620px;

  border: 1px solid var(--d-line);
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(23, 33, 31, 0.04);
}

.kkf-pd-preview[hidden] { display: none; }

.kkf-pd-preview-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--d-line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--d-soft);
}

.kkf-pd-preview-head span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #2ea36a;
  vertical-align: middle;
  animation: kkf-pd-pulse 2s ease-in-out infinite;
}

@keyframes kkf-pd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.kkf-pd-preview-close {
  display: none;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--d-sand);
  color: var(--d-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.kkf-pd-preview-note {
  flex: 0 0 auto;
  margin: 0;
  padding: 11px 18px;
  border-bottom: 1px solid var(--d-line);
  background: var(--d-sand);
  color: var(--d-soft);
  font-size: 12.5px;
  line-height: 1.5;
}

/*
   The frame scrolls. Inside it a spacer is given the exact height
   of the scaled page by JavaScript, so nothing collapses and no
   guessed negative margins are needed.
*/
.kkf-pd-preview-frame {
  flex: 1 1 auto;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  background: #fff;
}

.kkf-pd-preview-scroll {
  position: relative;
  width: 100%;
}

.kkf-pd-preview-frame .kkf-hotel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1100px;
  transform-origin: top left;
  pointer-events: none;
}

.kkf-pd-preview-empty {
  padding: 70px 24px;
  color: var(--d-soft);
  font-size: 15px;
  text-align: center;
}

/* mobile toggle */

.kkf-pd-preview-open {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  min-height: 50px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--d-ink);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.7);
}

.kkf-pd-preview-open[hidden] { display: none !important; }

@media (max-width: 1280px) {
  .kkf-pd-body { grid-template-columns: 190px minmax(0, 1fr) 360px; }
}

@media (max-width: 1080px) {
  .kkf-pd-body { grid-template-columns: minmax(0, 1fr); }

  .kkf-pd-preview-open { display: inline-flex; align-items: center; }

  .kkf-pd-preview {
    position: fixed;
    inset: 0;
    z-index: 70;
    height: 100%;
    min-height: 0;
    border-radius: 0;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.35, 1);
  }

  .kkf-pd-preview.is-open { transform: translateY(0); }

  .kkf-pd-preview-close { display: block; }
}

/* =========================================================
   Publish card
   ========================================================= */

.kkf-pd-publish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  border-left: 5px solid var(--d-mango);
}

.kkf-pd-publish.is-live { border-left-color: #2ea36a; }

.kkf-pd-publish-copy { min-width: 0; }

.kkf-pd-publish-copy h3 { margin: 8px 0 4px; }

.kkf-pd-publish-copy p {
  margin: 0;
  color: var(--d-soft);
  font-size: 14px;
}

.kkf-pd-publish-badge {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 999px;
  background: var(--kkf-warning-wash, #fff6e6);
  color: var(--kkf-warning, #96560a);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.kkf-pd-publish.is-live .kkf-pd-publish-badge {
  background: #e6f6ee;
  color: #1c7a4f;
}

.kkf-pd-publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

/* =========================================================
   Availability calendar
   ========================================================= */

.kkf-pd-cal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kkf-pd-cal-arrow {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--d-line);
  border-radius: 50%;
  background: #fff;
  color: var(--d-ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--d-ease), background var(--d-ease);
}

.kkf-pd-cal-arrow:hover {
  border-color: var(--d-sun);
  background: var(--kkf-sun-wash, #fff1ea);
}

.kkf-pd-cal-month {
  min-width: 150px;
  font-family: var(--kkf-font-display, Georgia, serif);
  font-size: 17px;
  font-weight: 600;
  text-align: center;
}

.kkf-pd-cal-rooms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.kkf-pd-cal-room {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1.5px solid var(--d-line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--d-ink);
  cursor: pointer;
  transition: border-color var(--d-ease), background var(--d-ease),
    color var(--d-ease);
}

.kkf-pd-cal-room span {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--d-sand);
  font-size: 12px;
  color: var(--d-soft);
}

.kkf-pd-cal-room.is-active {
  border-color: transparent;
  background: linear-gradient(120deg, var(--d-mango), var(--d-sun));
  color: #fff;
}

.kkf-pd-cal-room.is-active span {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.kkf-pd-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  user-select: none;
}

.kkf-pd-cal-dow {
  padding: 6px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--d-soft);
  text-align: center;
}

.kkf-pd-cal-blank { aspect-ratio: 1 / 1; }

.kkf-pd-cal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  aspect-ratio: 1 / 1;
  min-height: 62px;
  padding: 4px;
  border: 1.5px solid var(--d-line);
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--d-ease), background var(--d-ease),
    transform var(--d-ease);
}

.kkf-pd-cal-day:hover { border-color: #f6c9b6; }

.kkf-pd-cal-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--d-ink);
}

.kkf-pd-cal-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--d-teal);
}

.kkf-pd-cal-was {
  font-size: 10.5px;
  color: var(--d-soft);
  text-decoration: line-through;
}

.kkf-pd-cal-qty {
  font-size: 10px;
  color: var(--d-soft);
}

.kkf-pd-cal-shut {
  font-size: 10.5px;
  font-weight: 700;
  color: #b42318;
}

.kkf-pd-cal-day.is-custom {
  border-color: #bcd9d2;
  background: var(--kkf-teal-wash, #eaf5f3);
}

.kkf-pd-cal-day.is-deal {
  border-color: var(--d-mango);
  background: var(--kkf-sun-wash, #fff1ea);
}

.kkf-pd-cal-day.is-closed {
  border-color: #f0cfcc;
  background: #fdf3f2;
}

.kkf-pd-cal-day.is-closed .kkf-pd-cal-num { color: #b42318; }

.kkf-pd-cal-day.is-selected {
  border-color: var(--d-sun);
  background: var(--d-sun);
  transform: scale(0.96);
}

.kkf-pd-cal-day.is-selected .kkf-pd-cal-num,
.kkf-pd-cal-day.is-selected .kkf-pd-cal-price,
.kkf-pd-cal-day.is-selected .kkf-pd-cal-qty,
.kkf-pd-cal-day.is-selected .kkf-pd-cal-was,
.kkf-pd-cal-day.is-selected .kkf-pd-cal-shut { color: #fff; }

.kkf-pd-cal-day.is-past {
  opacity: 0.4;
  cursor: default;
  background: var(--d-sand);
}

.kkf-pd-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--d-soft);
}

.kkf-pd-cal-key { display: inline-flex; align-items: center; gap: 7px; }

.kkf-pd-cal-key::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--d-line);
  border-radius: 4px;
  background: #fff;
}

.kkf-pd-cal-key.is-custom::before {
  border-color: #bcd9d2;
  background: var(--kkf-teal-wash, #eaf5f3);
}

.kkf-pd-cal-key.is-deal::before {
  border-color: var(--d-mango);
  background: var(--kkf-sun-wash, #fff1ea);
}

.kkf-pd-cal-key.is-closed::before {
  border-color: #f0cfcc;
  background: #fdf3f2;
}

.kkf-pd-cal-editor { border-left: 5px solid var(--d-sun); }

.kkf-pd-cal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.kkf-pd-cal-cancel {
  border: 0;
  background: none;
  padding: 10px 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--d-soft);
  cursor: pointer;
}

.kkf-pd-cal-cancel:hover { color: var(--d-ink); }

@media (max-width: 620px) {
  .kkf-pd-cal-day { min-height: 52px; border-radius: 9px; }
  .kkf-pd-cal-num { font-size: 12.5px; }
  .kkf-pd-cal-price { font-size: 10.5px; }
  .kkf-pd-cal-qty, .kkf-pd-cal-was { display: none; }
  .kkf-pd-publish { flex-direction: column; align-items: stretch; }
}