/* Mount Placeholder tickets — layered on top of /styles/main.css.
   Existing appearance and responsive behavior preserved; rules consolidated. */

/* Page introduction and shared panels */
.tickets-content { max-width: 1200px; margin: 0 auto; }
.ticket-intro { text-align: center; margin: 22px auto 30px; }
.ticket-kicker { color: #b6d5ff; font-size: 14px; text-transform: uppercase; letter-spacing: .24em; font-weight: 700; }
.ticket-panel, .ticket-product { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 38px #020c24a1; }
.ticket-panel { max-width: 900px; margin: 0 auto; padding: 30px; }
.ticket-panel h2 { font-size: 2rem; text-transform: uppercase; margin: 0 0 8px; }
.ticket-small { color: var(--muted); font-size: 16px; }
.ticket-error { background: #772f43; border: 1px solid #ffb0b0; border-radius: 7px; padding: 14px; margin: 16px auto; max-width: 900px; }
.stay-note { background: #163f82; border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; }

/* Guest entry and form actions */
.ticket-fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.ticket-fields label { grid-column: span 2; display: block; min-width: 0; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ticket-fields label:nth-child(-n+2) { grid-column: span 3; }
.ticket-fields input, .ticket-fields select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 52px;
    margin-top: 7px;
    padding: 10px 12px;
    background: #f7faff;
    color: #102a51;
    border: 1px solid #7fa9de;
    border-radius: 6px;
    font: 18px 'Barlow Condensed', sans-serif;
}
.ticket-fields input[type="date"] { -webkit-appearance: none; appearance: none; }
.ticket-actions { display: flex; gap: 20px; justify-content: space-between; align-items: center; }
.ticket-button { display: inline-block; padding: 13px 22px; background: var(--blue-bright); color: #fff; border: 1px solid #97bdfe; border-radius: 7px; font: 700 18px 'Barlow Condensed', sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.ticket-button:hover { background: #5394ef; }
.ticket-button:disabled { opacity: .55; cursor: not-allowed; background: #59718f; }

/* Maintain the original Safari dropdown styling. */
select {
    appearance: none;
    width: 100%;
    height: 54px;
    padding: 0 14px;
    border: 1px solid #8cbcff;
    border-radius: 6px;
    background: #FFF;
    color: #091a38;
    font: inherit;
    font-size: 18px;
}

/* Product summary and grid: season pass spans the two columns. */
.ticket-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-bottom: 24px; font-size: 17px; }
.ticket-summary a { color: #b4d7ff; }
.ticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ticket-grid > .ticket-product:first-child { grid-column: 1 / -1; }
.ticket-product { display: flex; flex-direction: column; overflow: hidden; }
.ticket-top { min-height: 155px; padding: 25px 24px; display: flex; flex-direction: column; justify-content: end; background: linear-gradient(130deg, #1b5dab, #3179df); }
.ticket-product:nth-child(2) .ticket-top { background: linear-gradient(130deg, #164486, #245fae); }
.ticket-product:nth-child(3) .ticket-top { background: linear-gradient(130deg, #0b265a, #19518e); }
.ticket-type { color: #dcecff; text-transform: uppercase; font-size: 14px; letter-spacing: .14em; }
.ticket-top h2 { font-size: 2rem; text-transform: uppercase; line-height: 1.1; margin: 10px 0 0; }
.ticket-product-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px; }
.ticket-product-body p { margin: 0; }
.ticket-features { color: var(--muted); padding-top: 18px; margin-top: auto !important; }
.ticket-price { font-size: 2.4rem; font-weight: 700; }
.ticket-price small { font-size: 16px; color: var(--muted); font-weight: 400; }
.ticket-product-body form, .ticket-product-body button { width: 100%; }

.ticket-booking-actions {
    justify-content: flex-end;
}

.ticket-pet-footnote {
	margin-right: auto;
    text-align: left;
}

/* Ticket-specific scheduling, including the three-date flexible package. */
.ticket-package-dates { display: grid; gap: 10px; margin: 4px 0 15px; }
.ticket-package-dates p { margin: 0 0 3px; }
.ticket-package-dates label { display: block; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ticket-package-dates input[type="date"] {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 52px;
    margin-top: 5px;
    padding: 10px 12px;
    background: #f7faff;
    color: #102a51;
    border: 1px solid #7fa9de;
    border-radius: 6px;
    font: 18px 'Barlow Condensed', sans-serif;
    -webkit-appearance: none;
    appearance: none;
}
.ticket-package-dates-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ticket-package-dates-three label { min-width: 0; }

/* Retained styles for the optional mayoral card. */
.ticket-mayoral { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.ticket-top-mayoral { min-height: 340px; background: linear-gradient(135deg, #385b91, #112449 65%, #070d24) !important; }
.ticket-mayoral .ticket-product-body { justify-content: center; }

/* Confirmation and footer */
.ticket-receipt { max-width: 780px; }
.ticket-stamp { display: inline-block; background: #103878; border: 1px solid #8db5eb; border-radius: 6px; padding: 10px 15px; letter-spacing: .13em; text-transform: uppercase; }
.ticket-rule { height: 1px; background: var(--line); margin: 22px 0; }
.ticket-summary-plain { border: none; margin: 0; }
.ticket-cost { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; }
.ticket-total { border-top: 1px solid var(--line); font-size: 1.4rem; font-weight: 700; margin-top: 8px; }
.ticket-signoff { font-size: 2.2rem; font-weight: 700; }
.ticket-disclaimer { max-width: 800px; margin: 24px auto; color: var(--muted); text-align: center; font-size: 14px; }

/* Responsive layout */
@media (max-width: 820px) {
    .ticket-grid { grid-template-columns: 1fr; }
    .ticket-grid > .ticket-product:first-child { grid-column: auto; }
    .ticket-mayoral { grid-column: auto; display: flex; flex-direction: column; }
    .ticket-top-mayoral { min-height: 180px; }
}

@media (max-width: 600px) {
    .ticket-panel { padding: 20px; }
    .ticket-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ticket-fields label, .ticket-fields label:nth-child(-n+2) { grid-column: span 1; }
    .ticket-fields label:first-child { grid-column: span 2; }
    .ticket-fields label:has(input[type="date"]) { grid-column: 1 / -1; }
    .ticket-actions { flex-direction: column; align-items: stretch; }
    .ticket-cost { font-size: 15px; }
    .ticket-package-dates-three { grid-template-columns: 1fr; }
}

/* Ticket header artwork — uses the two existing /images/vector-*.png assets.
   The layout, ticket controls and card-body styles are intentionally unchanged. */
.ticket-top {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 168px;
}
.ticket-top .ticket-type,
.ticket-top h2 {
    position: relative;
    z-index: 1;
}
.ticket-top::after {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: .66;
    z-index: 0;
}

/* One ski day: one mountain. */
.ticket-product--day .ticket-top {
    background: linear-gradient(120deg, #225ba6, #367fd1);
}
.ticket-product--day .ticket-top::after {
    background-image: url('/images/vector-mountain-pass.png');
    background-size: 122px auto;
    background-position: right 15px center;
}

/* Consecutive days: a paired ridge. */
.ticket-product--multi .ticket-top {
    background: linear-gradient(120deg, #174982, #286cba);
}
.ticket-product--multi .ticket-top::after {
    background-image: url('/images/vector-mountain-pass.png'), url('/images/vector-mountain-pass.png');
    background-size: 94px auto, 108px auto;
    background-position: right 95px center, right 15px center;
}

/* Two separated days: two peaks with a deliberate gap. */
.ticket-product--alternating .ticket-top {
    background: linear-gradient(120deg, #133c78, #2863b0);
}
.ticket-product--alternating .ticket-top::after {
    background-image: url('/images/vector-mountain-pass.png'), url('/images/vector-mountain-pass.png');
    background-size: 91px auto, 91px auto;
    background-position: right 135px center, right 15px center;
}

/* Three pick-your-own ski days: three peaks. */
.ticket-product--indecisive .ticket-top {
    background: linear-gradient(120deg, #2056a1, #367ed0);
}
.ticket-product--indecisive .ticket-top::after {
    background-image: url('/images/vector-mountain-pass.png'), url('/images/vector-mountain-pass.png'), url('/images/vector-mountain-pass.png');
    background-size: 78px auto, 88px auto, 99px auto;
    background-position: right 159px center, right 89px center, right 15px center;
}

/* The featured full-width pass uses its own artwork. */
.ticket-product--season .ticket-top {
    background: linear-gradient(120deg, #0c285a, #1f579e 65%, #327bd0);
}
.ticket-product--season .ticket-top::after {
    background-image: url('/images/vector-pass.png');
    background-size: 148px auto;
    background-position: right 30px center;
    opacity: .85;
}

/* Protect title legibility when cards stack on smaller viewports. */
@media (max-width: 600px) {
    .ticket-top::after { opacity: .27; }
    .ticket-product--season .ticket-top::after { opacity: .40; }
}
