/* Travel Deals – Sam's Tours Lanka theme */

/* Nav-attached filters (under main header) — sitewide */
.td-nav-filters {
  background: linear-gradient(135deg, #023047 0%, #126e94 100%);
  padding: 8px 0 10px;
  border: none;
  outline: none;
  box-shadow: none;
  overflow: hidden;
  opacity: 1;
  max-height: 120px;
  transition: opacity .45s ease, max-height .45s ease, padding .45s ease;
}
.td-nav-filters.td-filters--hidden {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  pointer-events: none;
}
.td-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.td-filter-row--cats {
  justify-content: center;
  gap: 4px 14px;
  flex-wrap: nowrap;
}
.td-filter-row::-webkit-scrollbar { display: none; height: 0; }
.td-cat-pill {
  flex: 0 0 auto;
  border: none;
  color: rgba(255,255,255,0.9);
  background: transparent !important;
  border-radius: 0;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  text-align: center;
  box-shadow: none !important;
  outline: none !important;
  transition: color .2s ease, opacity .2s ease;
}
.td-cat-pill:hover,
.td-cat-pill:focus,
.td-cat-pill:active {
  background: transparent !important;
  color: #ffb070;
  text-decoration: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.td-cat-pill.is-active {
  background: transparent !important;
  color: #ff6900;
  font-weight: 800;
  text-decoration: none !important;
  border-bottom: 2px solid #ff6900;
}
.td-city-pill {
  flex: 0 0 auto;
  border: 1.5px solid rgba(255,255,255,0.45);
  color: #fff;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none !important;
  outline: none !important;
  transition: all .2s ease;
}
.td-city-pill:hover,
.td-city-pill:focus,
.td-city-pill:active {
  background: #ff6900;
  border-color: #ff6900;
  color: #fff;
  text-decoration: none !important;
  box-shadow: none !important;
}
.td-city-pill.is-active {
  background: #ff6900;
  border-color: #ff6900;
  color: #fff;
}
@media (max-width: 991px) {
  .td-nav-filters {
    max-height: 112px;
    padding: 6px 0 8px;
  }
  .td-filter-row {
    justify-content: flex-start;
    gap: 8px;
    padding: 3px 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
  }
  .td-filter-row--cats {
    justify-content: flex-start;
    gap: 10px;
  }
  .td-cat-pill {
    font-size: 10px;
    padding: 4px 2px;
    letter-spacing: 0.05em;
  }
  .td-city-pill {
    font-size: 12px;
    padding: 6px 12px;
  }
}

.td-detail-hero {
  min-height: 160px !important;
  padding-top: 28px;
  padding-bottom: 36px;
}
.td-detail-hero .abt-hero-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
  margin-bottom: 0;
}

.td-section { padding: 48px 0 70px; background: #f7f9fb; }
.td-section-head { margin-bottom: 28px; }
.td-section-head h2 {
  color: #023047;
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0 0 6px;
}
.td-section-head p { color: #6b7c86; margin: 0; }

.td-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(2, 48, 71, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.td-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(2, 48, 71, 0.14);
}
.td-card-media {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.td-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.td-card-overlay-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 42px;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.45);
  line-height: 1.2;
}
.td-badge-save {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1f9d55;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.td-badge-cash {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: #f5c542;
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  padding: 5px 8px;
  border-radius: 6px;
}
.td-badge-extra {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
}
.td-card-body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.td-card-city {
  color: #ff6900;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.td-card-title {
  color: #023047;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.35;
}
.td-card-desc {
  color: #6b7c86;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.td-price-block { margin-top: auto; }
.td-market {
  color: #8a97a0;
  font-size: 12px;
  text-decoration: line-through;
  margin-bottom: 2px;
}
.td-sale {
  color: #ff6900;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}
.td-online-box {
  background: #eef6fb;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.td-online-box .save-label {
  color: #1f9d55;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2px;
}
.td-online-box .online-price {
  color: #ff6900;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}
.td-online-box .lkr-line {
  color: #023047;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}
.td-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.td-btn-primary {
  background: linear-gradient(135deg, #ff6900 0%, #ff8c3a 100%);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}
.td-btn-outline {
  background: #fff;
  color: #ff6900 !important;
  border: 1.5px solid #ff6900;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.td-btn-primary:hover, .td-btn-outline:hover { opacity: .92; color: inherit; }

/* Detail */
.td-detail { padding: 28px 0 70px; background: #f7f9fb; }

.td-media-gallery { margin-bottom: 22px; }
.td-main-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #0b2430;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
}
.td-main-shot img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.td-main-shot:hover img { transform: scale(1.02); }
.td-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(2,48,71,.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.td-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.td-thumbs--section {
  margin-top: 12px;
  flex-wrap: wrap;
  overflow-x: visible;
}
.td-thumbs--section .td-thumb {
  width: 96px;
  height: 72px;
}
.td-gallery-main {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #0b2430;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
}
.td-gallery-main img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}
.td-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 66px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  opacity: .75;
  transition: border-color .2s ease, opacity .2s ease;
}
.td-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.td-thumb.is-active, .td-thumb:hover {
  border-color: #ff6900;
  opacity: 1;
}

.td-detail-intro { margin-bottom: 8px; }
.td-detail-title {
  color: #023047;
  font-weight: 800;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 10px;
}
.td-lead {
  color: #4b5c66;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 18px;
}
.td-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.td-tag {
  background: #fff;
  border: 1px solid #d9e2e8;
  color: #023047;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(2,48,71,.04);
}
.td-panel {
  background: #fff;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(2,48,71,.06);
  margin-bottom: 18px;
  border: 1px solid rgba(2,48,71,.04);
}
.td-panel h3,
.td-panel-title {
  color: #023047;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.td-panel-title i {
  color: #ff6900;
  font-size: 1.05rem;
  line-height: 1;
}
.td-rich-block--in .td-panel-title { color: #1f9d55; }
.td-rich-block--in .td-panel-title i { color: #1f9d55; }
.td-rich-block--out .td-panel-title { color: #c2410c; }
.td-rich-block--out .td-panel-title i { color: #c2410c; }

.td-step-label {
  color: #ff6900;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* Section tabs — wrap, no sticky, no horizontal scrollbar */
.td-section-tabs {
  position: static;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow: visible;
  padding: 4px 0 14px;
  margin: 0 0 8px;
  background: transparent;
}
.td-section-tab {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d9e2e8;
  background: #fff;
  color: #023047;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease;
}
.td-section-tab i { color: #7a8b95; font-size: 14px; line-height: 1; }
.td-section-tab:hover {
  border-color: #ffb07a;
  color: #ff6900;
}
.td-section-tab:hover i { color: #ff6900; }
.td-section-tab.is-active {
  background: #fff7f0;
  border-color: #ff6900;
  color: #ff6900;
  box-shadow: 0 4px 14px rgba(255,105,0,.12);
}
.td-section-tab.is-active i { color: #ff6900; }

/* Validation banner */
.td-validate-alert {
  display: none;
  align-items: flex-start;
  gap: 12px;
  background: #fff4ec;
  border: 1.5px solid #ff9a55;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 0 0 16px;
}
.td-validate-alert.is-visible,
.td-validate-alert:not([hidden]) {
  display: flex;
}
.td-validate-alert__icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff6900;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.td-validate-alert__body strong {
  display: block;
  color: #ff6900;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
}
.td-validate-alert__body p {
  margin: 0;
  color: #3d4f59;
  font-size: 13.5px;
  line-height: 1.45;
}
.td-booking-input.is-invalid {
  border-color: #ff6900 !important;
  box-shadow: 0 0 0 3px rgba(255,105,0,.15);
}

.td-full-details .td-rich {
  color: #3d4f59;
  line-height: 1.75;
  font-size: 14.5px;
}
.td-full-details .td-rich p { margin-bottom: 12px; }
.td-full-details .td-rich ul,
.td-full-details .td-rich ol {
  padding-left: 1.2rem;
  margin-bottom: 12px;
}
.td-full-details .td-rich li { margin-bottom: 6px; }
.td-rich-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e8eef2;
}
.td-rich-block h4 {
  color: #023047;
  font-size: 1rem;
  font-weight: 750;
  margin-bottom: 10px;
}
.td-rich-block--in h4 { color: #1f9d55; }
.td-rich-block--out h4 { color: #c2410c; }
.td-map-frame {
  border-radius: 12px;
  overflow: hidden;
}

.td-inquiry-btn {
  width: 100%;
  background: #fff;
  color: #ff6900;
  border: 1.5px solid #ff6900;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.td-inquiry-btn i { font-size: 15px; line-height: 1; }
.td-inquiry-btn:hover { background: #fff7f0; }

.td-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 20, 30, 0.88);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.td-lightbox.is-open { display: flex; }
.td-lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.td-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}
.td-option {
  border: 1.5px solid #d9e2e8;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  transition: all .15s ease;
}
.td-option.is-selected {
  background: #ff6900;
  border-color: #ff6900;
  color: #fff;
}
.td-option-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}
.td-option-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.td-option-price {
  background: rgba(255,105,0,.12);
  color: #ff6900;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 10px;
  white-space: nowrap;
}
.td-option.is-selected .td-option-price {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.td-option-qty {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.18);
  border-radius: 10px;
  padding: 4px 6px;
}
.td-option.is-selected .td-option-qty {
  display: inline-flex;
}
.td-option-qty-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .9;
}
.td-qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.2);
  color: #fff;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.td-qty-btn:hover {
  background: rgba(255,255,255,.35);
}
.td-qty-input {
  width: 42px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 8px;
  background: rgba(255,255,255,.95);
  color: #023047;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 0;
}
.td-summary {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(2,48,71,.1);
  padding: 22px 20px;
  position: sticky;
  top: 96px;
  border: 1px solid rgba(2,48,71,.06);
}
.td-summary h4 {
  color: #023047;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 4px solid #ff6900;
  letter-spacing: .02em;
}
.td-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 10px;
  color: #4b5c66;
}
.td-summary-row strong {
  color: #023047;
  text-align: right;
  max-width: 62%;
  word-break: break-word;
}
.td-summary-row--save span,
.td-summary-row--save strong { color: #1f9d55 !important; }
.td-market-strike {
  text-decoration: line-through;
  color: #8a97a0 !important;
  font-weight: 600 !important;
}
.td-total {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid #e8eef2;
}
.td-total .amount {
  color: #ff6900;
  font-size: 1.7rem;
  font-weight: 800;
  margin-top: 6px;
  line-height: 1.15;
}
.td-total .lkr { color: #023047; font-weight: 700; font-size: 13px; margin-top: 2px; }
.td-book-now {
  width: 100%;
  background: linear-gradient(135deg, #ff6900 0%, #ff8c3a 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-weight: 800;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.td-book-now i { font-size: 15px; line-height: 1; }
.td-check-btn {
  width: 100%;
  background: #fff;
  color: #023047;
  border: 1.5px solid #023047;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.td-check-btn i { font-size: 15px; line-height: 1; }
.td-wa-btn {
  width: 100%;
  background: #e8f8ee;
  color: #128c7e;
  border: 1px solid #9ad7c2;
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  margin-top: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.td-wa-btn i { font-size: 16px; line-height: 1; color: #25d366; }
.td-confirm-wrap { display: none; margin-top: 18px; }
.td-confirm-wrap.is-open { display: block; }

.td-confirm-form .td-field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #023047;
  margin-bottom: 6px;
}
.td-confirm-form .form-control,
.td-confirm-form .form-select,
.td-confirm-form .td-country-select {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px;
  display: block;
  border-radius: 10px !important;
  border: 1px solid #d9e2e8 !important;
  padding: 10px 12px !important;
  background-color: #fff !important;
  appearance: auto;
  -webkit-appearance: menulist;
}
.td-confirm-form .form-control:focus,
.td-confirm-form .form-select:focus,
.td-confirm-form .td-country-select:focus {
  border-color: #ff6900 !important;
  box-shadow: 0 0 0 3px rgba(255,105,0,.12) !important;
}
.td-confirm-form .chosen-container {
  width: 100% !important;
  display: none !important;
}
.td-confirm-form select.td-no-chosen {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  height: auto !important;
  clip: auto !important;
}

/* Confirm Order Summary */
.td-order-summary {
  background: #f3f8fc;
  border: 1.5px solid #c8dbe8;
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 4px;
}
.td-order-summary h4 {
  color: #023047;
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.td-order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: #4b5c66;
  margin-bottom: 8px;
}
.td-order-row strong {
  color: #023047;
  text-align: right;
  font-weight: 700;
  max-width: 65%;
  word-break: break-word;
}
.td-order-row--discount span,
.td-order-row--discount strong {
  color: #1f9d55;
}
.td-order-divider {
  height: 1px;
  background: #d5e3ec;
  margin: 10px 0;
}
.td-order-row--total {
  align-items: flex-start;
  margin-bottom: 12px;
}
.td-order-row--total strong {
  font-size: 1.15rem;
  color: #023047;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.td-order-row--total small {
  font-size: 12.5px;
  font-weight: 700;
  color: #5a6d78;
}
.td-order-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  padding-top: 10px;
  border-top: 1px dashed #c8dbe8;
  font-size: 12px;
  color: #7a8b95;
}
.td-order-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.td-order-meta strong {
  color: #023047;
  font-size: 13px;
  font-weight: 700;
}

/* Modals – Check Availability / Instant Inquiry */
.td-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 48, 71, 0.55);
  backdrop-filter: blur(3px);
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.td-modal-overlay.is-open { display: flex !important; }
.td-modal {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 460px;
  padding: 26px 24px 22px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(2, 48, 71, 0.28);
}
.td-modal h3 {
  color: #023047;
  font-weight: 800;
  font-size: 1.45rem;
  margin: 0 0 6px;
  padding-right: 28px;
}
.td-modal .sub {
  color: #7a8b95;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.45;
}
.td-modal .close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #8a97a0;
  cursor: pointer;
}
.td-modal .selected-box {
  border: 1px solid #dce5eb;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  background: #f4f7fa;
}
.td-modal .selected-box small {
  color: #126e94;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 11px;
}
.td-modal .selected-title {
  font-weight: 700;
  color: #023047;
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.35;
}
.td-field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #023047;
  margin-bottom: 8px;
}
.td-field-label i { color: #126e94; }
.td-input-wrap { margin-bottom: 14px; }
.td-modal-input {
  border-radius: 12px !important;
  border: 1px solid #d5dee5 !important;
  min-height: 48px;
  padding: 10px 14px;
}
.td-phone-wrap .iti { width: 100%; }
.td-phone-wrap .iti__flag-container { border-radius: 12px 0 0 12px; }
.td-modal-cta {
  width: 100%;
  background: #023047;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 15px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .2s ease, transform .15s ease;
}
.td-modal-cta:hover { background: #034a63; color: #fff; }
.td-privacy {
  color: #8a97a0;
  font-size: 12px;
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.45;
}
.td-empty {
  text-align: center;
  padding: 60px 20px;
  color: #6b7c86;
}

@media (max-width: 991.98px) {
  .td-section { padding: 28px 0 48px; }
  .td-section-head { margin-bottom: 18px; }
  .td-section-head h2 { font-size: 1.35rem; }

  .td-card-media { height: 190px; }
  .td-card-overlay-title { font-size: 1.1rem; bottom: 40px; }
  .td-card-body { padding: 14px; }
  .td-card-actions {
    grid-template-columns: 1fr;
  }
  .td-btn-primary,
  .td-btn-outline {
    width: 100%;
    padding: 11px 12px;
  }

  .td-detail { padding: 16px 0 48px; }
  .td-detail-hero {
    min-height: 120px !important;
    padding-top: 18px;
    padding-bottom: 22px;
  }
  .td-detail-hero .abt-hero-title {
    font-size: 1.25rem !important;
    line-height: 1.3;
  }
  .td-detail-title { font-size: 1.3rem; }
  .td-lead { font-size: 14px; margin-bottom: 12px; }
  .td-tags { gap: 6px; margin: 8px 0 12px; }
  .td-tag { font-size: 11px; padding: 5px 10px; }

  .td-section-tabs {
    gap: 6px;
    padding: 2px 0 12px;
    margin-bottom: 4px;
  }
  .td-section-tab {
    font-size: 11px;
    padding: 7px 10px;
    gap: 5px;
  }

  .td-panel {
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 14px;
  }
  .td-panel-title {
    font-size: 1.05rem;
    margin-bottom: 12px;
    gap: 8px;
  }

  .td-main-shot img,
  .td-gallery-main img { max-height: 240px; }
  .td-thumbs--section .td-thumb {
    width: 72px;
    height: 54px;
  }
  .td-thumb { width: 72px; height: 54px; }

  .td-option {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
  }
  .td-option-meta {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .td-option-price { flex: 1 1 auto; text-align: center; }
  .td-option-qty { margin-left: auto; }

  .td-summary {
    position: static;
    margin-top: 8px;
    padding: 16px;
  }
  .td-summary h4 { font-size: 0.95rem; margin-bottom: 12px; }
  .td-total .amount { font-size: 1.45rem; }
  .td-book-now,
  .td-check-btn,
  .td-inquiry-btn,
  .td-wa-btn {
    padding: 12px;
    font-size: 14px;
  }

  .td-order-summary { padding: 14px; }
  .td-order-meta { grid-template-columns: 1fr; }
  .td-map-frame { min-height: 220px; }

  .td-modal {
    max-width: 100%;
    padding: 22px 16px 18px;
    border-radius: 16px;
  }
  .td-modal h3 { font-size: 1.25rem; }
}

@media (max-width: 575.98px) {
  .td-section { padding: 20px 0 40px; }
  .td-card-media { height: 180px; }
  .td-online-box .online-price { font-size: 1.2rem; }
  .td-market,
  .td-sale { word-break: break-word; font-size: 12px; }

  .td-detail-intro { margin-bottom: 4px; }
  .td-main-shot img,
  .td-gallery-main img { max-height: 210px; border-radius: 12px; }
  .td-main-shot,
  .td-gallery-main { border-radius: 12px; }

  .td-section-tab span {
    max-width: 9.5em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .td-confirm-form .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .td-order-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .td-order-row strong {
    max-width: 100%;
    text-align: left;
  }
  .td-order-row--total strong { align-items: flex-start; }
}
