/* Ensure the search box doesn't take up the whole screen on mobile */
.leaflet-control-geocoder {
    max-width: 300px !important;
    background: white;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
}

.gear-item input:checked + label {
    text-decoration: line-through;
    color: #888;
    transition: all 0.3s ease;
}

.leaflet-control-geocoder-form {
  vertical-align: center;
}

:root {
    --primary-green: #2E5A27;   /* Forest Green */
    --accent-gold: #FFC107;    /* Signal Yellow for visibility */
    --warning-red: #B71C1C;    /* Safety Red */
    --stone-gray: #424242;
    --canvas-white: #F9FBE7;   /* Off-white to reduce glare outdoors */
}

body {
    background-color: var(--canvas-white);
    color: var(--stone-gray);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    line-height: 1.6;
}

h1 {
    color: var(--primary-green);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 3px solid var(--primary-green);
    padding-bottom: 10px;
}

#footer {
    text-align: center;
    font-size: small;
}

/* Card-style containers for Map and List */
.card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #E0E0E0;
}

/* Big, "Gloved-Hand" Friendly Buttons */
button {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: transform 0.1s, filter 0.2s;
    margin-bottom: 10px;
}

button:active {
    transform: scale(0.98);
}

#generateBtn {
    background-color: var(--primary-green);
    color: white;
    box-shadow: 0 4px 0 #1B3517;
}

#clearBtn {
    background-color: transparent;
    color: var(--warning-red);
    border: 2px solid var(--warning-red);
    font-size: 0.9rem;
    padding: 10px;
}

/* Checklist Styling */
.gear-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #EEE;
    font-size: 1.1rem;
}

.gear-item:last-child { border-bottom: none; }

.gear-item input[type="checkbox"] {
    appearance: none;
    width: 28px;
    height: 28px;
    border: 2px solid var(--primary-green);
    border-radius: 4px;
    margin-right: 15px;
    position: relative;
    cursor: pointer;
}

.gear-item input[type="checkbox"]:checked {
    background-color: var(--primary-green);
}

.gear-item input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    left: 3px;
    top: -3px;
    font-weight: bold;
    font-size: x-large;
}

.gear-item input:checked + label {
    color: #AAA;
    text-decoration: line-through;
}

/* Container for the date input to add a custom icon if desired */
.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--primary-green);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* The actual Date Input */
input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
    border: 2px solid var(--primary-green);
    border-radius: 8px;
    color: var(--stone-gray);
    font-family: inherit;
    font-size: 1.1rem;
    padding: 12px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* This targets the little calendar icon in Chrome/Edge/Safari */
input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%232E5A27" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"/></svg>');
    cursor: pointer;
    filter: invert(0); /* Keeps our custom green color */
}

input[type="date"]:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}