 .esp-planner { padding: clamp(42px, 5vw, 68px) 0 clamp(68px, 7vw, 86px); }
.esp-planner__header { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr); align-items: end; gap: 46px; margin-bottom: 30px; }
.esp-planner__header .section-kicker { grid-column: 1 / -1; margin-bottom: -28px; color: var(--orange-dark); }
.esp-planner__header h2 { max-width: 780px; margin: 0; font-size: clamp(2.6rem, 4.8vw, 4.6rem); }
.esp-planner__header > p:last-child { max-width: 540px; margin: 0; color: #5f5951; }

.esp-planner__progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; margin-bottom: 22px; border: 1px solid #d9d2c8; border-radius: 16px; background: #fff; box-shadow: 0 9px 25px rgba(31,45,38,.05); }
.esp-planner__progress button { position: relative; display: flex; min-width: 0; min-height: 68px; align-items: center; gap: 9px; padding: 13px 32px 13px 12px; border: 0; border-right: 1px solid #e2dcd3; border-bottom: 4px solid transparent; background: #fff; color: #777169; font-size: .72rem; font-weight: 750; text-align: left; }
.esp-planner__progress button:last-child { border-right: 0; }
.esp-planner__progress button span { color: #aaa39a; font-family: var(--sans); font-size: .8rem; font-weight: 600; }
.esp-planner__progress button[aria-current='step'] { border-bottom-color: var(--orange); color: var(--ink); }
.esp-planner__progress button[aria-current='step'] span { color: var(--orange-dark); }
.esp-planner__progress button:disabled { cursor: default; opacity: .48; }
.esp-planner__progress button.has-selection { color: #244c39; opacity: 1; }
.esp-planner__progress button.has-selection::after { position: absolute; right: 10px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #2f6549; color: #fff; content: '✓'; font-size: .66rem; font-weight: 900; }

.esp-planner__layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; align-items: start; gap: 26px; }
.esp-planner__form { min-width: 0; min-height: 590px; padding: clamp(28px, 3.8vw, 46px); border: 1px solid #d9d2c8; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(49, 35, 20, .08); }
.esp-planner fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.esp-planner fieldset[hidden] { display: none !important; }
.esp-planner legend { max-width: 800px; margin-bottom: 10px; font-family: var(--sans); font-size: clamp(1.85rem, 3vw, 2.8rem); font-weight: 750; line-height: 1.08; letter-spacing: -.025em; }
.esp-field-help { max-width: 720px; margin-bottom: 30px; color: #625c54; }
.esp-step-intro { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.esp-step-intro a { flex: 0 0 auto; color: var(--orange-dark); font-size: .76rem; font-weight: 750; }
.esp-planner-search { display: block; max-width: 420px; margin: -8px 0 22px; }
.esp-planner-search span { display: block; margin-bottom: 7px; color: #625d56; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.esp-planner-search input { width: 100%; min-height: 45px; padding: 10px 13px; border: 1px solid #cec7bc; background: #fff; }

.esp-fields { display: grid; gap: 20px; }
.esp-fields--dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.esp-fields--dates label:last-child { grid-column: 1 / -1; }
.esp-fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.esp-fields--contact { padding-top: 32px; margin-top: 34px; border-top: 1px solid #ddd6cd; }
.esp-fields label, .esp-full-field { display: block; }
.esp-fields label > span, .esp-full-field > span { display: block; margin-bottom: 7px; color: #625d56; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.esp-fields input, .esp-fields select, .esp-full-field textarea { width: 100%; min-height: 49px; padding: 10px 12px; border: 1px solid #cec7bc; border-radius: 0; outline: 0; background: #fff; }
.esp-fields input:focus, .esp-fields select:focus, .esp-full-field textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(244, 116, 32, .13); }
.esp-full-field { margin-top: 22px; }
.esp-phone-field .iti { display: block; width: 100%; }
.esp-phone-field .iti input { width: 100%; min-height: 49px; }
.esp-phone-field .iti__selected-country { border-right: 1px solid #ddd6cd; background: #f8f5f0; }
.esp-phone-field .iti__flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.esp-phone-field .iti__country-list { z-index: 50; border-color: #d7d0c7; box-shadow: 0 18px 35px rgba(31,45,38,.16); }

.esp-plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.esp-plan-card { position: relative; min-width: 0; cursor: pointer; }
.esp-plan-card > input { position: absolute; opacity: 0; pointer-events: none; }
.esp-plan-card__surface { display: flex; height: 100%; min-height: 190px; flex-direction: column; overflow: hidden; border: 1px solid #d7d0c7; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.esp-plan-card:hover .esp-plan-card__surface { border-color: #a89e93; transform: translateY(-2px); }
.esp-plan-card > input:focus-visible + .esp-plan-card__surface { outline: 2px solid var(--ink); outline-offset: 3px; }
.esp-plan-card > input:checked + .esp-plan-card__surface { border-color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.esp-plan-card.is-selected::after { position: absolute; z-index: 3; top: 13px; right: 13px; display: grid; width: 32px; height: 32px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: var(--orange-dark); color: #fff; content: '✓'; font-size: .86rem; font-weight: 900; box-shadow: 0 5px 14px rgba(31,45,38,.2); }
.esp-plan-card__media { display: block; aspect-ratio: 1.8; overflow: hidden; background: #ddd3c5; }
.esp-plan-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.esp-plan-card:hover .esp-plan-card__media img { transform: scale(1.025); }
.esp-plan-card__body { display: flex; min-height: 132px; flex: 1; flex-direction: column; padding: 17px; }
.esp-plan-card__body > strong { font-family: var(--sans); font-size: 1.12rem; font-weight: 750; line-height: 1.2; }
.esp-plan-card__body > small { display: -webkit-box; margin-top: 7px; overflow: hidden; color: #686159; font-size: .72rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.esp-plan-card__footer { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-top: 13px; margin-top: auto; border-top: 1px solid #e2dcd4; }
.esp-plan-card__footer b { color: var(--orange-dark); font-size: .72rem; }
.esp-plan-card__footer em { color: #6c665f; font-size: .65rem; font-style: normal; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.esp-plan-card > input:checked + .esp-plan-card__surface .esp-plan-card__footer em { color: var(--orange-dark); }
.esp-plan-card--none .esp-plan-card__surface { min-height: 150px; justify-content: center; background: #f7f3ed; }
.esp-plan-card--none .esp-plan-card__body { min-height: 0; justify-content: center; }
.esp-plan-card--plain .esp-plan-card__surface { min-height: 150px; }
.esp-plan-card__surface { border-radius: 17px; box-shadow: 0 10px 24px rgba(31,45,38,.06); }
.esp-plan-card > input:checked + .esp-plan-card__surface { box-shadow: inset 0 0 0 2px var(--orange), 0 15px 30px rgba(31,45,38,.11); }
.esp-plan-card__meta { display: flex; flex-wrap: wrap; gap: 7px 14px; min-height: 17px; margin-bottom: 10px; color: #5f6862; font-size: .64rem; font-weight: 750; }
.esp-plan-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.esp-plan-card__meta span::before { width: 14px; height: 14px; background: var(--orange-dark); content: ''; }
.esp-plan-card__meta .is-duration::before { -webkit-mask: url('clock.svg') center / contain no-repeat; mask: url('clock.svg') center / contain no-repeat; }
.esp-plan-card__meta .is-group::before { -webkit-mask: url('users.svg') center / contain no-repeat; mask: url('users.svg') center / contain no-repeat; }
.esp-plan-card__body > strong { font-size: clamp(1.42rem, 2.2vw, 1.72rem); letter-spacing: -.015em; }
.esp-plan-card__body > small { -webkit-line-clamp: 2; }
.esp-plan-card__footer { align-items: center; }
.esp-plan-card__footer b { display: block; min-width: 0; color: #5d655f; font-weight: 750; }
.esp-plan-card__footer b small, .esp-plan-card__footer b i { display: block; font-size: .58rem; font-style: normal; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.esp-plan-card__footer b strong { display: block; margin: 2px 0; color: var(--orange-dark); font-family: var(--sans); font-size: 1.4rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.esp-plan-card__footer b i { color: #42544a; letter-spacing: 0; text-transform: none; }
.esp-plan-card__footer > em { padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.esp-plan-card__detail { display: inline-flex; width: fit-content; min-height: 36px; align-items: center; padding: 0; margin-top: 10px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--orange-dark); cursor: pointer; font-size: .68rem; font-weight: 850; text-decoration: none; }
.esp-plan-card__detail:hover { text-decoration: underline; }

.esp-plan-card--hotel { display: block; height: auto; align-self: start; }
.esp-plan-card--options { display: block; height: auto; align-self: start; }
.esp-plan-card--hotel .esp-plan-card__surface { height: auto; }
.esp-plan-card--options .esp-plan-card__surface { height: auto; }
.esp-plan-card--hotel > input { position: absolute; opacity: 0; pointer-events: none; }
.esp-plan-card--hotel > input:focus-visible + .esp-plan-card__surface { outline: 2px solid var(--ink); outline-offset: 3px; }
.esp-plan-card--hotel > input:checked + .esp-plan-card__surface { border-color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange), 0 15px 30px rgba(31,45,38,.11); }
.esp-plan-card--hotel > input:not(:checked) ~ .esp-hotel-rooms { display: none; }
.esp-plan-card--options > input:not(:checked) ~ .esp-ticket-options { display: none; }
.esp-hotel-rooms { padding: 17px; border: 1px solid #e0c0aa; border-top: 0; border-radius: 0 0 17px 17px; background: #fff8f3; }
.esp-ticket-options { padding: 17px; border: 1px solid #e0c0aa; border-top: 0; border-radius: 0 0 17px 17px; background: #fff8f3; }
.esp-hotel-rooms > p, .esp-ticket-options > p { margin: 0 0 11px; color: #7c4a31; font-size: .64rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.esp-hotel-room, .esp-ticket-option { position: relative; display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; padding: 11px; border: 1px solid transparent; border-radius: 11px; cursor: pointer; }
.esp-hotel-room:hover, .esp-ticket-option:hover { background: #fff; }
.esp-hotel-room:has(input:checked), .esp-ticket-option:has(input:checked) { border-color: #e3a27b; background: #fff; box-shadow: 0 5px 16px rgba(92,56,34,.07); }
.esp-hotel-room input, .esp-ticket-option input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--orange-dark); }
.esp-hotel-room span, .esp-hotel-room strong, .esp-hotel-room small, .esp-ticket-option span, .esp-ticket-option strong, .esp-ticket-option small { display: block; }
.esp-hotel-room strong, .esp-ticket-option strong { color: #263d31; font-size: .76rem; line-height: 1.3; }
.esp-hotel-room small, .esp-ticket-option small { margin-top: 3px; color: #6f685f; font-size: .66rem; white-space: nowrap; }

.esp-field-error > span:first-child { color: #a93d10; }
.esp-field-error input, .esp-field-error select, .esp-field-error textarea { border-color: #c64816 !important; box-shadow: 0 0 0 3px rgba(198,72,22,.12); }
.esp-plan-grid.esp-field-error { padding: 12px; border: 1px solid #c64816; border-radius: 16px; box-shadow: 0 0 0 3px rgba(198,72,22,.08); }

.esp-checkline { display: flex; align-items: flex-start; gap: 11px; margin-top: 24px; font-size: .8rem; }
.esp-checkline input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--orange); }
.esp-checkline--legal { padding-top: 22px; border-top: 1px solid #ddd6cd; }
.esp-planner__actions { position: sticky; z-index: 12; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0 0; margin-top: 18px; border-top: 1px solid #ded6cb; background: linear-gradient(180deg, rgba(255,255,255,.84), #fff 35%); }
.esp-back { padding: 10px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; font-size: .76rem; font-weight: 750; }
.esp-planner__message { padding-top: 20px; color: #514c45; }
.esp-planner__message strong { color: var(--ink); }
.esp-planner__message a { display: inline-block; margin-top: 10px; color: var(--orange-dark); font-weight: 800; }
.esp-honeypot { position: absolute !important; left: -9999px !important; }
.esp-planner [hidden] { display: none !important; }

.esp-detail-modal-open { overflow: hidden; }
.esp-detail-modal { position: fixed; z-index: 10000; inset: 0; padding: 4vh 4vw; }
.esp-detail-modal[hidden] { display: none !important; }
.esp-detail-modal__backdrop { position: absolute; inset: 0; background: rgba(18, 25, 21, .76); backdrop-filter: blur(5px); }
.esp-detail-modal__panel { position: relative; display: grid; width: min(1500px, 92vw); height: 92vh; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; margin: auto; border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(0, 0, 0, .38); }
.esp-detail-modal__panel header { display: flex; min-width: 0; min-height: 62px; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 16px 10px 22px; border-bottom: 1px solid #ddd6cd; }
.esp-detail-modal__panel header > strong { overflow: hidden; font-family: var(--sans); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.esp-detail-modal__panel header span { display: flex; flex: 0 0 auto; align-items: center; gap: 16px; }
.esp-detail-modal__panel header a { color: var(--orange-dark); font-size: .7rem; font-weight: 800; }
.esp-detail-modal__panel header button { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #d8d0c6; border-radius: 50%; background: #fff; color: #263d31; cursor: pointer; font-size: 1.5rem; line-height: 1; }
.esp-detail-modal__panel iframe { width: 100%; height: 100%; border: 0; background: #fff; }

.esp-itinerary { display: grid; gap: 11px; padding-top: 15px; border-top: 1px solid #d8d1c8; }
.esp-itinerary__day { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 15px; padding: 10px; border: 1px solid #e0dad2; border-radius: 14px; background: #faf9f6; }
.esp-itinerary__day > img { width: 92px; height: 76px; border-radius: 10px; object-fit: cover; }
.esp-itinerary__day > div { min-width: 0; }
.esp-itinerary__day:not(:has(> img)) > div { grid-column: 1 / -1; }
.esp-itinerary__day span { display: block; margin-bottom: 4px; color: var(--orange-dark); font-family: var(--sans); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.esp-itinerary__day strong { display: block; color: #233d30; font-size: .86rem; font-weight: 750; line-height: 1.3; }
.esp-itinerary__day small { display: block; margin-top: 4px; color: #747a75; font-size: .66rem; }

.esp-plan-summary { position: sticky; top: 18px; overflow: hidden; padding: 27px; border: 1px solid #d9d2c8; border-top: 5px solid var(--orange); border-radius: 20px; background: #fff; box-shadow: 0 18px 45px rgba(31,45,38,.09); }
.esp-plan-summary::after { display: block; height: 1px; content: ''; }
.esp-plan-summary .section-kicker { margin-bottom: 18px; }
.esp-plan-summary__facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #d8d1c8; border-bottom: 1px solid #d8d1c8; }
.esp-plan-summary__facts > div { padding: 14px 8px 14px 0; }
.esp-plan-summary__facts > div + div { padding-left: 12px; border-left: 1px solid #d8d1c8; }
.esp-plan-summary__facts span, .esp-plan-summary__total span { display: block; margin-bottom: 3px; color: #777169; font-size: .59rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.esp-plan-summary__facts strong { font-size: .75rem; }
.esp-plan-summary h3 { margin: 22px 0 12px; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.esp-plan-summary__items { color: #625c55; font-size: .76rem; }
.esp-plan-summary__items p { margin: 0; }
.esp-plan-summary__items ul { padding: 0; margin: 0; list-style: none; }
.esp-plan-summary__items li { padding: 10px 0; border-bottom: 1px solid #e4e1dc; line-height: 1.35; }
.esp-plan-summary__sync { min-height: 18px; margin: 13px 0 0; color: #746d65; font-size: .64rem; font-weight: 750; }
.esp-plan-summary__sync.is-success { color: #2f6549; }
.esp-plan-summary__sync.is-error { padding: 9px 11px; border-radius: 9px; background: #fff0e9; color: #a33c16; }
.esp-plan-summary__item { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto 24px; align-items: center; gap: 10px; }
.esp-plan-summary__item > img { width: 54px; height: 48px; border-radius: 9px; object-fit: cover; background: #e7e3dc; }
.esp-plan-summary__item > span, .esp-plan-summary__item strong, .esp-plan-summary__item small { display: block; min-width: 0; }
.esp-plan-summary__item strong { overflow: hidden; color: #233d30; font-size: .72rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.esp-plan-summary__item small { margin-top: 4px; overflow: hidden; color: #737a75; font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.esp-plan-summary__item > b { color: #263d31; font-size: .69rem; white-space: nowrap; }
.esp-plan-summary__remove { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #ddd6cd; border-radius: 50%; background: #fff; color: #7a6f64; cursor: pointer; font-size: 1.05rem; font-weight: 800; line-height: 1; }
.esp-plan-summary__remove:hover { border-color: #c64816; color: #c64816; }
.esp-plan-summary__total { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-top: 20px; margin-top: 18px; border-top: 2px solid var(--ink); }
.esp-plan-summary__total strong { color: var(--orange-dark); font-family: var(--sans); font-size: 1.75rem; font-weight: 800; }
.esp-plan-summary__prices { display: grid; padding-top: 13px; }
.esp-plan-summary__prices > div { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding: 9px 0; }
.esp-plan-summary__prices > div + div { border-top: 1px solid #d8d1c8; }
.esp-plan-summary__prices > .is-deposit { margin-top: 5px; border-top: 2px solid var(--ink); }
.esp-plan-summary__prices > .is-deposit strong { color: var(--orange-dark); font-size: 1.85rem; }
.esp-plan-summary__prices > div:last-child strong { color: var(--ink); font-family: var(--sans); font-size: .9rem; font-weight: 800; }
.esp-plan-summary__note { margin: 17px 0 0; color: #746d65; font-size: .67rem; line-height: 1.5; }

@media (max-width: 1020px) {
	.esp-planner__header { grid-template-columns: 1fr; gap: 24px; }
	.esp-planner__header .section-kicker { grid-column: auto; margin-bottom: -5px; }
	.esp-planner__layout { grid-template-columns: minmax(0, 1fr) 310px; }
}

@media (max-width: 820px) {
	.esp-planner__progress { display: flex; overflow-x: auto; }
	.esp-planner__progress button { min-width: 128px; flex: 0 0 auto; }
	.esp-planner__layout { grid-template-columns: 1fr; }
	.esp-plan-summary { position: static; }
	.esp-planner__actions { bottom: 0; padding: 13px 0 0; }
}

@media (max-width: 620px) {
	.esp-planner { padding: 32px 0 58px; }
	.esp-planner__header { margin-bottom: 28px; }
	.esp-planner__header h2 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
	.esp-planner__form { min-height: 0; padding: 25px 16px; }
	.esp-planner legend { font-size: clamp(1.7rem, 8vw, 2.2rem); }
	.esp-planner__progress button { min-width: 108px; min-height: 60px; padding: 10px 28px 10px 10px; }
	.esp-step-intro { flex-direction: column; gap: 0; }
	.esp-fields--dates, .esp-fields--2, .esp-plan-grid { grid-template-columns: 1fr; }
	.esp-fields--dates label:last-child { grid-column: auto; }
	.esp-plan-card__media { aspect-ratio: 1.7; }
	.esp-plan-card__surface { min-height: 0; }
	.esp-plan-card__body { min-height: 122px; }
	.esp-plan-card__body > strong { font-size: 1.3rem; }
	.esp-hotel-room small, .esp-ticket-option small { white-space: normal; }
	.esp-fields input, .esp-fields select, .esp-full-field textarea { min-width: 0; font-size: 16px; }
	.esp-plan-summary__item { grid-template-columns: 50px minmax(0, 1fr) 24px; }
	.esp-plan-summary__item > b { grid-column: 2; }
	.esp-plan-summary__remove { grid-column: 3; grid-row: 1 / span 2; }
	.esp-planner__actions { align-items: stretch; flex-direction: column-reverse; }
	.esp-planner__actions { bottom: env(safe-area-inset-bottom); padding-bottom: max(4px, env(safe-area-inset-bottom)); }
	.esp-planner__actions .button { width: 100%; }
	.esp-itinerary__day { grid-template-columns: 74px 1fr; }
	.esp-itinerary__day > img { width: 74px; height: 68px; }
	.esp-detail-modal { padding: 0; }
	.esp-detail-modal__panel { width: 100%; height: 100dvh; border-radius: 0; }
	.esp-detail-modal__panel header { min-height: 58px; padding: 8px 10px 8px 14px; }
	.esp-detail-modal__panel header a { display: none; }
	.esp-detail-modal__panel header > strong { font-size: .82rem; }
}
