/**
 * Package detail — Book This Tour card (reference layout).
 * Loaded from package_booking_card.php; uses #book-this-tour for reliable targeting.
 */

#book-this-tour.rr-pkg-booking-card {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 30px 28px 28px !important;
    background: #ffffff !important;
    border: 1px solid #e8ecef !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 36px rgba(15, 23, 42, 0.08) !important;
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, Helvetica, sans-serif !important;
}

#book-this-tour.rr-pkg-booking-card *,
#book-this-tour.rr-pkg-booking-card *::before,
#book-this-tour.rr-pkg-booking-card *::after {
    box-sizing: border-box;
}

#book-this-tour .rr-pkg-booking-card__heading {
    margin: 0 0 20px !important;
    padding: 0 0 18px !important;
    border-bottom: 1px solid #e8ecef !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    color: var(--gotur-base, #123a73) !important;
}

#book-this-tour .rr-pkg-booking-card__price {
    margin: 0 0 22px !important;
    padding: 0 !important;
}

#book-this-tour .rr-pkg-booking-card__price-label {
    display: block !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: #9ca3af !important;
    line-height: 1.3 !important;
}

#book-this-tour .rr-pkg-booking-card__price-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px 8px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#book-this-tour .rr-pkg-booking-card__price-value {
    display: inline !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
}

#book-this-tour .rr-pkg-booking-card__price-currency {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
}

#book-this-tour .rr-pkg-booking-card__price-amount {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #111827 !important;
}

#book-this-tour .rr-pkg-booking-card__price-meta {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
}

#book-this-tour .rr-pkg-booking-card__form {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

#book-this-tour .rr-pkg-booking-card__field {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

#book-this-tour .rr-pkg-booking-card__field--travelers {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

#book-this-tour .rr-pkg-booking-card__label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #4b5563 !important;
    line-height: 1.3 !important;
    float: none !important;
}

#book-this-tour .rr-pkg-booking-card__input-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

#book-this-tour .rr-pkg-booking-card__input,
#book-this-tour button.rr-pkg-booking-card__travelers-trigger {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 44px 12px 14px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    color: #111827 !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    background: #f8f9fa !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    cursor: pointer;
}

#book-this-tour .rr-pkg-booking-card__input--pad-left {
    padding-left: 40px !important;
}

#book-this-tour .rr-pkg-booking-card__input:focus,
#book-this-tour button.rr-pkg-booking-card__travelers-trigger:focus {
    outline: none !important;
    border-color: #003366 !important;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.12) !important;
    background: #ffffff !important;
}

#book-this-tour .rr-pkg-booking-card__input::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

#book-this-tour .rr-pkg-booking-card__input-icon {
    position: absolute !important;
    top: 50% !important;
    right: 14px !important;
    left: auto !important;
    transform: translateY(-50%) !important;
    color: #6b7280 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    pointer-events: none !important;
    z-index: 2;
}

#book-this-tour .rr-pkg-booking-card__input-icon--left {
    left: 14px !important;
    right: auto !important;
}

#book-this-tour .rr-pkg-booking-card__travelers-panel {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
    margin: 0 !important;
    padding: 16px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14) !important;
}

#book-this-tour .rr-pkg-booking-card__travelers-panel[hidden] {
    display: none !important;
}

#book-this-tour .rr-pkg-booking-card__traveler-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 8px 0 !important;
    margin: 0 !important;
}

#book-this-tour .rr-pkg-booking-card__traveler-row + .rr-pkg-booking-card__traveler-row {
    border-top: 1px solid #f1f5f9 !important;
}

#book-this-tour .rr-pkg-booking-card__traveler-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

#book-this-tour .rr-pkg-booking-card__counter {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
}

#book-this-tour .rr-pkg-booking-card__counter-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    padding: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    color: #111827 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

#book-this-tour .rr-pkg-booking-card__counter-btn:hover {
    border-color: #003366 !important;
    color: #003366 !important;
    background: #ffffff !important;
}

#book-this-tour .rr-pkg-booking-card__counter-value {
    min-width: 20px !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

#book-this-tour .rr-pkg-booking-card__travelers-apply {
    width: 100% !important;
    margin-top: 12px !important;
    padding: 10px 16px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #003366 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

#book-this-tour .rr-pkg-booking-card__travelers-apply:hover {
    background: #002244 !important;
}

#book-this-tour .rr-pkg-airport-suggestions {
    display: none;
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 60 !important;
    max-height: 220px;
    overflow-y: auto;
    margin: 0 !important;
    padding: 6px 0 !important;
    list-style: none !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
}

#book-this-tour .rr-pkg-airport-suggestions.is-open {
    display: block !important;
}

#book-this-tour .rr-pkg-airport-suggestions li {
    padding: 10px 14px !important;
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    color: #1f2937 !important;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent !important;
}

#book-this-tour .rr-pkg-airport-suggestions li:last-child {
    border-bottom: none !important;
}

#book-this-tour .rr-pkg-airport-suggestions li:hover {
    background: #f3f6f9 !important;
}

#book-this-tour .rr-pkg-airport-suggestions li.rr-pkg-airport-suggestions__empty {
    color: #6b7280 !important;
    cursor: default;
}

#book-this-tour .rr-pkg-airport-suggestions li.rr-pkg-airport-suggestions__empty:hover {
    background: #ffffff !important;
}

