:root {
	--bg: #77A5DB;
	--panel: #B1D3F8;
	--text: #0f0f0f;
}
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
}

/* Shared overlay container */
#intro-splash,
#splash-modal {
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 5000;
}
#intro-splash {
    backdrop-filter: blur(4px);
    opacity: 1;
    transition: opacity 0.6s ease, backdrop-filter 0.6s ease;
}

#intro-splash.fading {
    backdrop-filter: blur(2px); /* half blur */
    opacity: 0;
}

#splash-modal.active,
#intro-splash.visible {
    opacity: 1;
    pointer-events: all;
}

/* Shared content box */
.overlay-box {
    background: #f7f9fb;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    border-radius: 10px;
    border-left: 4px solid #1a4d7a;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    text-align: center;
    animation: fadeUp 0.6s ease;
}

/* Entrance animation */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Buttons */
#close-intro,
#accept-btn {
    margin-top: 1.5rem;
    padding: 0.7rem 1.4rem;
    background: #1a4d7a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#close-intro:hover,
#accept-btn:hover {
    background: #163f63;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .intro-box {
        padding: 1.2rem;
        width: 92%;
    }

    .intro-box p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    #close-intro {
        width: 100%;
        padding: 0.9rem;
        font-size: 1rem;
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
	.splash {
		width: 90vw;
		max-height: 85vh;
		padding: 1rem;
	}

	.timeband h1 {
		font-size: 1.4rem;
	}

	.timeband p {
		font-size: 0.95rem;
		line-height: 1.4;
	}

	#accept-btn {
		width: 100%;
		padding: 0.9rem;
		font-size: 1rem;
	}
}

/* Very small screens (older phones) */
@media (max-width: 400px) {
	.splash {
		width: 95vw;
		max-height: 80vh;
	}

	.timeband p {
		font-size: 0.9rem;
	}
}

.mapPanel {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid #23262d;
  border-radius: 8px;
  padding: 8px;
  height: calc(100vh - 18px);
  z-index: 1;
  position: relative;
}
.mapPanel h2 {
  margin: 0 0 8px 0;
  padding: 0;
}
#map {
  flex: 1;
  width: 100%;
  border: 1px solid #2a2f3a; 
  border-radius: 8px;
}

/* Hide the leaflet control title */	
.leaflet-control-layers-collapsed .tidetables {
	display: none;
}
/* Optional: make the title look clean when expanded */
.tidetables {
	display: block;
	padding: 4px 10px 2px 10px;
	font-size: 13px;
	background: #f4f4f4;
	border-bottom: 1px solid #ccc;
	margin-bottom: 4px;
}
.iconLabel {
	font-size: medium;
	left: -45px;
	min-height: 0.1em;
	min-width: 100px;
	text-align: center;
	top: 1.5em;
	font-size: var(--label-size, small);
}

.NTSLFlabel {
	color: #FFA64D;
}
.EASYPlabel {
	color: #0055A4;
}
.EASYSlabel {
	color: #4DA3FF;
}

.ad-slot {
    min-height: 120px; /* or whatever fits your layout */
    margin: 1rem 0;
}