/* Marées Display - Design Figma Exact */

:root {
    --background: #ffffff;
    --foreground: #030213;
    --muted: #ececf0;
    --muted-foreground: #717182;
    --accent: #e9ebef;
    --border: rgba(0, 0, 0, 0.1);
    --radius: 0.625rem;
    --primary: #030213;
    --input-background: #f3f3f5;
}

.marees-widget {
    max-width: 90%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--background);
    color: var(--foreground);
    overflow-x: clip;
}

/* Header */

.marees-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    align-content: space-around;
    flex-direction: row;
    justify-content: center;
    position: sticky;
    top: 0;
    background: var(--background);
    z-index: 100;
    padding: 12px 0 24px 0;
}

.marees-city-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 500;
}

.icon-location {
    width: 16px;
    height: 16px;
}

.marees-change-city {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s;
}

.marees-change-city:hover {
    background: var(--muted);
}

.icon-search {
    width: 16px;
    height: 16px;
}

/* Modal */
.marees-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.marees-search-content {
    background: white;
    border-radius: var(--radius);
    width: 96%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.marees-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.marees-search-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.marees-search-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--muted-foreground);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.marees-search-close:hover {
    background: var(--muted);
}

.marees-search-input {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    outline: none;
}

.marees-search-results {
    overflow-y: auto;
    max-height: 400px;
}

.marees-search-result {
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    font-size: 15px;
}

.marees-search-result:last-child {
    border-bottom: none;
}

.marees-search-result:hover {
    background: var(--muted);
}

/* Navigation calendrier */
.marees-calendar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    position: sticky;
    top: 64px;
    background: var(--background);
    z-index: 99;
    padding: 12px 0;
}

.marees-calendar-nav {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.marees-calendar-nav:hover {
    background: var(--muted);
}

.marees-calendar-nav svg {
    width: 18px;
    height: 18px;
}

.marees-calendar-scroll {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.marees-calendar-scroll::-webkit-scrollbar {
    display: none;
}

.marees-calendar-days {
    display: flex;
    gap: 8px;
    padding: 2px 0;
}

/* Cartes de jour */
.marees-day {
    flex-shrink: 0;
    min-width: 140px;
    padding: 12px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--background);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-align: center;
}

.marees-day:hover {
    border-color: var(--foreground);
    box-shadow: 2px 2px 4px #0302133d;
}

.marees-day.active {
    border-color: var(--foreground);
    background: #eaeaea;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid;
}

.marees-day-name {
    font-size: 13px;
    font-weight: 400;
    color: var(--foreground);
    margin-bottom: 8px;
    line-height: 1.3;
}

.marees-day-coef {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 12px;
    color: white;
}

.marees-day-coef.coef-low {
    background: #dee1e7;
    color: #030213;
}

.marees-day-coef.coef-high {
    background: var(--foreground);
}

.marees-day-coef svg {
    width: 12px;
    height: 12px;
}

.marees-big-tide-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
}

/* Météo du jour dans le calendrier */
.marees-day-weather {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted-foreground);
    justify-content: center;
}

.marees-day-weather svg {
    width: 18px;
    height: 18px;
}

.marees-day-weather span {
    font-weight: 500;
}

/* Conteneur principal des marées du jour */
.marees-day-container {
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 24px 24px 0 24px;
}

/* Titre section */
.marees-today-title {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
}

.marees-today-title h2 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    color: var(--foreground);
}

.marees-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Switch Grille/Courbe */
.marees-view-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.marees-switch-label {
    font-size: 13px;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: color 0.2s;
}

.marees-switch-label.active {
    color: var(--foreground);
    font-weight: 500;
}

.marees-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.marees-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.marees-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--muted);
    transition: 0.3s;
    border-radius: 24px;
}

.marees-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.marees-switch input:checked + .marees-switch-slider {
    background-color: var(--foreground);
}

.marees-switch input:checked + .marees-switch-slider:before {
    transform: translateX(20px);
}

.marees-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.marees-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
}

.marees-badge-coef {
    background: var(--foreground);
    color: white;
}

.marees-badge-big {
    background: #ff6b35;
    color: white;
}

.marees-badge-sea-temp {
    background: #e0f2fe;
    color: #0284c7;
    gap: 4px;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.marees-badge-sea-temp svg {
    stroke: #0284c7;
}

/* Tooltip pour badge température eau */
.marees-has-tooltip .marees-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--foreground);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 100;
}

