/* css/style.css */

:root {
    --primary: #2c786c;
    --primary-dark: #1a4d44;
    --primary-light: #3d9d8f;
    --secondary: #ff9800;
    --secondary-dark: #f57c00;
    --secondary-light: #ffb74d;
    --accent: #004445;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #1e293b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-2xl: 0 35px 60px -15px rgb(0 0 0 / 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-xl: 1.5rem;
    --border-radius-full: 9999px;
}

[data-bs-theme="dark"] {
    --light: #1e293b;
    --dark: #f8fafc;
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #64748b;
    --gray-500: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

[data-bs-theme="dark"] body {
    color: var(--gray-100);
    background: var(--gray-900);
}

.loading-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1), transparent 70%);
    animation: pulse-bg 3s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    transition: var(--transition);
    padding: 1rem 0;
    position: relative;
    z-index: 1030;
}

[data-bs-theme="dark"] .navbar {
    background: rgba(30, 41, 59, 0.95) !important;
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
    opacity: 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled::after {
    opacity: 1;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary) !important;
    transition: var(--transition);
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand:hover::after {
    width: 100%;
}

.navbar-brand img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: rotate(5deg) scale(1.1);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .nav-link {
    color: var(--gray-300) !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 120, 108, 0.1), transparent);
    transition: var(--transition);
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: var(--gray-50);
}

[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-link.active {
    background: var(--gray-800);
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(44, 120, 108, 0.95) 0%, rgba(0, 68, 69, 0.95) 100%),
                url('https://images.unsplash.com/photo-1555041469-a586c61ea9bc?w=1600') center/cover no-repeat;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 152, 0, 0.15), transparent 60%),
                radial-gradient(circle at bottom left, rgba(44, 120, 108, 0.2), transparent 60%);
    animation: gradient-shift 10s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.search-container {
    position: relative;
    max-width: 650px;
    margin: 0 auto 2rem;
}

.search-wrapper {
    position: relative;
    box-shadow: var(--shadow-2xl);
    border-radius: var(--border-radius-full);
    overflow: hidden;
    background: white;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.search-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.35);
}

.search-wrapper input {
    border: none;
    padding: 1.25rem 5rem 1.25rem 2rem;
    font-size: 1.1rem;
    width: 100%;
    background: transparent;
    color: var(--gray-800);
    font-weight: 500;
}

.search-wrapper input::placeholder {
    color: var(--gray-400);
}

.search-wrapper input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(44, 120, 108, 0.15);
}

.search-wrapper button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.search-wrapper button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.search-wrapper button:active {
    transform: translateY(-50%) scale(0.98);
}

.autocomplete-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-2xl);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
    border: 1px solid var(--gray-100);
}

[data-bs-theme="dark"] .autocomplete-results {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

.autocomplete-results.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.autocomplete-results::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-results::-webkit-scrollbar-track {
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.autocomplete-results::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: var(--border-radius);
}

.autocomplete-results::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .autocomplete-item {
    border-color: var(--gray-700);
}

.autocomplete-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

.autocomplete-item:hover {
    background: var(--gray-50);
    padding-left: 1.5rem;
}

.autocomplete-item:hover::before {
    transform: scaleY(1);
}

[data-bs-theme="dark"] .autocomplete-item:hover {
    background: var(--gray-700);
}

.autocomplete-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.autocomplete-item:hover img {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.autocomplete-item-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--gray-800);
    transition: var(--transition);
}

.autocomplete-item:hover .autocomplete-item-info h6 {
    color: var(--primary);
}

[data-bs-theme="dark"] .autocomplete-item-info h6 {
    color: var(--gray-100);
}

.autocomplete-item-info small {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.location-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
}

[data-bs-theme="dark"] .location-info {
    background: rgba(30, 41, 59, 0.95);
}

.location-info h6 {
    margin: 0;
    font-weight: 600;
    color: var(--gray-800);
}

[data-bs-theme="dark"] .location-info h6 {
    color: var(--gray-100);
}

.location-info p,
.location-info small {
    margin: 0;
    color: var(--gray-600);
}

[data-bs-theme="dark"] .location-info p,
[data-bs-theme="dark"] .location-info small {
    color: var(--gray-400);
}

.quick-stats {
    background: linear-gradient(135deg, var(--gray-50), white);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .quick-stats {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

.quick-stats::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(circle, rgba(44, 120, 108, 0.05), transparent 70%);
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item:hover::after {
    opacity: 0.05;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    position: relative;
}

.stat-item p {
    color: var(--gray-600);
    margin: 0.5rem 0 0;
    font-weight: 500;
    font-size: 0.95rem;
}

[data-bs-theme="dark"] .stat-item p {
    color: var(--gray-400);
}

.section-padding {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.02em;
}

[data-bs-theme="dark"] .section-title {
    color: var(--gray-100);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--border-radius);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

[data-bs-theme="dark"] .section-subtitle {
    color: var(--gray-400);
}

.card {
    border: none;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    background: white;
    position: relative;
}

[data-bs-theme="dark"] .card {
    background: var(--gray-800);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-xl);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.card:hover::before {
    opacity: 1;
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%;
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-img-top {
    transform: scale(1.15) rotate(2deg);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.375rem 0.875rem;
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    z-index: 1;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.card:hover .card-badge {
    transform: scale(1.1);
}

.card-rating {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--border-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 1;
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
    line-height: 1.4;
    transition: var(--transition);
}

.card:hover .card-title {
    color: var(--primary);
}

[data-bs-theme="dark"] .card-title {
    color: var(--gray-100);
}

.card-text {
    color: var(--gray-600);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

[data-bs-theme="dark"] .card-text {
    color: var(--gray-400);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.875rem;
}

[data-bs-theme="dark"] .card-meta {
    border-color: var(--gray-700);
}

.card-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gray-500);
    transition: var(--transition);
}

.card:hover .card-meta-item {
    color: var(--primary);
}

.card-footer {
    background: transparent;
    border: none;
    padding: 0 1.5rem 1.5rem;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
}

.badge:hover {
    transform: scale(1.05);
}

.bg-light {
    background: var(--gray-50) !important;
}

[data-bs-theme="dark"] .bg-light {
    background: var(--gray-900) !important;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-300);
    transition: var(--transition);
}

.feature-list li:hover {
    color: white;
    transform: translateX(5px);
}

.feature-list i {
    color: var(--success);
    font-size: 1.25rem;
    transition: var(--transition);
}

.feature-list li:hover i {
    transform: scale(1.2);
}

.map-preview {
    height: 400px;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--gray-200);
    position: relative;
}

.map-preview::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    pointer-events: none;
}

