body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
}

.controls-card {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

#primaryMap {
    height: 400px;
    border-radius: 8px;
    width: 100%;
    z-index: 10;
}

.result-wrapper {
    background: #e9ecef;
    border-radius: 12px;
    min-height: 400px;
}

/* Result container encapsulates image & absolute overlay */
.result-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.result-container img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* The actual overlay styling matching reference */
.gps-overlay {
    position: absolute;
    bottom: 2%;
    left: 2%;
    right: 2%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    user-select: none;
    z-index: 20;
    pointer-events: none;
}

.overlay-left {
    position: relative;
    margin: 0 1.5vw 0 1.5vw;
    width: 25vw;
    height: 20vw;
    flex-shrink: 0;
    border-radius: 11px;
    overflow: hidden;
    /* border: 3px solid #ffffff;
    background-color: #e5e3df; */
    /* Leaflet empty space color */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
}

#miniMap {
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Hide extra things on mini map */
#miniMap .leaflet-control-container {
    display: none;
}

.watermark-text {
    position: absolute;
    bottom: 0.5vw;
    left: 1vw;
    color: white;
    font-weight: 600;
    font-size: 4vw;
    z-index: 1000;
    font-family: Arial, sans-serif;
    text-shadow:
        -2px -2px 0 #000,
        0 -2px 0 #000,
        2px -2px 0 #000,
        2px 0 0 #000,
        2px 2px 0 #000,
        0 2px 0 #000,
        -2px 2px 0 #000,
        -2px 0 0 #000,
        4px 4px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

.overlay-right {
    min-height: 20vw;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 1.5vw 2vw;
    margin: 0 1.5vw 0 1.5vw;
    background-color: rgba(45, 45, 45, 0.85);
    /* Dark semi-transparent */
    border-radius: 11px 0 11px 11px;
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    max-width: calc(100% - 28vw);
}

.overlay-right p {
    margin: 0;
    font-size: 1.6vw;
}

.location-title {
    font-size: 2.6vw;
    font-weight: 500;
    margin-bottom: 0.8vw;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1vw;
}

.location-details {
    font-size: 1.6vw;
    margin-bottom: 0.8vw;
    opacity: 0.9;
    line-height: 1.4;
    max-width: 50vw;
}

.location-coords {
    font-size: 1.5vw;
    margin-bottom: 0.8vw;
    opacity: 0.9;
    font-family: monospace;
}

.location-date {
    font-size: 1.6vw;
    margin-bottom: 0;
    opacity: 0.9;
}

.display-none {
    display: none !important;
}

.app-watermark {
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: rgba(45, 45, 45, 0.85);
    /* Match overlay-right */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.8vw 1.5vw;
    border-radius: 1.5vw 1.5vw 0 0;
    /* Rounded top corners only */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5vw;
    font-weight: 500;
    color: #ffffff;
}

.app-icon-container {
    background: linear-gradient(135deg, #FFC107, #FF9800);
    border-radius: 0.5vw;
    width: 1.8vw;
    height: 1.8vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8vw;
}

.app-icon-container svg {
    width: 1.2vw;
    height: 1.2vw;
    fill: #212529;
}

.app-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5vw;
}