.page-travel-map {
  --checkit-app-header-offset: 112px;
  --destination-dock-width: min(340px, calc(100% - 24px));
  --destination-dock-inset: 12px;
  --destination-dock-max-height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  background: #f4f4f4;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

body.is-nights-picker-open {
  overflow: hidden;
}

.page-travel-map .c-header-collective {
  position: relative;
  z-index: 40;
  flex-shrink: 0;
}

.page-travel-map .c-footer-collective,
.page-travel-map .c-footer-partners,
.page-travel-map .testimonials-section {
  display: none !important;
}

.page-travel-map .c-trip-planner {
  flex: 1 1 0;
  min-height: 0;
}

.page-travel-map .c-trip-planner__main-wrapper,
.page-travel-map .c-map-destination-panel__scroll,
.page-travel-map .c-modal__body--scroll,
.page-travel-map .c-location-ac__panel,
.page-travel-map .c-didactic-wizard__card {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.page-travel-map .c-trip-planner__main-wrapper::-webkit-scrollbar,
.page-travel-map .c-map-destination-panel__scroll::-webkit-scrollbar,
.page-travel-map .c-modal__body--scroll::-webkit-scrollbar,
.page-travel-map .c-location-ac__panel::-webkit-scrollbar,
.page-travel-map .c-didactic-wizard__card::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.c-trip-planner {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.c-trip-planner__main {
  display: flex;
  flex-direction: column;
  width: min(420px, 38vw);
  min-width: 320px;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-right: 1px solid #e6e6e6;
  box-shadow: 2px 0 18px rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.c-trip-planner__main-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px 24px;
}

.c-trip-dates {
  background: #fff;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid #eee;
}

.c-trip-dates__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(201, 149, 58, 0.14) 0%, rgba(201, 149, 58, 0) 42%),
    linear-gradient(145deg, #0f172a 0%, #1e3a5f 52%, #0077c8 100%);
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.c-trip-dates__head h1 {
  margin: 0;
  flex: 1 1 auto;
  min-width: min(100%, 220px);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  text-transform: none;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.c-trip-dates__head h1::after {
  content: '';
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--checkit-accent, #c9953a), #f0d08a);
}

.c-trip-dates__guests {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.c-trip-dates__guests i {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 15px;
}

.c-trip-dates__guests span {
  text-align: left;
  text-wrap: balance;
}

.c-trip-dates__guests:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(240, 208, 138, 0.45);
  transform: translateY(-1px);
}

.c-trip-dates__guests:focus-visible {
  outline: 2px solid #f0d08a;
  outline-offset: 2px;
}

.c-trip-dates__bar-wrap {
  position: relative;
  bottom: -6px;
}

.c-trip-dates__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1);
  padding: 8px 4px 8px 14px;
  border: 1px solid #eee;
}

/* En modo clásico, body/meta no generan caja: los ítems siguen en fila como antes */
.c-didactic-dates-card__body,
.c-didactic-dates-card__meta {
  display: contents;
}

.c-trip-dates__bar-info {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
  margin: 0;
  padding: 4px 8px 4px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #333;
  text-align: left;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.c-trip-dates__bar-info:hover {
  background: #f5f8fc;
}

.c-trip-dates__bar-info:focus-visible {
  outline: 2px solid var(--brand-color, #0077c8);
  outline-offset: 2px;
}

.c-trip-dates__dates,
.c-trip-dates__nights,
.c-trip-dates__origin,
.c-trip-dates__guests-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.c-trip-dates__bar-edit-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: auto;
  border-radius: 50%;
  color: var(--brand-color, #0077c8);
  background: #eef6fc;
  font-size: 13px;
  flex-shrink: 0;
}

.c-trip-dates__origin.is-empty {
  color: #888;
}

.c-travel-compose-form__origin-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef6fc;
  border-left: 3px solid var(--brand-color, #0077c8);
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.c-trip-dates__bar-actions {
  display: flex;
  align-items: center;
}

.c-trip-dates__bar-actions button {
  border: none;
  background: transparent;
  color: #666;
  width: 34px;
  height: 34px;
  cursor: pointer;
  border-left: 1px solid #eee;
}

.c-trip-dates__bar-actions button:first-child {
  border-left: none;
}

.c-trip-dates__bar-actions button:hover {
  background: #f5f5f5;
  color: #222;
}

.c-alert.c-route-list__draggable-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #eef6fc;
  border: 1px solid #cfe8f7;
  color: #2d6f94;
  font-size: 12px;
  line-height: 1.4;
}

.c-alert.c-route-list__draggable-alert[hidden] {
  display: none !important;
}

.c-trip-setup-guide {
  display: block;
  margin: 0 0 16px;
  padding: 14px 14px 14px 12px;
  background: linear-gradient(135deg, #e8f4fc 0%, #f4f9ff 100%);
  border: 1px solid #b8d9f0;
  border-left: 4px solid var(--brand-color, #0077c8);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 119, 200, 0.1);
}

.c-trip-setup-guide__content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.c-trip-setup-guide__step-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-color, #0077c8);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(0, 119, 200, 0.35);
}

.c-trip-setup-guide__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding-top: 2px;
}

.c-trip-setup-guide__step-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-color, #0077c8);
}

.c-trip-setup-guide__text {
  color: #1e293b;
  font-size: 13px;
  line-height: 1.5;
}

.c-trip-setup-guide__text strong {
  color: #0f172a;
  font-weight: 700;
}

.c-alert.c-route-list__draggable-alert i {
  margin-top: 2px;
  font-size: 16px;
}

.c-route-list__label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: #333;
  margin-bottom: 10px;
}

.c-route-list__label--destination {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #e8f4fc 0%, #f8fbff 100%);
  border: 1px solid #b8d9f0;
  border-left: 4px solid var(--brand-color, #0077c8);
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(0, 119, 200, 0.08);
}

.c-route-list__label-highlight {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-color, #0077c8);
  margin-bottom: 4px;
}

.c-route-list__label-question {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.c-route-list__input {
  margin-bottom: 14px;
}

.c-route-list__input--destination {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}

.c-destination-field-callout {
  margin: 0 0 12px;
  padding: 14px 16px 10px;
  border-radius: 14px;
  border: 2px solid rgba(232, 93, 4, 0.45);
  background: linear-gradient(135deg, #fff7ed 0%, #fff 70%);
  box-shadow: 0 12px 28px rgba(232, 93, 4, 0.16);
  position: relative;
  z-index: 3;
}

.c-destination-field-callout.is-add-another {
  border-color: rgba(0, 119, 200, 0.35);
  background: linear-gradient(135deg, #eff6ff 0%, #fff 70%);
  box-shadow: 0 10px 24px rgba(0, 119, 200, 0.1);
}

.c-destination-field-callout__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e85d04;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.c-destination-field-callout.is-add-another .c-destination-field-callout__badge {
  background: #0077c8;
}

.c-destination-field-callout__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.c-destination-field-callout__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #475569;
}

.c-destination-field-callout__arrow {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  color: #e85d04;
  font-size: 1rem;
  animation: destination-callout-bounce 1.2s ease-in-out infinite;
}

.c-destination-field-callout.is-add-another .c-destination-field-callout__arrow {
  color: #0077c8;
}

.c-route-list__input--destination.is-destination-callout {
  border-radius: 14px;
  padding: 10px 10px 12px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.22), 0 14px 30px rgba(232, 93, 4, 0.12);
  animation: destination-field-pulse 1.4s ease-in-out infinite;
}

.c-route-list__input--destination.is-destination-callout .c-route-list__label-highlight {
  color: #c2410c;
}

.c-route-list__input--destination.is-destination-callout .c-text-input {
  border-color: #fdba74;
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.c-route-list__input--destination.is-destination-callout:has(+ .c-location-ac__panel:not([hidden])) {
  animation: none;
}

@keyframes destination-callout-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@keyframes destination-field-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(232, 93, 4, 0.28); }
}

.c-route-list__origin-slot {
  margin-bottom: 0;
}

.c-route-itinerary-chain {
  margin: 12px 0 16px;
}

.c-route-itinerary-chain > .c-route-list__origin-slot,
.c-route-itinerary-chain > .c-route-list__return-slot,
.c-route-itinerary-chain > .travel-route__travelling {
  margin-left: 0;
  padding-left: 8px;
  border-left: 2px solid #dce9f2;
}

.c-route-itinerary-chain > .c-route-list__origin-slot .c-travel-route-card,
.c-route-itinerary-chain > .c-route-list__return-slot .c-travel-route-card,
.c-route-itinerary-chain > .travel-route__travelling .c-travel-route-card {
  margin-bottom: 10px;
}

.c-route-itinerary-chain > .c-route-list__return-slot:last-child .c-travel-route-card:last-child,
.c-route-itinerary-chain > .travel-route__travelling:last-child .c-travel-route-card:last-child {
  margin-bottom: 0;
}

.c-route-inputs {
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}

.c-route-list__return-slot {
  margin-top: 0;
}

.c-route-list__return-slot[hidden],
.c-route-list__input--return[hidden],
.c-route-list__origin-slot[hidden] {
  display: none !important;
}

.c-trip-return-mode {
  margin: 0 0 16px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.c-trip-return-mode legend {
  display: block;
  width: 100%;
  padding: 14px 18px 12px;
  margin: 0;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  font-size: clamp(15px, 1.9vw, 17px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.c-trip-return-mode__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 0;
}

.c-trip-return-mode__option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: #1e293b;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.c-trip-return-mode__option span {
  color: inherit;
}

.c-trip-return-mode__option input {
  margin: 0;
  accent-color: #0077c8;
  flex-shrink: 0;
}

.c-trip-return-mode__option:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
  color: #0f172a;
}

.c-trip-return-mode__option:has(input:checked) {
  border-color: #0077c8;
  background: #eff6ff;
  color: #0c4a6e;
  box-shadow: 0 0 0 1px rgba(0, 119, 200, 0.12);
}

.c-trip-return-mode__option:has(input:focus-visible) {
  outline: 2px solid #0077c8;
  outline-offset: 2px;
}

.c-trip-return-mode__hint {
  margin: 14px 18px 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid #0077c8;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  color: #334155;
}

.c-trip-return-mode__hint:empty {
  display: none;
}

.c-trip-return-mode__optional {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 18px 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  font-size: 13px;
  line-height: 1.45;
  color: #78350f;
  cursor: pointer;
}

.c-trip-return-mode__optional input {
  margin-top: 2px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .c-trip-return-mode__choices {
    flex-direction: column;
    align-items: stretch;
  }

  .c-trip-return-mode__option {
    width: 100%;
    justify-content: flex-start;
  }
}

.c-travel-route-card--return-card {
  border-color: #d8efd0;
  background: #fbfef9;
}

.c-travel-route-card--placeholder {
  border-style: dashed;
  background: #fcfcfc;
  cursor: pointer;
}

.c-travel-route-card--placeholder .c-travel-route-card__thumb {
  background: #eef3f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ab;
  font-size: 18px;
}

.c-travel-route-card--placeholder .c-travel-route-card__head h3 {
  color: #666;
  font-size: 14px;
}

.c-travel-route-card--placeholder .c-travel-route-card__head p {
  color: #888;
}

.c-travel-route-card__edit-return-link {
  border: none;
  background: transparent;
  color: var(--checkit-sky-deep, #2d8ab8);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.c-route-list__origin-slot[hidden] {
  display: none !important;
}

.c-icon-escort {
  position: relative;
}

.c-location-ac {
  position: relative;
}

.c-location-ac__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1400;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: min(280px, 45vh);
  overflow: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.c-location-ac__panel.is-fixed {
  position: fixed;
}

.c-modal .c-location-ac__panel {
  z-index: 1200;
}

.c-location-ac__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.c-location-ac__hint {
  padding: 8px 14px;
  font-size: 12px;
  color: #888;
  font-style: italic;
  pointer-events: none;
}

.c-location-ac__item:hover,
.c-location-ac__item.is-active {
  background: #f3f8fb;
}

.c-location-ac__item strong {
  display: block;
  font-size: 14px;
  color: #222;
  line-height: 1.25;
}

.c-location-ac__item small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #777;
}

.c-location-ac__icon {
  margin-top: 2px;
  color: var(--checkit-sky-deep, #2d8ab8);
  width: 16px;
  text-align: center;
}

.c-location-ac__panel--grouped {
  max-height: min(360px, 58vh);
  min-width: min(100%, 420px);
}

.c-location-ac__group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
  pointer-events: none;
}

.c-location-ac__group-head:first-child {
  border-top: 0;
}

.c-location-ac__group-head i {
  color: var(--brand-color, #0077c8);
  width: 14px;
  text-align: center;
}

.c-location-ac__group-head small {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

.c-travel-route-card {
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
}

.c-travel-route-card--origin-card {
  border-color: #cfe8f7;
  background: #fafcfe;
}

.c-travel-route-card--end {
  border-color: #d8efd0;
  background: #fbfef9;
}

.c-travel-route-card.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.c-travel-route-card--sortable {
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.c-travel-route-card--sortable:active {
  cursor: grabbing;
}

body.is-route-dragging {
  cursor: grabbing;
  user-select: none;
}

body.is-route-dragging .c-trip-planner__main-wrapper {
  scroll-behavior: auto;
}

.c-travel-route-card--origin {
  margin-bottom: 0;
}

.c-travel-route-card__body {
  padding: 12px;
}

.c-travel-route-card__head {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.c-travel-route-card--origin-card .c-travel-route-card__head {
  grid-template-columns: auto 1fr auto;
}

.c-travel-route-card__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.c-travel-route-card__move {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.c-travel-route-card__move-btn,
.c-travel-route-card__edit {
  border: none;
  background: #f5f5f5;
  color: #666;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.c-travel-route-card__move-btn:hover:not(:disabled),
.c-travel-route-card__edit:hover {
  background: #ebebeb;
  color: #333;
}

.c-travel-route-card__move-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.c-travel-route-card__edit:hover {
  color: var(--brand-color, #0077c8);
}


.c-route-sortable {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding-left: 0;
  border-left: none;
}

.c-route-sortable .c-travel-route-card {
  position: relative;
  margin-bottom: 10px;
}

.c-route-sortable .c-travel-route-card:last-child {
  margin-bottom: 0;
}

.c-route-drop-indicator {
  height: 4px;
  margin: 4px 0;
  border-radius: 999px;
  background: var(--brand-color, #0077c8);
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.18);
  pointer-events: none;
}

.c-travel-route-card.is-drop-target {
  outline: 2px dashed rgba(0, 119, 200, 0.45);
  outline-offset: 2px;
}

.c-travel-route-card__drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  border: 1px dashed #ddd;
  background: #fafafa;
  color: #999;
  flex-shrink: 0;
  pointer-events: none;
}

.c-travel-route-card__drag i {
  font-size: 14px;
}

.c-travel-route-card--sortable:hover {
  border-color: #c5d9e8;
  box-shadow: 0 4px 16px rgba(45, 138, 184, 0.12);
}

.c-travel-route-card--sortable:hover .c-travel-route-card__drag {
  border-color: #b8d4e8;
  color: #666;
  background: #f3f8fb;
}

.c-edit-location__lead {
  margin: 0 0 18px;
  color: #666;
  font-size: 14px;
}

.c-edit-location-form__hero,
.c-map-destination-panel__hero {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: #000;
}

.c-edit-location-form__hero::before,
.c-map-destination-panel__hero::before {
  content: '';
  display: block;
  padding-top: 56.25%;
}

.c-edit-location-form__hero img,
.c-map-destination-panel__hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #111;
  z-index: 3;
}

.c-edit-location-form__hero img:not([src]),
.c-edit-location-form__hero img[src=""],
.c-map-destination-panel__hero img:not([src]),
.c-map-destination-panel__hero img[src=""] {
  opacity: 0;
}

.c-edit-location-form__hero.is-loading,
.c-map-destination-panel__hero.is-loading {
  background: linear-gradient(135deg, #0d4a7a 0%, #1a6b9a 45%, #0a3558 100%);
}

.c-edit-location-form__hero-video,
.c-map-destination-panel__hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  z-index: 2;
}

.c-edit-location-form__hero-video[hidden],
.c-map-destination-panel__hero-video[hidden],
.c-edit-location-form__hero-youtube[hidden],
.c-map-destination-panel__hero-youtube[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.c-map-destination-panel__hero.is-media-mode img,
.c-edit-location-form__hero.is-media-mode img {
  z-index: 1;
}

.c-edit-location-form__hero-youtube,
.c-map-destination-panel__hero-youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  z-index: 2;
}

.c-edit-location-form__content {
  padding: 24px;
  overflow: visible;
}

.c-edit-location-form__nights {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-edit-location-form__label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.c-edit-location-form__media-hint {
  margin: -4px 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: #777;
}

.c-nights-field {
  position: relative;
  z-index: 30;
}

.c-nights-field__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.c-nights-field__trigger i {
  color: #888;
  font-size: 12px;
}

.c-nights-field__panel {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 2500;
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: max(100%, 188px);
  width: max-content;
  max-width: min(240px, calc(100vw - 24px));
  max-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.c-nights-field__option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: #222;
  line-height: 1.35;
  white-space: nowrap;
  border-radius: 8px;
}

.c-nights-field__option:hover,
.c-nights-field__option.is-active {
  background: #f3f8fb;
}

.c-edit-location-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.c-edit-location-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.c-travel-route-card__thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #fff;
}

.c-travel-route-card__thumb--editable {
  cursor: pointer;
}

.c-travel-route-card__thumb--editable:hover {
  box-shadow: 0 0 0 2px rgba(75, 163, 208, 0.35);
}

.c-travel-route-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-travel-route-card__thumb span,
.c-travel-route-card__order {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c-travel-route-card__info {
  min-width: 0;
}

.c-travel-route-card__badge-inline {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--checkit-accent, #c9953a);
}

.c-travel-route-card--origin-card .c-travel-route-card__badge-inline {
  background: var(--checkit-sky, #4ba3d0);
}

.c-travel-route-card--end .c-travel-route-card__badge-inline {
  background: #76ce58;
}

.c-travel-route-card__head h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
  color: #222;
}

.c-travel-route-card__head p {
  margin: 0;
  font-size: 12px;
  color: #777;
}

.c-travel-route-card__date {
  margin-top: 6px !important;
  color: #555 !important;
}

.c-travel-route-card__remove {
  border: none;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
}

.c-travel-route-card__remove:hover {
  color: #c0392b;
}

.c-travel-route-card__nights {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.c-travel-route-card__nights-select {
  min-width: 148px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  color: #222;
  background: #fafafa;
  cursor: pointer;
}

.c-route-leg {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px 18px;
  padding: 8px 0 8px 14px;
  border-left: 2px dotted #d5d5d5;
  color: #888;
  font-size: 12px;
  font-weight: 600;
}

.c-route-leg.is-included {
  color: #3a8f3a;
}

.c-route-leg.is-included i {
  color: #3a8f3a;
}

.c-route-services {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.c-route-service {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.c-route-service:last-child {
  border-bottom: 0;
}

.c-route-service.is-off .c-route-service__label {
  color: #999;
}

.c-route-service__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.c-route-service__icon--hotel {
  background: #fff4e5;
  color: #c77700;
}

.c-route-service__icon--transport {
  background: #eef3f7;
  color: #5b6770;
}

.c-route-service__icon--extras {
  background: #eef7ee;
  color: #3a8f3a;
}

.c-route-service__body {
  min-width: 0;
}

.c-route-service__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.c-route-service__nights {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 12px;
  color: #666;
}

.c-route-service__nights.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.c-route-service__nights-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fafafa;
  color: #333;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.c-route-service__nights-value strong {
  font-size: 14px;
  color: #222;
}

.c-route-service__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.c-route-service__toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.c-route-service__switch {
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d7d7d7;
  transition: background 0.2s ease;
  position: relative;
}

.c-route-service__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.c-route-service__toggle input:checked + .c-route-service__switch {
  background: #3cb371;
}

.c-route-service__toggle input:checked + .c-route-service__switch::after {
  transform: translateX(20px);
}

.c-route-transfer-vehicles {
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px dashed #e5e7eb;
}

.c-route-transfer-vehicles.is-collapsed {
  display: none;
}

.c-route-transfer-vehicles__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  margin: 8px 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.c-route-transfer-vehicles__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.c-route-transfer-chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 11px;
  cursor: pointer;
}

.c-route-transfer-chip.is-active {
  background: #0077c8;
  border-color: #0077c8;
  color: #fff;
}

.c-route-service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.c-route-service-cards.is-collapsed {
  display: none;
}

.c-route-service-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 118px;
  padding: 10px 12px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.c-route-service-card.is-active {
  border-color: #3cb371;
  background: #f3fbf5;
  color: #2f7a2f;
}

.c-route-service-card i {
  font-size: 14px;
}

.c-nights-picker {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 20px;
}

.c-nights-picker[hidden] {
  display: none !important;
}

.c-nights-picker__box {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

.c-nights-picker__preview {
  width: 100%;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #dce9f2, #eef3f7);
}

.c-nights-picker__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-nights-picker__box h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.c-nights-picker__box p {
  margin: 0 0 16px;
  color: #555;
}

.c-nights-picker__select-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 600;
}

.c-nights-picker__select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.c-nights-picker__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.c-map-marker {
  background: transparent;
  border: none;
}

.c-map-photo-marker-wrap {
  background: transparent;
  border: none;
}

.c-map-photo-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  text-align: center;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.c-map-photo-marker__photo {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.c-map-photo-marker__photo:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.c-map-photo-marker.is-origin .c-map-photo-marker__photo {
  border-color: var(--checkit-sky, #4ba3d0);
}

.c-map-photo-marker.is-end .c-map-photo-marker__photo {
  border-color: #76ce58;
}

.c-map-photo-marker__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-map-photo-marker__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--checkit-accent, #c9953a);
  color: #1a1408;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.c-map-photo-marker.is-origin .c-map-photo-marker__badge {
  background: var(--checkit-sky, #4ba3d0);
  color: #fff;
}

.c-map-photo-marker.is-end .c-map-photo-marker__badge {
  background: #76ce58;
  color: #fff;
  font-size: 9px;
}

.c-map-photo-marker__pointer {
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid #fff;
  margin-top: -1px;
}

.c-map-photo-marker__label {
  margin-top: 4px;
  max-width: 92px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  color: #222;
  text-shadow: 0 1px 0 #fff, 0 0 6px rgba(255, 255, 255, 0.9);
}

.c-map-photo-marker__label strong {
  display: block;
  font-size: 10px;
}

.c-map-photo-marker__label small {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  font-weight: 600;
  color: #555;
  white-space: normal;
}

.c-map-plane-marker {
  background: transparent;
  border: none;
}

.c-map-plane-marker__inner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ba3d0 0%, #2d8ab8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(45, 138, 184, 0.45);
  border: 2px solid #fff;
  font-size: 17px;
  will-change: transform;
  animation: checkit-plane-pulse 1.6s ease-in-out infinite;
}

@keyframes checkit-plane-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(45, 138, 184, 0.45); }
  50% { box-shadow: 0 6px 24px rgba(45, 138, 184, 0.7); }
}

.leaflet-overlay-pane path.c-route-line-animated {
  stroke-dasharray: 14 18;
  animation: checkit-route-dash 1.5s linear infinite;
}

@keyframes checkit-route-dash {
  to { stroke-dashoffset: -64; }
}

.c-map-marker__bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--checkit-accent, #c9953a);
  color: #1a1408;
  font-weight: 700;
  font-size: 12px;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.c-map-marker__bubble.is-origin {
  background: var(--checkit-sky, #4ba3d0);
  color: #fff;
}

.c-map-popup img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
  display: block;
}

.c-map-popup strong {
  display: block;
  margin-bottom: 4px;
}

.c-map-popup span {
  font-size: 12px;
  color: #666;
}

.c-text-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px 12px 42px;
  font-size: 15px;
  color: #222;
  background: #fff;
}

.c-text-input--lg {
  min-height: 48px;
}

.c-text-input:focus {
  outline: none;
  border-color: var(--checkit-sky, #4ba3d0);
  box-shadow: 0 0 0 3px rgba(75, 163, 208, 0.15);
}

.c-icon-escort__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.travel-route__travelling {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 8px;
}

.c-route-list__input--destination.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.c-route-list__input--destination.is-disabled .c-route-list__label::after {
  content: ' (primero elija origen)';
  font-weight: 400;
  color: #888;
  font-size: 12px;
}

.c-trip-planner__footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 20px;
  padding: 16px 4px 8px;
  border-top: 1px solid #e8edf2;
  background: #fff;
}

.page-travel-map #draft-route-visual,
.page-travel-map #draft-save-status {
  display: none !important;
}

.page-travel-map .c-trip-save-bar {
  margin-bottom: 8px;
  padding: 10px 12px;
  gap: 8px;
}

.page-travel-map .c-trip-save-bar__name strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}

.page-travel-map .c-trip-planner__footer {
  padding: 16px 4px 12px;
}

.page-travel-map .c-trip-planner__continue {
  min-height: 48px;
}

.c-trip-planner__continue {
  width: 100%;
  border: none;
  border-radius: 0;
  min-height: 54px;
  font-size: 16px;
  font-weight: 700;
  background: #76ce58;
  color: #fff;
  cursor: pointer;
}

.c-trip-planner__continue:hover {
  background: #68bd4c;
}

.c-trip-planner__continue:disabled {
  background: #b8ddb0;
  cursor: not-allowed;
}

.c-trip-continue-hint {
  margin: 8px 4px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #5c6b7a;
}

.c-trip-planner__save-order {
  width: 100%;
  border: none;
  border-radius: 0;
  min-height: 48px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  background: #555;
  color: #fff;
  cursor: pointer;
}

.c-trip-planner__save-order:hover {
  background: #444;
}

.c-trip-planner__save-order[hidden] {
  display: none !important;
}

.c-trip-planner__map {
  flex: 1;
  position: relative;
  background: #e8e4dc;
  min-width: 0;
  min-height: 320px;
}

.c-trip-planner__map-canvas {
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.c-trip-planner__map-close {
  display: none;
}

.c-trip-planner__map-controls {
  position: absolute;
  right: 16px;
  bottom: 48px;
  z-index: 500;
}

.c-trip-planner__map-controls button {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  color: #444;
  cursor: pointer;
}

.c-trip-planner__map-controls button:hover {
  background: #f5f5f5;
}

.c-map-destination-panel {
  position: absolute;
  left: var(--destination-dock-inset);
  top: var(--destination-dock-inset);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  width: var(--destination-dock-width);
  max-height: var(--destination-dock-max-height);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  pointer-events: auto;
  transform: none;
}

.c-map-destination-panel__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.c-map-destination-panel.is-add-mode {
  z-index: 1300;
  width: var(--destination-dock-width);
  max-height: var(--destination-dock-max-height);
}

.c-map-destination-panel.is-add-mode .c-map-destination-panel__badge {
  display: none;
}

.c-map-destination-panel.is-add-mode .c-map-destination-panel__body h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.c-map-destination-panel.is-add-mode .c-map-destination-panel__meta {
  margin-bottom: 10px;
  color: #666;
}

.c-map-destination-panel.is-add-mode .c-map-destination-panel__actions {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.c-map-destination-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.c-map-destination-panel[hidden] {
  display: none !important;
}

.c-map-destination-panel__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c-map-destination-panel__info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--brand-color, #0077c8);
  text-decoration: none;
  cursor: pointer;
}

.c-map-destination-panel__info-link:hover {
  text-decoration: underline;
}

.c-map-destination-panel__media-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
}

.c-map-destination-panel__media-note {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #555;
}

.c-map-destination-panel__media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.c-map-destination-panel__media-tools label:not(.c-destination-image-editor__file-label) {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-top: 4px;
}

.c-map-destination-panel__photo-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: #777;
}

.c-map-destination-panel__nights-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.c-map-destination-panel__nights-select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fafafa;
}

.c-map-destination-panel__prefs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 0 4px;
  border-top: 1px solid #eee;
}

.c-map-destination-panel__prefs-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #222;
}

.c-map-destination-panel__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

.c-map-destination-panel__field select,
.c-map-destination-panel__notes {
  width: 100%;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #222;
}

.c-map-destination-panel__field select {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fafafa;
}

.c-map-destination-panel__select-wrap {
  width: 100%;
}

.page-travel-map .c-map-destination-panel__select-wrap .c-icon-select-picker,
.page-travel-map .c-map-destination-panel__select-wrap .c-accommodation-type-picker {
  width: 100%;
}

.page-travel-map .c-map-destination-panel__select-wrap .c-icon-select-picker__trigger,
.page-travel-map .c-map-destination-panel__select-wrap .c-accommodation-type-picker__trigger {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
}

.page-travel-map .c-map-destination-panel__select-wrap .c-icon-select-picker__menu,
.page-travel-map .c-map-destination-panel__select-wrap .c-accommodation-type-picker__menu {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

.page-travel-map .c-map-destination-panel__select-wrap .c-icon-select-picker__option,
.page-travel-map .c-map-destination-panel__select-wrap .c-accommodation-type-picker__option {
  color: #334155;
}

.page-travel-map .c-map-destination-panel__select-wrap .c-icon-select-picker__option:hover,
.page-travel-map .c-map-destination-panel__select-wrap .c-icon-select-picker__option.is-selected,
.page-travel-map .c-map-destination-panel__select-wrap .c-accommodation-type-picker__option:hover,
.page-travel-map .c-map-destination-panel__select-wrap .c-accommodation-type-picker__option.is-selected {
  background: rgba(0, 119, 200, 0.1);
  color: #0077c8;
}

.c-map-destination-panel__notes {
  min-height: 72px;
  resize: vertical;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.c-map-destination-panel__notes:focus,
.c-map-destination-panel__field select:focus {
  outline: none;
  border-color: var(--brand-color, #0077c8);
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.12);
}

.c-map-destination-panel__prefs .c-icon-select-picker__menu.is-fixed {
  z-index: 10050;
}

.c-map-destination-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.c-map-destination-panel__edit-tools[hidden],
.c-map-destination-panel__media-tools[hidden] {
  display: none !important;
}

.c-map-destination-panel__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.c-map-destination-panel__body {
  padding: 14px 16px 16px;
}

.c-map-destination-panel__body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: #222;
}

.c-map-destination-panel__meta {
  margin: 0 0 14px;
  font-size: 13px;
  color: #666;
}

.c-map-destination-panel__pointer {
  display: none;
}

.c-map-destination-panel__pointer::after {
  display: none;
}

.c-destination-image-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-destination-image-editor label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

.c-destination-image-editor__preview {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
  margin-bottom: 4px;
}

.c-destination-image-editor__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-destination-image-editor__file-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background: #fafafa;
  cursor: pointer;
  font-size: 13px;
  color: #444;
  transition: border-color 0.15s, background 0.15s;
}

.c-destination-image-editor__file-label:hover {
  border-color: var(--brand-color, #0077c8);
  background: #f5faff;
}

.c-edit-location-form__image {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px;
  margin: 0;
}

.c-edit-location-form__image legend {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
}

.c-button--sm {
  padding: 8px 14px;
  font-size: 13px;
}

.c-travel-compose-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.c-modal[data-modal-id="compose-trip"].is-active {
  align-items: flex-start;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.c-modal[data-modal-id="compose-trip"] .c-modal__wrapper {
  max-width: min(560px, calc(100vw - 32px));
  max-height: min(92dvh, 720px);
  margin: auto 0;
}

.c-modal[data-modal-id="compose-trip"] .c-modal__container--compose-trip {
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 720px);
  border: 1px solid #e3e9ef;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.c-modal[data-modal-id="compose-trip"] .c-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 28px 28px 8px;
}

.c-modal[data-modal-id="compose-trip"] .c-travel-compose-form__header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf2;
}

.c-modal[data-modal-id="compose-trip"] .c-travel-compose-form__header h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.c-modal[data-modal-id="compose-trip"] .c-travel-compose-form__header p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5c6570;
}

.c-travel-compose-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.c-travel-compose-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.c-travel-compose-form__field--full {
  grid-column: 1 / -1;
}

.c-travel-compose-form__field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.01em;
}

