/**
 * Frontend Styles for Tourism Sources Pro
 */

/* Directory Grid */
.tsp-directory {
    margin: 20px 0;
}

.tsp-directory-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.tsp-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.tsp-filter-group {
    flex: 1 1 200px;
}

.tsp-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.tsp-filter-group select,
.tsp-filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tsp-filter-actions {
    flex: 0 0 auto;
}

.tsp-filter-actions button {
    padding: 8px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.tsp-filter-actions button:hover {
    background: #005a87;
}

.tsp-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tsp-listing-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tsp-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.tsp-card-image {
    height: 200px;
    overflow: hidden;
}

.tsp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tsp-card-image .no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.tsp-card-content {
    padding: 20px;
}

.tsp-card-title {
    margin: 0 0 10px;
    font-size: 18px;
}

.tsp-card-title a {
    color: #333;
    text-decoration: none;
}

.tsp-card-title a:hover {
    color: #0073aa;
}

.tsp-card-categories {
    margin-bottom: 10px;
}

.tsp-category {
    display: inline-block;
    background: #f0f0f0;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
}

.tsp-card-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.tsp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.tsp-card-meta i {
    margin-right: 5px;
    color: #0073aa;
}

.tsp-card-rating {
    color: #ffc107;
}

.tsp-card-price {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
}

.tsp-card-footer {
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e5e5e5;
}

.tsp-btn-details {
    display: inline-block;
    padding: 8px 15px;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 4px;
}

.tsp-btn-details:hover {
    background: #005a87;
    color: white;
}

/* Pagination */
.tsp-pagination {
    margin: 30px 0;
    text-align: center;
}

.tsp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 3px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.tsp-pagination .page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.tsp-pagination .page-numbers:hover {
    background: #e9ecef;
}

/* Single Listing */
.tsp-single-listing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.tsp-listing-header {
    margin-bottom: 30px;
}

.tsp-listing-title {
    font-size: 36px;
    margin: 0 0 10px;
}

.tsp-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    color: #666;
}

.tsp-listing-meta i {
    margin-right: 5px;
    color: #0073aa;
}

.tsp-listing-gallery {
    margin-bottom: 30px;
}

.tsp-gallery-main {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.tsp-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.tsp-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.tsp-gallery-thumb {
    height: 80px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.tsp-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tsp-listing-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.tsp-listing-description {
    line-height: 1.8;
    color: #333;
}

.tsp-listing-description h2 {
    margin-top: 0;
    font-size: 24px;
}

.tsp-listing-sidebar {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.tsp-price-box {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.tsp-price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.tsp-price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #28a745;
}

.tsp-price-currency {
    font-size: 18px;
    color: #666;
}

.tsp-details-box {
    margin-bottom: 20px;
}

.tsp-detail-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
}

.tsp-detail-item:last-child {
    border-bottom: none;
}

.tsp-detail-label {
    width: 100px;
    font-weight: 600;
    color: #555;
}

.tsp-detail-value {
    flex: 1;
    color: #333;
}

.tsp-detail-value a {
    color: #0073aa;
    text-decoration: none;
}

.tsp-detail-value a:hover {
    text-decoration: underline;
}

.tsp-features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tsp-feature-tag {
    background: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 13px;
    color: #555;
    border: 1px solid #ddd;
}

.tsp-booking-btn {
    display: block;
    padding: 15px;
    background: #28a745;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 20px;
}

.tsp-booking-btn:hover {
    background: #218838;
    color: white;
}

.tsp-opening-hours {
    background: white;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
}

.tsp-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.tsp-hours-day {
    font-weight: 600;
    color: #555;
}

.tsp-hours-time {
    color: #333;
}

/* Map */
.tsp-map-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.tsp-map {
    background: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
    .tsp-directory-grid {
        grid-template-columns: 1fr;
    }
    
    .tsp-listing-content {
        grid-template-columns: 1fr;
    }
    
    .tsp-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tsp-filter-group {
        width: 100%;
    }
    
    .tsp-listing-title {
        font-size: 28px;
    }
    
    .tsp-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .tsp-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tsp-listing-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .tsp-detail-item {
        flex-direction: column;
    }
    
    .tsp-detail-label {
        width: auto;
        margin-bottom: 5px;
    }
}