@charset "UTF-8";
/* --- MOBILE CSS --- */
    html {
    scroll-behavior: smooth;
    }
    .mobile-header h1 { 
		margin: 0; font-size: 24px; font-weight: bold; letter-spacing: 1px; 
	}
    .mobile-header p { 
		margin: 5px 0 0 0; font-size: 13px; font-style: italic; color: #b5c6d6; 
	}
    .container {
		padding: 12px; display: flex; flex-direction: column; gap: 12px; 
	}
    .card-link,
    .card-link:visited,
    .card-link:hover,
    .card-link:active,
	.quick-nav-pill,
    .quick-nav-pill:visited,
    .quick-nav-pill:hover,
    .quick-nav-pill:active	{
        text-decoration: none;
        color: inherit;
        display: block;
    }
    .flex-row { display: flex; justify-content: space-between; align-items: center; }
    .text-center { text-align: center; }
    .data-large { font-size: 28px; font-weight: bold; }
    .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
    .stat-value { font-size: 16px; font-weight: bold; }	
/* --- HORIZONTAL WEBCAM & MAP SCROLLS COMBINED --- */
    .webcam-scroll,
    .map-scroll {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }	
    .webcam-item img {
        width: 100%;
        height: auto;
        display: block;
        background-color: #000;
    }
    .map-item iframe {
        width: 100%;
        height: 250px;
        border: none;
        pointer-events: none;
        display: block;
        margin: 0;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
/* --- MOBILE ALERTS CSS --- */
    .alert-container { display: flex; flex-direction: column; gap: 8px; }
    .alert-banner {
        display: flex; align-items: center; gap: 12px; padding: 12px;
        border-radius: 8px; font-size: 13px; line-height: 1.4; text-decoration: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .alert-banner img { width: 30px; height: 30px; flex-shrink: 0; }
    .alert-banner a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; width: 100%; }
    .alert-content { flex-grow: 1; }
    .alert-content b { font-size: 14px; display: block; margin-bottom: 2px; }
	.alert-content a { display: inline; width: auto; text-decoration: underline;}
/* Alert Colors */
    .bg-red { background-color: #FF4433; color: #fff; }
    .bg-orange { background-color: #e67e22; color: #fff; }
    .bg-yellow { background-color: #ffcc00; color: #fff; }
    .bg-green { background-color: #2ecc71; color: #fff; }
	.bg-blue { background-color: #0096FF; color: #fff; }
    .bg-purple { background-color: #9b59b6; color: #fff; }
    .bg-note { background-color: #ffff99; color: #000; border: 1px solid #e6e600; }
    .news-card {
        background-color: #333333;
        height: 230px;
        overflow: hidden;
        background-image: url('https://palmyweather.co.nz/dbimages/newspaperbackground.jpg');
    }
    .news-card .card-header {
        border-color: rgba(255,255,255,0.3);
        border-bottom: 1px solid #333333;
    }
    .news-item {
        color: #333333;
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 8px;
    }
	.ad-unit {
		content-visibility: auto;
		contain-intrinsic-size: 0 120px;
		text-align:center;
	}
    .marquee p {
        display: inline-block !important;
        padding-left: 100% !important;
        animation: palmy-scroll 90s linear infinite !important;
        animation-delay: 0s !important;
    }
    @keyframes palmy-scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }
    .news-group {
        animation: fadeInNews 0.6s ease-in-out;
    }
    @keyframes fadeInNews {
        0% { opacity: 0; }
        100% { opacity: 1; }
    }
/* --- HORIZONTAL FORECAST SCROLL --- */
    .forecast-scroll {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .forecast-icon img {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }
	.icon {
		font-family: 'Android Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
		font-variant-emoji: emoji;
	}
/* --- SMART MOBILE NAVIGATION OVERLAY --- */
	#mobileNavOverlay .close-btn {
        position: absolute;
        top: 0px;
        right: 5px;
        font-size: 50px;
        color: white;
        text-decoration: none;
        line-height: 1;
		padding: 6px 11px 10px 10px;
    }
/* Hide scrollbar for a cleaner look */
	.quick-nav-scroll::-webkit-scrollbar {
		display: none;
	}
/* --- FLOATING BUTTONS --- */
    .open-nav-btn,
    #backToTopBtn {
        position: fixed;
        right: 5px;
        z-index: 50;
        background-color: rgba(0,0,0,0.4);
        color: white;
        border: 1px solid rgba(255,255,255,0.3);
        border-radius: 8px;
        padding: 8px 14px;
        cursor: pointer;
        backdrop-filter: blur(5px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    }
    .open-nav-btn {
        top: 5px;
        font-size: 24px;
    }
    #backToTopBtn {
        bottom: 20px;
        font-size: 20px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    #backToTopBtn.show {
        opacity: 1;
        visibility: visible;
    }
/* Accordion Menu Styling */
    .mobile-nav-content ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }
    .mobile-nav-content a {
        padding: 15px 20px 15px 25px;
        text-decoration: none;
        font-size: 16px;
        color: white;
        display: block;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transition: background-color 0.2s;
    }
    .mobile-nav-content a img { display: none !important; }
    .mobile-nav-content ul.navigation-2 {
        display: none;
        background-color: rgba(0,0,0,0.3);
    }
    .mobile-nav-content ul.navigation-2 a {
        padding-left: 45px;
        font-size: 14px;
        color: #b5c6d6;
    }
    .mobile-nav-content ul.navigation-2 ul.navigation-2 a {
        padding-left: 60px;
        font-size: 13px;
        background-color: rgba(0,0,0,0.4);
    }
    .nav-category-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .nav-category-toggle::before {
        content: '\25BC';
        font-size: 12px;
        opacity: 0.6;
    }
    .nav-category-toggle.active-accordion::before {
        content: '\25B2';
    }
    body.no-scroll {
        overflow: hidden;
    }
/* --- MOBILE PAGE RATING SYSTEM --- */
    .mobile-rating-card {
        text-align: center;
        padding: 16px;
    }
    .mobile-rating-card .card-header {
        text-align: left;
    }
    .rating-action-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin: 10px 0;
        flex-wrap: wrap;
    }
    .rating-stars {
        display: flex;
        flex-direction: row-reverse;
        margin: 0;
        gap: 5px;
    }
    .rating-stars input[type="radio"] {
        display: none;
    }
    .rating-stars input[type="radio"]:checked ~ label,
    .rating-stars label:hover,
    .rating-stars label:hover ~ label {
        color: #FFA500 !important;
    }
/* --- Graphs --- */
    .graph-card {
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    .mobile-chart-nav select {
        width: 100%;
        padding: 12px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 8px;
        background-color: #f8f9fa;
        cursor: pointer;
        color: #333;
    }