.c-search-field--compose {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid #c5ced8;
  border-radius: 10px;
  padding: 0 14px;
  min-height: 52px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.c-search-field--compose:hover {
  border-color: #9fb0c3;
  background: #fafcff;
}

.c-search-field--compose:focus-within {
  border-color: var(--brand-color, #0077c8);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 119, 200, 0.14);
}

.c-search-field--compose .c-text-input {
  width: 100%;
  border: none;
  padding: 0;
  box-shadow: none;
  background: transparent;
  min-height: 0;
}

.c-search-field--compose .c-text-input:focus {
  outline: none;
  box-shadow: none;
}

.c-search-field--compose input,
.c-search-field--compose select,
.c-search-field--compose button.c-search-field__trigger {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.c-search-field--compose select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234b5563' d='M1.5 1.5 6 6.5 10.5 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 18px;
}

.c-search-field--compose input {
  cursor: text;
}

.c-search-field--compose input::placeholder {
  color: #8b95a5;
  font-weight: 400;
}

.c-search-field--compose i {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 119, 200, 0.1);
  color: var(--brand-color, #0077c8);
  font-size: 15px;
}

.c-travel-compose-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding: 20px 0 12px;
  border-top: 1px solid #e8edf2;
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, #fff 28%);
}

.c-modal[data-modal-id="compose-trip"] .c-travel-compose-form__actions .c-button {
  min-width: 112px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
}

.c-modal[data-modal-id="compose-trip"] .c-travel-compose-form__actions .c-button--outline {
  border-color: #c5ced8;
  color: #374151;
  background: #fff;
}

.c-modal[data-modal-id="compose-trip"] .c-travel-compose-form__actions .c-button--outline:hover {
  border-color: #9fb0c3;
  background: #f8fafc;
}

@media (max-width: 560px) {
  .c-modal[data-modal-id="compose-trip"] .c-modal__wrapper {
    max-height: min(94dvh, 720px);
  }

  .c-modal[data-modal-id="compose-trip"] .c-modal__container--compose-trip {
    max-height: min(94dvh, 720px);
  }

  .c-modal[data-modal-id="compose-trip"] .c-modal__body {
    padding: 22px 18px 6px;
  }

  .c-travel-compose-form__grid {
    grid-template-columns: 1fr;
  }

  .c-travel-compose-form__actions {
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .c-modal[data-modal-id="compose-trip"] .c-travel-compose-form__actions .c-button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }
}

.c-modal__container--wide {
  max-width: 560px;
}

.c-modal__container--form {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 720px);
  overflow: hidden;
}

