/* Pagination styles */
.pagination {
    display: flex;
}

.pagination .page-item {
    width: 40px;
    height: 40px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 50%;
    margin: 10px;
    line-height: 40px;
    text-align: center;
}

.pagination .page-item.active {
    background-color: #071034;
    color: white;
}

.pagination .page-item a.button:hover {
    background-color: #1c3477;
    color: white;
}

.pagination .page-item.disabled a:hover {
    background-color: unset;
    color: unset;
}

.pagination .page-item:has(a.page-link):hover {
    background-color: #b8bed994;
}

/* ============================================
   SIMPLE CARD-BASED SEARCH DESIGN
   ============================================ */

/* Tab content visibility */
.tabs__pane {
    display: none;
}

.tabs__pane.is-tab-el-active {
    display: block;
}

/* Global text alignment fix */
* {
    text-align: left !important;
    direction: ltr !important;
}

/* Container alignment */
.container,
.row,
.col-12,
.col-md,
.col-md-auto {
    text-align: left !important;
}

/* Simple white card container */
.search-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    text-align: left !important;
}

/* Search header */
.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 5px 0;
    text-align: center;
}

.search-header p {
    color: #718096;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* Simple responsive grid */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.search-grid.boat-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Custom Boat Ticket Grid Layout */
.search-grid.boat-ticket-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

/* Boat rows */
.boat-row {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* Row 1: Half width inline fields */
.boat-row-1 {
    display: flex;
    gap: 20px;
    width: 100%;
}

.boat-row-1 .search-field.boat-half {
    width: calc(50% - 10px);
}

.boat-row-1 .field-wrapper {
    width: 100%;
}

.boat-row-1 .field-wrapper select {
    width: 100% !important;
}

/* Row 2: Half width inline fields */
.boat-row-2 .search-field.boat-half {
    width: calc(50% - 10px);
}

/* Row 3: Date fields layout */
.boat-row-3 {
    display: flex;
    gap: 20px;
    width: 100%;
}

.boat-row-3 .search-field.boat-half {
    width: calc(50% - 10px);
}

/* Row 4: Dynamic date layout */
.boat-row-4 .search-field {
    width: 100%;
}

.boat-row-4 .search-field.boat-half {
    width: calc(50% - 10px);
}

/* Custom Tour Grid Layout */
.search-grid.tour-custom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.tour-inline-wrapper {
    display: flex;
    gap: 20px;
    width: 100%;
}

.search-grid.tour-custom-grid .tour-inline-half {
    display: inline-block;
    width: calc(50% - 10px);
    vertical-align: top;
}

.search-grid.tour-custom-grid .tour-inline-half:nth-of-type(even) {
    /* margin-left: 20px; */
}

.search-grid.tour-custom-grid .tour-category-full {
    grid-column: 1 / -1;
    width: 100%;
}

/* Search field styling */
.search-field {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.search-field label {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 5px;
    font-size: 14px;
    text-align: left;
}

/* Field wrapper with icon */
.field-wrapper {
    position: relative;
}

.field-wrapper select,
.field-wrapper input {
    width: 100%;
    height: 48px;
    padding: 12px 16px 12px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    direction: ltr;
}
.field-wrapper textarea {
    width: 100%;
    height: 100px;
    padding: 12px 16px 12px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #2d3748;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
    direction: ltr;
}

.field-wrapper select:focus,
.field-wrapper input:focus,
.field-wrapper textarea:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.field-wrapper select:hover,
.field-wrapper input:hover,
.field-wrapper textarea:hover {
    border-color: #cbd5e0;
}

/* Field icons */
.field-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 16px;
    pointer-events: none;
}

.field-wrapper:focus-within .field-icon {
    color: #4299e1;
}

/* Custom dropdown arrow */
.field-wrapper select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.field-wrapper select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%234299e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Placeholder styling */
.field-wrapper input::placeholder {
    color: #a0aec0;
}

/* Search options (checkbox) */
.search-options {
    margin-bottom: 20px;
    text-align: center;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.custom-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    background-color: #fff;
    transition: all 0.2s ease;
}

.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #4299e1;
    border-color: #4299e1;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.custom-checkbox:hover .checkmark {
    border-color: #4299e1;
}

/* Search actions */
.search-actions {
    text-align: center;
}

/* Simple search button */
.search-btn {
    background: #4299e1;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    justify-content: center;
}

.search-btn:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.search-btn i {
    font-size: 16px;
}

/* Error states */
.field-wrapper .error {
    border-color: #e53e3e;
}

.field-wrapper .error + .field-icon {
    color: #e53e3e;
}

/* Disabled states */
.field-wrapper select:disabled,
.field-wrapper input:disabled {
    background-color: #f7fafc;
    color: #a0aec0;
    cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .search-container {
        padding: 20px;
    }

    .search-header h3 {
        font-size: 20px;
    }

    .search-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .field-wrapper select,
    .field-wrapper input {
        height: 44px;
        font-size: 16px;
    }

    .search-btn {
        height: 50px;
        font-size: 16px;
    }

    /* Mobile responsive for custom grids */
    .search-grid.boat-ticket-grid .boat-row {
        flex-direction: column;
        gap: 15px;
    }

    .search-grid.boat-ticket-grid .boat-row .search-field,
    .search-grid.boat-ticket-grid .boat-row .search-field.boat-half {
        width: 100%;
    }

    .tour-inline-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .search-grid.tour-custom-grid .tour-inline-half {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-bottom: 15px;
    }

    .search-grid.tour-custom-grid .tour-inline-half:nth-of-type(even) {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 15px;
        border-radius: 8px;
    }

    .search-header {
        margin-bottom: 20px;
    }

    .search-header h3 {
        font-size: 18px;
    }

    .search-header p {
        font-size: 13px;
    }
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    max-width: 300px;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification-success {
    background: #48bb78;
}

.notification-error {
    background: #e53e3e;
}

.notification-warning {
    background: #ed8936;
}

.notification-info {
    background: #4299e1;
}

/* Product Badge Styles */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.product-badges .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-badges .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.product-badges .badge i {
    margin-right: 3px;
    font-size: 10px;
}

/* Badge color variants */
.badge-primary {
    background: var(--bs-primary) !important;
    color: white !important;
}

.badge-secondary {
    background: var(--bs-secondary) !important;
    color: white !important;
}

.badge-success {
    background: var(--bs-success) !important;
    color: white !important;
}

.badge-danger {
    background: var(--bs-danger) !important;
    color: white !important;
}

.badge-warning {
    background: var(--bs-warning) !important;
    color: white !important;
}

.badge-info {
    background: var(--bs-info) !important;
    color: white !important;
}

.badge-light {
    background: var(--bs-light) !important;
    color: #333 !important;
}

.badge-dark {
    background: var(--bs-dark) !important;
    color: white !important;
}
