/* =============================================
   MODERN & CONSISTENT DESIGN WITH ROUNDED SHAPES
   BANGLADESH FLAG THEME (GREEN & RED)
   ============================================= */

:root {
    /* Bangladesh Flag Theme Colors */
    --bg-main: #f2fbf5; /* Sangat hijau muda untuk background */
    --panel-bg: #006a4e; /* Bangladesh Green */
    --panel-bg-light: #008966; /* Lighter Bangladesh Green */
    --text-light: #ffffff;
    --text-muted: #a7f3d0; /* Muted green instead of grey */
    --text-dark: #022c22; /* Very dark green */
    --danger-bg: #f42a41; /* Bangladesh Red */
    --tsunami-bg: #0ea5e9; /* Tetap biru untuk merepresentasikan air/laut */
    --accent-orange: #f42a41; /* Menggunakan Merah bendera sebagai aksen utama */
    --dark-orange: #c81b2e; /* Merah gelap untuk efek hover */
    --ad-bg: #f1f5f9;
    --ad-border: #cbd5e1;
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body { 
    font-family: 'Saira', sans-serif; 
    background-color: var(--bg-main); 
    color: var(--text-dark); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding-bottom: 160px; /* Space for sticky bottom ad */
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Breaking News Ticker */
.news-ticker-wrapper {
    width: 100%;
    background-color: #004d38; /* Darker green for ticker background */
    color: #ffffff;
    padding: 18px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1001;
}

.news-ticker-label {
    background-color: var(--danger-bg);
    color: white;
    font-weight: 800;
    padding: 5px 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    z-index: 2;
    white-space: nowrap;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.ticker-scroll-box {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.news-ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: scroll-ticker 25s linear infinite;
}

.news-ticker-content:hover {
    animation-play-state: paused;
    cursor: pointer;
}

.news-item {
    display: inline-block;
    margin-right: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #d1fae5; /* Light green text */
}

.news-item a {
    color: #d1fae5;
    text-decoration: none;
}

.news-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

@keyframes scroll-ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 1200px;
    width: 100%;
    padding: 2rem 1rem;
    overflow: visible;
}

.left-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.dropdown-wrapper {
    position: sticky;
    top: 1rem;
    z-index: 1000;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* --- CUSTOM DROPDOWN CSS --- */
.custom-select-container {
    position: relative;
    width: 100%;
    max-width: 280px;
    user-select: none;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 20px;
    background-color: #ffffff;
    color: var(--panel-bg);
    border-radius: var(--radius-full);
    font-family: 'Saira', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.custom-select-trigger:hover, 
.custom-select-container.open .custom-select-trigger {
    /* Adjusted shadow color to match Bangladesh Green */
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.3);
}

.custom-select-trigger .arrow {
    position: relative;
    height: 10px;
    width: 14px;
}

.custom-select-trigger .arrow::before, 
.custom-select-trigger .arrow::after {
    content: '';
    position: absolute;
    bottom: 0px;
    width: 0.15rem;
    height: 100%;
    transition: all 0.2s;
    background-color: var(--panel-bg);
    border-radius: 2px;
}

.custom-select-trigger .arrow::before { left: -3px; transform: rotate(-45deg); }
.custom-select-trigger .arrow::after { left: 4px; transform: rotate(45deg); }
.custom-select-container.open .arrow::before { transform: rotate(45deg); }
.custom-select-container.open .arrow::after { transform: rotate(-45deg); }

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1000;
    margin-top: 10px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    max-height: 350px;
    overflow-y: auto;
    list-style: none;
    padding: 10px 0;
    transform: translateY(-10px);
    
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}

.custom-options::-webkit-scrollbar {
    display: none;
}

.custom-select-container.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    position: relative;
    display: block;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.custom-option:hover {
    background-color: #f1f5f9;
    color: var(--accent-orange);
    padding-left: 25px;
}

.custom-option.selected {
    color: var(--panel-bg);
    font-weight: 700;
    background-color: #e2e8f0;
}
/* -------------------------- */

.main-card {
    background-color: var(--panel-bg);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.main-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px rgba(0,0,0,0.15);
}

.main-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.main-card-header h2 {
    font-weight: 500;
    font-size: 1.05rem;
    color: #e2e8f0;
    margin-bottom: 2px;
}

.main-card-header .city-title {
    font-size: 2.5rem;
    margin-bottom: 0;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.badges-container {
    display: flex;
    gap: 8px;
    flex-direction: column;
    align-items: flex-end;
}

.status-badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.2);
    text-align: center;
    width: 100%;
}

.weather-info-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 20px;
    align-items: stretch;
    margin-top: 15px;
}

