/* V25.3 — targeted component repairs; the approved visual design remains intact. */
.tmc-stays-in-trip { background:var(--ivory2); }
.tmc-stays-in-trip .stay-grid { margin-top:20px; }
.tmc-orders .section-head { align-items:center; }
.order-overview { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:22px 0 27px; }
.order-overview>div { min-width:0;padding:24px;border-radius:12px;background:var(--charcoal);color:var(--ivory); }
.order-overview>div:nth-child(2){background:#38352f}.order-overview>div:nth-child(3){background:#e6d9c4;color:var(--ink)}
.order-overview span,.order-overview strong { display:block; }.order-overview span{font-size:11px;letter-spacing:.05em;opacity:.8}.order-overview strong{margin-top:4px;font-family:var(--serif);font-weight:500;font-size:clamp(32px,5vw,44px);line-height:1.1}
.orders-filter {display:flex;flex-wrap:wrap;gap:9px;margin:0 0 20px;}
.orders-filter button{background:transparent;border:1px solid var(--line);border-radius:40px;padding:10px 16px;color:var(--ink);font-size:12px;font-weight:700;transition:.2s}
.orders-filter button.active,.orders-filter button:focus-visible{background:var(--charcoal);color:var(--ivory);border-color:var(--charcoal)}
.orders-list{display:grid;gap:16px}.orders-list [hidden]{display:none!important}
.order-history-card {background:var(--paper);border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 10px 35px rgba(20,16,11,.035);}
.order-history-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:23px 26px;border-bottom:1px solid var(--line)}
.order-history-head h2{font:500 31px/1.1 var(--serif);margin:8px 0 0}
.order-history-content{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.8fr);gap:28px;padding:22px 26px}
.order-history-products{display:grid;gap:12px}.order-history-product{display:grid;grid-template-columns:82px minmax(0,1fr);gap:14px;align-items:center}
.order-history-product+ .order-history-product{padding-top:12px;border-top:1px dashed var(--line)}
.order-history-product img{width:82px;height:88px;object-fit:cover;border-radius:8px;background:#e5dfd4}
.order-history-product strong,.order-history-product small,.order-history-meta span,.order-history-meta strong{display:block}
.order-history-product strong{font:500 21px/1.23 var(--serif)}.order-history-product small{font-size:11px;color:var(--muted);margin-top:6px}
.order-history-meta{border-left:1px solid var(--line);padding-left:26px;display:grid;align-content:center;gap:12px}
.order-history-meta>div+div{padding-top:10px;border-top:1px solid var(--line)}
.order-history-meta span{font-size:10px;color:var(--muted)}.order-history-meta strong{font-size:12px;overflow-wrap:anywhere;font-weight:700}
.order-history-actions{display:flex;flex-wrap:wrap;gap:10px;background:#f6f0e5;border-top:1px solid var(--line);padding:15px 26px}
.credit-payment-input{border:1px solid var(--line);background:var(--ivory2);padding:18px;border-radius:10px;margin:16px 0}
.credit-payment-input label{display:block;font-weight:800;font-size:13px}.credit-payment-input p{font-size:12px;margin:6px 0}.credit-payment-input small{display:block;font-size:11px;color:var(--muted);line-height:1.6}
.credit-payment-input input{display:block;width:100%;max-width:200px;margin:14px 0;padding:11px;border:1px solid #c9bba3;background:#fff;border-radius:8px;font-size:17px}
.payable-preview{display:block;border-top:1px solid var(--line);padding-top:12px;font-size:12px}.payable-preview strong{font:500 25px/1.2 var(--serif);display:block;margin-top:5px}
.payment-stage-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(250px,.8fr);gap:22px;align-items:start;margin-top:18px}
.payment-stage-grid .order-summary{position:relative;top:auto;max-width:100%}
.milestone-page .milestone-heading{margin-bottom:28px}.milestone-page .section-sub{font-size:14px;line-height:1.7;max-width:660px}
.milestone-hero{display:grid;grid-template-columns:170px minmax(0,1fr);gap:34px;align-items:center;padding:40px;border-radius:16px;color:#f7f0e3;background:linear-gradient(120deg,#201e1b,#3a332b);box-shadow:var(--shadow)}
.milestone-hero-icon{display:grid;place-items:center;width:158px;height:158px;border-radius:50%;border:2px solid #d4ae72;background:rgba(255,255,255,.035);color:#dfbe8d}
.milestone-hero-icon .icon svg{width:74px;height:74px;stroke-width:1.2}
.milestone-hero .eyebrow{color:#dfbe8d}.milestone-hero h2{font:500 clamp(35px,5vw,60px)/1.1 var(--serif);margin:5px 0 8px;color:#fff}
.milestone-hero p{max-width:600px;color:#e0d9cc;font-size:14px;line-height:1.65;margin:0 0 18px}
.milestone-progress-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;color:#f7f0e3}
.milestone-progress-head strong{color:#fff}.milestone-progress-head span{color:#dfbe8d}
.milestone-progress-track{height:7px;background:rgba(255,255,255,.2);border-radius:6px;margin:10px 0 8px;overflow:hidden}
.milestone-progress-track span{display:block;height:100%;background:#dfbe8d;border-radius:6px}.milestone-hero small{color:#cec5b4;font-size:10px}
.milestones-subhead{margin-top:46px}.milestone-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.milestone-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:12px;min-height:236px;padding:24px 19px;background:#f2ecdf}
.milestone-card.unlocked{background:var(--paper);border-color:#bfaa85}.milestone-icon{width:49px;height:49px;display:grid;place-items:center;border:1px solid #bba57d;color:#9f793f;background:#f3e8d3;border-radius:50%;margin-bottom:17px}
.milestone-icon .icon svg{width:24px;height:24px}.milestone-card.locked .milestone-icon{border-color:#cfc7b7;color:#969087;background:#e6dfd3}
.milestone-card h3{font:500 25px/1.13 var(--serif);margin:8px 0;color:var(--ink);overflow-wrap:break-word}.milestone-card p{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 18px}
.milestone-card.locked h3{color:#706c63}.milestone-card .milestone-state{margin-top:auto;font-size:11px;font-weight:800;display:inline-flex;align-items:center;gap:6px;color:#806341}.milestone-card.locked .milestone-state{color:#888179}.milestone-state .icon svg{width:15px;height:15px}
.milestone-note{display:flex;gap:18px;align-items:center;margin-top:24px;padding:21px;background:#eae0cc;border-radius:10px}.milestone-note>div .icon svg{height:32px;width:32px}.milestone-note p{font-size:12px;flex:1;color:#4d493f;margin:0;line-height:1.7}.milestone-note .text-link{white-space:nowrap}
.contact-whatsapp>.icon{color:#278849}.contact-whatsapp>.icon svg{height:28px;width:28px}.contact-whatsapp .disabled{border:1px dashed #b8b3a8;border-radius:8px;padding:8px 10px;color:#77756f}
.btn.disabled{cursor:not-allowed;opacity:.6}.memory-photo-button{border:0;background:transparent;padding:0;display:block;width:100%;cursor:zoom-in}.memory-photo-button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.memory-photo-button img{width:100%;height:auto}.lightbox-close{position:absolute;z-index:2;top:16px;right:24px;width:46px;height:46px;border:1px solid #b8a384;border-radius:50%;background:#211e1a;color:white;font-size:30px;display:grid;place-items:center}.lightbox-close:focus-visible{outline:3px solid #e3c28b;outline-offset:3px}
@media (max-width:950px){.milestone-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-history-content{grid-template-columns:1fr;gap:14px}.order-history-meta{border-left:0;border-top:1px solid var(--line);padding:15px 0 0;grid-template-columns:repeat(3,minmax(0,1fr))}.order-history-meta>div+div{border:0;padding:0}}
@media (max-width:640px){.order-overview{gap:7px}.order-overview>div{padding:16px 12px}.order-overview span{font-size:9px}.order-overview strong{font-size:29px}.order-history-head{padding:19px 15px}.order-history-content{padding:16px}.order-history-actions{padding:14px}.order-history-meta{grid-template-columns:1fr;gap:9px}.order-history-meta>div+div{border-top:1px solid var(--line);padding-top:8px}.order-history-product{grid-template-columns:70px minmax(0,1fr)}.order-history-product img{width:70px;height:80px}.order-history-product strong{font-size:18px}.payment-stage-grid,.milestone-hero{grid-template-columns:1fr}.milestone-hero{padding:26px;gap:20px}.milestone-hero-icon{height:112px;width:112px}.milestone-hero-icon .icon svg{height:53px;width:53px}.milestone-card-grid{gap:8px}.milestone-card{padding:17px 13px;min-height:235px}.milestone-card h3{font-size:21px}.milestone-card p{font-size:11px}.milestone-note{flex-wrap:wrap}.milestone-note .text-link{white-space:normal}}
@media (max-width:360px){.order-overview{grid-template-columns:1fr}.order-overview>div{display:flex;align-items:center;justify-content:space-between}.milestone-card-grid{grid-template-columns:1fr}.orders-filter button{padding:9px 11px;font-size:11px}}
/* Keep support actions within 320px screens on the restored My Trip page. */
@media (max-width:400px){.my-trip-hero~.section .support-actions,.support-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:9px}.support-actions>.btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}}

@media(max-width:640px){.milestone-note{display:grid;grid-template-columns:35px minmax(0,1fr);gap:10px 14px;align-items:start}.milestone-note p{min-width:0}.milestone-note .text-link{grid-column:2;justify-self:start}}
/* The original generic two-column grid was still forcing 135px itinerary and payment
   columns at 320px on My Trip; keep both columns readable by stacking them. */
@media(max-width:700px){.my-trip-hero~.section .grid.cols2{grid-template-columns:minmax(0,1fr)!important}.my-trip-hero~.section .booking-rail{min-width:0;position:static}.my-trip-hero~.section .action-list .btn{white-space:normal;overflow-wrap:anywhere}}
