/* Search Results Page Styles */

/* Import main styles */
@import url('styles.css');

/* Search Results Specific Styles */
.search-results-main {
    min-height: 100vh;
    background: var(--pearl-white);
    padding-top: var(--header-height);
}

.search-summary {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.search-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

.summary-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.results-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.search-details {
    font-size: 1.1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.separator {
    opacity: 0.7;
}

.modify-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.modify-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.modify-btn .icon {
    width: 18px;
    height: 18px;
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
}

.results-sidebar {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.filter-section {
    margin-bottom: 2.5rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--midnight-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--soft-lavender);
}

.price-range {
    color: var(--charcoal);
    font-size: 0.95rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.filter-option:hover {
    background: var(--pearl-white);
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--royal-purple);
    cursor: pointer;
}

.filter-option span {
    font-size: 0.95rem;
    color: var(--charcoal);
    font-weight: 500;
}

.results-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow-light);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--soft-lavender);
}

.results-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--midnight-blue);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-options label {
    font-weight: 600;
    color: var(--charcoal);
}

.sort-options select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--silver-mist);
    border-radius: 10px;
    font-size: 0.95rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-options select:focus {
    outline: none;
    border-color: var(--royal-purple);
    box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
}

.hotel-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hotel-result-card {
    border: 2px solid var(--silver-mist);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    background: white;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 2rem;
    align-items: center;
}

.hotel-result-card:hover {
    border-color: var(--royal-purple);
    box-shadow: 0 15px 40px var(--shadow-medium);
    transform: translateY(-3px);
}

.hotel-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 140px;
}

.hotel-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hotel-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--royal-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.hotel-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hotel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.hotel-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--midnight-blue);
    margin: 0;
    line-height: 1.3;
}

.hotel-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.stars {
    color: #fbbf24;
    font-size: 1rem;
}

.rating-score {
    font-weight: 600;
    color: var(--charcoal);
    font-size: 0.9rem;
}

.hotel-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--charcoal);
    font-size: 0.95rem;
}

.location-icon {
    width: 16px;
    height: 16px;
    color: var(--royal-purple);
    flex-shrink: 0;
}

.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.amenity {
    background: var(--soft-lavender);
    color: var(--royal-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.hotel-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    text-align: right;
}

.nightly-rate {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.rate-label {
    font-size: 0.85rem;
    color: var(--charcoal);
    opacity: 0.8;
}

.rate-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--midnight-blue);
    margin: 0.25rem 0;
}

.total-cost {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.total-label {
    font-size: 0.85rem;
    color: var(--charcoal);
    opacity: 0.8;
}

.total-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--royal-purple);
}

.book-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.book-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.book-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .results-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .results-sidebar {
        position: static;
        order: 2;
    }
    
    .results-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .summary-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .search-details {
        justify-content: center;
    }
    
    .results-container {
        padding: 2rem 1rem;
    }
    
    .hotel-result-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .hotel-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .hotel-pricing {
        align-items: center;
        text-align: center;
    }
    
    .results-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .results-container {
        padding: 1.5rem 1rem;
    }
    
    .hotel-result-card {
        padding: 1.5rem;
    }
    
    .results-sidebar {
        padding: 1.5rem;
    }
    
    .results-content {
        padding: 1.5rem;
    }
}

/* Animation keyframes */
@keyframes float {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(60px) translateY(60px);
    }
}

/* Fade animations for hotel cards */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Menu Styles */
.main-navigation {
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

/* Navigation Responsive */
@media (max-width: 640px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
}