.c-modal__container--edit-location {
  overflow: hidden;
}

.c-modal__container--edit-location > .c-modal__body--scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0;
}

.c-modal__container--form > .c-modal__body--scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  max-height: none;
}

.c-edit-location-form__actions {
  position: static;
  z-index: auto;
  margin-top: 16px;
  padding-top: 16px;
  padding-bottom: 4px;
  border-top: 1px solid #eee;
  background: #fff;
}

.c-modal__container--small {
  max-width: 400px;
}

.page-travel-map .c-modal.c-modal--map-dock[data-modal-id="edit-location"] {
  position: absolute;
  inset: 0;
  z-index: 1200;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  pointer-events: none;
}

.page-travel-map .c-modal.c-modal--map-dock[data-modal-id="edit-location"] .c-modal__backmask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
  pointer-events: auto;
}

.page-travel-map .c-modal.c-modal--map-dock[data-modal-id="edit-location"] .c-modal__wrapper {
  position: absolute;
  left: var(--destination-dock-inset);
  top: var(--destination-dock-inset);
  width: var(--destination-dock-width);
  max-height: var(--destination-dock-max-height);
  height: auto;
  margin: 0;
  max-width: none;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.page-travel-map .c-modal.c-modal--map-dock[data-modal-id="edit-location"] .c-modal__container--edit-location {
  flex: 1 1 auto;
  min-height: 0;
  max-height: var(--destination-dock-max-height);
  height: auto;
  overflow: hidden;
  box-shadow: none;
  border-radius: 14px;
}

.page-travel-map .c-modal.c-modal--map-dock[data-modal-id="edit-location"] .c-modal__container--form {
  max-height: 100%;
}

.page-travel-map .c-modal.c-modal--map-dock[data-modal-id="edit-location"] .c-modal__body--scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.page-travel-map .c-modal.c-modal--map-dock[data-modal-id="location-info"] {
  z-index: 1350;
}

.page-travel-map .c-modal.c-modal--map-dock[data-modal-id="location-info"] .c-modal__wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 24px));
  max-height: min(78vh, calc(100% - 24px));
  height: auto;
  margin: 0;
  max-width: none;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.page-travel-map .c-modal.c-modal--map-dock[data-modal-id="location-info"] .c-modal__container {
  max-height: min(78vh, calc(100% - 24px));
  overflow: hidden;
}

