/* karis-map.css - shared styles for the interactive arsenic map (index.php + admin_map.php).
   Also defines a few Tailwind utilities the map markup uses that are missing from the prebuilt tailwind.css. */

#map { height: 560px; width: 100%; z-index: 0; }
@media (max-width: 768px) { #map { height: 400px; } }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 14px 16px; font-family: 'Prompt', sans-serif; }
.leaflet-tooltip { font-family: 'Prompt', sans-serif; }
.pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none !important; } }

/* Dropdowns / round buttons */
.picker {
    background: rgba(255, 255, 255, .75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, .25);
    box-shadow: 0 4px 16px -6px rgba(107, 33, 168, .2);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.picker:hover { border-color: rgba(147, 51, 234, .45); }
.picker:focus { outline: none; border-color: #9333EA; box-shadow: 0 0 0 3px rgba(147, 51, 234, .25), 0 4px 16px -6px rgba(107, 33, 168, .2); }

/* Map mode switch (ในน้ำ / บนดิน) - admin map only */
.mode-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(147,51,234,.22); }
.mode-btn { padding: 7px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; color: #475569; transition: background .2s, color .2s, box-shadow .2s; }
.mode-btn:hover { color: #6B21A8; background: rgba(250,245,255,.9); }
.mode-btn:focus-visible { outline: 2px solid #9333EA; outline-offset: 2px; }
.mode-btn[aria-pressed="true"] { color: #fff; background: linear-gradient(90deg, #6B21A8, #9333EA); box-shadow: 0 6px 16px -8px rgba(107,33,168,.7); }

/* Tailwind utilities used by the map markup but missing from the prebuilt tailwind.css */
.w-10 { width: 2.5rem; } .h-10 { height: 2.5rem; }
.disabled\:opacity-40:disabled { opacity: .4; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }
@media (min-width: 768px) { .md\:w-72 { width: 18rem; } .md\:flex-none { flex: none; } }
