.ssm-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ssm-list {
    width: 40%;
    max-height: 520px;
    overflow-y: auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.ssm-map {
    width: 60%;
}

#ssm-map-canvas {
    height: 520px;
    width: 100%;
    border-radius: 10px;
}

.ssm-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: 0.25s ease;
}

.ssm-card:hover {
    transform: translateY(-4px);
}

.ssm-card-img {
    width: 100%;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssm-card-img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.ssm-card-content {
    padding: 10px;
}

.ssm-card-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0px;
    line-height: 1.3;
    color: #333;
}

.ssm-btn {
    display: inline-block;
    font-size: 12px;
    color: #6c2bd9;
    text-decoration: none;
}

.ssm-list::-webkit-scrollbar {
    width: 6px;
}

.ssm-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}








/* Top trigger */
.ssm-location-trigger {
    background: #fff;
    padding: 8px 15px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.ssm-top-bar {
    display: flex;
    position: relative;
    justify-content: space-between;
    margin-bottom: 40px;
}

.ssm-modal {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    display: none;
    z-index: 999;
}

.ssm-modal-content {
    background: #fff;
    padding: 20px;
    width: 350px;
    margin: 45px 0 0 0;
    border-radius: 10px;
}

.ssm-radius-wrap {
    margin: 10px auto;
    font-size: 16px;
    font-weight: 600;
}

.ssm-close {
    float: right;
    cursor: pointer;
}

#ssm-search-map {
    position: relative;
}

#ssm-apply-filter {
    background: #6c2bd9;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    margin-top: 10px;
    cursor: pointer;
}

.pac-container {
    z-index: 999999 !important;
}

.ssm-location-input {
    padding: 10px 16px;
    border-radius: 25px;
    border: 1px solid #ddd;
    width: 300px;
    cursor: pointer;
    background: #fff;
    height: 45px;
}



#ssm-filter-form {
    width: 100%;
}

.ssm-filter-row {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 14px;
    border-radius: 10px;
}

.ssm-field {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0px 15px;
    width: 250px;
    border-radius: 8px;
    min-height: 48px;
    border: 1px solid #795548;
}

.ssm-icon {
    font-size: 16px;
    color: #6b7280;
}

.ssm-location input {
    border: none !important;
    padding: .5rem 0.4rem !important;
    outline: none;
    font-size: 14px;
    width: 200px;
}

.ssm-radius {
    gap: 12px;
}

.ssm-radius input[type="range"] {
    width: 120px;
    accent-color: #5a5a5a;
    height: 3px;
}

.ssm-km {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ssm-submit {
    background-color: #00387a !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 22px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.ssm-submit:hover {
    background: #5b21b6;
}

#ssm-filter-message {
    display: none;
    margin-top: 8px;
    color: #f87171;
    font-size: 14px;
}

.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    outline: none;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
}

.gm-style .gm-ui-hover-effect {
    top: 0px !important;
    right: 0px !important;
}

.gm-style .gm-ui-hover-effect:focus,
.gm-style .gm-ui-hover-effect:focus-visible {
    outline: none !important;
    border: none !important;
}


.ssm-infowindow {
    width: 230px;
    background: #ffffff;
    overflow: hidden;
    font-family: inherit;
}

.gm-style .gm-style-iw-ch {
    padding-top: 0 !important;
    height: 0 !important;
}


.gm-style-iw-chr {
    top: 4px;
    position: absolute;
    right: 4px;
    background: #fff;
    border-radius: 56px;
    padding: 0px;
    width: 30px;
    align-items: center;
    text-align: center;
    height: 30px;
}

.ssm-iw-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.ssm-iw-content {
    padding: 10px 12px;
}

.gm-ui-hover-effect>span {
    width: 20px !important;
    height: 20px !important;
    margin: 5px !important;
}

.ssm-iw-title {
    font-size: 15px;
    margin: 0;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
}

a.ssm-iw-btn:focus {
    outline: none !important;
}

a.ssm-iw-btn:focus-visible {
    outline: none !important;
}

.ssm-marker {
    font-size: 15px;
    background: #ffffff;
    border-radius: 5px;
    padding: 10px 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ssm-marker:focus {
    outline: none;
}

.ssm-marker:focus-visible {
    outline: none;
}

gmp-advanced-marker.yNHHyP-marker-view:focus-visible {
    outline: none;
}

gmp-advanced-marker.yNHHyP-marker-view:focus {
    outline: none;
}

.ssm-marker i {
    color: #000000;
    line-height: 1;
}

.ssm-marker:hover {
    transform: scale(1.05);
    transition: transform 0.15s ease;
}

.ssm-marker.active {
    background: #6d28d9;
    color: #fff;
}

.ssm-marker.active i {
    color: #fff;
}

.ssm-infowindow img {
    width: 100%;
    height: 150px !important;
    object-fit: contain;
    padding: 8px;
}

#ssm-search-map {
    margin-top: 50px;
}

.ssm-category-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
    flex-wrap: wrap;
}

.ssm-category-tabs button {
    background: #fff;
    border: 1px solid #00387a;
    padding: 10px 0px;
    border-radius: 50px;
    width: 140px;
    cursor: pointer;
    color: #00387a;
    font-size: 16px;
    transition: all 0.2s ease;
}

.ssm-category-tabs button:hover {
    background: #00387a;
    color: #fff;
}

.ssm-category-tabs button.active {
    background: #00387a;
    color: #fff;
    border-color: #6d28d9;
}




/* Responsive */

@media (max-width: 768px) {
    .ssm-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ssm-location input {
        width: 100%;
    }

    .ssm-radius input[type="range"] {
        width: 100%;
    }

    .ssm-submit {
        width: 100%;
    }
}