/* ZAEREEN — Holiday planner (holidays/planner/ and holidays/planner/results).
 *
 * Loaded after planner.css, whose zp- form, itinerary and results styles the
 * holiday planner shares. Only what is the holiday planner's own is here:
 * the Domestic / International switch, a place's nights, the travellers,
 * and on the results page the price, the optional experiences and the
 * packages that match.
 */

/* ------------------------------------------------- Domestic / International --- */
.hp-scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.hp-scope-opt {
    position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer;
    padding: 16px 18px; border: 1.5px solid var(--z-line); border-radius: 16px; background: var(--z-surface);
    transition: border-color .15s, background .15s, transform .15s;
}
.hp-scope-opt:hover { border-color: var(--z-gold); transform: translateY(-1px); }
.hp-scope-opt input { position: absolute; opacity: 0; pointer-events: none; }
.hp-scope-opt:focus-within { outline: 2px solid var(--z-gold); outline-offset: 2px; }
.hp-scope-ico {
    width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center;
    background: var(--z-gold-wash); color: var(--z-gold-deep);
}
.hp-scope-opt.is-on .hp-scope-ico { background: var(--z-green); color: var(--z-gold-light); }
.hp-scope-opt b { display: block; font-weight: 700; color: var(--z-ink); font-size: 1.08rem; }
.hp-scope-opt small { color: var(--z-ink-3); font-size: .9rem; }
.hp-scope-opt.is-on { background: var(--z-green-soft); border-color: var(--z-green); }
.hp-scope-opt.is-on b { color: var(--z-green); }
.hp-popular .zp-chip-group[hidden] { display: none; }

/* -------------------------------------------------------------- the places --- */
.hp-stop-row { grid-template-columns: minmax(0, 1fr) auto 58px; }
.hp-stepper {
    display: inline-flex; align-items: stretch; border: 1.5px solid var(--z-line); border-radius: 14px;
    background: var(--z-surface); overflow: hidden;
}
.hp-stepper button {
    width: 40px; border: 0; background: none; cursor: pointer; font: 600 1.3rem var(--z-body); color: var(--z-green);
}
.hp-stepper button:hover:not(:disabled) { background: var(--z-green-soft); }
.hp-stepper button:disabled { color: var(--z-ink-3); cursor: default; opacity: .5; }
.hp-stepper output, .hp-stepper input {
    min-width: 46px; display: grid; place-items: center; text-align: center; font-weight: 700; color: var(--z-ink); font-size: 1.05rem;
}
.hp-stepper output { display: flex; align-items: center; justify-content: center; gap: 1px; }
.hp-stepper output small { font-size: .78rem; color: var(--z-ink-3); }
.hp-stepper input { width: 52px; border: 0; background: none; -moz-appearance: textfield; font-family: inherit; }
.hp-stepper input::-webkit-outer-spin-button, .hp-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hp-stop .zp-stop-city i { font-style: normal; text-transform: none; letter-spacing: 0; }
.hp-total { margin: 12px 0 0; color: var(--z-ink-2); font-size: .95rem; }
.hp-total b { color: var(--z-green); }
.hp-nojs { display: grid; gap: 10px; }
.hp-nojs[hidden] { display: none; }
.hp-nojs select { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--z-ink); padding: 4px 0; }
.zp-suggest-list li.is-empty { color: var(--z-ink-3); cursor: default; }

/* ------------------------------------------------------------- travellers --- */
.hp-pax { display: grid; gap: 12px; }
.hp-count {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 12px 10px 16px; border: 1.5px solid var(--z-line); border-radius: 14px; background: var(--z-surface);
}
.hp-count b { display: block; color: var(--z-ink); font-weight: 600; }
.hp-count small { color: var(--z-ink-3); font-size: .88rem; }
.hp-count .hp-stepper { border-color: var(--z-line-soft); }

.hp-styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- results --- */
.hp-pin span { font-weight: 700; }
.zp-tags .is-best-value { background: #b45309; color: #fffaf0; }
.zp-tags .is-premium { background: var(--z-green); color: var(--z-gold-light); }
.hp-price-tag { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.hp-price-tag strong { font: 700 1.45rem var(--z-body); color: var(--z-green); }
.hp-price-tag small { color: var(--z-ink-3); font-size: .88rem; }

.hp-block h2.hp-section-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 1.25rem var(--z-body); color: var(--z-green); }
.hp-block { margin: 22px; padding: 22px 24px; border: 1px solid var(--z-line-soft); border-radius: 18px; background: var(--z-surface); }

.hp-price { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hp-price th, .hp-price td { padding: 10px 4px; border-bottom: 1px solid var(--z-line-soft); text-align: left; }
.hp-price th { font-weight: 500; color: var(--z-ink-2); }
.hp-price td { text-align: right; font-weight: 600; color: var(--z-ink); white-space: nowrap; }
.hp-price small { display: block; color: var(--z-ink-3); font-size: .84rem; font-weight: 400; }
.hp-price tfoot th, .hp-price tfoot td { border-bottom: 0; padding-top: 14px; font-size: 1.08rem; color: var(--z-green); font-weight: 700; }
.hp-price-note { margin: 12px 0 0; color: var(--z-ink-3); font-size: .86rem; }

.hp-extras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.hp-extras li {
    display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--z-line-soft); border-radius: 14px; background: var(--z-surface-2);
}
.hp-extras img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: var(--z-teal-wash); }
.hp-extras b { display: block; font-weight: 600; color: var(--z-ink); font-size: .95rem; line-height: 1.3; }
.hp-extras small { color: var(--z-ink-3); font-size: .85rem; }

.hp-packages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.hp-packages a.hp-pkg {
    display: grid; height: 100%; border: 1px solid var(--z-line-soft); border-radius: 16px; overflow: hidden; background: var(--z-surface);
    color: var(--z-ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
.hp-packages a.hp-pkg:hover { transform: translateY(-2px); border-color: var(--z-gold); box-shadow: var(--z-shadow); color: var(--z-ink); }
.hp-pkg img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--z-teal-wash); display: block; }
.hp-pkg span { display: grid; gap: 4px; padding: 12px 14px 14px; }
.hp-pkg b { font-weight: 600; line-height: 1.35; }
.hp-pkg small { color: var(--z-ink-3); font-size: .86rem; }
.hp-pkg em { font-style: normal; color: var(--z-teal); font-weight: 600; font-size: .9rem; }

.zp-ev-more .hp-ev-detail { margin: 0; color: var(--z-ink-2); font-size: .93rem; line-height: 1.55; }

/* ------------------------------------------------------------- responsive --- */
@media (max-width: 860px) {
    .hp-styles { grid-template-columns: minmax(0, 1fr); }
    .hp-block { margin: 14px 10px; padding: 18px 16px; }
}
@media (max-width: 560px) {
    .hp-scope { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .hp-stop-row { grid-template-columns: minmax(0, 1fr) 52px; }
    .hp-stop-row .hp-nights { grid-column: 1; grid-row: 2; justify-self: start; }
    .hp-stop-row .zp-bin { grid-column: 2; grid-row: 1; }
}
@media print {
    .hp-extras img, .hp-pkg img { display: none; }
}