.marees-has-tooltip .marees-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--foreground) transparent transparent transparent;
}

/* Affichage au survol (desktop) */
.marees-has-tooltip:hover .marees-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Affichage au clic (classe ajoutée par JS) */
.marees-has-tooltip.tooltip-active .marees-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Grille marées */
.marees-tides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Vue Graphique (Courbe) */
.marees-chart-view {
    padding: 12px 0;
}

.marees-chart-container {
    display: flex;
    gap: 8px;
}

.marees-chart-axis-y {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 10px;
    color: var(--muted-foreground);
    text-align: right;
    min-width: 35px;
    height: 200px;
}

.marees-chart-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.marees-chart-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, #e0f2fe 0%, #f0f9ff 100%);
    border-radius: 8px;
    overflow: hidden;
}

.marees-chart-wrapper canvas {
    display: block;
    width: 100%;
    height: 200px; /* Hauteur fixe pour la courbe */
}

.marees-chart-axis-x {
    display: flex;
    justify-content: space-between;
    padding: 8px 0 0;
    font-size: 10px;
    color: var(--muted-foreground);
}

/* Tooltip du graphique */
.marees-chart-tooltip {
    position: absolute;
    background: #ea580c;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.marees-chart-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #ea580c transparent transparent;
}

.marees-chart-tooltip .tooltip-time {
    display: block;
    font-weight: 600;
}

.marees-chart-tooltip .tooltip-height {
    display: block;
    font-size: 11px;
    opacity: 0.9;
}

/* Ligne verticale du curseur */
.marees-chart-cursor {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #ea580c;
    border-left: 1px dashed #ea580c;
    pointer-events: none;
    display: none;
}

/* Point sur la courbe */
.marees-chart-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ea580c;
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    display: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.marees-tide-card {
    padding: 16px;
    border-radius: var(--radius);
    background: var(--muted);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.marees-tide-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.marees-tide-icon svg {
    width: 20px;
    height: 20px;
}

.marees-tide-card.high .marees-tide-icon svg {
    color: #0069e0;
}

.marees-tide-card.low .marees-tide-icon svg {
    color: #0069e0;
}

.marees-tide-info {
    flex: 1;
}

.marees-tide-type {
    font-weight: 500;
    font-size: 14px;
    color: var(--foreground);
    margin-bottom: 2px;
}

.marees-tide-time {
    font-size: 13px;
    color: var(--muted-foreground);
    font-weight: 400;
}

/* Timeline */
.marees-timeline {
    position: relative;
    padding: 40px 0 20px;
    margin-bottom: 32px;
}

.marees-timeline-hours {
    position: relative;
    height: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.marees-timeline-hour {
    position: absolute;
    font-size: 11px;
    color: var(--muted-foreground);
    transform: translateX(-50%);
    top: -20px;
}

.marees-timeline-bars {
    position: relative;
    height: 60px;
}

.marees-timeline-bar {
    position: absolute;
    height: 100%;
    border-radius: 4px;
    opacity: 0.2;
}

.marees-timeline-bar.high-tide {
    background: #4a90e2;
}

.marees-timeline-bar.low-tide {
    background: #7eb3d6;
}

.marees-timeline-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}

.marees-timeline-marker-dot {
    width: 10px;
    height: 10px;
    background: var(--foreground);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.marees-timeline-marker-label {
    display: none;
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--foreground);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
}

.marees-timeline-marker:hover .marees-timeline-marker-label {
    display: block;
}

.marees-timeline-legend {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 16px;
}

.marees-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted-foreground);
}

.marees-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.marees-legend-color.high-tide {
    background: #4a90e2;
}

.marees-legend-color.low-tide {
    background: #7eb3d6;
}

/* Pêche à pied */
.marees-fishing {
    margin-top: 32px;
}

.marees-fishing h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--foreground);
}

.marees-fishing h3 svg {
    width: 18px;
    height: 18px;
    color: #10b981;
}

.marees-fishing-times {
    display: grid;
    gap: 10px;
}

.marees-fishing-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius);
    border: 1.5px solid;
    justify-content: flex-start;
}

.marees-fishing-excellent {
    background: #ecfdf5;
    border-color: #10b981;
}

