/**
 * Palace Tours Excursions Styles
 * Version: 1.0.0
 */

/* Wrapper */
.pte-excursions-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* City Filter */
.pte-city-filter {
    margin-bottom: 30px;
    text-align: center;
}

.pte-city-filter h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.pte-city-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pte-city-tab {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
}

.pte-city-tab:hover {
    background: #e9e9e9;
    border-color: #b8860b;
    color: #b8860b;
}

.pte-city-tab.active {
    background: #b8860b;
    border-color: #b8860b;
    color: #fff;
}

/* Excursions Grid */
.pte-excursions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

/* Excursion Card */
.pte-excursion-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pte-excursion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Card Image */
.pte-excursion-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.pte-excursion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pte-excursion-card:hover .pte-excursion-image img {
    transform: scale(1.05);
}

.pte-city-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(184, 134, 11, 0.9);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Content */
.pte-excursion-content {
    padding: 20px;
}

.pte-excursion-title {
    font-size: 1.25rem;
    color: #222;
    margin: 0 0 12px 0;
    font-weight: 600;
    line-height: 1.3;
}

.pte-excursion-details {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.pte-excursion-pickup {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
}

.pte-excursion-pickup strong {
    color: #333;
}

/* Rates */
.pte-excursion-rates {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-bottom: 15px;
}

.pte-rate-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.pte-rate-item:last-child {
    border-bottom: none;
}

.pte-rate-class {
    font-weight: 600;
    color: #333;
    flex: 1;
    min-width: 100px;
}

.pte-rate-price {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
}

.pte-rate-days {
    font-size: 12px;
    color: #888;
}

/* Actions */
.pte-excursion-actions {
    display: flex;
    gap: 10px;
}

.pte-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.pte-btn-details {
    background: #b8860b;
    color: #fff;
}

.pte-btn-details:hover {
    background: #9a7209;
}

/* Modal */
.pte-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.pte-modal-content {
    background: #fff;
    border-radius: 15px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pte-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.pte-modal-close:hover {
    background: #e0e0e0;
}

.pte-modal-body {
    padding: 30px;
}

/* Modal Content Styles */
.pte-modal-header {
    margin-bottom: 20px;
}

.pte-modal-header h2 {
    font-size: 1.75rem;
    color: #222;
    margin: 0 0 10px 0;
}

.pte-modal-city {
    color: #b8860b;
    font-size: 14px;
    font-weight: 600;
}

.pte-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.pte-modal-gallery img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pte-modal-gallery img:hover {
    transform: scale(1.05);
}

.pte-modal-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.pte-modal-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.pte-modal-info p {
    margin: 5px 0;
    font-size: 14px;
}

.pte-modal-rates {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.pte-modal-rates h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.pte-modal-rate-table {
    width: 100%;
    border-collapse: collapse;
}

.pte-modal-rate-table th,
.pte-modal-rate-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.pte-modal-rate-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

/* Loading */
.pte-loading {
    text-align: center;
    padding: 50px;
    color: #888;
}

.pte-loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f0f0f0;
    border-top-color: #b8860b;
    border-radius: 50%;
    animation: pte-spin 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes pte-spin {
    to { transform: rotate(360deg); }
}

/* No Results */
.pte-no-results {
    text-align: center;
    padding: 50px;
    color: #888;
    font-size: 16px;
}

/* Error */
.pte-error {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .pte-excursions-grid {
        grid-template-columns: 1fr;
    }
    
    .pte-city-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pte-city-tab {
        text-align: center;
    }
    
    .pte-modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .pte-modal-body {
        padding: 20px;
    }
    
    .pte-rate-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .pte-excursions-wrapper {
        padding: 10px;
    }
    
    .pte-excursion-content {
        padding: 15px;
    }
    
    .pte-excursion-title {
        font-size: 1.1rem;
    }
    
    .pte-modal-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}
