/* ===== Pursuit Tour Search Styles ===== */
/* Primary color: #45BC8A */

.pursuit-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    font-family: inherit !important;
}

.pursuit-container * {
    font-family: inherit !important;
}

.pursuit-header {
    text-align: center;
    margin-bottom: 24px;
}

.pursuit-header h2 {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.pursuit-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.selected-tour-info {
    color: #45BC8A !important;
    font-weight: 600;
    font-size: 16px !important;
}

/* Steps */
.pursuit-step {
    display: none;
}

.pursuit-step.active {
    display: block;
}

/* ===== Tabs ===== */
.pursuit-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.pursuit-tab {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: #fff !important;
    font-size: 16px;
    font-weight: 600;
    color: #888 !important;
    cursor: pointer;
    border-bottom: 3px solid transparent !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    box-shadow: none !important;
    outline: none;
}

.pursuit-tab:hover {
    color: #333 !important;
    background: #fff !important;
}

.pursuit-tab.active {
    color: #45BC8A !important;
    border-bottom-color: #45BC8A !important;
    background: #fff !important;
}

.pursuit-tab-content {
    display: none;
}

.pursuit-tab-content.active {
    display: block;
}

/* ===== Radio Items ===== */
.pursuit-radio-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit !important;
    color: #1a1a1a !important;
    font-size: 15px !important;
    font-weight: normal !important;
}

.pursuit-radio-item:hover {
    border-color: #45BC8A;
    background: #f8fdf9;
}

.pursuit-radio-item input[type="radio"] {
    margin-right: 12px;
    accent-color: #45BC8A;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pursuit-radio-item input[type="radio"]:checked + .radio-label {
    color: #1a1a1a;
}

.pursuit-radio-item:has(input:checked) {
    border-color: #45BC8A;
    background: #f0faf5;
}

.radio-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.radio-tour-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    flex-shrink: 1;
    min-width: 0;
}

.radio-period {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    margin-left: 12px;
    flex-shrink: 0;
}

/* Responsive date format */
.desktop-only {
    display: inline;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: inline;
    }
}

/* ===== Selection Box (tabs + radio list) ===== */
.pursuit-selection-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 0;
}

/* ===== Detail Section (price + people + total) ===== */
.pursuit-detail-section {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
}

/* People Section (price + counter in one row) */
.pursuit-people-section {
    margin-bottom: 16px;
}

.people-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 12px;
}

.people-row:last-child {
    border-bottom: none;
}

.people-label {
    flex: 1;
    min-width: 0;
}

.people-label strong {
    display: block;
    font-size: 15px;
    color: #1a1a1a;
}

.people-label span {
    font-size: 12px;
    color: #888;
}

.people-price {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    min-width: 90px;
    text-align: right;
}

.people-counter {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.people-counter input {
    width: 44px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
    background: #fff;
    height: 36px;
    line-height: 36px;
    box-sizing: border-box;
    -moz-appearance: textfield;
}

.people-counter input::-webkit-outer-spin-button,
.people-counter input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-counter {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: #333;
    box-sizing: border-box;
    padding: 0;
    line-height: 1;
}

.btn-minus {
    border-radius: 6px 0 0 6px;
}

.btn-plus {
    border-radius: 0 6px 6px 0;
}

.btn-counter:hover {
    background: #e8e8e8;
}

/* Total Bar */
.pursuit-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 2px solid #45BC8A;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.pursuit-total-bar small {
    font-size: 13px;
    color: #888;
    font-weight: 400;
    margin-left: 6px;
}

/* ===== Buttons ===== */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: #45BC8A;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #3aa77a;
}

.btn-secondary {
    flex: 1;
    padding: 14px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.pursuit-nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.pursuit-nav-buttons .btn-primary {
    flex: 2;
}

.pursuit-nav-buttons .btn-secondary {
    flex: 1;
}

/* ===== Easepick calendar position fix ===== */
.datetime-entry {
    position: relative;
}

.easepick-wrapper {
    z-index: 9999 !important;
    position: absolute !important;
}

.easepick-wrapper.position-top {
    bottom: 0 !important;
    top: auto !important;
    margin-bottom: 4px;
}

.easepick-wrapper.position-bottom {
    margin-top: 4px;
}

/* ===== Date/Time Entries (Step 2) ===== */
.pursuit-datetime-entries {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.datetime-entry {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
}

.datetime-entry-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.datetime-step-num {
    width: 28px;
    height: 28px;
    background: #45BC8A;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}

.datetime-tour-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    flex: 1;
}

.datetime-date-range {
    font-size: 12px;
    color: #888;
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.datetime-entry-header-single {
    margin-bottom: 12px;
    justify-content: flex-end;
}

.datetime-fields {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.datetime-field {
    flex: 1;
    min-width: 140px;
}

.datetime-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.pursuit-date-input,
.pursuit-time-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
}

.pursuit-date-input:focus,
.pursuit-time-select:focus {
    outline: none;
    border-color: #45BC8A;
}

/* ===== Loading ===== */
.pursuit-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 10px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #45BC8A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.pursuit-loading p {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .pursuit-container {
        padding: 12px;
    }

    .pursuit-header h2 {
        font-size: 20px;
    }

    .radio-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .radio-period {
        margin-left: 0;
    }

    .radio-tour-name {
        font-size: 14px;
    }

    .datetime-fields {
        flex-direction: column;
    }

    .datetime-field {
        min-width: 100%;
    }

    .pursuit-total-bar {
        font-size: 16px;
    }
}
