.oe-tour { max-width: 1200px; margin: 0 auto; padding: 52px 0 72px; color: #192b43; }
.oe-enquiry [hidden] { display: none !important; }
.oe-banner-title { margin: 0; color: white; }
.oe-top { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.oe-top h2, .oe-custom h2 { font-size: clamp(25px, 3vw, 40px); line-height: 1.18; margin: 0 0 12px; font-weight: 700; }
.oe-top p, .oe-custom p { color: #46586c; font-size: 16px; line-height: 1.65; margin: 0; }
.oe-language { display: flex; border: 1px solid #cfd8e2; flex: none; }
.oe-language button { border: 0; padding: 9px 14px; background: #f7f9fc; color: #243c5d; cursor: pointer; font: inherit; }
.oe-language [aria-pressed="true"] { background: #29457b; color: white; }
.oe-benefits { display: flex; flex-wrap: wrap; margin: 22px 0 32px; padding: 14px 0; gap: 8px 26px; border-block: 1px solid #dce3ed; color: #334d70; }
.oe-benefits li { list-style: none; font-size: 14px; }
.oe-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.oe-tour .product-card { display: flex; flex-direction: column; background: #f6f8fb; border: 1px solid #e0e6ef; }
.oe-tour .product-image img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.oe-tour .product-image { position: relative; }
.oe-tour .product-badge { position: absolute; left: 12px; bottom: 12px; background: #29457b; color: white; padding: 5px 10px; font-size: 13px; font-weight: 600; }
.oe-top .section-label { color: #305784; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.oe-custom-shortcut { display: inline-block; color: #29457b; text-decoration: underline; text-underline-offset: .2em; margin: -12px 0 20px; }
.oe-tour .product-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.oe-tour .product-days { color: #305784; font-size: 13px; font-weight: 700; letter-spacing: .045em; }
.oe-tour .product-name { font-weight: 700; font-size: 22px; line-height: 1.25; margin: 9px 0; }
.oe-tour .product-desc { color: #46586c; font-size: 14px; line-height: 1.6; }
.oe-tour .product-highlights { margin: 12px 0 18px; padding-left: 17px; color: #33445a; font-size: 14px; line-height: 1.6; }
.oe-tour .product-highlights li { list-style: disc; }
.oe-tour .product-footer { border-top: 1px solid #dce3ed; margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.oe-tour .price-amount, .oe-tour .price-value { font-size: 23px; font-weight: 700; color: #29457b; white-space: nowrap; }
.oe-tour .price-amount > span { font-size: 13px; font-weight: 400; margin-left: 4px; }
.oe-action, .oe-footer-link { display: inline-block; background: #29457b; color: white; padding: 10px 14px; line-height: 1.25; text-decoration: none; width: fit-content; }
.oe-action:hover, .oe-action:focus-visible, .oe-footer-link:hover, .oe-footer-link:focus-visible { background: #17335f; color: white; }
.oe-plan { scroll-margin-top: 95px; margin-top: 50px; padding-top: 24px; border-top: 1px solid #cfd8e2; }
.oe-tour .detail-header { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 18px; }
.oe-tour .detail-header h3 { font-size: clamp(23px,3vw,32px); font-weight: 700; margin: 0 0 8px; line-height: 1.22; }
.oe-tour .detail-header p { color: #46586c; }
.oe-tour .detail-price-box { flex: none; }
.oe-tour .gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.oe-tour .gallery-item { overflow: hidden; background: #f1f5fa; }
.oe-tour .gallery img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.oe-photo-unavailable { display: grid; place-items: center; aspect-ratio: 16/10; color: #526681; border-bottom: 1px solid #dce3ed; }
.oe-tour .gallery-caption { padding: 9px 10px; line-height: 1.35; font-size: 14px; }
.oe-gallery-open { width: 100%; display: block; border: 0; padding: 0; cursor: zoom-in; color: inherit; font: inherit; text-align: start; background: transparent; }
.oe-gallery-open:focus-visible { outline: 2px solid #29457b; outline-offset: -2px; }
.oe-gallery-open .gallery-caption { display: block; }
.oe-tour .detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; margin: 34px 0; }
.oe-tour h4 { font-weight: 700; font-size: 21px; margin: 0 0 12px; }
.oe-tour .detail-col ul { padding-left: 20px; }
.oe-tour .detail-col li { list-style: disc; margin: 6px 0; }
.oe-tour .day-item { display: grid; grid-template-columns: 43px minmax(0,1fr); gap: 13px; padding: 13px 0; border-top: 1px solid #dce3ed; }
.oe-tour .day-number { color: #29457b; font-weight: 700; }
.oe-tour .day-content h5 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.oe-tour .day-content p { margin: 0; line-height: 1.55; }
.oe-tour .detail-cta { margin-top: 20px; }
.oe-custom { display: flex; justify-content: space-between; align-items: center; gap: 18px; background: #f0f4fa; margin-top: 42px; padding: 24px; }
.oe-custom h2 { font-size: 26px; }
.oe-enquiry { width: min(680px,calc(100% - 24px)); max-height: 90dvh; padding: 0; border: 1px solid #dce3ed; color: #192b43; margin: auto; }
.oe-enquiry::backdrop { background: rgb(17 33 55 / .65); }
.oe-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #f1f5fa; padding: 13px 18px; }
.oe-dialog-head button { background: none; border: 0; font-size: 25px; cursor: pointer; color: #243c5d; }
.oe-enquiry iframe { display: block; border: 0; width: 100%; height: min(70dvh,650px); }
.oe-photo-dialog { width: min(760px,calc(100% - 24px)); overflow: auto; }
.oe-photo-dialog .oe-dialog-head { position: sticky; top: 0; z-index: 1; }
.oe-photo-body { padding: 16px 20px 22px; }
.oe-photo-body img { display: block; width: 100%; max-height: 44dvh; object-fit: contain; background: #f1f5fa; }
.oe-photo-description { margin: 12px 0 0; line-height: 1.65; }
.oe-tour .zh,.oe-banner-title .zh,.oe-enquiry .zh { display: none; }
body.oe-zh :is(.oe-tour,.oe-banner-title,.oe-enquiry) .en { display: none; }
body.oe-zh :is(.oe-tour,.oe-banner-title,.oe-enquiry) .zh { display: inline; }
@media (max-width:900px) { .oe-tour { padding: 36px 18px 48px; } .oe-card-grid { gap: 14px; } .oe-tour .product-body { padding: 14px; } }
@media (max-width:650px) {
  .oe-top { gap: 10px; }
  .oe-language button { padding: 7px 9px; }
  .oe-card-grid,.oe-tour .detail-grid { grid-template-columns: 1fr; gap: 16px; }
  .oe-tour .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .oe-tour .detail-header,.oe-custom { flex-direction: column; align-items: start; }
  .oe-benefits { margin-bottom: 20px; }
}

/* Tour cover photo grid and two-column itinerary. */
.oe-tour .oe-cover {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dce3ed;
}
.oe-tour .oe-cover-4 { grid-template-rows: repeat(2, minmax(0, 1fr)); }
.oe-tour .oe-cover-2 { grid-template-rows: minmax(0, 1fr); }
.oe-cover figure { position: relative; min-width: 0; min-height: 0; margin: 0; }
.oe-tour .oe-cover img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.oe-cover figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 12px 7px 5px;
  color: white;
  font-size: 12px;
  line-height: 1.2;
  background: linear-gradient(transparent, rgb(16 26 40 / .84));
}
.oe-tour .product-badge { inset: 8px auto auto 8px; z-index: 1; padding: 4px 7px; font-size: 12px; }
.oe-tour .oe-day-grid { --itinerary-rows: 3; }
.oe-tour #plan-a .oe-day-grid { --itinerary-rows: 4; }
.oe-tour #plan-b .oe-day-grid { --itinerary-rows: 5; }
@media (min-width: 780px) {
  .oe-tour .oe-day-grid {
    display: grid;
    grid-template: repeat(var(--itinerary-rows), auto) / repeat(2, minmax(0, 1fr));
    grid-auto-flow: column;
    column-gap: clamp(24px, 4vw, 56px);
  }
}
