/* ===== Booking page — clone of the Exely booking engine embedded on diamondseahotel.com/booking ===== */
.bk-sec { padding: 120px 0 56px; }
.bk-sec > .port { width: min(1180px, 100% - 40px); }
.bk-save { font: 400 16px/20.8px var(--sans); color: var(--text); margin-bottom: 2px; }

.tl { --c-text: #2f3135; --c-link: #3c6098; --c-blue: #5178b7; --c-btn: #b2967b; --c-muted: #75787d;
  background: #efece4; font: 400 14px/20px "Open Sans", var(--sans); color: var(--c-text); border-radius: 4px; overflow: clip; }
.tl button { font-family: inherit; }
.tl a { color: var(--c-link); text-decoration: underline; }

/* Top bar (x-hcp) */
.x-hcp { display: flex; align-items: center; gap: 16px; padding: 12px 32px; background: #eff1f3; min-height: 56px; }
.x-hcp__crit { display: flex; gap: 16px; flex: 0 1 752px; }
.x-scb { flex: 1; height: 48px; padding: 8px 12px; text-align: left; background: #fff; font-family: Verdana, sans-serif; box-shadow: 0 -1px 0 rgba(0, 0, 0, .27), 0 0 0 1px rgba(114, 114, 114, .27); }
.x-scb small { display: block; font-size: 12px; line-height: 12px; color: rgba(61, 61, 61, .5); }
.x-scb b { display: block; font-weight: 400; font-size: 16px; line-height: 20px; color: #3d3d3d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-hcp.is-locked .x-scb { background: rgba(60, 96, 152, .12); box-shadow: none; cursor: default; }
.x-hcp.is-locked .x-scb b { color: rgba(47, 49, 53, .73); }
.x-hcp__tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.hb { height: 32px; padding: 8px; background: #dfe9f8; color: var(--c-link); font-size: 12px; font-weight: 700; line-height: 16px; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.hb img { width: 24px; height: 18px; object-fit: cover; box-shadow: inset 0 0 0 1px #c4c7cc; }
.hb-lang { position: relative; }
.hb-lang ul { position: absolute; right: 0; top: 36px; z-index: 5; min-width: 150px; padding: 6px 0; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .16); display: none; }
.hb-lang.is-open ul { display: block; }
.hb-lang li button, .hb-lang li a { display: flex; gap: 8px; align-items: center; width: 100%; padding: 6px 14px; font-size: 14px; color: var(--c-text); }
.hb-lang li button:hover, .hb-lang li a:hover { background: #eff1f3; }
.hb-lang li img { width: 18px; height: 12px; }
.x-hcp.is-locked .hb { background: #c4c7cc; color: #8f9298; pointer-events: none; }

/* Title row + progress bar (x-hnp) */
.x-hnp { position: relative; padding: 18px 32px; text-align: center; }
.x-hnp h1, .x-hnp h2 { font-size: 22px; font-weight: 400; line-height: 28px; }
.x-hnp__back { position: absolute; left: 8px; top: 12px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--c-link); font-size: 16px; line-height: 16px; }
.x-hnp__back::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.x-hnp__bar { height: 4px; background: #8fa0ba; }
.x-hnp__bar i { display: block; height: 100%; background: var(--c-link); transition: width .4s; }

.tl-body { padding: 32px; }

/* Step 1 — Details of your stay (p-search-filter) */
.psf { width: 672px; max-width: 100%; margin: 0 auto; padding: 4px 0 130px; }
.psf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.psf-label { display: block; font-size: 16px; line-height: 20px; margin-bottom: 8px; }
.psf-note { font-size: 12px; line-height: 16px; color: var(--c-muted); margin: 8px 0 16px; }
.psf hr { border: 0; border-top: 1px solid rgba(114, 114, 114, .27); margin: 16px 0; }
.x-input { position: relative; display: block; height: 40px; background: #fff; box-shadow: inset 0 0 0 0 transparent, 0 -1px 0 rgba(0, 0, 0, .27), 0 0 0 1px rgba(114, 114, 114, .27); font: 400 14px/20px Verdana, sans-serif; color: #3d3d3d; }
.x-input input, .x-input select { width: 100%; height: 40px; border: 0; outline: 0; background: transparent; padding: 0 16px; font: inherit; color: inherit; appearance: none; -webkit-appearance: none; }
.x-input.has-icon select { padding-left: 40px; }
.x-input > svg { position: absolute; top: 8px; width: 24px; height: 24px; pointer-events: none; }
.x-input > svg.ico-l { left: 10px; fill: #a9acb2; }
.x-input > svg.ico-r { right: 10px; fill: var(--c-link); }
.x-input input::-webkit-calendar-picker-indicator { position: absolute; right: 8px; width: 26px; height: 26px; opacity: 0; cursor: pointer; }
.x-input .chev { position: absolute; right: 16px; top: 15px; width: 8px; height: 8px; border: solid var(--c-link); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.x-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.x-check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; background: #fff; border: 2px solid rgba(114, 114, 114, .27); cursor: pointer; position: relative; }
.x-check input:checked { background: var(--c-link); border-color: var(--c-link); }
.x-check input:checked::after { content: ""; position: absolute; left: 4px; top: 0; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.psf .x-check { margin: 4px 0 16px; }
.psf-extra { display: inline-flex; align-items: center; gap: 8px; color: var(--c-link); font-size: 14px; }
.psf-extra svg { width: 16px; height: 16px; fill: var(--c-link); }
.x-input output { display: block; padding: 0 16px; line-height: 40px; }
.x-input .x-native { position: absolute; inset: 0; opacity: 0; cursor: pointer; padding: 0; }
.psf-promo { margin-bottom: 16px; }
.tl-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 8px 16px; background: var(--c-btn); color: #fff; font-size: 16px; line-height: 20px; transition: filter .2s; }
.tl-btn:hover { filter: brightness(1.08); }
.tl-btn--lg { width: 100%; height: 48px; padding: 12px 20px; }
.tl-error { margin-top: 10px; color: #c0392b; font-size: 14px; }

/* Step 2 — Select a room (packages) */
.x-bpg { display: flex; align-items: center; gap: 24px; padding: 16px 12px; margin-bottom: 32px; background: #f6faff; border: 1px solid #75a0e4; box-shadow: 0 4px 12px rgba(117, 160, 228, .16); color: var(--c-blue); }
.x-bpg__label { flex: 0 0 110px; font-size: 20px; font-weight: 700; line-height: 24px; text-transform: uppercase; }
.x-bpg__items { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.x-bpg__items span { display: flex; align-items: center; gap: 12px; font-weight: 700; line-height: 14px; }
.x-bpg__items i { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #84adef; display: grid; place-items: center; }
.x-bpg__items i::after { content: ""; width: 6px; height: 11px; margin-top: -3px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.x-bpg__price { flex: none; background: #fff; text-align: center; }
.x-bpg__price small { display: block; padding: 10px 8px; background: #fde6ef; font-size: 12px; font-weight: 700; line-height: 16px; color: #894668; }
.x-bpg__price b { display: block; padding: 10px 8px; color: #894668; }
.filters { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px 20px; margin-bottom: 24px; background: #f9fafb; border: 1px solid #fff; }
.chip { height: 32px; padding: 0 12px; border: 1px solid var(--c-link); border-radius: 16px; color: var(--c-link); font-size: 12px; line-height: 16px; background: transparent; transition: .2s; }
.chip.is-active, .chip:hover { background: var(--c-link); color: #fff; }
.rooms-grid-tl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rcard { display: flex; flex-direction: column; background: #f9fafb; border: 1px solid #fff; }
.rcard-img { position: relative; height: 212px; background: #ddd; overflow: hidden; }
.rcard-img img { width: 100%; height: 100%; object-fit: cover; }
.rcard-badge { position: absolute; left: 0; top: 0; height: 32px; padding: 8px 16px; background: var(--c-blue); color: #fff; font-size: 12px; font-weight: 700; line-height: 16px; border-radius: 0 0 4px 0; }
.rcard-body { display: flex; flex-direction: column; flex: 1; padding: 16px 20px 20px; }
.rcard-name { display: flex; justify-content: space-between; gap: 10px; }
.rcard-name h3 { font: 400 18px/24px Lora, Georgia, serif; color: var(--c-link); }
.round-btn { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--c-link); display: grid; place-items: center; }
.round-btn::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border: solid var(--c-link); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rcard-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 16px 0; font-size: 12px; line-height: 16px; }
.rcard-meta span { display: flex; align-items: center; gap: 6px; }
.rcard-meta svg { width: 16px; height: 16px; fill: #a9acb2; }
.rcard-tag { font-size: 14px; line-height: 20px; color: var(--c-link); font-style: italic; }
.rcard-price { margin: 14px 0 16px; color: var(--c-blue); }
.rcard-price small { font-size: 12px; line-height: 12px; }
.rcard-price b { font-size: 20px; line-height: 20px; }
.rcard-price em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; line-height: 12px; color: var(--c-muted); }
.rcard .tl-btn { margin-top: auto; width: 100%; }
.rcard-more { display: none; margin: -6px 0 14px; padding-left: 18px; list-style: disc; font-size: 13px; line-height: 19px; }
.rcard.is-open .rcard-more { display: block; }
.rcard.is-open .round-btn::after { transform: rotate(-135deg); margin-top: 4px; }
.near { background: #f9fafb; border: 1px solid #fff; padding: 16px 16px 20px; }
.near h6 { font-size: 16px; font-weight: 700; line-height: 20px; margin-bottom: 14px; }
.near li { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.near li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #a9acb2; flex: none; margin: 0 5px; }
.near h6 + ul + h6 { margin-top: 18px; }

/* Step 3 — package (rate plan) */
.rp-room { display: grid; grid-template-columns: 144px 1fr auto; gap: 24px; padding: 0; margin-bottom: 40px; background: #f9fafb; border: 1px solid #fff; }
.rp-room img { width: 144px; height: 148px; object-fit: cover; }
.rp-room h3 { margin-top: 16px; font: 400 20px/24px Lora, Georgia, serif; color: var(--c-link); }
.rp-amen { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
.rp-amen span { height: 36px; padding: 8px 12px; background: #eff1f3; font-size: 14px; line-height: 20px; }
.rp-meta { margin-top: 12px; display: flex; gap: 20px; font-size: 14px; }
.rate { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 20px; background: #f9fafb; border: 1px solid #fff; }
.rate h4 { font: 400 20px/24px Lora, Georgia, serif; color: var(--c-link); }
.rate-list { margin-top: 12px; display: grid; gap: 8px; }
.rate-list li { display: flex; gap: 12px; align-items: center; }
.rate-list li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 2px; background: #5178b7; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.rate-side { text-align: right; min-width: 220px; }
.rate-side small { display: block; font-size: 14px; }
.rate-side .row { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 10px; }
.rate-side b { font-size: 20px; font-weight: 400; color: var(--c-blue); }
.rate-terms { margin-top: 24px; font-size: 12px; line-height: 16px; color: var(--c-muted); }
.rate-terms li { margin-top: 4px; }

/* Step 4 — Enter your details */
.details { display: grid; grid-template-columns: 804px 1fr; gap: 24px; align-items: start; }
.plate { background: #f9fafb; border: 1px solid #fff; margin-bottom: 32px; }
.plate-cap { font-weight: 400; padding: 24px 20px 16px; border-bottom: 1px solid rgba(114, 114, 114, .27); font-size: 24px; line-height: 32px; }
.plate-body { padding: 20px; }
.seg { display: inline-flex; margin-left: 12px; }
.seg label { height: 40px; padding: 10px 16px; border: 1px solid #5178b7; color: var(--c-link); cursor: pointer; }
.seg label + label { border-left: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: #dfe9f8; }
.small-note { margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--c-muted); }
.plate hr { border: 0; border-top: 1px solid rgba(114, 114, 114, .27); margin: 20px 0; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.x-input.is-invalid { box-shadow: 0 0 0 1px #d64545; }
.f-country { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.f-country .x-input { width: 220px; }
.consents { margin-top: 32px; display: grid; gap: 12px; }
.consents .info { display: flex; gap: 8px; align-items: center; }
.consents .info svg { width: 20px; height: 20px; fill: #8f9298; }
.consents .x-check.is-invalid input { border-color: #d64545; }
.h4 { font-weight: 400; font-size: 20px; line-height: 24px; margin-bottom: 16px; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.times .x-input { height: 50px; }
.times .x-input small { position: absolute; left: 12px; top: 6px; font-size: 12px; line-height: 12px; color: #a9acb2; }
.times .x-input b { position: absolute; left: 12px; top: 20px; font-weight: 400; font-size: 16px; }
.times .x-input b em { font-style: normal; color: var(--c-muted); }
.times .is-disabled { background: #eff1f3; color: #a9acb2; }
.x-textarea { width: 100%; min-height: 80px; padding: 10px 12px; border: 0; outline: 0; resize: vertical; font: 400 14px/20px Verdana, sans-serif; color: #3d3d3d; background: #fff; box-shadow: 0 -1px 0 rgba(0, 0, 0, .27), 0 0 0 1px rgba(114, 114, 114, .27); }
.pay-info { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.pay-info svg { width: 20px; height: 20px; fill: #8f9298; }
.pay-opt { display: block; padding: 16px 20px; margin: 0 -20px; border: 1px solid transparent; cursor: pointer; }
.pay-opt + .pay-opt { border-top-color: rgba(114, 114, 114, .2); }
.pay-opt:has(input:checked) { margin: 0 -20px; border: 2px solid #84adef; background: #f6faff; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt strong { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 400; line-height: 24px; }
.pay-opt strong small { font-size: 20px; color: var(--c-muted); }
.pay-opt strong svg { width: 24px; height: 24px; fill: #8f9298; }
.pay-opt p { margin-top: 12px; font-size: 14px; line-height: 20px; }
.pay-demo { margin-top: 16px; padding: 12px 14px; background: #fff7e6; border-left: 3px solid #e0a82e; font-size: 13px; line-height: 18px; color: #6b4e00; }

/* My booking sidebar */
.mybk { position: sticky; top: 124px; background: #f9fafb; border: 1px solid #fff; }
.mybk h2 { padding: 28px 24px 16px; font-size: 22px; font-weight: 400; line-height: 28px; border-bottom: 1px solid rgba(114, 114, 114, .27); }
.mybk-n { padding: 8px 24px; background: #ebf1fb; font-weight: 700; }
.mybk-dates { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 8px; padding: 12px 24px 16px; border-bottom: 1px solid rgba(114, 114, 114, .27); }
.mybk-dates div { flex: 1; min-width: 100px; }
.mybk-dates i { font-style: normal; font-size: 20px; font-weight: 700; line-height: 24px; }
.mybk-dates span { font-size: 16px; }
.mybk-dates .mybk-sep { font-size: 20px; line-height: 24px; flex: none; }
.mybk-dates em { display: block; font-style: normal; font-size: 12px; line-height: 16px; color: var(--c-muted); }
.mybk-dates small { display: block; font-size: 14px; color: var(--c-muted); }
.mybk-room { padding: 12px 24px; background: #ebf1fb; }
.mybk-room .row, .mybk-lines .row { display: flex; justify-content: space-between; gap: 12px; }
.mybk-room b { color: var(--c-text); }
.mybk-room a { display: block; font-weight: 700; color: var(--c-link); text-decoration: none; }
.mybk-lines { padding: 12px 24px; font-size: 12px; line-height: 16px; border-bottom: 1px solid rgba(114, 114, 114, .27); }
.mybk-lines .row + .row { margin-top: 6px; padding-top: 6px; border-top: 1px dashed rgba(114, 114, 114, .35); }
.mybk-lines strong { font-size: 14px; }
.mybk-total { padding: 20px 24px; }
.mybk-total .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mybk-total .row strong { font-size: 16px; }
.mybk-total .row b { font-size: 28px; font-weight: 400; line-height: 32px; }
.mybk-total hr { border: 0; border-top: 1px solid rgba(114, 114, 114, .27); margin: 16px 0; }
.mybk-total small { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-muted); }
.mybk-total .tl-btn { width: 100%; height: 48px; margin-top: 20px; }
.mybk-foot { padding: 14px; text-align: center; background: #ebf1fb; color: var(--c-link); }

/* Step 5 — confirmation */
.done { max-width: 640px; margin: 0 auto; padding: 30px 0 90px; text-align: center; }
.done-ico { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: #84adef; display: grid; place-items: center; }
.done-ico::after { content: ""; width: 14px; height: 26px; margin-top: -6px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.done h2, .done h3 { font-size: 24px; font-weight: 400; line-height: 32px; }
.done p { margin-top: 12px; }
.done-code { margin: 24px auto; padding: 16px; background: #f9fafb; border: 1px solid #fff; }
.done-code b { display: block; font-size: 24px; letter-spacing: 2px; margin-top: 4px; color: var(--c-link); }

.gateway { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(239, 236, 228, .94); text-align: center; font-family: "Open Sans", Arial, sans-serif; color: #2f3135; }
.gateway i { display: block; width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; border: 4px solid #d6d6d6; border-top-color: #8f9298; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .details { grid-template-columns: 1fr; }
  .mybk { position: static; }
}
@media (max-width: 991px) {
  .bk-sec { padding: 50px 0; }
  .x-hcp { flex-wrap: wrap; padding: 12px 16px; }
  .x-hcp__crit { flex-basis: 100%; }
  .x-hcp__tools { margin-left: 0; }
  .tl-body { padding: 20px 16px; }
  .x-bpg { flex-wrap: wrap; }
  .x-bpg__items { grid-template-columns: 1fr; gap: 10px; }
  .rooms-grid-tl { grid-template-columns: 1fr 1fr; }
  .rp-room { grid-template-columns: 120px 1fr; }
  .rp-room img { width: 120px; }
  .rp-room > :last-child { display: none; }
}
@media (max-width: 600px) {
  .x-hcp__crit { flex-direction: column; gap: 8px; }
  .x-hnp { padding: 16px; }
  .x-hnp__back { position: static; padding: 0 0 10px; }
  .psf { padding-bottom: 40px; }
  .psf-row, .f-grid, .times { grid-template-columns: 1fr; }
  .rooms-grid-tl { grid-template-columns: 1fr; }
  .rp-room { grid-template-columns: 1fr; }
  .rp-room img { width: 100%; height: 200px; }
  .rp-room > div { padding: 0 16px 16px; }
  .rate { grid-template-columns: 1fr; }
  .rate-side { text-align: left; min-width: 0; }
  .rate-side .row { justify-content: space-between; }
  .seg { margin: 10px 0 0; }
  .f-country .x-input { width: 100%; }
}

.mybk-total .row strong, .mybk-total .row b { white-space: nowrap; }

.rate-desc { margin-top: 10px; max-width: 640px; font-size: 14px; line-height: 21px; color: #2f3135; }

/* Static pre-rendered booking steps (text is in the HTML, JS only toggles) */
.tl [hidden] { display: none !important; }
.hb--promo { background: none; text-transform: none; font-weight: 400; }
.x-input .pl-icon { padding-left: 40px; }
.psf-extra-row, .done-home { margin-top: 24px; }
.done-home .tl-btn { text-decoration: none; }
