/* Flight Package Filter Styles */
.asme-flight-package-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.asme-flight-filter-sidebar {
    flex-shrink: 0;
    width: 300px;
    background: #fff !important;
    padding: 20px;
    border-radius: 8px;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}

.asme-flight-results-container {
    flex: 1;
    min-width: 0;
    width: 100%;
}

.asme-flight-results-container>div {
    gap: 20px !important;
}

.asme-filter-group {
    margin-bottom: 20px;
}

.asme-filter-group label {
    display: block;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.asme-filter-group input[type="date"],
.asme-filter-group select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #F9FAFB;
    transition: border-color 0.3s ease;
}

.asme-filter-group input[type="number"] {
    padding: 10px 3px !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #F9FAFB;
}

.asme-filter-group input[type="date"]:focus,
.asme-filter-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.asme-filter-group input[type="date"]:not(:last-child) {
    margin-bottom: 10px;
}

/* Passenger Counter Styles */
.asme-passenger-counter {
    margin-bottom: 15px;
}

.asme-counter-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.asme-counter-btn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    color: #333333 !important;
    background-color: #ffffff !important;
    background: #ffffff !important;
    border: 2px solid #E5E7EB !important;
    border-style: solid !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 0 2px 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    overflow: visible !important;
    text-transform: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.asme-counter-btn:hover {
    background: #f0f0f0;
    border-color: #007cba;
}

.asme-counter-btn:active {
    background: #e0e0e0;
    transform: scale(0.95);
}

.asme-counter-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

/* Filter Buttons */
.asme-filter-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.asme-filter-buttons button {
    flex: 1;
    padding: 12px !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: bold !important;
    text-transform: uppercase;
    transition: all 0.2s ease;
    background: #fff !important;
}

.asme-filter-buttons button[type="submit"] {
    background: #008EEC !important;
    color: #fff !important;
}

.asme-filter-buttons button[type="submit"]:hover {
    background: #005a87;
}

.asme-filter-buttons button#asme-reset-filters {
    background: #fff !important;
    color: #1F2A37 !important;
    border: 1px solid #E5E7EB !important;
}

.asme-filter-buttons button#asme-reset-filters:hover {
    background: #E5E7EB !important;
}

/* Loading Animation */
#asme-filter-loading {
    text-align: center;
    margin-top: 15px;
    color: #666;
}

.asme-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: asme-spin 1s linear infinite;
}

@keyframes asme-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#asme-filter-loading p {
    margin: 10px 0 0 0;
    font-size: 14px;
}

