/* ==============================
   Dynasty Booking Widget (Isolated)
   File: assets/css/booking-widget.css
   ============================== */

.dt-booking-widget {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* NAV */
.dt-booking-nav {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding: 6px 8px;
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  z-index: 50;
  width: min(100%, 980px);
  justify-content: space-between !important;
}

.dt-booking-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.dt-booking-tabs::-webkit-scrollbar { display: none; }

.dt-tab {
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 20px;
  white-space: nowrap;
  user-select: none;
  opacity: 0.95;
}
.dt-tab.dt-active {
  background: rgba(255, 255, 255, 0.28);
}

.dt-search-btn {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%) !important;
  color: #003300 !important;
  border: none !important;
  padding: 10px 18px !important;
  border-radius: 30px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px;
  white-space: nowrap;
}

/* TOP EARS */
.dt-ticket-top {
  display: flex !important;
  align-items: flex-end !important;
  width: 100%;
}

.dt-ear {
  background: #fff;
  height: 60px;
  display: flex !important;
  align-items: center !important;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  line-height: 1.4;
  position: relative;
  z-index: 10;
  padding: 0 22px;
  flex: 0 0 190px;
}

.dt-ear-left {
  border-radius: 20px 20px 0 0;
  justify-content: flex-start;
}
.dt-ear-right {
  border-radius: 20px 20px 0 0;
  justify-content: flex-end;
  text-align: right;
}

.dt-ticket-gap {
  flex: 1;
  height: 60px;
}

.dt-ear-left::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -20px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at top right, transparent 20px, #fff 20px);
}
.dt-ear-right::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -20px;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle at top left, transparent 20px, #fff 20px);
}

/* BODY */
.dt-ticket-body {
  background: #fff;
  border-radius: 0 0 24px 24px;
  padding: 28px 30px 22px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  position: relative;
  z-index: 10;
}

.dt-row {
  display: flex !important;
  gap: 20px;
  align-items: flex-start !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
}

.dt-field {
  flex: 1;
  min-width: 160px;
}

.dt-label {
  display: block;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 700;
}

.dt-input,
.dt-select {
  width: 100%;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #111827 !important;
  padding: 0 !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.2;
}

.dt-input::placeholder { color: #9ca3af; font-weight: 700; }

.dt-sub {
  display: block;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}

.dt-divider {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #eee;
}

/* Tablet */
@media (max-width: 992px) {
  .dt-row { flex-wrap: wrap !important; }
  .dt-field { min-width: calc(50% - 10px); }
  .dt-ear { flex-basis: 160px; padding: 0 16px; }
}

/* Mobile */
@media (max-width: 576px) {
  .dt-booking-nav {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    border-radius: 18px;
    margin-bottom: 12px;
  }
  .dt-ticket-top { display: none !important; }
  .dt-ticket-body { border-radius: 24px; padding: 18px 16px; }
  .dt-field { min-width: 100%; }
  .dt-input, .dt-select { font-size: 18px !important; }
  .dt-sub { white-space: normal; }
}

/* ====== FIX: Nav bar overlapping ears ====== */

/* make nav slimmer + slightly higher */
.dt-booking-nav{
  top: -34px !important;              /* move up */
  padding: 6px 8px !important;        /* slimmer */
  width: min(92%, 900px) !important;  /* reduce width so ears remain visible */
  gap: 10px !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.20) !important;
  background: rgba(0,0,0,0.30) !important;  /* darker like reference */
  border: 1px solid rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(10px) !important;   /* reduce blur fog */
  -webkit-backdrop-filter: blur(10px) !important;
}

/* tabs: smaller pills so they don't eat space */
.dt-tab{
  padding: 7px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

/* active tab: closer to your reference */
.dt-tab.dt-active{
  background: rgba(255,255,255,0.22) !important;
}

/* search button: slightly smaller */
.dt-search-btn{
  padding: 9px 16px !important;
  font-size: 14px !important;
}

/* make ears a little higher so they read clearly */
.dt-ear{
  height: 64px !important;
}

/* keep everything visible (no clipping) */
.dt-widget-holder,
.dt-booking-widget{
  overflow: visible !important;
}

/* ====== FIX: "Need help booking?" position ====== */
.dt-widget-help{
  margin-bottom: 6px !important;
  margin-right: 6px !important;
}

/* ====== Mobile: nav should not float too high ====== */
@media (max-width: 576px){
  .dt-booking-nav{
    top: 0 !important;
    width: 100% !important;
    border-radius: 18px !important;
  }
}