.marees-fishing-very-good {
    background: #f0fdf4;
    border-color: #22c55e;
}

.marees-fishing-good {
    background: #fefce8;
    border-color: #eab308;
}

.marees-fishing-medium {
    background: #fef2f2;
    border-color: #ef4444;
}

.marees-fishing-time {
    display: flex;
    align-items: center;
    gap: 10px;
}

.marees-fishing-icon {
    font-size: 20px;
}

.marees-fishing-hours strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.marees-fishing-hours small {
    color: var(--muted-foreground);
    font-size: 12px;
}

.marees-quality-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.marees-fishing-excellent .marees-quality-badge {
    background: #10b981;
    color: white;
}

.marees-fishing-very-good .marees-quality-badge {
    background: #22c55e;
    color: white;
}

.marees-fishing-good .marees-quality-badge {
    background: #eab308;
    color: white;
}

.marees-fishing-medium .marees-quality-badge {
    background: #ef4444;
    color: white;
}

/* Phase lunaire */
.marees-lunar-phase {
    margin-top: 24px;
    padding: 14px;
    background: #e0f2fe;
    border-radius: var(--radius);
}

.marees-lunar-phase strong {
    font-weight: 500;
    color: var(--foreground);
}

.marees-lunar-phase p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--muted-foreground);
}

/* Erreur */
.marees-error {
    padding: 16px;
    background: #fee2e2;
    border: 1px solid #dc2626;
    border-radius: var(--radius);
    color: #991b1b;
    font-weight: 500;
}

/* =====================================================
   SECTION: Cartes de pêche (encarts séparés)
   ===================================================== */

/* Conteneur pour les deux cartes côte à côte */
.marees-fishing-row {
    display: flex;
    gap: 24px;
    margin-top: 24px;
}

.marees-fishing-row .marees-fishing-card {
    flex: 1;
    margin-top: 0;
}

.marees-fishing-column-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.marees-fishing-column-right .marees-fishing-card {
    flex: none;
    margin-top: 0;
}

.marees-fishing-card {
    margin-top: 24px;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    background: var(--background);
    display: flex;
    flex-direction: column;
}

.marees-fishing-card-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--foreground);
    width: 100%;
    flex-shrink: 0;
}

.marees-shore-alert-btn {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border: 1px solid #28a745;
    border-radius: 20px;
    color: #28a745;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.marees-shore-alert-btn:hover {
    background: #28a745;
    color: #fff;
    text-decoration: none;
}

.marees-shore-fishing .marees-shore-fishing-cards {
    width: 100%;
}

.marees-fishing-card-subtitle {
    font-weight: 400;
    font-size: 13px;
    color: var(--muted-foreground);
    margin-left: 8px;
}

.marees-icon-rod,
.marees-icon-shore {
    font-size: 18px;
}

/* ----- SECTION PÊCHE À LA CANNE ----- */
.marees-rod-fishing .marees-tide-markers,
.marees-rod-fishing .marees-activity-timeline,
.marees-rod-fishing .marees-celestial-timeline,
.marees-rod-fishing .marees-celestial-times,
.marees-rod-fishing .marees-activity-legend {
    width: 100%;
}

/* Conteneur des marqueurs de marée */
.marees-tide-markers {
    position: relative;
    height: 50px;
    margin-bottom: 24px;
    margin-left: 25px;
    margin-right: 25px;
}

.marees-tide-marker {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.marees-tide-marker-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e0f2fe;
    font-size: 11px;
    font-weight: 500;
}

.marees-tide-marker-icon.high {
    color: #0069e0;
}

.marees-tide-marker-icon.low {
    color: #0069e0;
}

.marees-tide-marker-time {
    font-size: 11px;
    font-weight: 500;
    color: var(--foreground);
    white-space: nowrap;
}

.marees-tide-marker-label {
    font-size: 9px;
    color: var(--muted-foreground);
    text-transform: capitalize;
}

/* Timeline d'activité - 12 blocs */
.marees-activity-timeline {
    display: flex;
    gap: 3px;
    padding: 12px 0;
    align-items: flex-end; /* Aligner tous les blocs en bas */
}