/* Umrah Package Featured */
.asme-package-price-umrah-featured {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asme-package-price-umrah-featured>h3 {
    font-weight: bold !important;
    color: #000 !important;
    text-align: center;
    margin: 0px;
}

.asme-package-price-umrah-featured>span {
    font-weight: 600;
    color: red;
    text-decoration: line-through;
}

.asme-package-price-umrah-pax {
    display: flex;
    align-items: center;
    gap: 15px;
}

.asme-package-price-umrah-pax>span {
    font-size: 14px !important;
    line-height: 1em;
    color: #000;
    font-weight: semibold;
}

.asme-package-price-umrah-pax>div {
    display: flex;
    align-items: center;
    background: #e5e7eb;
    padding: 1px 10px;
    border-radius: 6px;
}

/*.single-pakej-percutian .filter-toggle {
    display: none !important;
}*/

.asme-pf-item-left>div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .asme-flight-package-container {
        flex-direction: column;
        gap: 15px;
    }

    .asme-flight-filter-sidebar {
        width: 100%;
    }

    .asme-counter-controls {
        justify-content: center;
    }

    .asme-filter-buttons {
        flex-direction: column;
    }

    .asme-filter-buttons button {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* Results Container Styles */
.asme-elementor-loop-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
}

/* Error Messages */
.asme-filter-error {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

.asme-filter-success {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

/* ======================================
   PERCUTIAN PACKAGE CARD STYLES
   ====================================== */

.asme-pf-loop-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.asme-pf-item {
    background: #fff;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 3fr 1.3fr;
    min-height: 160px;
}

.asme-pf-item-left {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.asme-pf-item-left>h3 {
    display: none;
}

.asme-pf-item-left>img {
    width: 100%;
    height: auto;
}

.asme-pf-airline-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.asme-pf-item-left-type {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.asme-pf-item-left-type>span {
    line-height: 1em;
    font-size: 14px;
    font-weight: 600 !important;
    text-align: center;
    color: #000;
    background: #ebebeb;
    padding: 6px;
    border-radius: 6px;
    width: 100%;
}

.asme-pf-item-left-duration {
    display: flex;
    justify-content: center;
    gap: 10px;
    background: #ebebeb;
    padding: 6px;
    border-radius: 6px;
}

.asme-pf-item-left-duration>span {
    font-size: 14px;
    font-weight: 600 !important;
    color: #000;
    line-height: 1em;
}

.asme-pf-item-left-type-date {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asme-pf-item-left-type-date>span {
    font-size: 14px;
    font-weight: 600 !important;
    color: #000;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.asme-pf-item-left-type-date>span>svg {
    color: #8b8b8b;
    width: 18px;
    height: 18px;
}

.asme-pf-item-center {
    border-left: 1px solid #ebebeb;
    border-right: 1px solid #ebebeb;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.asme-pf-item-center>h3 {
    font-weight: bold !important;
    margin: 0px !important;
}

.asme-pf-item-center-dates {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.asme-pf-item-center-dates>span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600 !important;
    color: #000;
}

.asme-pf-item-center-dates>span>svg {
    width: 18px;
    height: 18px;
    color: #8b8b8b;
}

.asme-pf-item-seat-balance {
    background: #CFF7D3;
    color: #009951;
    padding: 6px 16px;
    line-height: 1em;
    border-radius: 6px;
    font-size: 16px;
    width: fit-content;
}

.asme-pf-item-right {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.asme-pf-item-right-price>h3 {
    font-weight: bold !important;
    margin: 0px !important;
}

.asme-pf-item-right-price>span {
    font-size: 14px;
    color: #838383;
    text-decoration: line-through;
}

.asme-uuzpb-button.asme-pf-item-right-button .asme-uuzpb-text {
    font-size: 16px;
    font-weight: 500;
}

.asme-uuzpb-button.asme-pf-item-right-button {
    padding: 6px 20px !important;
    background: #008EEC !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

.asme-uuzpb-button.asme-pf-item-right-button:hover {
    background: #0074c2 !important;
}

.asme-uuzpb-button.asme-pf-item-right-button svg {
    width: 18px;
    height: 18px;
}

.asme-pf-item-right-download {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #0774BC;
    text-decoration: none !important;
}

.asme-pf-item-right-download:hover {
    text-decoration: underline;
}

.asme-pf-item-right-download svg {
    width: 16px;
    height: 16px;
}

.asme-pf-item-center-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Responsive Design for Percutian Cards */
@media (max-width: 1024px) {
    .asme-pf-item {
        grid-template-columns: 1fr;
    }

    .asme-pf-item-left>img {
        width: 100px;
    }

    .asme-pf-item-left-type {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .asme-pf-item-left-type-date {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .asme-pf-item-left-type-date>span {
        justify-content: center;
    }

    .asme-pf-item-left>h3 {
        margin: 0;
        font-size: 20px !important;
        display: block;
    }

    .asme-pf-item-center {
        gap: 10px;
        border-bottom: 1px solid #ebebeb;
        border-left: none;
        border-right: none;
    }

    .asme-pf-item-right {
        order: 3;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .asme-pf-item-right-price {
        text-align: center;
    }

    .asme-pf-item-right-download {
        justify-content: center;
    }

    .asme-pf-item-seat-balance {
        text-align: center;
    }

    .asme-pf-item-center>h3 {
        display: none;
    }

    .asme-pf-item-left {
        gap: 10px;
        border-bottom: 1px solid #ebebeb;
    }

    .asme-pf-item-left>div {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .asme-pf-item-center-info {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 640px) {
    .asme-pf-item-right {
        grid-template-columns: 1fr;
        display: flex;
        align-items: center;
    }

    .asme-pf-item-seat-balance {
        width: fit-content;
    }

    .asme-pf-item-center>h3 {
        font-size: 18px !important;
    }

    .asme-pf-item-center-dates span {
        line-height: 1.2em;
    }

    .asme-pf-item-left>h3 {
        font-size: 18px !important;
    }
}