.page-travel-map .c-modal.c-modal--map-dock[data-modal-id="location-info"] .c-modal__body--scroll {
  padding: 20px 24px 24px;
}

.c-location-info__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 16px;
  background: #000;
}

.c-location-info__hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #000;
}

.c-location-info__lead {
  margin: 0 0 12px;
  color: #666;
  font-size: 14px;
}

.c-location-info__content {
  margin: 0 0 16px;
  color: #333;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

.c-location-info__source {
  margin: 0;
  font-size: 12px;
  color: #888;
}

.c-location-info__source a {
  color: var(--brand-color, #0077c8);
}

.leaflet-container {
  font-family: inherit;
}

@media (max-width: 900px) {
  .c-trip-planner {
    flex-direction: column;
  }

  .c-trip-dates__head {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .c-trip-dates__bar-info {
    padding-right: 4px;
  }

  .c-trip-dates__bar-edit-hint {
    margin-left: 0;
  }

  .c-trip-planner__main {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    order: 2;
  }

  .c-trip-planner__map {
    order: 1;
    flex: 0 0 clamp(250px, 42vh, 420px);
    width: 100%;
    min-height: 250px;
  }

  .c-trip-planner__map-canvas {
    min-height: 250px;
  }
}

/* Portada/media: solo administrador. Noches: disponibles para todos. */
.page-travel-map:not(.page-travel-map--admin-destinations) .c-map-destination-panel__media-tools,
.page-travel-map:not(.page-travel-map--admin-destinations) .c-edit-location-form__image {
  display: none !important;
}

/* Al agregar destino: el cuadro arranca en encabezado + noches (sin portada que empuje el scroll). */
.page-travel-map:not(.page-travel-map--admin-destinations) .c-map-destination-panel.is-add-mode .c-map-destination-panel__hero {
  display: none;
}

.c-map-destination-panel.is-add-mode .c-map-destination-panel__body {
  padding: 14px 16px 16px;
}

.c-map-destination-panel.is-add-mode .c-map-destination-panel__nights-wrap {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.c-map-destination-panel.is-add-mode .c-map-destination-panel__nights-wrap span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #334155;
}

.c-map-destination-panel.is-add-mode .c-map-destination-panel__info-link {
  display: none;
}