.marees-activity-block {
    flex: 1;
    min-width: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.marees-activity-bar {
    width: 100%;
    height: 32px;
    background: #e5e7eb;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* Couleurs d'activité selon le score (pour future API) */
.marees-activity-block[data-score="0"] .marees-activity-bar {
    background: #e5e7eb;
}

.marees-activity-block.activity-none .marees-activity-bar {
    background: #e5e7eb;
}

.marees-activity-block.activity-low .marees-activity-bar {
    background: #e5e7eb;
}

.marees-activity-block.activity-medium .marees-activity-bar {
    background: #93c5fd;
}

.marees-activity-block.activity-good .marees-activity-bar {
    background: #3b82f6;
}

.marees-activity-block.activity-very-good .marees-activity-bar {
    background: #1e40af;
}

.marees-activity-block.activity-exceptional .marees-activity-bar {
    background: #7c3aed;
}

.marees-activity-label {
    font-size: 10px;
    color: var(--muted-foreground);
    font-weight: 400;
}

/* Timeline céleste positionnée */
.marees-celestial-timeline {
    position: relative;
    height: 40px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.marees-celestial-marker {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    z-index: 5;
}

.marees-celestial-marker-icon {
    width: 36px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marees-celestial-marker-icon svg {
    width: 18px;
    height: 18px;
}

.marees-celestial-marker-icon.sun {
    color: #f59e0b;
}

.marees-celestial-marker-icon.moon {
    color: #6366f1;
}

.marees-celestial-marker-time {
    font-size: 9px;
    color: var(--muted-foreground);
    white-space: nowrap;
}

.marees-celestial-marker-label {
    font-size: 8px;
    color: var(--muted-foreground);
    opacity: 0.7;
}

/* Légende des niveaux d'activité */
.marees-activity-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    justify-content: center;
}

.marees-activity-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--muted-foreground);
}

.marees-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.marees-legend-color.none { background: #e5e7eb; }
.marees-legend-color.medium { background: #93c5fd; }
.marees-legend-color.good { background: #3b82f6; }
.marees-legend-color.very-good { background: #1e40af; }
.marees-legend-color.exceptional { background: #7c3aed; }

/* Horaires soleil/lune (version texte simple) */
.marees-celestial-times {
    display: none;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    justify-content: center;
}

.marees-celestial-item {
    font-size: 13px;
    color: var(--muted-foreground);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ----- SECTION MEILLEURS MOMENTS ----- */
.marees-best-moments-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.marees-best-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius);
    border: 1.5px solid;
    position: relative;
}

.marees-best-card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.marees-best-time-range {
    font-size: 16px;
    font-weight: 600;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 8px;
}

.marees-best-fish-icons {
    font-size: 14px;
}

.marees-best-description {
    font-size: 12px;
    color: var(--muted-foreground);
}

.marees-best-card-right {
    flex-shrink: 0;
}

.marees-best-quality-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

/* Couleurs des cartes meilleurs moments (5 niveaux) */
/* Scopés via .marees-best-quality-badge pour éviter conflit avec pêche à pied */

/* Faible = Gris */
.marees-best-low {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.marees-best-quality-badge.marees-badge-low {
    background: #9ca3af;
}

/* Moyen = Bleu clair */
.marees-best-medium {
    background: #eff6ff;
    border-color: #93c5fd;
}

.marees-best-quality-badge.marees-badge-medium {
    background: #60a5fa;
}

/* Bon = Bleu */
.marees-best-good {
    background: #dbeafe;
    border-color: #3b82f6;
}

.marees-best-quality-badge.marees-badge-good {
    background: #3b82f6;
}

/* Très Bon = Bleu foncé */
.marees-best-very-good {
    background: #e0e7ff;
    border-color: #1e40af;
}

.marees-best-quality-badge.marees-badge-very-good {
    background: #1e40af;
}

/* Exceptionnel = Violet gradient */
.marees-best-exceptional {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-color: #7c3aed;
}

.marees-best-quality-badge.marees-badge-exceptional {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

/* ── Login gate — moments floutés pour visiteurs ── */
.marees-login-gate {
    position: relative;
}

.marees-login-gate-blurred {
    display: flex;
    flex-direction: column;
    gap: 12px;
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.marees-login-gate-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(2px);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.marees-login-gate-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    line-height: 1.4;
}

.marees-login-gate-btn {
    display: inline-block;
    padding: 0.4rem 0.875rem;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    transition: background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.marees-login-gate-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #0891b2);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

/* ── Calendar gate — jours floutés pour visiteurs ── */
.marees-calendar-gate {
    position: relative;
    display: flex;
    flex-shrink: 0;
}

.marees-calendar-gate-blurred {
    display: flex;
    gap: 8px;
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.marees-calendar-gate .marees-calendar-gate-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
    min-width: 140px;
}

/* Encarts raisons */
.marees-best-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.marees-reason-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    line-height: 1.4;
}

/* Raisons positives astronomiques */
.marees-reason-pleine_lune,
.marees-reason-nouvelle_lune,
.marees-reason-lune_zenith,
.marees-reason-lune_nadir {
    background: #ede9fe;
    color: #6d28d9;
}

/* Alignement soleil-lune */
.marees-reason-soleil_lune {
    background: #fef3c7;
    color: #92400e;
}

/* Raison négative (vent fort) */
.marees-reason-vent_fort {
    background: #fef2f2;
    color: #b91c1c;
}

/* Raison positive météo */
.marees-reason-apres_vent {
    background: #ecfdf5;
    color: #065f46;
}

/* Tag raison cliquable pour tooltip */
.marees-reason-tag[data-description] {
    cursor: pointer;
}

/* Icône "i" info sur les raisons */
.marees-reason-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    color: #475569;
    font-size: 9px;
    font-weight: 700;
    font-style: italic;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
    transition: background 0.2s;
    flex-shrink: 0;
}

.marees-reason-tag[data-description]:hover .marees-reason-info {
    background: rgba(0, 0, 0, 0.25);
}

/* Bulle tooltip description (positionnée en fixed via JS) */
.marees-reason-tooltip {
    position: fixed;
    width: 300px;
    max-width: calc(100vw - 32px);
    background: #1e293b;
    color: #f1f5f9;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.marees-reason-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #1e293b transparent transparent;
}

.marees-reason-tooltip-close {
    position: absolute;
    top: 6px;
    right: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #94a3b8;
    line-height: 1;
}

.marees-reason-tooltip-close:hover {
    color: white;
}

.marees-reason-tooltip-text {
    padding-right: 16px;
}


.marees-icon-best {
    font-size: 18px;
}

/* ----- ENCART LEURRE (carousel) ----- */
.marees-lure-card {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius);
    background: #fbfcff;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.marees-lure-header {
    display: flex;
    align-items: center;
}

.marees-lure-title {
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
}

.marees-lure-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.marees-lure-arrow {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
}

.marees-lure-arrow:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.marees-lure-carousel {
    overflow: visible;
    position: relative;
    clip-path: inset(-100px 0 0 0);
    flex: 1;
    min-width: 0;
}

.marees-lure-track {
    display: flex;
    transition: transform 0.35s ease;
}

.marees-lure-slide {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
}

.marees-lure-slide-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
}

.marees-lure-slide-label span:first-child {
    font-size: 13px;
}

.marees-lure-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.marees-lure-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: #d1d5db;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s;
}

.marees-lure-dot.active {
    background: #6b7280;
}

.marees-lure-phrase {
    font-size: 11px;
    line-height: 1.45;
    color: #374151;
    margin: 0 0 6px 0;
}

.marees-lure-phrase strong {
    font-weight: 700;
}

.marees-lure-colors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.marees-lure-label {
    font-size: 10px;
    color: #64748b;
    font-weight: 500;
}

.marees-lure-color {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
    cursor: default;
}

.marees-lure-badge {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    border: 1px solid #fff;
}

.marees-lure-fish {
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.marees-lure-name {
    font-size: 10px;
    font-weight: 600;
    color: #334155;
}

.marees-lure-color .marees-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.45;
    white-space: normal;
    width: 240px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 9999;
    pointer-events: none;
}

.marees-lure-color .marees-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px 5px 0;
    border-style: solid;
    border-color: #1e293b transparent transparent;
}

.marees-lure-color:hover .marees-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mobile : désactiver hover tooltip (géré par JS en overlay) */
@media (hover: none) {
    .marees-lure-color:hover .marees-tooltip {
        opacity: 0;
        visibility: hidden;
    }
}

/* Tooltip mobile overlay (appendTo body, échappe au clip-path) */
.marees-mobile-tooltip {
    position: absolute;
    left: 16px;
    right: 16px;
    transform: translateY(-100%);
    background: #1e293b;
    color: #f1f5f9;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.marees-mobile-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.marees-mobile-tooltip-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #1e293b transparent transparent;
}

/* ── Lure gate — couleurs floutées pour visiteurs ── */
.marees-lure-gate {
    position: relative;
    min-height: 40px;
}

.marees-lure-gate-blurred {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    padding: 4px 0;
}

.marees-lure-gate-overlay {
    position: absolute;
    inset: -6px -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    z-index: 5;
}

/* ----- SECTION PÊCHE À PIED ----- */
.marees-shore-fishing-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.marees-shore-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius);
    border: 1.5px solid;
}

