/*
    - 2. Added back explicit, attractive button styles to fix "no color" issue.
    - Added .kmv-button-primary and .kmv-button-secondary classes.
    - 3. Removed 'left' and 'top' from .kmv-marker-thumb to allow JS control.
*/

.kmv-map-wrap{
    position:relative;
    border:1px solid #eee;
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 6px 22px rgba(0,0,0,0.06);
}
#kmv-map{width:100%;height:620px;min-height:420px}
.kmv-toolbar{position:absolute;right:12px;top:12px;display:flex;gap:8px;z-index:900;align-items:center}

/* 2. Base button styles */
.kmv-map-wrap button {
    font-family: inherit; /* Use theme's font */
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* 2. Primary button style (blue) */
.kmv-map-wrap button.kmv-button-primary,
.kmv-map-wrap .kmv-popup button.kmv-open {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}
.kmv-map-wrap button.kmv-button-primary:hover,
.kmv-map-wrap .kmv-popup button.kmv-open:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    color: #fff;
}

/* 2. Secondary button style (gray/outline) */
.kmv-map-wrap .kmv-popup button.kmv-directions {
    background-color: #f0f0f0;
    color: #333;
    border-color: #ccc;
}
.kmv-map-wrap .kmv-popup button.kmv-directions:hover {
    background-color: #e0e0e0;
    border-color: #aaa;
}

/* 2. Toolbar button ("Show all videos") specific */
.kmv-toolbar button#kmv-zoom-all {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kmv-popup{min-width:200px}
.kmv-popup button {
    margin-right: 6px;
}
.kmv-popup button:last-child {
    margin-right: 0;
}
/* End of button styles */


.kmv-title{font-weight:600;margin-bottom:6px}
.kmv-lightbox{position:fixed;left:0;top:0;right:0;bottom:0;background:rgba(0,0,0,0.85);display:flex;align-items:center;justify-content:center;z-index:999999}
.kmv-lightbox-inner{position:relative;width:90%;max-width:1200px;height:80vh;background:#000;border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,0.4)}
.kmv-player{width:100%;height:100%}
.kmv-iframe{width:100%;height:100%;border:0}
.kmv-close{position:absolute;right:10px;top:6px;background:#fff;border:none;border-radius:8px;width:36px;height:36px;font-size:20px;line-height:28px;cursor:pointer}

/* This is the thumbnail inside the popup */
.kmv-thumb {
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.25);
    margin-bottom: 8px;
    object-fit: cover;
}

/* These styles are for the marker icon itself */
.kmv-custom-marker {position: relative; width: 25px; height: 41px;}
.kmv-marker-shadow {position: absolute; left: -8px; top: 0; width: 41px; height: 41px;}
.kmv-marker-pin {position: absolute; left: 0; top: 0; width: 25px; height: 41px;}

/* 3. Removed 'left' and 'top' */
.kmv-custom-marker .kmv-marker-thumb {
    position: absolute; 
    border: 1px solid #fff; 
    border-radius: 3px; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.3); 
    z-index: 1;
    /* width, height, left, and top are set via JS inline style */
}

/* New styles for search bar */
.kmv-search-label {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.kmv-search-wrap {
    position: relative;
    margin-bottom: 10px;
}

#kmv-search {
    width: 100%;
    padding: 15px 50px 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

#kmv-search:focus {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    outline: none;
}

#kmv-search::placeholder {
    color: #aaa;
}

.kmv-search-wrap::before {
    content: '\1F50D'; /* Magnifying glass Unicode */
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 18px;
}

#kmv-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
}

.kmv-search-error {
    color: red;
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
}