html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

#map {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.topbar,
.near-me,
.add-business,
.panel {
    display: none;
}

body.map-ready .topbar,
body.map-ready .near-me,
body.map-ready .add-business {
    display: flex;
}

.panel {
    position: fixed;
    right: 20px;
    top: 85px;
    width: 390px;
    max-width: calc(100% - 40px);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    background: #fff;
    z-index: 50;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,.28);
}

.panel.is-open {
    display: block;
}

.topbar {
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    z-index: 40;
    align-items: center;
    gap: 12px;
}

.brand {
    background: #111;
    color: #ffd200;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: bold;
}

.search-wrap {
    flex: 1;
    max-width: 520px;
}

.geocoder {
    position: relative;
}

.geomarker {
    position: absolute !important;
    right: 42px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    z-index: 99999 !important;

    color: #1976d2 !important;

    cursor: pointer !important;

    font-size: 18px !important;

    background: transparent !important;
    border: 0 !important;
	left:11em;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
}
.mapboxgl-ctrl-geocoder--input {
    padding-right: 80px !important;
}
.near-me,
.add-business {
    position: fixed;
    right: 22px;
    z-index: 45;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.3);
}

.near-me {
    bottom: 92px;
    background: #1976d2;
    color: #fff;
}

.add-business {
    bottom: 22px;
    background: #ffd200;
    color: #111;
}
/* =====================================
   Business Registration Panel
===================================== */

.panel {
    position: fixed;

    top: 80px;
    right: 20px;

    width: 420px;
    max-width: calc(100vw - 40px);

    max-height: calc(100vh - 100px);

    overflow-y: auto;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.18),
        0 2px 8px rgba(0,0,0,.08);

    z-index: 999;

    padding: 24px;

    display: none;

    animation: slidePanel .25s ease;
}

/* Open state */

.panel.is-open {
    display: block;
}

/* Animation */

@keyframes slidePanel {

    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Title */

.panel h2 {
    margin: 0 0 12px 0;

    font-size: 1.4rem;
    font-weight: 700;

    color: #111;
}

/* Description */

.panel-note {
    margin: 0 0 18px 0;

    color: #666;

    line-height: 1.5;
}

/* Close button */

.close-panel {
    position: absolute;

    top: 16px;
    right: 18px;

    font-size: 26px;

    color: #777;

    cursor: pointer;

    transition: .2s;
}

.close-panel:hover {
    color: #111;
}

/* Section headers */

.form-section-title {

    margin-top: 20px;
    margin-bottom: 8px;

    font-size: .82rem;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    color: #1976d2;
}

/* Inputs */

.panel input,
.panel select,
.panel textarea {

    width: 100%;

    margin-bottom: 10px;

    padding: 12px 14px;

    border: 1px solid #d9d9d9;

    border-radius: 10px;

    background: #fff;

    font-size: 14px;

    box-sizing: border-box;

    transition: .2s;
}

.panel textarea {
    min-height: 90px;
    resize: vertical;
}

/* Focus */

.panel input:focus,
.panel select:focus,
.panel textarea:focus {

    outline: none;

    border-color: #1976d2;

    box-shadow:
        0 0 0 4px rgba(25,118,210,.10);
}

/* Notes */

.field-note {
    display: block;

    margin: -4px 0 12px 0;

    color: #666;

    font-size: 12px;
}

/* Labels */

.panel label {

    display: block;

    margin-top: 12px;
    margin-bottom: 5px;

    font-weight: 600;

    color: #333;
}

/* Main button */

.panel button[type="submit"] {

    width: 100%;

    border: 0;

    padding: 14px;

    margin-top: 8px;

    border-radius: 12px;

    background: #111;

    color: #fff;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.panel button[type="submit"]:hover {

    background: #000;

    transform: translateY(-1px);
}

/* Secondary buttons */

.secondary-button {

    width: 100%;

    margin-bottom: 10px;

    padding: 12px;

    border: 1px solid #1976d2;

    border-radius: 10px;

    background: #fff;

    color: #1976d2;

    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.secondary-button:hover {

    background: #1976d2;
    color: #fff;
}

/* Verification box */

#verifyBox {

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #eee;
}

/* Upload fields */

.panel input[type=file] {

    padding: 10px;

    background: #f8f8f8;
}

/* Scrollbar */

.panel::-webkit-scrollbar {
    width: 8px;
}

.panel::-webkit-scrollbar-thumb {

    background: #d0d0d0;

    border-radius: 20px;
}

/* Mobile */

@media (max-width: 768px) {

    .panel {

        top: auto;

        right: 0;
        left: 0;

        bottom: 0;

        width: 100%;

        max-width: 100%;

        max-height: 85vh;

        border-radius: 20px 20px 0 0;

        animation: slideUp .25s ease;
    }

    @keyframes slideUp {

        from {
            opacity: 0;
            transform: translateY(50px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}