/* assets/frontend.css */

/* Reset and Base Styles */
.citylodgings-listings-page * {
    box-sizing: border-box;
}

.citylodgings-listings-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-description {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.breadcrumb {
    font-size: 0.95rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Results Summary */
.results-summary {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid #007cba;
}

.results-count {
    margin: 0;
    font-weight: 500;
    color: #555;
}

/* Filters */
.filters-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.filters-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.filter-link {
    padding: 10px 18px;
    background: #f1f3f4;
    color: #5f6368;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-link:hover {
    background: #e8eaed;
    color: #202124;
    transform: translateY(-1px);
}

.filter-link.active {
    background: #007cba;
    color: white;
    border-color: #005a87;
}

.clear-filters {
    color: #d93025;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    border-bottom: 1px dotted #d93025;
}

.clear-filters:hover {
    border-bottom-style: solid;
}

/* Lodgings Grid */
.lodgings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.lodging-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    border: 1px solid #e8eaed;
}

.lodging-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.lodging-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.lodging-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lodging-card:hover .lodging-photo {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    color: #999;
    font-weight: 500;
}

.lodging-content {
    padding: 25px;
}

.lodging-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.lodging-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    flex: 1;
}

.lodging-title a {
    color: #202124;
    text-decoration: none;
    transition: color 0.3s;
}

.lodging-title a:hover {
    color: #007cba;
}

.lodging-rating {
    text-align: right;
    flex-shrink: 0;
}

.rating-score {
    display: block;
    font-weight: 700;
    color: #007cba;
    font-size: 1.1rem;
}

.rating-stars {
    color: #ffa500;
    font-size: 1rem;
    margin-top: 2px;
}

.lodging-details {
    margin-bottom: 20px;
}

.lodging-type {
    display: inline-block;
    background: #e8f0fe;
    color: #1558d6;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px 0;
}

.lodging-address {
    color: #5f6368;
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.lodging-address:before {
    content: "📍";
    margin-right: 8px;
}

.lodging-amenities {
    margin: 15px 0;
}

.amenity-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #5f6368;
    padding: 6px 12px;
    margin: 3px 6px 3px 0;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #e8eaed;
}

.amenity-more {
    color: #80868b;
    font-size: 0.85rem;
    font-style: italic;
}

.lodging-excerpt {
    color: #5f6368;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 12px;
}

.lodging-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e8eaed;
}

.lodging-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-label {
    color: #80868b;
    font-size: 0.85rem;
}

.price-amount {
    font-weight: 700;
    color: #202124;
    font-size: 1.3rem;
}

.price-period {
    color: #80868b;
    font-size: 0.9rem;
}

.btn-check-availability {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-check-availability:hover {
    background: linear-gradient(135deg, #005a87 0%, #004668 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,124,186,0.3);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 50px 0;
}

.pagination a, 
.pagination .current {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    text-decoration: none;
    border: 1px solid #e8eaed;
    color: #5f6368;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 44px;
}

.pagination a:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #202124;
}

.pagination .current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.pagination .prev, 
.pagination .next {
    padding: 10px 20px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e8eaed;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #5f6368;
    margin-bottom: 15px;
}

.no-results p {
    color: #80868b;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.suggestions {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.suggestions h4 {
    margin-top: 0;
    color: #202124;
    font-size: 1.2rem;
}

.suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions li {
    margin: 12px 0;
}

.suggestions a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.3s;
    display: inline-block;
}

.suggestions a:hover {
    background: #e8f0fe;
    text-decoration: underline;
}

/* Internal Links */
.internal-links {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f0fe 100%);
    padding: 40px;
    border-radius: 12px;
    margin-top: 50px;
    border: 1px solid #e8eaed;
}

.internal-links h3 {
    margin-top: 0;
    color: #202124;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 30px;
}

.related-links {
    display: grid;
    gap: 25px;
}

.link-group h4 {
    margin-bottom: 15px;
    color: #5f6368;
    font-size: 1.1rem;
    font-weight: 600;
}

.link-group a {
    display: inline-block;
    margin: 6px 8px 6px 0;
    padding: 8px 16px;
    background: white;
    color: #007cba;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid #e8eaed;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.link-group a:hover {
    background: #007cba;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,124,186,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1rem;
    }
    
    .lodgings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lodging-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .lodging-rating {
        text-align: left;
    }
    
    .lodging-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .btn-check-availability {
        text-align: center;
        width: 100%;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-link {
        text-align: center;
    }
    
    .filters-section {
        padding: 20px;
    }
    
    .internal-links {
        padding: 25px;
    }
    
    .related-links {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .lodging-content {
        padding: 20px;
    }
    
    .lodging-image {
        height: 180px;
    }
    
    .filters-section {
        padding: 15px;
    }
    
    .internal-links {
        padding: 20px;
    }
    
    .results-summary {
        padding: 12px 15px;
    }
}

/* Loading States */
.lodging-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.lodging-card.loading .lodging-photo {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Print Styles */
@media print {
    .filters-section,
    .pagination,
    .internal-links {
        display: none;
    }
    
    .lodging-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btn-check-availability {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .filter-link.active {
        background: #000;
        color: #fff;
        border-color: #000;
    }
    
    .btn-check-availability {
        background: #000;
        border: 2px solid #000;
    }
    
    .lodging-card {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .lodging-card,
    .filter-link,
    .btn-check-availability,
    .lodging-photo {
        transition: none;
    }
    
    .lodging-card:hover {
        transform: none;
    }
    
    .lodging-card:hover .lodging-photo {
        transform: none;
    }
}