.temp-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.temp-display .icon {
    font-size: 5rem; 
    line-height: 1;
    margin-bottom: 10px;
    filter: drop-shadow(0px 8px 10px rgba(0,0,0,0.3)); 
}

.temp-display .values {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1;
}

.temp-display .feels-like {
    font-size: 0.95rem;
    color: #e2e8f0;
    margin-top: 8px;
    font-weight: 500;
}

.temp-display .desc {
    margin-top: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.detail-item {
    background-color: rgba(255,255,255,0.12);
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: background 0.2s;
}

.detail-item:hover {
    background-color: rgba(255,255,255,0.2);
}

.detail-item span {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    margin-bottom: 4px;
}

.detail-item strong {
    font-size: 1.1rem;
    color: white;
    font-weight: 700;
}

.sun-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.sun-card {
    background-color: var(--panel-bg-light);
    color: var(--text-light);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.sun-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.sun-card .label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sun-card .time {
    font-size: 1.8rem;
    font-weight: 800;
}

h2.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
    padding-left: 4px;
}

.section-title::before {
    font-size: 1.2rem;
    display: inline-block;
}

.section-title:first-of-type::before {
    content: "⏱️";
}

.section-title:nth-of-type(2)::before {
    content: "📅";
}

.hourly-container {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 5px 0 10px 0;
    width: 100%;
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hourly-container:active {
    cursor: grabbing;
}

.hourly-container::-webkit-scrollbar {
    height: 6px;
}

.hourly-container::-webkit-scrollbar-track {
    background: transparent;
}

.hourly-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}

.hourly-item {
    /* Updated to Bangladesh Green */
    background-color: rgba(0, 106, 78, 0.08);
    padding: 10px 12px;
    text-align: center;
    min-width: 75px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.hourly-item:hover {
    /* Updated to Bangladesh Green */
    background-color: rgba(0, 106, 78, 0.15);
    transform: scale(1.02);
}

.hourly-item .icon {
    font-size: 2.2rem;
    margin: 4px 0;
}

.hourly-item .time {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.hourly-item .temp {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark-orange);
    margin-top: 2px;
}

.daily-container {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    gap: 15px;
    padding: 25px 5px 25px 5px;
    margin: -25px -5px 0 -5px;
    width: calc(100% + 10px);
    cursor: grab;
    scrollbar-width: none;
    -ms-overflow-style: none;
    isolation: isolate;
}

.daily-container:active {
    cursor: grabbing;
}

.daily-container::-webkit-scrollbar {
    height: 8px;
}

.daily-container::-webkit-scrollbar-track {
    background: transparent;
}

.daily-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}

.forecast-card {
    background: linear-gradient(145deg, var(--panel-bg), var(--panel-bg-light));
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 20px 18px;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    flex: 0 0 auto;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    user-select: none;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.forecast-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 24px 32px rgba(0, 0, 0, 0.25);
    background: linear-gradient(145deg, var(--panel-bg-light), var(--panel-bg));
    border-color: rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.forecast-card .header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
    margin-bottom: 12px;
    width: 100%;
    gap: 15px;
}

.forecast-card .date {
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
}

.rain-chance {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    white-space: nowrap;
}

.forecast-card .icon {
    font-size: 2.8rem;
    margin: 5px 0;
}

.forecast-card .temp-wrapper {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 5px;
}

.forecast-card .temp {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-orange);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.forecast-card .min-temp {
    font-size: 1rem;
    font-weight: 600;
    color: #e2e8f0;
}

.richter-scale-note {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.4;
}
.richter-scale-note span {
    font-weight: 500;
}
.mag-minor { color: #2c7a4d; }
.mag-moderate { color: #d97706; }
.mag-strong { color: var(--danger-bg); }

.earthquake-feed {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
}

.quake-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #edf2f7;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border-radius: var(--radius-sm);
}

.quake-list-item:last-child {
    border-bottom: none;
}

.quake-list-item:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
}

.quake-mag-badge {
    background-color: var(--danger-bg);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    min-width: 50px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(244, 42, 65, 0.3); /* Adjusted red shadow */
}

.tsunami-alert-item {
    background-color: #e0f2fe;
    border-left: 5px solid var(--tsunami-bg);
    border-bottom: none;
    border-radius: var(--radius-md);
    padding: 15px;
}

.tsunami-alert-item:hover {
    background-color: #bae6fd;
}

.tsunami-badge {
    background-color: var(--tsunami-bg);
    animation: tsunami-pulse 1s infinite alternate;
}

@keyframes tsunami-pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7); }
    100% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
}

.quake-details {
    flex: 1;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
}

.quake-place-text {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 4px;
}

