/* Advanced Frontend Features CSS for Travel Theme */

/* Lightbox Gallery Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    overflow: hidden;
}

/* 图片库样式 */
.gallery-section {
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.gallery-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
    color: white;
    padding: 15px;
    transition: all 0.3s ease;
}

.gallery-caption h4, .gallery-caption p {
    opacity: 1;
    transition: all 0.3s ease;
}

/* 响应式图片库样式 */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-close {
    top: -60px;
    right: 0;
    font-size: 40px;
}

.lightbox-prev {
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
}

/* Date Picker Styles */
.date-picker {
    position: relative;
    display: inline-block;
}

.date-picker input {
    padding: 10px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.date-picker input:focus {
    outline: none;
    border-color: #3498db;
}

.calendar {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 320px;
    z-index: 1000;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.calendar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.calendar-header button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.calendar-header button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 10px 0;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.calendar-weekdays div {
    text-align: center;
    padding: 10px;
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 10px;
}

.calendar-day {
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 15px;
}

.calendar-day:hover:not(.past) {
    background: #e3f2fd;
    transform: scale(1.1);
}

.calendar-day.today {
    background: #3498db;
    color: white;
    font-weight: 600;
}

.calendar-day.past {
    opacity: 0.4;
    cursor: not-allowed;
}

.calendar-day.empty {
    visibility: hidden;
}

/* Price Range Slider Styles */
.price-range-slider {
    width: 100%;
    padding: 20px 0;
}

.slider-track {
    position: relative;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin: 15px 0;
}

.slider-range {
    position: absolute;
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 3px;
}

.slider-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #3498db;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.slider-thumb:hover {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.slider-thumb:active {
    cursor: grabbing;
}

.price-range-value {
    text-align: center;
    font-weight: 600;
    color: #3498db;
    margin-top: 10px;
    font-size: 16px;
}

/* Advanced Search Styles */
.advanced-search-area {
    position: relative;
    z-index: 10;
}

.search-container {
    position: relative;
}

/* Responsive Grid Layout */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.col-span-1 {
    grid-column: span 1;
}

.md\:col-span-2 {
    grid-column: span 2;
}

.md\:col-span-3 {
    grid-column: span 3;
}

.lg\:col-span-2 {
    grid-column: span 2;
}

.lg\:col-span-3 {
    grid-column: span 3;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mt-3 {
    margin-top: 0.75rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hover\:shadow-2xl {
    transition: box-shadow 0.3s ease;
}

.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.text-2xl {
    font-size: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-gray-700 {
    color: #4a5568;
}

.text-gray-600 {
    color: #718096;
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.w-full {
    width: 100%;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.overflow-hidden {
    overflow: hidden;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.text-white {
    color: #ffffff;
}

.bg-primary {
    background-color: var(--primary-color);
}

.hover\:bg-primary-dark:hover {
    background-color: var(--primary-dark);
}

.hover\:text-primary-dark:hover {
    color: var(--primary-dark);
}

.border-2 {
    border-width: 2px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.focus\:border-primary:focus {
    border-color: var(--primary-color);
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0);
}

.focus\:ring-primary\/20:focus {
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.2);
}

.focus\:ring-primary\/30:focus {
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.3);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transform {
    transform: translateZ(0);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.duration-300 {
    transition-duration: 300ms;
}

/* Search Results Dropdown */
.search-results-dropdown {
    max-height: 250px;
    overflow-y: auto;
}

.search-results-dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-results-dropdown li {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-results-dropdown li:hover {
    background-color: #f5f5f5;
}

/* Calendar Styles */
.calendar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: none;
    width: 280px;
    overflow: hidden;
}

.calendar.show {
    display: block;
}

/* Price Range Slider */
.price-range-slider {
    position: relative;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-range {
    position: absolute;
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
}

.slider-thumb {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider-thumb:hover {
    box-shadow: 0 0 0 6px rgba(255, 140, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

/* Rating Stars */
.rating-stars {
    color: #ddd;
    font-size: 24px;
    letter-spacing: 8px;
}

.rating-stars .star {
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.rating-stars .star:hover {
    transform: scale(1.2);
}

.rating-stars .star.active {
    color: var(--primary-color);
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Advanced Filters Toggle Button */
.toggle-filters {
    background: none;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toggle-filters:hover {
    background-color: rgba(255, 140, 0, 0.1);
}

.toggle-filters.active {
    background-color: var(--primary-color);
    color: white;
}

.toggle-filters.active i {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

/* Search Button Animation */
.search-button {
    position: relative;
    overflow: hidden;
}

.search-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.search-button:focus:not(:active)::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* Language Selector Styles */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none;
}

.language-dropdown.active {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.language-dropdown a:hover {
    background-color: #f8f9fa;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .card,
body.dark-mode .widget,
body.dark-mode .header,
body.dark-mode .footer {
    background-color: #1e1e1e;
    border-color: #333;
}

body.dark-mode a {
    color: #90caf9;
}

body.dark-mode a:hover {
    color: #64b5f6;
}

.dark-mode-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dark-mode-toggle.active {
    background: #3498db;
}

.dark-mode-toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.dark-mode-toggle.active::after {
    transform: translateX(24px);
}

/* Interactive Map Styles */
.interactive-map {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.map-controls button:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
}

.marker-icon {
    width: 24px;
    height: 24px;
    background: #e74c3c;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    position: relative;
}

.marker-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #e74c3c;
}

.marker-icon.active {
    transform: scale(1.2);
    background: #c0392b;
}

.marker-icon.active::after {
    border-top-color: #c0392b;
}

.marker-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    margin-bottom: 10px;
    display: none;
}

.marker-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
}

/* Sticky Filters Styles */
.filter-bar {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e1e1e1;
    transition: all 0.3s ease;
}

.filter-bar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.filter-toggle {
    display: none;
    width: 100%;
    padding: 10px 15px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.filter-toggle:hover {
    background: #2980b9;
}

.filter-panel {
    display: block;
}

/* Rating System Styles */
.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars .star {
    color: #e0e0e0;
    font-size: 18px;
    transition: color 0.2s ease;
}

.rating-stars .star.filled {
    color: #ffc107;
}

.rating-stars .star.half-filled {
    position: relative;
    color: #ffc107;
}

.rating-stars .star.half-filled::before {
    content: '★';
    position: absolute;
    left: 0;
    color: #e0e0e0;
    width: 50%;
    overflow: hidden;
}

.interactive-rating {
    display: inline-flex;
    gap: 4px;
}

.interactive-rating .star {
    color: #e0e0e0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.interactive-rating .star:hover,
.interactive-rating .star.hover,
.interactive-rating .star.active {
    color: #ffc107;
    transform: scale(1.1);
}

/* Compare Feature Styles */
.compare-button {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.compare-button:hover {
    border-color: #3498db;
    color: #3498db;
}

.compare-button.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.compare-count {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.3);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.compare-count.visible {
    opacity: 1;
    visibility: visible;
}

#compare-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: bottom 0.3s ease;
    z-index: 998;
}

#compare-panel.active {
    bottom: 0;
}

.compare-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.compare-panel-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-panel {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s ease;
}

.close-panel:hover {
    color: #333;
}

.compare-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.compare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.compare-item:last-child {
    margin-bottom: 0;
}

.item-title {
    font-size: 14px;
    font-weight: 500;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.remove-item {
    background: #dc3545;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-item:hover {
    background: #c82333;
    transform: scale(1.1);
}

.do-compare {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.do-compare:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* 天气小部件样式 */
.weather-widget-section {
    position: relative;
    padding: 20px 0;
}

/* 背景装饰 */
.weather-widget-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
    border-radius: 0 0 50% 50% / 20px;
    z-index: -1;
}

.weather-container {
    position: relative;
    z-index: 1;
}

/* 搜索区域样式 */
.weather-search input {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.weather-search input:focus {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

#weather-search-btn {
    position: relative;
    overflow: hidden;
}

#weather-search-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#weather-search-btn:active::after {
    width: 300px;
    height: 300px;
}

/* 当前天气样式 */
.current-weather {
    position: relative;
}

/* 天气图标动画 */
.weather-icon i {
    animation: pulse 4s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 日出日落进度条动画 */
.sun-progress {
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.8) 0%, 
        rgba(245, 158, 11, 0.8) 50%, 
        rgba(239, 68, 68, 0.8) 100%);
    animation: sunriseSunset 24s linear infinite;
}

@keyframes sunriseSunset {
    0% {
        width: 0%;
    }
    50% {
        width: 100%;
    }
    100% {
        width: 0%;
    }
}

/* 天气预报样式 */
.forecast-grid {
    position: relative;
}

.forecast-item {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.forecast-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.forecast-item:hover .forecast-icon i {
    transform: scale(1.1);
}

.forecast-icon i {
    transition: transform 0.3s ease;
}

/* 不同天气类型的图标颜色 */
.forecast-icon .fa-sun {
    color: #facc15;
}

.forecast-icon .fa-cloud {
    color: #94a3b8;
}

.forecast-icon .fa-cloud-sun {
    color: #cbd5e1;
}

.forecast-icon .fa-cloud-rain {
    color: #3b82f6;
}

.forecast-icon .fa-snowflake {
    color: #bfdbfe;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .current-weather {
        grid-template-columns: 1fr 2fr;
    }
    
    .current-weather > div:last-child {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .weather-search {
        padding: 40px 20px;
    }
    
    .weather-search .flex {
        flex-direction: column;
    }
    
    .weather-search input {
        max-width: 100%;
    }
    
    .current-weather {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .weather-info .grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .forecast-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .forecast-item:last-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .weather-icon i {
        font-size: 6xl;
    }
    
    .temperature {
        font-size: 4xl;
    }
    
    #weather-city {
        font-size: 2xl;
    }
    
    .forecast-grid {
        grid-template-columns: 1fr;
    }
}

/* 天气细节信息样式 */
.weather-info .flex {
    align-items: center;
    justify-content: center;
}

.weather-info i {
    font-size: 1.25rem;
    opacity: 0.8;
}

/* Currency Converter Styles */
.currency-converter {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.currency-converter h4 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.converter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.converter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.converter-row input,
.converter-row select {
    padding: 10px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.converter-row input:focus,
.converter-row select:focus {
    outline: none;
    border-color: #3498db;
}

.converter-row input {
    flex: 1;
}

.converter-row select {
    width: 120px;
}

.swap-currencies {
    background: none;
    border: none;
    cursor: pointer;
    color: #3498db;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.swap-currencies:hover {
    transform: rotate(180deg);
}

.convert-result {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #3498db;
    margin-top: 10px;
}

/* Notification System Styles */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.notification {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    margin-bottom: 10px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid #2ecc71;
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

.notification-info {
    border-left: 4px solid #3498db;
}

.notification-message {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.2s ease;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    /* Lightbox adjustments */
    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        top: 50%;
        left: 20px;
        right: auto;
    }
    
    .lightbox-next {
        left: auto;
        right: 20px;
    }
    
    /* Calendar adjustments */
    .calendar {
        width: 100%;
        max-width: 320px;
    }
    
    /* Weather widget adjustments */
    .weather-forecast {
        grid-template-columns: repeat(5, 1fr);
        font-size: 12px;
    }
    
    .forecast-day {
        padding: 8px 4px;
    }
    
    /* Currency converter adjustments */
    .converter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .converter-row select {
        width: 100%;
    }
    
    .swap-currencies {
        transform: rotate(90deg);
    }
    
    /* Advanced search adjustments */
    .filter-toggle {
        display: block;
    }
    
    .filter-panel {
        display: none;
        margin-top: 15px;
    }
    
    /* Compare panel adjustments */
    #compare-panel {
        padding: 15px;
    }
    
    .compare-list {
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    /* Further responsive adjustments */
    .weather-temp {
        font-size: 36px;
    }
    
    .weather-forecast {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
    
    .forecast-day {
        padding: 6px 2px;
    }
    
    .day-temp {
        font-size: 14px;
    }
    
    #notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .map-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .map-controls button {
        width: 36px;
        height: 36px;
    }
}