/* ==========================================================================
   Tool Pages - Shared Styles
   ========================================================================== */

/* Map containers */
.ate-map-container {
    width: 100%;
    height: 500px;
    border: 1px solid #d6d0c8;
    border-radius: 6px;
    margin-bottom: 1em;
}

/* Tool page sections */
.ate-tool-section {
    margin-bottom: 2em;
}

/* Tool panels — step cards */
.ate-tool-panel {
    border: 1px solid #d6d0c8;
    border-radius: 6px;
    margin-bottom: 1em;
    overflow: hidden;
    background: #FAFAF7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.ate-tool-section h3,
.ate-tool-panel > h3 {
    background: #F0EDE8;
    color: #1C4600;
    padding: 12px 16px;
    margin: 0;
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    font-weight: 700;
    border-bottom: 1px solid #d6d0c8;
    border-radius: 6px 6px 0 0;
    letter-spacing: 0.01em;
}

.ate-tool-panel-body {
    padding: 14px 16px;
}

/* Tool forms */
.ate-tool-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: #333;
    font-size: 0.9rem;
}

.ate-tool-form input[type="text"],
.ate-tool-form input[type="number"] {
    padding: 8px 10px;
    border: 1px solid #d6d0c8;
    border-radius: 4px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 250px;
    box-sizing: border-box;
    background: #fff;
    transition: border-color 0.2s ease;
}

.ate-tool-form input[type="text"]:focus,
.ate-tool-form input[type="number"]:focus {
    border-color: #69A741;
    outline: none;
    box-shadow: 0 0 0 2px rgba(105,167,65,0.15);
}

.ate-tool-form select {
    padding: 8px 10px;
    border: 1px solid #d6d0c8;
    border-radius: 4px;
    font-size: 0.9rem;
    background: #fff;
    transition: border-color 0.2s ease;
}

.ate-tool-form select:focus {
    border-color: #69A741;
    outline: none;
    box-shadow: 0 0 0 2px rgba(105,167,65,0.15);
}

.ate-tool-form button,
.ate-tool-form input[type="submit"] {
    background: #69A741;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 8px;
    transition: background 0.2s ease;
}

.ate-tool-form button:hover,
.ate-tool-form input[type="submit"]:hover {
    background: #5a9236;
}

.ate-tool-form input[type="reset"] {
    background: #888;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 8px;
    margin-left: 4px;
    transition: background 0.2s ease;
}

.ate-tool-form input[type="reset"]:hover {
    background: #666;
}

/* Calculator result display */
.ate-result-box {
    background: #FAFAF7;
    border: 2px solid #69A741;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 1em 0;
    font-size: 1.1rem;
}

.ate-result-box span {
    font-weight: bold;
    color: #1C4600;
}

/* Mulch calculator layout */
.ate-mulch-layout {
    display: flex;
    gap: 1.5em;
    flex-wrap: wrap;
}

.ate-mulch-main {
    flex: 2;
    min-width: 300px;
}

.ate-mulch-sidebar {
    flex: 1;
    min-width: 250px;
}

.ate-mulch-sidebar .ate-result-line {
    padding: 4px 0;
    font-size: 0.9rem;
    color: #333;
}

.ate-mulch-sidebar .ate-result-line span {
    font-weight: 700;
    color: #1C4600;
}

/* Standalone buttons inside panels (not in forms) */
.ate-tool-panel-body > button {
    background: #69A741;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.ate-tool-panel-body > button:hover {
    background: #5a9236;
}

/* Appraisal calculator form layout */
.ate-appraisal-columns {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    margin-bottom: 1em;
}

.ate-appraisal-columns > div {
    flex: 1;
    min-width: 200px;
}

.ate-appraisal-columns label {
    display: block;
    margin-bottom: 8px;
}

.ate-appraisal-columns input {
    display: block;
    margin-top: 2px;
}

/* Species search autocomplete dropdown */
.ate-autocomplete-list {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d6d0c8;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 10000;
}

.ate-autocomplete-item {
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
}

.ate-autocomplete-item:hover,
.ate-autocomplete-active {
    background: #69A741;
    color: #fff;
}

/* Tools landing page cards */
.ate-tool-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 1.5em;
    text-align: center;
    transition: box-shadow 0.2s ease;
}

.ate-tool-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ate-tool-card h3 {
    background: none;
    color: #1C4600;
    padding: 0;
    margin: 0.5em 0;
}

.ate-tool-card a {
    text-decoration: none;
    color: inherit;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ate-map-container {
        height: 350px;
    }

    .ate-mulch-layout {
        flex-direction: column;
    }

    .ate-appraisal-columns {
        flex-direction: column;
        gap: 0.5em;
    }
}

@media (max-width: 480px) {
    .ate-map-container {
        height: 280px;
    }
}
