/* Fence Mapping Tool – core styles */

.fmt-container {
    max-width: 1140px;
    margin: 0 auto;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- Form layout --- */
.fmt-step {
    animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fmt-field {
    margin-bottom: 16px;
}

.fmt-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.fmt-field input,
.fmt-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.fmt-field input:focus,
.fmt-field select:focus {
    outline: none;
    border-color: #00aeef;
}

/* --- Action buttons --- */
.fmt-action {
    text-align: right;
    margin-top: 24px;
}

.fmt-action button {
    background: #00aeef;
    color: #fff;
    border: 0;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.15s, box-shadow 0.15s;
}

.fmt-action button:hover {
    opacity: 0.9;
}

.fmt-action button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.35);
}

/* Back button style (adjacent to primary) */
.fmt-action .fmt-prev {
    background: #e0e0e0;
    color: #333;
    margin-right: 12px;
}

.fmt-action .fmt-prev:hover {
    opacity: 0.95;
}

/* --- Map wrapper --- */
#fmt-map-wrapper {
    margin-top: 24px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
}

#fmt-map {
    width: 80%;
    height: 650px;
    flex-grow: 1;
}

#fmt-map .gmnoprint{
    display: none;
}

#fmt-toolbar{
    position: absolute; 
    top: 10px; 
    left: 10px; 
    background: #f7f7f7; 
    border: 1px solid #ccc; 
    padding: 6px 8px; 
    border-radius: 4px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); 
    z-index: 100
}

#fmt-toolbar .btn{
    padding: 4px;
    border-radius: 4px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.15); 
    aspect-ratio: 1;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    align-items: center;
}

#fmt-toolbar .btn--active{
    background: #00aeef;
}

/* --- Review list --- */
#fmt-review ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#fmt-review li {
    padding: 6px 0;
}

#fmt-review strong {
    width: 180px;
    display: inline-block;
    font-weight: 600;
}

#fmt-sidebar {
    width: 20%;
    padding: 10px;
    background: #f7f7f7;
    overflow-y: auto;
    border-right: 1px solid #ccc;
    display: flex;
    flex-direction: column;
}

#fmt-sidebar .fmt-header {
    margin: 0;
}

#fmt-fence-list {
    flex: 1;
    list-style-type: none;
    padding-inline-start: 0;
    margin: 0;
    font-size: 16px;
}

#fmt-fence-list li{
    display: flex;
    align-items: center;
}

#fmt-fence-list li .fence-wrapper{
    flex: 1;
}

.fence-label {
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
    transition: opacity 0.3s ease;
    padding: 2px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.fence-label.hide {
  opacity: 0;
}

.fmt-single-line {
    display: flex;
    flex-direction: row;
    margin-bottom: 16px;
}

.fmt-single-line>* {
    margin-top: 0;
    margin-bottom: 0;
}

.fmt-single-line .fmt-field {
    flex: 1;
}

.fmt-single-line .fmt-field input {
    border-radius: 6px 0px 0px 6px;
}

.fmt-single-line button {
    border-radius: 0px 6px 6px 0px;
    height: 40px;
}

