/* Reset any existing card styles */
.card-header .wi-thermometer,
.card-header .location-icon {
    animation: none !important;
    font-size: 2rem !important;
    margin-right: 1rem !important;
}

/* Override any existing animations */
.card-header i {
    animation: none !important;
}

/* Base dashboard styles */
.weather-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}
  /* Base dashboard styles */
  .weather-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    padding: 1rem;
}


.card {
    height: 100%;
    width: 100%;
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: #ffffff;
}

/* Update card header styles */
.card-header {
    background: linear-gradient(145deg, 
        #333333 0%, 
        #3d1a1a 25%,
        #4d0000 50%,
        #590000 75%,
        #660000 100%
    ) !important;
    opacity: 0.92;
    padding: 1rem;
    border: none;
    border-radius: 8px 8px 0 0;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-header i {
    font-size: 2rem;
    margin-right: 1rem;
}

.card-title {
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-body {
    background: #ffffff;  /* Keep content area white for contrast */
    border-radius: 0 0 8px 8px;
    padding: 1rem;
    font-size: 1rem;
}

/* Hover effect */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Grid layout adjustments */
.overview-card { 
    grid-column: span 12;
    min-height: 180px;
}
.temperature-card { 
    grid-column: span 7;
    min-height: 160px;
}
.sun-card { 
    grid-column: span 5;
    min-height: 160px;
}
.marine-rainfall-section { 
    grid-column: span 12;
    min-height: 150px;
}
.tides-rainfall-section {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.tides-card, .rainfall-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tides-card:hover, .rainfall-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.tides-card .card-header h5,
.rainfall-card .card-header h5 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}
.tides-container, .rainfall-info {
    padding: 1.5rem;
}
.tide-location, .rainfall-section {
    background: transparent;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.tide-location:last-child, 
.rainfall-section:last-child {
    margin-bottom: 0;
}
.tide-location h6, 
.rainfall-header {
    color: #8B0000;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.2rem;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tide-times {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
}
.tide-label {
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}


/* Add subtle hover effect */
.tide-time:hover {
    background: rgba(0, 0, 0, 0.025);  /* Slightly darker on hover */
    transition: background 0.2s ease;
}

.tide-indicator::before {
    content: '~';
    position: absolute;
    left: 0;
    color: #006994;
    animation: wave 2s ease-in-out infinite;
    font-size: 1.2rem;
}
.issuance-info {
    text-align: center;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}
.issuance-info small {
    font-size: 0.95rem;  /* Increased from default small size */
    color: #444;         /* Darker than the default text-muted */
    line-height: 1.4;
    font-weight: 500;    /* Slightly bolder */
    display: block;
}
.forecast-container {
    display: grid;
    grid-template-columns: auto 1fr;  /* Left column auto-sized, right takes remaining space */
    gap: 0.5rem;
    padding: 0.25rem;
}

/* Remove left/right whitespace in GENERAL tab ONLY */
.tabs-horizontal.tabs-line .tab-content > #general.full-bleed .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.tabs-horizontal.tabs-line .tab-content > #general.full-bleed .row.mx-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Expand GENERAL to the viewport edges but keep tabs container intact */
.tabs-horizontal.tabs-line .tab-content > #general.full-bleed {
    position: relative;
    left: 50%;
    right: 50%;
    /* increased gutters on both sides */
    margin-left: calc(-50vw + 24px);
    margin-right: calc(-50vw + 24px);
    width: calc(100vw - 48px);
}

/* Tighten spacing only inside GENERAL */
.tabs-horizontal.tabs-line .tab-content > #general.full-bleed .card-header {
    padding: 0.5rem 0.75rem;
}

.tabs-horizontal.tabs-line .tab-content > #general.full-bleed .card-body {
    padding: 0.75rem 0.75rem;
}

.tabs-horizontal.tabs-line .tab-content > #general.full-bleed .forecast-container {
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
}

.tabs-horizontal.tabs-line .tab-content > #general.full-bleed .forecast-text-section {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.tabs-horizontal.tabs-line .tab-content > #general.full-bleed .sun-cycle-container {
    gap: 0.75rem;
}

/* Ensure the other tabs keep right padding defined by theme (50px by default) */
/* Keep other tabs using default padding from theme */
.forecast-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.forecast-text-section {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}
.forecast-period {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
}
.forecast-period i {
    font-size: 1.8rem;
    color: #8B0000;
}
.forecast-area {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.forecast-description {
    color: #333;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.extended-outlook-section {
    grid-column: span 12;
    display: grid;
    gap: 1rem;
}
.extended-outlook-card {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 0;
}
.extended-outlook-card .card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem;
}
.extended-outlook-card .card-header i {
    font-size: 1.3rem;  /* Smaller icon */
    margin: 0;
}
.extended-outlook-card .card-header h5 {
    font-size: 1.3rem;  /* Smaller text */
    margin: 0;
    display: inline;
}
.extended-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.extended-table tr {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 2rem;
}
.date-cell {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    border-bottom: 1px solid transparent;
    min-width: 120px;
    display: inline-block;
    margin-top: 1rem;  /* Add top margin to move date down */
    position: relative;  /* Enable positioning */
    top: 0.5rem;  /* Fine-tune vertical position */
}
.outlook-cell {
    flex: 1;
    padding-top: 0.75rem;  /* Reduced from 1.5rem to 0.75rem */
}
.outlook-text {
    margin-bottom: 1rem;  /* Reduced from 1.5rem to 1rem */
}
.temp-cell {
    width: 80px; /* Reduced from 120px */
    text-align: center;
}
.temp-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;  /* Add spacing between max and min */
}
/* Update temperature arrow styles */
.temp-value.max i.fas.fa-arrow-up {
    font-size: 0.9rem;
    color: #ff4444 !important;
    animation: maxFloat 2s ease-in-out infinite;
    display: inline-block;
}

