@font-face {
    font-family: 'New Astro';
    src: url('../fonts/New_Astro_SemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'New Astro';
    src: url('../fonts/New_Astro_Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'New Astro';
    src: url('../fonts/New_Astro_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.header-container {
    background: linear-gradient(90deg, #161d2c 0%, #17181b 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-branding-logo {
    font-family: 'New Astro', sans-serif !important;
    font-size: 1.95rem;
    font-weight: 600 !important;
    letter-spacing: 0.2px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.site-branding-logo .logo-antalya {
    font-family: 'New Astro', sans-serif !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.site-branding-logo .logo-weather {
    font-family: 'New Astro', sans-serif !important;
    color: #ffb800 !important;
    font-weight: 600 !important;
    margin-left: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.site-header {
    padding: 14px 0;
}

.header-icons a, .header-icons i {
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.header-icons a:hover, .header-icons a:hover i {
    color: #ffb800 !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   Dynamic District Weather Box (Replacing static placeholder icons)
   ========================================================================== */
.district-weather-box {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.district-weather-box:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22) !important;
}

/* Weather Condition Gradients */
.weather-grad-sunny {
    background: linear-gradient(135deg, #ff9f00 0%, #ff5e00 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(255, 120, 0, 0.3);
}

.weather-grad-partly {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

.weather-grad-cloudy {
    background: linear-gradient(135deg, #64748b 0%, #334155 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(51, 65, 85, 0.3);
}

.weather-grad-rainy {
    background: linear-gradient(135deg, #0ea5e9 0%, #1e3a8a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(14, 165, 233, 0.3);
}

.weather-grad-night {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.35);
}

/* Weather Icon Animation Container */
.weather-icon-anim {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.anim-sun {
    display: inline-block;
    font-size: 1.45rem;
    animation: sunPulseRotate 8s ease-in-out infinite;
    transform-origin: center;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6));
}

.anim-cloud {
    display: inline-block;
    font-size: 1.35rem;
    animation: cloudFloat 3.5s ease-in-out infinite alternate;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.anim-rain {
    display: inline-block;
    font-size: 1.35rem;
    animation: rainDrip 2s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.anim-thunder {
    display: inline-block;
    font-size: 1.35rem;
    animation: thunderFlash 3s ease-in-out infinite;
}

.anim-moon {
    display: inline-block;
    font-size: 1.35rem;
    animation: moonGlow 4s ease-in-out infinite alternate;
}

/* Keyframes */
@keyframes sunPulseRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes cloudFloat {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(-3px) scale(1.05); }
}

@keyframes rainDrip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}

@keyframes thunderFlash {
    0%, 90%, 100% { filter: brightness(1); }
    92% { filter: brightness(1.6); }
    95% { filter: brightness(1); }
    97% { filter: brightness(1.8); }
}

@keyframes moonGlow {
    0% { filter: drop-shadow(0 0 2px #93c5fd); }
    100% { filter: drop-shadow(0 0 7px #60a5fa); }
}

/* District Temperature Text */
.district-temp-text {
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    margin-top: 2px;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    letter-spacing: -0.3px;
}

/* Footer Styling */
.footer-container {
    background-color: #111827 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand-logo {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    display: inline-flex !important;
    align-items: center;
}

.footer-desc {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    color: #94a3b8 !important;
    max-width: 320px;
    margin-bottom: 1rem !important;
    font-weight: 400;
}

.footer-col-title {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.footer-links a {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

.footer-social-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social-icon:hover {
    background: #0e64ea;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.footer-copyright {
    background-color: #0b0f19 !important;
}

/* ==========================================================================
   Sea Temperatures & Marine Module Styles
   ========================================================================== */
.sea-hero-card {
    background: linear-gradient(135deg, #091e3a 0%, #11355c 50%, #1a4d7d 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sea-hero-overlay {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-sea-filter {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    border-radius: 50px;
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-sea-filter:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.btn-sea-filter.active {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.beach-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.beach-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08) !important;
}

.beach-card-header {
    background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
}

.sea-temp-bubble {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.badge-wave-calm {
    background-color: #10b981;
    color: #ffffff;
}

.badge-wave-gentle {
    background-color: #06b6d4;
    color: #ffffff;
}

.badge-wave-moderate {
    background-color: #f59e0b;
    color: #1e293b;
}

.badge-wave-rough {
    background-color: #ef4444;
    color: #ffffff;
}

/* Homepage Marine Highlights Bar */
.home-marine-strip {
    background: linear-gradient(135deg, #091e3a 0%, #0c2b4e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-marine-item {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.home-marine-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.badge-district-pill {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #e0f2fe !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    font-weight: 600 !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.02em;
}

.weather-metric-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.weather-metric-box:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.weather-metric-box.metric-highlight {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
}

.metric-icon {
    font-size: 1.15rem;
    margin-right: 8px;
    line-height: 1;
}

.metric-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.metric-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.2px;
}

.metric-val {
    font-size: 0.84rem;
    color: #ffffff;
    font-weight: 700;
}

/* Sea Hero & Summary Styles */
.sea-hero-badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.sea-summary-box {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

/* Month Cards Styling */
.month-card {
    border-radius: 12px;
    padding: 0.85rem 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
    background: #ffffff !important;
}

.month-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.month-card-cool {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.month-card-mild {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}

.month-card-warm {
    background: #ecfeff !important;
    border-color: #a5f3fc !important;
}

.month-card-hot {
    background: #fffbeb !important;
    border-color: #fde68a !important;
}

.month-card-peak {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
}

.text-warning-dark {
    color: #b45309 !important;
}

/* ==========================================================================
   Hybrid District & Category Homepage Cards
   ========================================================================== */
.district-main-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.district-main-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08) !important;
    border-color: #cbd5e1 !important;
}

.district-title-link {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    transition: color 0.15s ease;
}

.district-title-link:hover {
    color: #0284c7;
}

.district-weather-btn {
    font-size: 0.74rem !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    padding: 0.25rem 0.65rem !important;
    background-color: #f0f9ff !important;
    color: #0284c7 !important;
    border: 1px solid #bae6fd !important;
    transition: all 0.2s ease !important;
}

.district-weather-btn:hover {
    background-color: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25) !important;
    transform: translateY(-1px);
}

.district-sub-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    width: 100%;
}

@media (max-width: 768px) {
    .district-sub-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

.district-sub-pill {
    font-size: 0.71rem !important;
    font-weight: 500 !important;
    color: #334155 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 7px !important;
    padding: 0.32rem 0.2rem !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.district-sub-pill:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.2);
}

.district-sub-pill:hover .text-muted {
    color: #e0f2fe !important;
}