/**
 * DT Tour List Page Styles
 * Hotel cards listing for Aurora Village
 */

.wp-block-post-title {
    display: none;
}

#tourListContainer {
    max-width: 1200px;
    padding: 20px;
    background-color: white;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.tour-list-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e6e6e6;
}

.tour-list-header h2 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 10px;
}

.search-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #666;
    font-size: 0.95em;
}

.search-summary-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-summary-item strong {
    color: #212529;
}

/* Hotel Cards */
.hotel-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hotel-card {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s, border-color 0.3s;
    cursor: pointer;
}

.hotel-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #00b361;
}

.hotel-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Hotel Image */
.hotel-image {
    width: 200px;
    min-width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hotel-card:hover .hotel-image img {
    transform: scale(1.05);
}

/* Hotel Info Section */
.hotel-info {
    flex: 1;
}

.hotel-name-ko {
    font-size: 1.4em;
    font-weight: 600;
    color: #212529;
    margin-bottom: 5px;
}

.hotel-name-en {
    font-size: 1em;
    color: #999;
    margin-bottom: 15px;
}

.hotel-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.hotel-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9em;
}

.hotel-feature-icon {
    color: #00b361;
}

/* Price Section */
.hotel-price-section {
    text-align: right;
    min-width: 200px;
}

.price-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 1.8em;
    font-weight: 700;
    color: #00b361;
    margin-bottom: 5px;
}

.price-detail {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 10px;
}

.btn-book-now {
    background-color: #00b361;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.btn-book-now:hover {
    background-color: #009951;
    color: white;
}

/* Peak Season Badge */
.peak-season-badge {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Price Breakdown Details */
.price-breakdown {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e6e6e6;
    font-size: 0.9em;
    color: #666;
}

.price-breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-breakdown-row.total {
    font-weight: 600;
    color: #212529;
    font-size: 1.1em;
    padding-top: 8px;
    border-top: 1px solid #e6e6e6;
}

/* Sort Options */
.sort-options {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.sort-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.sort-btn.active {
    background-color: #00b361;
    color: white;
    border-color: #00b361;
}

.sort-btn:hover {
    border-color: #00b361;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00b361;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    #tourListContainer {
        padding: 15px;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .tour-list-header h2 {
        font-size: 1.4em;
    }

    .search-summary {
        flex-direction: column;
        gap: 8px;
    }

    .hotel-card {
        padding: 15px;
    }

    .hotel-card-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hotel-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .hotel-price-section {
        width: 100%;
        text-align: left;
    }

    .hotel-name-ko {
        font-size: 1.2em;
    }

    .price-amount {
        font-size: 1.5em;
    }

    .btn-book-now {
        padding: 10px 20px;
    }

    .sort-options {
        justify-content: flex-start;
        overflow-x: auto;
    }
}