.temp-value.min i.fas.fa-arrow-down {
    font-size: 0.9rem;
    color: #4285f4 !important;
    animation: minFloat 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes maxFloat {
    0%, 100% { 
        transform: translateY(0); 
        color: #ff4444 !important; 
    }
    50% { 
        transform: translateY(-3px); 
        color: #ff0000 !important; 
    }
}

@keyframes minFloat {
    0%, 100% { 
        transform: translateY(0); 
        color: #4285f4 !important; 
    }
    50% { 
        transform: translateY(3px); 
        color: #0066ff !important; 
    }
}
.temp-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}
.temp-time {
    font-size: 1.1rem;
    color: #333;
}
.temp-indicator::before {
    content: '~';
    color: #006994;
    margin-right: 0.25rem;
}
@media (max-width: 768px) {
    .extended-table {
        font-size: 0.9rem;
    }
    
    .extended-table th,
    .extended-table td {
        padding: 0.5rem;
    }

    .date-cell {
        width: 100px;
    }

    .temp-cell {
        width: 70px;
    }

    /* Ensure text wraps properly on mobile */
    .outlook-cell {
        min-width: 0;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .extended-table {
        font-size: 0.85rem;
    }

    .date-cell {
        width: 90px;
    }

    .temp-cell {
        width: 60px;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .card {
        grid-column: span 6;
    }
}

@media (max-width: 992px) {
    .card {
        grid-column: span 12;
        min-height: 250px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card {
        min-height: auto;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
}

@media (max-width: 360px) {
    .dashboard-grid {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .card-body {
        padding: 0.5rem;
    }
}

/* Add this to your existing styles */
.card .card-header {
    background: linear-gradient(145deg, 
        #333333 0%, 
        #3d1a1a 25%,
        #4d0000 50%,
        #590000 75%,
        #660000 100%
    ) !important;
    opacity: 0.92;
    padding: 1.4rem 1rem 1rem 1rem !important; /* more space above than below */
    border: none;
    border-radius: 8px 8px 0 0;
}

.card .card-header h5 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.4;
}

/* Update card body background */
.card .card-body {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    padding: 1rem;
}

.card-body .heading2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: inline-block;
    margin-right: 0.5rem;
}

.card-body p, 
.card-body div {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Update card body background */
.card .card-body {
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    padding: 1rem;
}

.card-body .heading2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: inline-block;
    margin-right: 0.5rem;
}

.card-body p, 
.card-body div {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Stat values */
.stat-value {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0.75rem 0;
    display: block;
}

/* Better spacing for text groups */
.d-flex {
    gap: 1.5rem;
}

.text-end {
    text-align: right;
    margin-left: auto;
}

/* Improved text contrast */
.text-muted {
    color: #555 !important;
}

/* Sunrise/Sunset Layout Improvements */
.sun-cycle-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
}

.sun-cycle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sun-cycle-item small {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.25rem 0;
}

.sun-cycle-item .stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.sun-cycle-item i {
    font-size: 1.5rem;
    color: #8B0000;
    margin-bottom: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .sun-cycle-container {
        flex-direction: column;
        align-items: center;
    }
    
    .sun-cycle-item {
        width: 100%;
        max-width: 100%;
        padding: 0.5rem;
    }
}

/* Weather Icon Styling */
.weather-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.sun-cycle-item .wi {
    font-size: 2rem;
    color: #8B0000;
}

.marine-icon .wi {
    font-size: 2.2rem;
    color: #006994;
}

.temperature-icon .wi {
    font-size: 2.2rem;
    color: #8B0000;
}

.rainfall-icon .wi {
    font-size: 2.2rem;
    color: #4682B4;
}

/* Icon Animations */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes wave {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

/* Tides Layout Styling */
.tides-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.tide-location {
    min-width: 0; /* Prevents overflow */
    background: transparent;
    border-radius: 12px;
    padding: 1rem;
}

.tide-location h6 {
    color: #8B0000;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.2rem;
    font-style: italic;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tide-times {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 0.75rem;
    align-items: center;
}

.tide-label {
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.tide-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 1rem;
    color: #333;
    min-width: 0; /* Prevents overflow */
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.5rem;
    border-radius: 6px;
}

/* Add wave animation */
.tide-indicator {
    position: relative;
    padding-left: 1.5rem;
}

.tide-indicator::before {
    content: '~';
    position: absolute;
    left: 0;
    color: #006994;
    animation: wave 2s ease-in-out infinite;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .tide-times {
        gap: 0.5rem;
    }
    
    .tide-time {
        font-size: 0.9rem;
    }

    .period {
        font-size: 0.75rem;
    }
}

.issuance-info {
    text-align: center;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
}

.issuance-info small {
    font-size: 0.95rem;  /* Increased from default small size */
    color: #444;         /* Darker than the default text-muted */
    line-height: 1.4;
    font-weight: 500;    /* Slightly bolder */
    display: block;
}

/* Overview Card Layout */
.forecast-container {
    display: grid;
    grid-template-columns: auto 1fr;  /* Left column auto-sized, right takes remaining space */
    gap: 0.5rem;
    padding: 0.25rem;
}

.forecast-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.forecast-text-section {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
   
}


.forecast-area {
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Add back animations */
@keyframes wave {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(3deg); }
}

@keyframes wind {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(15deg); }
}

.animated-wave {
    animation: wave 3s ease-in-out infinite;
}

.animated-wind {
    animation: wind 3s ease-in-out infinite;
}

/* Add missing animation helpers used by icons */
.animated-thermometer { animation: thermometer 2s ease-in-out infinite; }
.animated-humidity    { animation: humidity 2.5s ease-in-out infinite; }
.animated-sun         { animation: sun 10s linear infinite; }
.animated-outlook     { animation: outlook 4s ease-in-out infinite; }

@keyframes thermometer {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes humidity {
    0%   { transform: scale(1); opacity: 1; }
    50%  { transform: scale(1.1); opacity: 0.85; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes sun {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes outlook {
    0%   { transform: translateX(0) rotate(0deg); }
    25%  { transform: translateX(5px) rotate(5deg); }
    50%  { transform: translateX(0) rotate(0deg); }
    75%  { transform: translateX(-5px) rotate(-5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

.forecast-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
}

.forecast-meta-item i {
    font-size: 1.8rem;
    color: #8B0000;
    width: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.meta-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.meta-label {
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

@keyframes clockRotate {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.forecast-meta-item i.wi-time-3 {
    animation: maxFloat 3s ease-in-out infinite;
    transform-origin: center;
}

.forecast-meta-item i.wi-time-1 {
    animation: maxFloat 3s ease-in-out infinite;
    animation-delay: 0.5s;  /* Slight delay for visual interest */
}

.forecast-meta-item i.wi-time-12 {
    animation: maxFloat 3s ease-in-out infinite;
    animation-delay: 1s;  /* Additional delay for third icon */
}

/* Remove animation from meta-value */
.meta-value {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    animation: none;  /* Remove the timeFlash animation */
}

.forecast-meta-item:first-child .meta-value {
    animation: none;  /* Remove the timeFlash animation */
}

/* Ensure consistent icon colors */
.wi-time-3,
.wi-time-1,
.wi-meteor {
    color: #8B0000 !important;
}

.amended-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: rgba(139, 0, 0, 0.1);
    border-radius: 8px;
    color: #8B0000;
    font-weight: 600;
}

.amended-alert i {
    font-size: 1.25rem;
}

/* Temperature Card Styling */
.temperature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0.5rem;
}

.location-temp {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    padding: 1.25rem;
    transition: transform 0.2s;
}

.location-temp:hover {
    transform: translateY(-2px);
}

.location-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.temp-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.temp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.temp-icon .wi {
    font-size: 2.5rem;
    color: #8B0000;
    animation: pulse 2s infinite;
}

.temp-values {
    flex: 1;
}

.temp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.temp-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.temp-value {
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    font-size: 1.0rem;
    letter-spacing: 0.5px;
}
/* Animation for temperature icon */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .temperature-grid {
        grid-template-columns: 1fr;
        padding: 0.5rem;
    }
    
    .temp-details {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .temp-row {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
        width: 100%;
    }

    .temp-value {
        font-size: 1rem;
        word-break: break-word;
        white-space: normal;
    }

    .temp-label {
        font-size: 0.85rem;
        white-space: normal;
        line-height: 1.2;
    }

    .location-temp {
        padding: 1rem;
    }
}

.temp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.temp-table td, 
.temp-table th {
    padding: 0.75rem;
    text-align: left;
    vertical-align: middle;
}

.temp-table thead th {
    text-align: center;
    font-style: italic;
    color: #4d0000; 
    padding: 0.5rem;
}

.temp-table thead th:first-child {
    font-style: normal;  
}


.temp-table td:first-child {
    text-align: left;
    display: flex;
    align-items: flex-start;  
    gap: 0.75rem;      
}

.temp-icon {
    font-size: 1.4rem;
    color: #8B0000;
    min-width: 1.4rem;        /* Fixed width for icons */
    display: flex;
    justify-content: center;
    margin-top: 2px;         /* Slight adjustment to align with text */
}

.temp-label {
    padding-top: 3px;        /* Align text with icon */
}

.temp-table td:not(:first-child) {
    width: 30%;  /* Equal width for temperature columns */
    text-align: center;
}

/* Header styling */
.temp-table th {
    font-weight: 800;
    color: #8B0000;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem;
    text-align: left;
    vertical-align: middle;
}

/* This matches the style from the rainfall section */
.location-name, .temp-table th {
    font-weight: 800;
    color: #8B0000;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .temp-table {
        font-size: 0.9rem;
    }
    
    .temp-table th,
    .temp-table td {
        padding: 0.5rem;
    }
}

.temp-table .location-icon {
    font-size: 1.5rem;
    color: #8B0000;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
    display: inline-block;
    vertical-align: middle;
}

.temp-table .temp-icon {
    font-size: 1.3rem;
    color: #8B0000;
    margin-right: 0.5rem;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
    vertical-align: middle;
}

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

.card .card-header .wi.wi-thermometer {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.95);
    margin-right: 0.75rem;
    display: inline-block;
    vertical-align: middle;
    animation: thermometerFloat 3s ease-in-out infinite;
}

@keyframes thermometerFloat {
    0% {
        transform: scale(1) rotate(0deg);
        color: rgba(255, 255, 255, 0.95);
    }
    25% {
        transform: scale(1.1) rotate(3deg);
        color: #ff9999;
    }
    50% {
        transform: scale(1.15) rotate(-2deg);
        color: #ffcccc;
    }
    75% {
        transform: scale(1.1) rotate(1deg);
        color: #ff9999;
    }
    100% {
        transform: scale(1) rotate(0deg);
        color: rgba(255, 255, 255, 0.95);
    }
}

/* Sunrise/Sunset Animations */
@keyframes sunRise {
    0% {
        transform: translateY(0) scale(1);
        color: #FF8C00;
    }
    50% {
        transform: translateY(-5px) scale(1.1);
        color: #FFA500;
    }
    100% {
        transform: translateY(0) scale(1);
        color: #FF8C00;
    }
}

@keyframes sunSet {
    0% {
        transform: translateY(0) scale(1);
        color: #FF4500;
    }
    50% {
        transform: translateY(5px) scale(1.1);
        color: #FF6347;
    }
    100% {
        transform: translateY(0) scale(1);
        color: #FF4500;
    }
}

.sun-cycle-item i.wi-sunrise {
    color: #FF8C00;
    animation: sunriseFloat 2s ease-in-out infinite;
    font-size: 2rem;
}

.sun-cycle-item i.wi-sunset {
    color: #FF4500;
    animation: sunsetFloat 2s ease-in-out infinite;
    font-size: 2rem;
}

.sun-cycle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.sun-cycle-item small {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sun-cycle-item .stat-value {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.extended-range-content {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.extended-range-content h4 {
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.extended-range-content h6.map-instruction {
    color: #666;
    margin: 15px 0;
    font-weight: 500;
}


.instructions-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.interactive-map {
    margin: 20px 0;
    text-align: center;
}

.interactive-map iframe {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.terms-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
}

.terms-dashboard .card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background: #ffffff;
}

.terms-dashboard .card-header {
    background: linear-gradient(145deg, 
        #333333 0%, 
        #3d1a1a 25%,
        #4d0000 50%,
        #590000 75%,
        #660000 100%
    ) !important;
    opacity: 0.92;
    padding: 0.75rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-dashboard .card-header i {
    font-size: 1.2rem;
}

.terms-dashboard .card-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
}

.terms-dashboard .card-body {
    padding: 1.5rem;
}

.terms-section {
    margin-bottom: 2rem;
}

.terms-section h5 {
    color: #4d0000;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.terms-list {
    display: grid;
    gap: 1rem;
}

.terms-list dt {
    font-weight: 600;
    color: #333;
    margin-top: 1rem;
}

.terms-list dd {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.terms-column {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.terms-column h5 {
    color: #4d0000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terms-column h5 i {
    color: #660000;
    font-size: 1.2rem;
}

.terms-list {
    display: grid;
    gap: 1.25rem;
}

.terms-list dt {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.terms-list dd {
    margin: 0;
    color: #666;
    line-height: 1.5;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .terms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.animated-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem !important;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.5s ease-out;
}

.animated-icon {
    font-size: 1.8rem;
    animation: iconFloat 3s ease-in-out infinite;
}

.card-title {
    margin: 0;
    animation: fadeIn 0.5s ease-out;
}

.animated-grid {
    animation: gridFadeIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gridFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-column {
    animation: columnSlideIn 0.5s ease-out;
    animation-fill-mode: both;
}

.terms-column:nth-child(1) { animation-delay: 0.2s; }
.terms-column:nth-child(2) { animation-delay: 0.4s; }
.terms-column:nth-child(3) { animation-delay: 0.6s; }

@keyframes columnSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.extended-range-card .card-header {
    background: linear-gradient(145deg, 
        #333333 0%, 
        #3d1a1a 25%,
        #4d0000 50%,
        #590000 75%,
        #660000 100%
    ) !important;
    opacity: 0.92;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.extended-range-card .card-header i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.95);
}

.forecast-header h4 {
    color: #4d0000;
    margin: 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(77, 0, 0, 0.1);
}

.map-section {
    margin: 2rem 0;
}

.map-instruction {
    color: #4d0000;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.interactive-map {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instructions-section .card {
    margin-top: 2rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.instructions-section .card-header {
    background: linear-gradient(145deg, #333333, #4d0000);
    color: white;
    padding: 0.75rem 1rem;
}

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

.instruction-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.instruction-list li:before {
    content: "•";
    color: #4d0000;
    position: absolute;
    left: 0;
}

.development-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(77, 0, 0, 0.1);
    font-style: italic;
    color: #666;
}

/* Center section headers */
.forecast-header h4,
.map-instruction,
.terms-section h5,
.instructions-section .card-header {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.forecast-header h4 i,
.terms-section h5 i {
    font-size: 1.5rem;
    color: #4d0000;
}

/* Center instruction header */
.instructions-section .card-header {
    justify-content: center;
}

.instructions-section .card-header i {
    margin-right: 0.75rem;
}
.agromet-card .card {
    background: #ffffff;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.agromet-card .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.agromet-content {
    padding: 1rem;
    background: transparent !important;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Embedded Agromet view */
.agromet-content[data-mode="embed"] {
    padding: 0 !important;
}

.agromet-embed {
    width: 100% !important;
    height: 1200px !important;
    border: 0 !important;
    border-radius: 8px !important;
}

/* Ensure consistent Back-to-Top sizing on pages that use this stylesheet */
/* Note: Main styles are in custom.css - this is just for reinforcement */
.ui-to-top {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
    line-height: 48px !important;
    border-radius: 50% !important;
    background: #590000 !important;
    background-color: #590000 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}
.ui-to-top:before,
.ui-to-top.fa:before {
    font-size: 22px !important;
    line-height: 1 !important;
    color: #fff !important;
}
.ui-to-top:hover {
    background: #7a0000 !important;
    background-color: #7a0000 !important;
}

.agromet-frame {
    width: 100%;
    min-height: 800px;
    border: none;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .agromet-frame {
        min-height: 600px;
    }
    
    .agromet-content {
        padding: 0.5rem;
    }
}

/* Enhanced responsive styles */
@media (max-width: 768px) {
    .tides-rainfall-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tide-times {
        grid-template-columns: auto 1fr;
        font-size: 0.9rem;
    }

    .tide-time {
        padding: 0.5rem;
        word-break: break-word;
        min-width: 80px;
    }

    .tide-location h6 {
        font-size: 1rem;
    }

    .card-header h5 {
        font-size: 1.2rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .issuance-info small {
        font-size: 0.85rem;
    }

    .tide-indicator {
        padding-left: 20px;
    }

    .tide-wave span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tide-times {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tide-label {
        background: rgba(0, 0, 0, 0.03);
        padding: 0.25rem;
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }

    .tide-time {
        justify-content: center;
        width: 100%;
    }

    .tides-container {
        padding: 0.75rem;
    }

    .tide-location {
        padding: 0.75rem;
    }
}

.extended-forecast-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    overflow: visible;
    width: 100%;
}

.extended-forecast-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    white-space: normal;
    overflow-wrap: break-word;
    padding-right: 1rem;
    max-width: 100%;
    display: block;
}

.extended-temps {
    display: grid;
    grid-template-columns: repeat(2, minmax(60px, auto));
    gap: 0.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .extended-forecast-card {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .extended-forecast-text {
        padding: 0.75rem;
        font-size: 0.95rem;
        background: rgba(0, 0, 0, 0.02);
        border-radius: 6px;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .extended-forecast-card {
        padding: 0.75rem;
    }

    .extended-forecast-text {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

@media (max-width: 360px) {
    .extended-forecast-card {
        padding: 0.5rem;
    }

    .extended-forecast-text {
        font-size: 0.85rem;
        padding: 0.5rem;
        line-height: 1.4;
    }
}

/* Card size consistency */
.rainfall-card,
.extended-outlook-card {
    grid-column: span 12;
    min-height: 250px;
    width: 100%;
}

@media (max-width: 1200px) {
    .rainfall-card,
    .extended-outlook-card {
        grid-column: span 6;
    }
}

@media (max-width: 992px) {
    .rainfall-card,
    .extended-outlook-card {
        grid-column: span 12;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .rainfall-card,
    .extended-outlook-card {
        min-height: auto;
        grid-column: span 12;
    }

    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .rainfall-card,
    .extended-outlook-card {
        margin-bottom: 1rem;
    }
}

.outlook-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: transparent;
    border-radius: 6px;
}

.location-temps {
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.location-temps:last-child {
    margin-bottom: 0;
}

.location-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

.temp-value {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.temp-value:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .outlook-text {
        margin-bottom: 1.5rem;
    }
    
    .location-temps {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
    }
}

.temp-locations-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.5rem;
}

.location-temps {
    flex: 1;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.location-label {
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.temp-pairs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.temp-value {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .temp-locations-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .location-temps {
        padding: 1rem;
    }
}

.location-block {
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin: 0.5rem;
}

.location-label {
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1rem;
    text-align: center;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.temp-stack {
    background: rgba(0, 0, 0, 0.03);
    padding: 0.75rem;
    border-radius: 8px;
    width: 30%;
}

.temp-stack .location-label {
    text-align: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.temp-stack .temp-value {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.temp-stack .temp-value:last-child {
    margin-bottom: 0;
}

.temp-stack .temp-value i {
    margin-right: 0.75rem;
}

@media (max-width: 768px) {
    .temp-stack {
        width: 45%;
    }
    
    .temp-stack .temp-value {
        font-size: 1.1rem;
    }
}

.d-flex.justify-content-between {
    gap: 2rem;
    justify-content: center !important;
}

.temp-stack.custom-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    background: transparent;
}

.temp-stack.custom-location:hover {
    transform: scale(1.05);
}

.location-label.custom-label {
    color: #8B0000;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.temp-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.temp-value.max i {
    color: #ff4444;
}

.temp-value.min i {
    color: #4444ff;
}

/* Rainfall Section Layout */
.rainfall-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.rainfall-header, .monthly-cumulative-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8B0000;  /* Changed to red */
    font-weight: 700;
    margin-bottom: 1rem;
}

.rainfall-data {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem;
}

.rainfall-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.rainfall-location:hover {
    transform: scale(1.05);
}

.location-name {
    color: #333;  /* Changed to black */
    font-weight: 600;
    font-size: 1rem;
}

.rainfall-value {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
}

.monthly-cumulative {
    margin-top: 1rem;
}

/* Icons */
.rainfall-header i, .monthly-cumulative-header i {
    font-size: 1.5rem;
    color: #8B0000;  /* Changed to red to match headers */
}

/* Extended Outlook Temperature Cards */
.temp-stack.custom-location {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    background: transparent;
}

.temp-stack.custom-location:hover {
    transform: scale(1.05);
}

.location-label.custom-label {
    color: #8B0000;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.temp-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.temp-value.max i {
    color: #ff4444;
}

.temp-value.min i {
    color: #4444ff;
}

/* Rainfall Icon Animations */
.rainfall-header i.wi-raindrops,
.monthly-cumulative-header i.wi-raindrops {
    color: #4285f4;
    animation: maxFloat 2s ease-in-out infinite;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

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

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

.weather-marine-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.weather-marine-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.weather-marine-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.weather-marine-item.seas .weather-marine-label,
.weather-marine-item.waves .weather-marine-label {
    color: #4d0000;
    font-weight: 600;
}
.weather-marine-item i {
    font-size: 2.5rem;
    color: #006994;
    margin-bottom: 1rem;
    display: block;
}

/* Icon Animations */
.wi-tsunami {
    animation: waveFloat 3s ease-in-out infinite;
}

.wi-flood {
    animation: waterRise 4s ease-in-out infinite;
}

.wi-strong-wind {
    animation: windBlow 3s ease-in-out infinite;
}

@keyframes waveFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

@keyframes waterRise {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px) scale(1.05); }
}

@keyframes windBlow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(15deg); }
}

/* Marine Advisory Styling */
.marine-advisory {
    margin-top: 2rem;
    padding: 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff8d5 0%, #fff1a8 50%, #ffe680 100%);
    display: flex;
    align-items: center; /* align icon with text */
    gap: 0.75rem;
    border: 1px solid #ffe08a;
    box-shadow: 0 2px 6px rgba(255, 193, 7, 0.25);
}

.marine-advisory.danger { background: linear-gradient(135deg, #ffe3e3 0%, #ffd1d1 50%, #ffc2c2 100%); }

.marine-advisory.warning { background: linear-gradient(135deg, #fff8d5 0%, #fff1a8 50%, #ffe680 100%); }

/* Align and emphasize the Additional Information label */
.marine-advisory i.fa-info-circle { font-size: 1.2rem; color: #cc8800; flex-shrink: 0; }

.marine-advisory .advisory-content {
    display: flex;
    flex-direction: column;
}

.marine-advisory .advisory-label { font-weight: 700; color: #4d3b00; margin-bottom: 0.25rem; }

.marine-advisory .advisory-text { color: #5a4b00; }

@keyframes pulseAlert {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Reset background for forecast text areas */
.forecast-text-section,
.forecast-description,
.forecast-description p,
.forecast-area,
.forecast-area p {
    background: transparent !important;
    background-color: transparent !important;
}

/* Remove any inherited backgrounds from parent elements */
.card-body .forecast-text-section {
    background: none !important;
}

:root { 
            
    --color-primary: linear-gradient(145deg, 
    #333333 0%, 
    #3d1a1a 25%,
    #4d0000 50%,
    #590000 75%,
    #660000 100%  
    );


    --color-primary-dark: #4d0000;
    --color-primary-light: #660000;
    --color-accent: #8B0000;
    --color-secondary: #f5f7fa;
    --color-text: #333333;
    --color-text-light: #6e7b8a;
    --color-background: #f9fafb;
    --color-card: #ffffff;
    --color-border: #e5e9f0;
    --color-accent: #4d8fc9;
    --color-secondary: #f5f7fa;
    --color-text: #333333;
    --color-text-light: #6e7b8a;
    --color-background: #f9fafb;
    --color-card: #ffffff;
    --color-border: #e5e9f0;
    --color-accent: #4d8fc9;
    
    /* Dust severity colors - softer values */
    --color-negligible: rgba(226, 245, 203, 0.9);
    --color-moderate: rgba(254, 235, 150, 0.7);
    --color-high: rgba(253, 186, 116, 0.85);
    --color-very-high: rgba(255, 138, 128, 0.8);
    --color-extreme: rgba(185, 91, 91, 0.85);
    --color-dangerous: rgba(159, 122, 190, 0.85);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1.25rem;
    --space-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.09);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
  }
  
  /* Base styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-background);
  }
  
  /* Layout */
  .app-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-md);
  }
  
  /* Header */
  .app-header {
    background: var(--color-primary);
    color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
  }
  
  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .logo-area {
    display: flex;
    align-items: center;
  }
  
  .logo-icon {
    font-size: 1.8rem;
    margin-right: var(--space-md);
  }
  
  .title-area h1 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
  }
  
  .title-area p {
    font-size: 0.85rem;
    opacity: 0.9;
  }
  
  .last-updated {
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
  }
  
  /* Calendar Navigation */
  .calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    background-color: var(--color-primary-light);
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
  }
  
  .nav-button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .nav-button:hover {
    background: rgba(255, 255, 255, 0.25);
  }
  
  /* Update month/year text in calendar nav */
  .month-title {
    color: rgba(255, 255, 255, 0.95);
  }
  
.month-title,
.month-title span,
#dust_monthYearText {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.5rem;  /* Keep original size */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}
  
.month-title i {
    color: rgba(255, 255, 255, 0.95);
    font-size: 2rem;  /* Keep original icon size */
    margin-right: 1rem;
}
  /* Calendar */
  .calendar-container {
    background-color: var(--color-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: var(--space-lg);
  }
  
  .calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: var(--color-primary-dark);
    color: white;
    font-weight: 500;
  }
  
  .weekday {
    padding: var(--space-sm);
    text-align: center;
    font-size: 0.85rem;
  }
  
  .calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
  }
  
  .calendar-day {
    min-height: 90px;
    padding: var(--space-xs);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .calendar-day:hover {
    background-color: var(--color-secondary);
  }
  
  .calendar-day.empty {
    background-color: rgba(0,0,0,0.02);
    cursor: default;
  }
  
  .calendar-day.selected {
    background-color: var(--color-primary-light);
    color: white;
  }
  
  .day-content {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .day-number {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
  }
  
  .day-dust {
    margin-top: auto;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    font-size: 0.8rem;
  }
  
  .day-dust-value {
    font-weight: 600;
    font-size: 0.9rem;
  }
  
  .day-dust-label {
    font-size: 0.7rem;
    opacity: 0.9;
  }
  
  /* Day Detail Panel */
  .day-detail-panel {
    background-color: var(--color-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
  }
  
  #selectedDayTitle {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--color-primary-dark);
  }
  
  .detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    color: var(--color-text-light);
    text-align: center;
  }
  
  .detail-placeholder i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
  }
  
  .dust-level-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
  }
  
  .dust-level-indicator {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
  }
  
  .dust-level-text {
    font-size: 1.1rem;
    font-weight: 500;
  }
  
  .unit {
    font-size: 1.2rem;
    opacity: 0.8;
  }
  
  /* Hourly section */
  .hourly-section {
    margin-top: var(--space-lg);
  }
  
  .hourly-section h4 {
    margin-bottom: var(--space-md);
    font-size: 1rem;
    color: var(--color-text-light);
  }
  
  .hourly-indices {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-sm);
  }
  
  .hour-index {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hour-label {
    font-size: 0.75rem;
    margin-bottom: var(--space-xs);
    color: var(--color-text-light);
  }
  
  .hour-value {
    width: 100%;
    height: 30px;
    border-radius: var(--radius-sm);
  }
  
  /* Info Panel */
  .info-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
  }
  
  .legend-container, .about-container {
    background-color: var(--color-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
  }
  
  .legend-container h3, .about-container h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    font-size: 1rem;
    color: var(--color-primary-dark);
  }
  
  .legend-container i, .about-container i {
    color: var(--color-primary);
  }
  
  .legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }
  
  .legend-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
  }
  
  .legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
  }
  
  .about-container p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
  }
  
  .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background-color 0.2s;
  }
  
  .btn-primary:hover {
    background-color: var(--color-primary-dark);
  }
  
  /* Dust colors */
  .box {
    border-radius: var(--radius-sm);
  }
  
  .ivory { background-color: var(--color-negligible); }
  .yellow { background-color: var(--color-moderate); }
  .orange { background-color: var(--color-high); }
  .red { background-color: var(--color-very-high); }
  .poison { background-color: var(--color-extreme); color: white; }
  .dark_magenta { background-color: var(--color-dangerous); color: white; }
  
  .legend-item.ivory .legend-color { background-color: var(--color-negligible); }
  .legend-item.yellow .legend-color { background-color: var(--color-moderate); }
  .legend-item.orange .legend-color { background-color: var(--color-high); }
  .legend-item.red .legend-color { background-color: var(--color-very-high); }
  .legend-item.poison .legend-color { background-color: var(--color-extreme); }
  .legend-item.dark_magenta .legend-color { background-color: var(--color-dangerous); }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .info-panel {
      grid-template-columns: 1fr;
    }
    
    .hourly-indices {
      grid-template-columns: repeat(4, 1fr);
      row-gap: var(--space-md);
    }
  }
  
  @media (max-width: 480px) {
    .calendar-day {
      min-height: 70px;
    }
    
    .day-dust-label {
      display: none;
    }
  }
  
  .app-header .title-area h1 {
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .app-header .title-area span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
  }
  
  /* Main two-column layout */
  .forecast-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--space-lg);
    padding: var(--space-md);
    max-width: 1800px;
    margin: 0 auto;
  }

  .forecast-layout .app-header {
    grid-column: 1 / -1;  /* Make header span full width */
    width: 100%;
    background-color: var(--color-primary);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
  }

  .forecast-layout .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* Left column - Calendar */
  .calendar-section {
    background: var(--color-card);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
  }

  /* Right column - Details */
  .detail-section {
    position: sticky;
    top: var(--space-lg);
    height: fit-content;
  }

  /* Responsive layout */
  @media (max-width: 1200px) {
    .forecast-layout {
        grid-template-columns: 1fr;
    }
    
    .detail-section {
        position: static;
    }
  }
/* Additional specific selectors for Tobago Tourism icons */
#bago_tourism .outlook-container .outlook-day .marine-item i {
    color: #dc3545 !important;
    font-size: 1.25rem !important;
    min-width: 20px !important;
    text-align: left !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Override any existing color classes */
#bago_tourism .outlook-container .marine-item i.text-danger,
#bago_tourism .outlook-container .marine-item i.text-info,
#bago_tourism .outlook-container .marine-item i.text-warning,
#bago_tourism .outlook-container .marine-item i.text-primary {
    color: #dc3545 !important;
}

/* Ensure proper alignment */
#bago_tourism .outlook-container .marine-item {
    justify-content: flex-start !important;
    align-items: center !important;
}

#bago_tourism .outlook-container .marine-item i {
    margin-right: 0.75rem !important;
    margin-left: 0 !important;
}

/* Force all agromet icons to be red and left-aligned */
#bago_tourism .marine-item i,
#bago_tourism .outlook-container .marine-item i,
#bago_tourism .outlook-day .marine-item i,
.tab-pane#bago_tourism .marine-item i,
.tab-pane#bago_tourism .outlook-container .marine-item i,
.tab-pane#bago_tourism .outlook-day .marine-item i {
    color: #dc3545 !important;
    text-align: left !important;
    font-size: 1.25rem !important;
    display: inline-block !important;
    margin-right: 0.75rem !important;
    margin-left: 0 !important;
    min-width: 20px !important;
    flex-shrink: 0 !important;
}

/* Force all agromet marine items to have proper layout */
#bago_tourism .marine-item,
#bago_tourism .outlook-container .marine-item,
#bago_tourism .outlook-day .marine-item,
.tab-pane#bago_tourism .marine-item,
.tab-pane#bago_tourism .outlook-container .marine-item,
.tab-pane#bago_tourism .outlook-day .marine-item {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    padding: 0.75rem !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    margin-bottom: 0.5rem !important;
    border: 1px solid #e9ecef !important;
}

/* Complete Agromet Section Styling */
.animated-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 1rem 1.5rem !important;
    margin: -1rem -1rem 1rem -1rem !important;
}

.header-content {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    justify-content: center !important;
}

.animated-icon {
    font-size: 1.8rem !important;
    margin-right: 0 !important;
    animation: pulse 2s infinite !important;
}

.agromet-content {
    padding: 20px !important;
}

.loading-spinner {
    text-align: center !important;
    padding: 40px !important;
    color: #666 !important;
}

.loading-spinner i {
    font-size: 24px !important;
    margin-bottom: 10px !important;
}

.agromet-document {
    background: white !important;
    padding: 30px !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    font-family: Arial, sans-serif !important;
    line-height: 1.6 !important;
    text-align: left !important;
}

.agromet-document * {
    text-align: left !important;
}

.agromet-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    margin-bottom: 25px !important;
    border-left: 5px solid #28a745 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.agromet-headline {
    font-size: 1.4em !important;
    font-weight: bold !important;
    color: #2c3e50 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}

.agromet-period {
    font-size: 1.1em !important;
    color: #495057 !important;
    margin-bottom: 10px !important;
    text-align: center !important;
}

.agromet-month {
    color: #28a745 !important;
    font-weight: bold !important;
}

.agromet-dekad {
    color: #6c757d !important;
    font-style: italic !important;
}

.agromet-summary {
    background: #fff !important;
    padding: 20px !important;
    border-radius: 10px !important;
    border: 1px solid #e9ecef !important;
    margin: 20px 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
}

.agromet-summary h3 {
    color: #28a745 !important;
    font-size: 1.2em !important;
    margin-bottom: 15px !important;
    border-bottom: 2px solid #28a745 !important;
    padding-bottom: 5px !important;
}

.agromet-forecast-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
    background: white !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.agromet-forecast-table th {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    padding: 15px 10px !important;
    font-weight: 600 !important;
    text-align: center !important;
    font-size: 0.9em !important;
    border-right: 1px solid rgba(255,255,255,0.3) !important;
}

.agromet-forecast-table th:last-child {
    border-right: none !important;
}

.agromet-forecast-table td {
    padding: 12px 10px !important;
    border-bottom: 1px solid #e9ecef !important;
    border-right: 1px solid #e9ecef !important;
    text-align: center !important;
    font-size: 0.85em !important;
    vertical-align: middle !important;
}

.agromet-forecast-table td:last-child {
    border-right: none !important;
}

.agromet-forecast-table tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

.agromet-forecast-table tr:hover {
    background-color: #e8f5e8 !important;
}

.agromet-forecast-table img {
    max-width: 40px !important;
    height: auto !important;
    border-radius: 4px !important;
}

.agromet-images {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
    margin: 30px 0 !important;
}

.agromet-image-section {
    background: white !important;
    padding: 20px !important;
    border-radius: 10px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    text-align: center !important;
}

.agromet-image-section h4 {
    color: #28a745 !important;
    margin-bottom: 15px !important;
    font-size: 1.1em !important;
    text-align: center !important;
}

.agromet-image-section img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.agromet-highlights {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%) !important;
    padding: 20px !important;
    border-radius: 10px !important;
    border-left: 5px solid #ffc107 !important;
    margin: 20px 0 !important;
}

.agromet-highlights h3 {
    color: #856404 !important;
    margin-bottom: 15px !important;
}

/* Center align agromet header information */
.agromet-issue-time,
.agromet-issue-date,
.agromet-headline-text {
    font-size: 1em !important;
    font-weight: normal !important;
    color: #333 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    display: block !important;
}

/* Center align dekad with header info */
.agromet-content p:first-of-type {
    font-size: 1em !important;
    font-weight: normal !important;
    color: #333 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    display: block !important;
}

/* Maps container - side by side layout */
.maps-container {
    display: flex !important;
    gap: 20px !important;
    margin: 20px 0 !important;
    justify-content: space-between !important;
}

.map-section {
    flex: 1 !important;
    text-align: center !important;
}

.map-section img {
    width: 100% !important;
    height: auto !important;
    max-width: 500px !important;
}

.figure-caption {
    margin-top: 10px !important;
    font-weight: bold !important;
    color: #333 !important;
    text-align: center !important;
}

/* Summary section */
.summary-section {
    margin: 20px 0 !important;
    text-align: left !important;
}

.summary-section h4 {
    color: #dc3545 !important;
    margin-bottom: 10px !important;
    text-align: left !important;
    font-weight: bold !important;
}

.summary-section div,
.summary-section div p,
.summary-section div span {
    font-size: 12px !important;
    line-height: 1.3 !important;
}

.read-more-btn {
    background-color: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    margin-top: 15px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Ensure pagination dots look good when moved above the button */
.summary-section .agromet-slider-dots {
    margin: 0.75rem 0 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
}

.read-more-btn:hover {
    background-color: #c82333 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4) !important;
}

.read-more-btn i {
    transition: transform 0.3s ease !important;
}

.read-more-btn.expanded i {
    transform: rotate(180deg) !important;
}

.forecast-section {
    margin: 20px 0 !important;
    text-align: left !important;
}

.full-forecast-content {
    background: transparent !important;
    padding: 20px !important;
    border-radius: 10px !important;
    border: none !important;
    margin-top: 15px !important;
}

/* Improve readability of API-pulled Agromet text */
.full-forecast-content p,
.full-forecast-content li,
.full-forecast-content td,
.full-forecast-content th,
.full-forecast-content blockquote,
.full-forecast-content div,
.full-forecast-content span {
    text-align: justify !important;
    text-justify: inter-word !important;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* Avoid justifying headings */
.full-forecast-content h1,
.full-forecast-content h2,
.full-forecast-content h3,
.full-forecast-content h4,
.full-forecast-content h5,
.full-forecast-content h6,
.full-forecast-content .figure-caption {
    text-align: left !important;
}

/* Ensure Agromet images sit above text (no floats) */
.full-forecast-content img {
    display: block !important;
    float: none !important;
    margin: 1.5rem auto 1rem auto !important; /* extra space above */
    clear: both !important;
    max-width: 100% !important;
    height: auto !important;
}

.full-forecast-content figure {
    display: block !important;
    margin: 1.5rem auto 1rem auto !important; /* extra space above */
    text-align: center !important;
    float: none !important;
}

.full-forecast-content [style*="float:right"],
.full-forecast-content [style*="float: right"],
.full-forecast-content [style*="float:left"],
.full-forecast-content [style*="float: left"] {
    float: none !important;
}

.error-message {
    text-align: center !important;
    padding: 40px !important;
    color: #dc3545 !important;
    background: #f8d7da !important;
    border-radius: 10px !important;
    margin: 20px 0 !important;
}

.error-message i {
    font-size: 2em !important;
    margin-bottom: 10px !important;
}

/* Add pulse animation for icons */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Tobago Tourism Outlook – simplify layout, bold labels, red icons */
#bago_tourism .outlook-container .marine-item {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0.25rem 0 !important;
    margin: 0 0 0.5rem 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Remove any remaining boxes/outlines created by earlier rules */
.tab-pane#bago_tourism .outlook-day .marine-item {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

#bago_tourism .outlook-container .marine-item i {
    color: #dc3545 !important;
    font-size: 1.25rem !important;
    margin-right: 0.5rem !important;
    display: inline-block !important;
    min-width: 20px !important;
    text-align: left !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

#bago_tourism .outlook-container .marine-content {
    display: inline-flex !important;
    flex-direction: column !important; /* stack label above value */
    align-items: flex-start !important;
}

#bago_tourism .outlook-container .marine-label {
    display: block !important;
    font-weight: 700 !important;
    color: #2c3e50 !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
    margin: 0 0 0.15rem 0 !important;
}

#bago_tourism .outlook-container .marine-value {
    display: block !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
}

/* Match text sizing with General tab */
#bago_tourism .outlook-container .marine-label,
#bago_tourism .outlook-container .marine-value,
#bago_tourism .outlook-container .outlook-text,
#bago_tourism .outlook-container .forecast-description {
    font-size: 1rem !important;
}

#bago_tourism .outlook-container .outlook-header h6 {
    font-size: 1.1rem !important; /* same as general header sizing */
}

/* Use the same animation timings as General */
#bago_tourism .outlook-container .marine-item .animated-wave { animation: wave 3s ease-in-out infinite !important; }
#bago_tourism .outlook-container .marine-item .animated-wind { animation: wind 3s ease-in-out infinite !important; }
#bago_tourism .outlook-container .marine-item .animated-thermometer { animation: thermometer 2s ease-in-out infinite !important; }
#bago_tourism .outlook-container .marine-item .animated-humidity { animation: humidity 2.5s ease-in-out infinite !important; }
#bago_tourism .outlook-container .outlook-header .animated-outlook { animation: outlook 4s ease-in-out infinite !important; }

/* Make the clock icon red and left-aligned beside the date */
#bago_tourism .outlook-container .outlook-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

#bago_tourism .outlook-container .outlook-header i {
    color: #dc3545 !important;
    margin-right: 0.5rem !important;
}

  