.marees-shore-card-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.marees-shore-time-range {
    font-size: 16px;
    font-weight: 600;
    color: var(--foreground);
}

.marees-shore-description {
    font-size: 12px;
    color: var(--muted-foreground);
}

.marees-shore-card-right {
    flex-shrink: 0;
}

.marees-shore-quality-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

/* Couleurs des cartes selon la qualité */
.marees-shore-medium {
    background: #fef2f2;
    border-color: #f87171;
}

.marees-shore-good {
    background: #fefce8;
    border-color: #facc15;
}

.marees-shore-very-good {
    background: #f0fdf4;
    border-color: #4ade80;
}

.marees-shore-excellent {
    background: #ecfdf5;
    border-color: #10b981;
}

/* Couleurs des badges */
.marees-badge-medium {
    background: #ef4444;
}

.marees-badge-good {
    background: #eab308;
}

.marees-badge-very-good {
    background: #22c55e;
}

.marees-badge-excellent {
    background: #059669;
}

/* Encart rappel réglementation pêche à pied */
.marees-shore-notice {
    margin-top: 12px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: #92400e;
}

.marees-shore-notice-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.marees-shore-notice p {
    margin: 0;
}

.marees-shore-notice a {
    color: #92400e;
    font-weight: 600;
    font-style: italic;
    text-decoration: underline;
}