.quake-time-text {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

.tsunami-text {
    color: var(--tsunami-bg);
    font-weight: 800;
    font-size: 0.8rem;
    margin-top: 4px;
    text-transform: uppercase;
}

.quake-action-icon {
    font-size: 1.2rem;
    color: #cbd5e1;
}

.right-panel {
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 4px solid #ffffff;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

#mapArea {
    flex: 1;
    min-height: 600px;
    width: 100%;
}

@media (min-width: 769px) {
    .right-panel {
        position: sticky;
        top: 2rem;
        height: calc(100vh - 4rem);
    }
}

.custom-leaflet-marker {
    background: transparent;
    border: none;
}

.marker-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.marker-wrapper:hover {
    transform: scale(1.25);
    cursor: pointer;
}

.marker-icon {
    font-size: 1.6rem;
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-full);
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.marker-label {
    font-size: 0.8rem;
    font-weight: 800;
    background-color: rgba(255,255,255,0.95);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-top: 5px;
    color: var(--panel-bg);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quake-marker-icon {
    /* Adjusted to Bangladesh Red */
    background: rgba(244, 42, 65, 0.9);
    border: 2px solid white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    box-shadow: 0 0 10px rgba(244, 42, 65, 0.8);
    animation: pulse 1.5s infinite;
}

.tsunami-marker-icon {
    background: var(--tsunami-bg);
    border: 2px solid white;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    box-shadow: 0 0 10px var(--tsunami-bg);
    animation: tsunami-pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(244, 42, 65, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(244, 42, 65, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(244, 42, 65, 0); }
}

/* --- PROFESSIONAL AD LAYOUT --- */
.ad-placeholder {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.ad-placeholder:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ad-header {
    text-align: right;
    margin-bottom: 8px;
    padding-right: 4px;
}

.ad-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 20px;
}

.ad-scroll-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

.ad-scroll-container iframe {
    max-width: 100%;
    border: none;
    background: transparent;
}

.ad-sticky-bottom {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 8px 12px;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ad-sticky-bottom .ad-header {
    margin-bottom: 4px;
    width: 100%;
    max-width: 728px;
    text-align: right;
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 40px 1rem 20px 1rem;
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
}

.footer-tags-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 40px;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

a.tag-chip,
a.tag-chip:hover,
a.tag-chip:visited,
a.tag-chip:active {
    text-decoration: none !important;
}

.tag-chip {
    background-color: #ffffff;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    cursor: pointer; 
    transition: all 0.2s;
    color: var(--panel-bg);
    font-weight: 600;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: inline-block; 
    text-decoration: none !important;
}

.tag-chip:hover {
    background-color: var(--panel-bg);
    color: white;
    border-color: var(--panel-bg);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 106, 78, 0.2);
    text-decoration: none !important;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    width: 100%;
    margin-bottom: 30px;
    text-align: left;
}

.footer-col h3 {
    color: var(--panel-bg);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--dark-orange);
}

.copyright-text {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) { 
    .dashboard-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    } 
    .right-panel {
        height: auto;
        min-height: 500px;
        position: relative;
        top: 0;
    } 
    #mapArea {
        min-height: 500px;
    }
    .custom-select-container {
        max-width: 60%;
    }
    .main-card {
        padding: 20px;
    }
    .weather-info-grid {
        gap: 10px;
        grid-template-columns: 1fr 1.6fr;
    }
    .temp-display .icon {
        font-size: 3.5rem;
    }
    .temp-display .values {
        font-size: 2.2rem;
    }
    .temp-display .feels-like {
        font-size: 0.8rem;
    }
    .temp-display .desc {
        font-size: 0.9rem;
    }
    .details-grid {
        gap: 8px;
    }
    .detail-item {
        padding: 10px 8px;
    }
    .detail-item span {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
    }
    .detail-item strong {
        font-size: 0.9rem;
    }
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    body {
        padding-bottom: 160px;
    } 
}

@media (max-width: 480px) {
    .custom-select-container {
        max-width: 80%;
    }
    .main-card-header .city-title {
        font-size: 2rem;
    }
    .weather-info-grid {
        grid-template-columns: 1fr 1.7fr;
    }
    .detail-item {
        padding: 8px 6px;
    }
    .detail-item span {
        font-size: 0.6rem;
        letter-spacing: 0;
    }
    .detail-item strong {
        font-size: 0.85rem;
    }
    .news-ticker-label {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
    .news-item {
        font-size: 0.85rem;
        margin-right: 30px;
    }
    .footer-links-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

/* Animated Icons */
.icon,
.hourly-item .icon,
.forecast-card .icon {
    display: inline-block;
    animation: gentleFloat 2.5s ease-in-out infinite;
    will-change: transform;
}

@keyframes gentleFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}