/* Match .tour-listing-details__info-area li .gotur-btn (base + hover wipe) */
#book-this-tour button.rr-pkg-booking-card__submit {
    position: relative !important;
    overflow: hidden !important;
    z-index: 1;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 6px 0 0 !important;
    padding: 15px 24px !important;
    border: none !important;
    border-radius: 50px !important;
    background-color: var(--gotur-base, #123a73) !important;
    color: var(--gotur-white, #fff) !important;
    font-family: var(--gotur-font, "Plus Jakarta Sans", sans-serif) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: color 500ms;
}

#book-this-tour button.rr-pkg-booking-card__submit::before,
#book-this-tour button.rr-pkg-booking-card__submit::after {
    content: "";
    background-color: var(--gotur-primary, #f4b400);
    height: 50%;
    width: 0;
    position: absolute;
    z-index: -1;
    transition: 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

#book-this-tour button.rr-pkg-booking-card__submit::before {
    top: 0;
    left: 0;
    right: auto;
}

#book-this-tour button.rr-pkg-booking-card__submit::after {
    bottom: 0;
    right: 0;
    left: auto;
}

#book-this-tour button.rr-pkg-booking-card__submit:hover {
    color: var(--gotur-white, #fff) !important;
    background-color: var(--gotur-base, #123a73) !important;
    transform: none;
}

#book-this-tour button.rr-pkg-booking-card__submit:hover::before {
    width: 100%;
    right: 0;
    left: auto;
}

#book-this-tour button.rr-pkg-booking-card__submit:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

#book-this-tour .rr-pkg-booking-card__submit-icon {
    position: relative;
    z-index: 1;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: inherit !important;
}

/* Override Gotur sidebar form defaults when nested in sidebar */
.tour-listing-details__sidebar #book-this-tour.rr-pkg-booking-card {
    border-radius: 20px !important;
}

.tour-listing-details__sidebar #book-this-tour .rr-pkg-booking-card__label {
    text-transform: uppercase !important;
    font-size: 11px !important;
}

.tour-listing-details__sidebar #book-this-tour input[type="text"] {
    border-radius: 8px !important;
}

/* jQuery UI datepicker — package booking (visible prev/next arrows) */
.ui-datepicker.rr-pkg-booking-datepicker-popup {
    width: 320px !important;
    padding: 16px 18px 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14) !important;
    background: #ffffff !important;
    color: #1d231f !important;
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif !important;
    z-index: 10120 !important;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 40px !important;
    margin: 0 0 8px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #003366 !important;
    color: #ffffff !important;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    line-height: 1.2;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup select.ui-datepicker-month,
.ui-datepicker.rr-pkg-booking-datepicker-popup select.ui-datepicker-year {
    margin: 0;
    padding: 5px 28px 5px 10px !important;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #003366 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23003366' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 6px;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup select.ui-datepicker-month option,
.ui-datepicker.rr-pkg-booking-datepicker-popup select.ui-datepicker-year option {
    color: #1d231f !important;
    background-color: #ffffff !important;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup select.ui-datepicker-year {
    padding-right: 28px !important;
    min-width: 4.5em;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-prev,
.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-next {
    top: 50% !important;
    width: 30px !important;
    height: 30px !important;
    margin-top: -15px !important;
    border: none !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    background-image: none !important;
    cursor: pointer;
    transform: none !important;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-prev {
    left: 8px !important;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-next {
    right: 8px !important;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-prev:hover,
.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-next:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-prev span,
.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-next span {
    display: block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px !important;
    height: 8px !important;
    margin: -4px 0 0 -4px !important;
    border: solid #ffffff !important;
    border-width: 0 2px 2px 0 !important;
    background: none !important;
    background-image: none !important;
    text-indent: -9999px;
    overflow: hidden;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-prev span {
    margin-left: -2px !important;
    transform: rotate(135deg);
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-next span {
    margin-left: -6px !important;
    transform: rotate(-45deg);
}

.ui-datepicker.rr-pkg-booking-datepicker-popup table.ui-datepicker-calendar {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-calendar th {
    padding: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: #003366;
    text-align: center;
    background: transparent !important;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-calendar th span {
    color: #003366 !important;
    font-weight: 600;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-calendar td {
    padding: 2px;
    text-align: center;
    background: transparent !important;
    color: #1d231f !important;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-calendar .ui-state-default {
    color: #1d231f !important;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-calendar td a,
.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-calendar td span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 auto;
    padding: 0 !important;
    border: 1px solid transparent !important;
    border-radius: 50% !important;
    background: #f3f8f6 !important;
    background-image: none !important;
    color: #1d231f !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-other-month a,
.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-other-month span {
    color: #d1d5db !important;
    background: transparent !important;
    opacity: 1;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-unselectable .ui-state-default,
.ui-datepicker.rr-pkg-booking-datepicker-popup td.ui-state-disabled span,
.ui-datepicker.rr-pkg-booking-datepicker-popup td.ui-state-disabled a {
    color: #9ca3af !important;
    background: #f3f4f6 !important;
    opacity: 1 !important;
    cursor: default;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-calendar td a:hover {
    background: #e8f0f8 !important;
    color: #003366 !important;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-state-active,
.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-current-day a {
    border-color: #003366 !important;
    background: #003366 !important;
    color: #ffffff !important;
    font-weight: 600;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-state-highlight {
    background: #f3f8f6 !important;
    color: #1d231f !important;
    border-color: transparent !important;
}

.ui-datepicker.rr-pkg-booking-datepicker-popup .ui-datepicker-today a {
    font-weight: 600;
}

@media (max-width: 991px) {
    #book-this-tour.rr-pkg-booking-card {
        margin-top: 8px;
    }
}
