* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    background: #f0f2f5;
}

#app {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    height: 100%;
}

#panel {
    background: #ffffff;
    border-bottom: 2px solid #d0d4db;
    padding: 10px 14px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    z-index: 10;
}

#panel-title {
    font-size: 16px;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 8px;
}

.row:last-child {
    margin-bottom: 0;
}

/* gap no soportado en flexbox de IE11; se usa margin entre hijos */
.row > * + * {
    margin-left: 6px;
}

label {
    font-weight: bold;
    color: #444;
    white-space: nowrap;
    min-width: 90px;
}

input[type="text"] {
    -ms-flex: 1;
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #bbb;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #fff;
    color: #222;
}

input[type="text"]:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

input[readonly] {
    background: #f7f8fa;
    color: #333;
    cursor: default;
}

.btn {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    -webkit-transition: background 0.15s, color 0.15s;
    transition: background 0.15s, color 0.15s;
}

.btn-primary {
    background: #1a73e8;
    color: #fff;
}

.btn-primary:hover {
    background: #1558c0;
}

.btn-copy {
    background: #34a853;
    color: #fff;
    min-width: 90px;
}

.btn-copy:hover {
    background: #2a8a43;
}

.btn-copy.copied {
    background: #fbbc04;
    color: #333;
}

#hint {
    background: #e8f0fe;
    border-bottom: 1px solid #c5d5f8;
    padding: 5px 14px;
    font-size: 12px;
    color: #3c5a9a;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

#map-wrap {
    -ms-flex: 1;
    flex: 1;
    position: relative;
    min-height: 200px;
}

#map {
    width: 100%;
    height: 100%;
    background: #e5e3df;
}

#sv-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 20;
    pointer-events: none;
}

#sv-exit-btn {
    pointer-events: all;
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.92);
    color: #333;
    border: 1px solid #aaa;
    border-radius: 4px;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    -webkit-transition: background 0.15s;
    transition: background 0.15s;
}

#sv-exit-btn:hover {
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.35);
}

#sv-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    margin-top: -16px;
}

#sv-ch-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 50%;
}

/* Linea horizontal: solo extremos, hueco en el centro */
#sv-ch-h {
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    margin-top: -1px;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.7) 0%,
        rgba(255,255,255,0.7) 35%,
        transparent 35%,
        transparent 65%,
        rgba(255,255,255,0.7) 65%,
        rgba(255,255,255,0.7) 100%
    );
}

/* Linea vertical: solo extremos, hueco en el centro */
#sv-ch-v {
    position: absolute;
    left: 50%;
    top: 0; bottom: 0;
    width: 1px;
    margin-left: -1px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.7) 0%,
        rgba(255,255,255,0.7) 35%,
        transparent 35%,
        transparent 65%,
        rgba(255,255,255,0.7) 65%,
        rgba(255,255,255,0.7) 100%
    );
}

#sv-ch-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    margin-top: -2px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
}

#sv-btn-area {
    position: absolute;
    bottom: 60px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    text-align: center;
    white-space: nowrap;
}

#sv-pos-preview {
    display: inline-block;
    margin-bottom: 6px;
    background: rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.8);
    font-size: 11px;
    font-family: Arial, Helvetica, sans-serif;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.3px;
}

#sv-mark-btn {
    pointer-events: all;
    display: block;
    padding: 12px 26px;
    background: #39FF14;
    color: #002200;
    border: 3px solid #006600;
    border-radius: 8px;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0,0,0,0.5);
    -webkit-transition: background 0.15s, -webkit-transform 0.1s;
    transition: background 0.15s, transform 0.1s;
}

#sv-mark-btn:hover {
    background: #00ff00;
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
}

#sv-mark-btn:active {
    -webkit-transform: scale(0.96);
    -ms-transform: scale(0.96);
    transform: scale(0.96);
}

.pac-container {
    z-index: 9999 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}