.weather-card,
.events-card {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.weather-card:hover,
.events-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
}

.weather-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.weather-icon i {
    font-size: 4rem;
    color: var(--secondary);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.weather-details h3 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
    color: var(--gray-900);
    line-height: 1;
}

[data-bs-theme="dark"] .weather-details h3 {
    color: var(--gray-100);
}

.event-item {
    padding: 1.25rem;
    border-radius: var(--border-radius-lg);
    background: var(--gray-50);
    transition: var(--transition-fast);
    border-left: 4px solid transparent;
    position: relative;
}

[data-bs-theme="dark"] .event-item {
    background: var(--gray-700);
}

.event-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: scaleY(0);
    transition: var(--transition);
}

.event-item:hover {
    background: var(--gray-100);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.event-item:hover::before {
    transform: scaleY(1);
}

[data-bs-theme="dark"] .event-item:hover {
    background: var(--gray-600);
}

.event-item h6 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    transition: var(--transition);
}

.event-item:hover h6 {
    color: var(--primary);
}

[data-bs-theme="dark"] .event-item h6 {
    color: var(--gray-100);
}

.newsletter-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.15), transparent 60%);
    animation: rotate-gradient 20s linear infinite;
}

@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.newsletter-form .input-group {
    background: white;
    border-radius: var(--border-radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
    border: 2px solid transparent;
}

.newsletter-form .input-group:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(255, 255, 255, 0.2);
}

.newsletter-form input {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    border-radius: 0 var(--border-radius-full) var(--border-radius-full) 0;
    padding: 1rem 2.5rem;
    background: var(--secondary);
    color: white;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.newsletter-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--secondary-dark);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.newsletter-form button:hover::before {
    width: 300%;
    height: 300%;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

.newsletter-form button span {
    position: relative;
    z-index: 1;
}

.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-700), transparent);
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--border-radius);
}

.footer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0;
}

.footer a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.footer a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer a:hover::before {
    width: calc(100% - 0.5rem);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gray-800);
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a i {
    position: relative;
    z-index: 1;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-2xl);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.back-to-top:active {
    transform: translateY(-3px) scale(1.05);
}

.back-to-top i {
    font-size: 1.5rem;
}

.toast-container {
    position: fixed;
    top: 5rem;
    right: 1rem;
    z-index: 9999;
    pointer-events: none;
}

.toast-notification {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-2xl);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 320px;
    animation: slideInRight 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border-left: 4px solid var(--info);
}

@keyframes slideInRight {
    from {
        transform: translateX(calc(100% + 2rem));
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-notification.success { 
    border-left-color: var(--success);
    background: linear-gradient(135deg, white, rgba(16, 185, 129, 0.05));
}

.toast-notification.error { 
    border-left-color: var(--danger);
    background: linear-gradient(135deg, white, rgba(239, 68, 68, 0.05));
}

.toast-notification.info { 
    border-left-color: var(--info);
    background: linear-gradient(135deg, white, rgba(59, 130, 246, 0.05));
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--border-radius);
}

@media (prefers-contrast: high) {
    :root {
        --primary: #1a4d44;
        --secondary: #f57c00;
        --gray-400: #6b7280;
    }
    
    .card {
        border: 2px solid var(--gray-300);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        padding: 1.5rem;
        border-radius: var(--border-radius-lg);
        margin-top: 1rem;
        box-shadow: var(--shadow-xl);
        border: 1px solid var(--gray-100);
    }

    [data-bs-theme="dark"] .navbar-collapse {
        background: var(--gray-800);
        border-color: var(--gray-700);
    }

    .nav-link {
        padding: 0.875rem 1rem !important;
        margin: 0.25rem 0;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 90vh;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .search-wrapper input {
        padding: 1rem 4.5rem 1rem 1.5rem;
        font-size: 1rem;
    }

    .search-wrapper button {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .weather-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .location-info {
        padding: 1rem 0;
    }

    .location-info .row {
        text-align: center;
    }

    .location-info .text-end {
        text-align: center !important;
        margin-top: 0.75rem;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .toast-container {
        right: 0.5rem;
        left: 0.5rem;
    }

    .toast-notification {
        min-width: auto;
        width: 100%;
    }

    .card-body {
        padding: 1.25rem;
    }

    .map-preview {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        min-height: 85vh;
    }

    .search-container {
        margin-bottom: 1.5rem;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .stat-item p {
        font-size: 0.875rem;
    }

    .card-img-wrapper {
        padding-top: 75%;
    }

    .footer .col-6 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .search-wrapper input {
        padding: 0.875rem 4rem 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }

    .search-wrapper button {
        padding: 0.5rem 1.25rem;
    }

    .stat-item h3 {
        font-size: 1.75rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
    }
}

@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
    }
    
    .btn,
    .nav-link,
    .form-control {
        min-height: 48px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}