.marees-shore-notice a:hover {
    color: #78350f;
}

/* Bloc CTA configurable sous pêche à pied */
.marees-shore-cta {
    margin-top: 16px;
    padding: 0 4px;
    text-align: center;
}

.marees-shore-cta-title {
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 6px;
    color: var(--foreground);
}

.marees-shore-cta-desc {
    font-size: 13px;
    color: var(--muted-foreground);
    margin: 0 0 16px;
    line-height: 1.5;
}

.marees-shore-cta-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.marees-shore-cta-btn.primary {
    background: linear-gradient(135deg, #6366f1, #3b82f6, #06b6d4);
    color: #fff;
    margin-bottom: 10px;
}

.marees-shore-cta-btn.primary:hover {
    background: linear-gradient(135deg, #4f46e5, #2563eb, #0891b2);
}

.marees-shore-cta-btn.secondary {
    background: #fff;
    color: #16a34a;
    border: 1.5px solid #16a34a;
}

.marees-shore-cta-btn.secondary:hover {
    background: #f0fdf4;
}

/* Message si aucune donnée */
.marees-no-data {
    text-align: center;
    color: var(--muted-foreground);
    padding: 20px;
    font-size: 14px;
}

/* =====================================================
   SECTION: Icônes sur la courbe du graphique
   ===================================================== */

/* Overlay des poissons sur le graphique - zone sous la courbe */
/* left/right = padding du canvas (10px) pour aligner sur la grille */
.marees-chart-fish-overlay {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 5;
}

.marees-chart-fish-marker {
    position: absolute;
    bottom: 10px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.marees-chart-period-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    min-width: 2px;
    z-index: 0;
    box-shadow: inset 1px 0 0 rgba(64, 131, 243, 0.25), inset -1px 0 0 rgba(64, 131, 243, 0.25);
}

.marees-chart-period-zone.zone-exceptional {
    box-shadow: inset 1px 0 0 rgba(124, 58, 237, 0.30), inset -1px 0 0 rgba(124, 58, 237, 0.30);
}

.marees-chart-period-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(64, 131, 243, 0.05);
}

.zone-exceptional .marees-chart-period-fill {
    background: rgba(124, 58, 237, 0.05);
}

.marees-chart-period-line {
    display: none;
}

.marees-chart-period-line.period-start {
    left: 0;
}

.marees-chart-period-line.period-end {
    right: 0;
}

.marees-chart-fish-icons {
    display: flex;
    gap: 2px;
    padding: 3px 6px;

}

.marees-chart-fish-icon {
    width: 16px;
    height: 16px;
    color: #4083f3;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.marees-chart-fish-icon svg {
    width: 100%;
    height: 100%;
}

/* Poisson exceptionnel : 1 gros poisson violet */
.fish-exceptional .marees-chart-fish-icon {
    width: 26px;
    height: 26px;
    color: #7c3aed;
    filter: drop-shadow(0 2px 4px rgba(124, 58, 237, 0.6));
}

/* Timeline céleste sous la courbe - 2 lignes : soleil puis lune */
.marees-chart-celestial {
    position: relative;
    height: 70px; /* 2 lignes de 28px + marge */
    margin-top: 8px;
    margin-left: 0;
    padding-top: 4px;
    flex-shrink: 0;
}

.marees-chart-celestial-marker {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.marees-chart-celestial-marker-top {
    display: flex;
    align-items: center;
    gap: 1px;
}

.marees-chart-celestial-icon {
    font-size: 16px;
    line-height: 1;
}

.marees-chart-celestial-icon.sun {
    filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.4));
}

.marees-chart-celestial-icon.moon {
    filter: drop-shadow(0 1px 2px rgba(99, 102, 241, 0.4));
}

.marees-chart-celestial-arrow {
    font-size: 12px;
    line-height: 1;
}

.marees-chart-celestial-arrow.sun {
    color: #f59e0b;
}

.marees-chart-celestial-arrow.moon {
    color: #6366f1;
}

.marees-chart-celestial-time {
    font-size: 10px;
    color: var(--muted-foreground);
    font-weight: 500;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .marees-day-container {
        padding: 12px;
    }

    .marees-tides-grid {
        grid-template-columns: 1fr;
    }

    .marees-calendar-days {
        gap: 6px;
    }

    .marees-day {
        min-width: 100px;
    }

    .marees-fishing-card {
        padding: 16px;
    }

    .marees-fishing-row {
        flex-direction: column;
        gap: 16px;
    }

    .marees-activity-timeline {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .marees-activity-block {
        min-width: 35px;
    }

    .marees-celestial-times {
        gap: 12px;
    }

    .marees-celestial-item {
        font-size: 12px;
    }

    .marees-shore-time-range {
        font-size: 14px;
    }

    .marees-tide-markers {
        margin-left: 15px;
        margin-right: 15px;
    }

    .marees-celestial-timeline {
        display: none;
    }

    .marees-celestial-times {
        display: flex;
    }

    /* Masquer l'axe Y sur mobile */
    .marees-chart-axis-y {
        display: none;
    }

    /* Icônes poissons - mobile */
    .marees-chart-fish-overlay {
        top: 0;
        bottom: 0;
    }

    .marees-chart-fish-icon {
        width: 11px;
        height: 11px;
    }

    .marees-chart-fish-icons {
        flex-direction: column;
        padding: 2px 3px;
        gap: 0;
    }

    .fish-exceptional .marees-chart-fish-icon {
        width: 18px;
        height: 18px;
    }

    .marees-chart-wrapper {
        height: 240px;
    }

    .marees-chart-wrapper canvas {
        height: 240px;
    }

    .marees-chart-celestial {
        height: 60px;
    }

    .marees-chart-celestial-icon {
        font-size: 14px;
    }

    .marees-chart-celestial-time {
        font-size: 9px;
    }

    .marees-search-modal {
    padding: 0px !important;
    }

    /* Supprimer le padding global du thème sur mobile */
    .has-global-padding {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* =====================================================
   RECHERCHE STANDALONE (SHORTCODE [marees_search])
   ===================================================== */

.marees-search-standalone {
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.marees-search-standalone-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--foreground);
    text-align: center;
}

.marees-search-standalone-wrapper {
    position: relative;
}

.marees-search-standalone-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.marees-search-standalone-icon {
    position: absolute;
    left: 16px;
    color: var(--muted-foreground);
    pointer-events: none;
}

.marees-search-standalone-spinner {
    position: absolute;
    right: 16px;
    color: var(--muted-foreground);
}

.marees-search-standalone-spinner svg {
    animation: marees-spin 1s linear infinite;
}

@keyframes marees-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.marees-search-standalone-input {
    width: 100%;
    padding: 16px 50px 16px 50px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    outline: none;
    background: var(--background);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.marees-search-standalone-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.marees-search-standalone-input::placeholder {
    color: var(--muted-foreground);
}

.marees-search-standalone-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.marees-search-standalone-result {
    display: block;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    font-size: 15px;
    color: var(--foreground);
    text-decoration: none;
}

.marees-search-standalone-result:last-child {
    border-bottom: none;
}

.marees-search-standalone-result:hover {
    background: var(--muted);
    color: var(--foreground);
    text-decoration: none;
}

.marees-search-standalone-no-result,
.marees-search-standalone-error {
    padding: 20px;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 14px;
}

.marees-search-standalone-error {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 600px) {
    .marees-search-standalone {
        padding: 16px;
    }

    .marees-search-standalone-title {
        font-size: 18px;
    }

    .marees-search-standalone-input {
        padding: 14px 45px 14px 45px;
        font-size: 15px;
    }
}

/* =====================================================
   SECTION: Cards Container (Marées + Météo)
   ===================================================== */

.marees-cards-container {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.marees-tides-card {
    flex: 2;
    min-width: 0;
}

.marees-weather-card {
    flex: 1;
    min-width: 280px;
    max-width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    background: var(--background);
    display: flex;
    flex-direction: column;
}

/* Weather Card Header */
.marees-weather-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.marees-weather-header span:last-child {
    font-size: 16px;
    font-weight: 500;
    color: var(--foreground);
}

.weather-header-icon {
    display: flex;
    align-items: center;
}

.weather-header-icon svg {
    width: 20px;
    height: 20px;
}

/* Weather Main (Icon + Description) */
.marees-weather-main {
    background: #e8f4fd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.marees-weather-icon-large {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.marees-weather-icon-large svg {
    width: 32px;
    height: 32px;
}

.marees-weather-description {
    font-size: 14px;
    font-weight: 500;
    color: var(--foreground);
}

/* Weather Grid (2 columns) */
.marees-weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.marees-weather-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 8px;
}

.marees-weather-row:last-child {
    margin-bottom: 0;
}

.weather-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.weather-row-icon svg {
    width: 18px;
    height: 18px;
}

.weather-row-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.weather-row-label {
    font-size: 12px;
    color: var(--muted-foreground, #6b7280);
}

.weather-row-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
}

.weather-row-value small {
    font-weight: 400;
    color: var(--muted-foreground);
    margin-left: 2px;
    font-size: 11px;
}

/* Temperature icons colors */
.temp-max-icon svg {
    stroke: #ef4444;
}

.temp-min-icon svg {
    stroke: #3b82f6;
}

/* No Data State */
.marees-weather-no-data {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-foreground);
    font-size: 14px;
    text-align: center;
    padding: 40px 20px;
}

.marees-weather-no-data p {
    margin: 0;
}

/* =====================================================
   MOBILE: Horizontal Slider for Cards
   ===================================================== */
@media (max-width: 900px) {
    .marees-cards-container {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 16px;
        padding-bottom: 8px;
    }

    .marees-cards-container::-webkit-scrollbar {
        display: none;
    }

    .marees-tides-card {
        scroll-snap-align: start;
        flex: none;
        flex-shrink: 0;
        width: 70vw;
        min-width: unset;
        max-width: unset;
    }

    .marees-weather-card {
        scroll-snap-align: start;
        flex: none;
        flex-shrink: 0;
        width: 70vw;
        min-width: unset;
        max-width: unset;
    }
}

@media (max-width: 640px) {
    .marees-cards-container {
        gap: 12px;
    }

    .marees-tides-card {
        flex: none;
        width: 70vw;
    }

    .marees-weather-card {
        flex: none;
        width: 70vw;
        padding: 16px;
    }

    .marees-weather-main {
        padding: 10px 14px;
        gap: 10px;
    }

    .marees-weather-icon-large svg {
        width: 28px;
        height: 28px;
    }

    .marees-weather-description {
        font-size: 13px;
    }

    .marees-weather-row {
        padding: 10px 14px;
    }

    .weather-row-value-split {
        font-size: 13px;
    }
}
