/* ===== TABS ===== */
.ssm-hero-search-wrap { width: 100%; }

.ssm-tabs-row {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.ssm-tab-btn {
    padding: 7px 18px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.ssm-tab-btn.active {
    background: #e8401e;
    color: #fff;
}

/* ===== FORM ROW ===== */
#ssm-filter-form { width: 100%; }

.ssm-filter-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ===== FIELDS ===== */
.ssm-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 0 18px;
    border-radius: 10px;
    height: 54px;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.ssm-icon {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

/* Location */
.ssm-location { flex: 2; }

.ssm-location input {
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    font-size: 14px;
    color: #444;
    background: transparent;
    width: 100%;
}

.ssm-location input::placeholder { color: #aaa; }

/* Radius – fixed layout so km never touches the edge */
.ssm-radius {
    flex: 1.5;
    gap: 8px;
}

.ssm-radius-label {
    font-size: 14px;
    color: #444;
    white-space: nowrap;
    flex-shrink: 0;
}

.ssm-radius input[type="range"] {
    flex: 1;
    min-width: 80px;
    max-width: 120px;
    accent-color: #550076;
    cursor: pointer;
}

.ssm-km {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 42px;
}

/* ===== BUTTON ===== */
.ssm-submit {
    background: #550076 !important;
    color: #fff !important;
    border: none !important;
    padding: 0 28px !important;
    height: 54px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(85,0,118,0.3) !important;
}

.ssm-submit:hover { background: #3d0055 !important; }

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

/* ===== RESULTS PAGE ===== */
.ssm-layout { display:flex; gap:24px; align-items:stretch; }
.ssm-left { width:46%; display:flex; flex-direction:column; }
.ssm-list { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; align-content:start; }
.ssm-map { width:54%; display:flex; }
#ssm-map-canvas { flex:1; min-height:620px; width:100%; border-radius:14px; box-shadow:0 4px 18px rgba(0,0,0,0.10); }

/* Pagination */
.ssm-pager { display:flex; gap:8px; align-items:center; margin-top:28px; flex-wrap:wrap; }
.ssm-pager button { min-width:40px; height:40px; padding:0 8px; border-radius:999px !important; border:none !important; background:transparent !important; color:#1f2937 !important; font-size:15px; line-height:1; cursor:pointer; box-shadow:none !important; transition:background .15s; }
.ssm-pager button:hover:not(:disabled) { background:#ececec !important; }
.ssm-pager button.active { background:#d5d5d5 !important; color:#000 !important; font-weight:600; }
.ssm-pager button:disabled { opacity:.35; cursor:default; }
.ssm-pager-gap { padding:0 4px; color:#9ca3af; }
.ssm-card { display:block; background:transparent; border-radius:0; overflow:visible; box-shadow:none; transition:transform .2s ease; }
.ssm-card:hover { transform:translateY(-3px); }
.ssm-card-img { position:relative; width:100%; border-radius:14px; overflow:hidden; }
.ssm-card-img img { width:100%; height:210px; object-fit:cover; display:block; }
.ssm-card-img .cardlink-a { position:absolute; inset:0; z-index:2; background:transparent; }
.ssm-card-content { padding:12px 2px 0; }
.ssm-card-link { text-decoration:none; display:inline-block; }
.ssm-card-content h4 { font-size:19px!important; font-weight:700!important; margin:0 0 3px!important; line-height:1.25!important; color:#1a1a2e!important; font-family:"Gazpacho","Playfair Display",Georgia,serif!important; }
.ssm-card-cat { margin:0!important; color:#6b7280; font-size:14px; }
.ssm-btn { display:inline-block; font-size:12px; color:#550076; text-decoration:none; }
.ssm-top-bar { display:flex; position:relative; justify-content:space-between; margin-bottom:40px; gap:20px; }
.ssm-modal { position:absolute; top:8%; left:0; width:300px; display:none; z-index:999; }
input#ssm-modal-location { border:1px solid #d5d5d5; border-radius:10px; font-size:14px; font-weight:300; }
.ssm-modal-content { background:#fff; padding:20px; border:2px solid #d5d5d5; width:350px; margin:45px 0 0 0; border-radius:10px; }
.ssm-close { float:right; cursor:pointer; font-size:30px; }
#ssm-search-map { position:relative; margin-top:50px; padding-bottom:80px; padding-left:max(20px, calc((100vw - 1200px) / 2)); }
#ssm-apply-filter { background:#c92d25; 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:13px 16px!important; border-radius:25px!important; border:2px solid #d5d5d5!important; width:25%!important; cursor:pointer; font-size:14px; color:#464646; background:#fff; height:40px; }
.ssm-category-tabs { display:flex; gap:12px; overflow-x:auto; flex-wrap:nowrap; padding-bottom:6px; flex:1; max-width:55%; }
.ssm-category-tabs .cat-tab { display:flex; justify-content:center; align-items:center; gap:8px; padding:10px 16px; border-radius:999px; border:2px solid #d5d5d5; background:#fff; font-size:14px; font-weight:500; min-width:160px; flex:0 0 auto; color:#1f2937; cursor:pointer; }
.ssm-category-tabs .cat-tab.active { background:#d5d5d5; color:#000; border-color:#E5E3DF; }
.gm-style .gm-style-iw-c { padding:0!important; border-radius:10px!important; overflow:hidden!important; }
.gm-style .gm-style-iw-d { overflow:hidden!important; max-height:none!important; }
.ssm-infowindow { width:230px; background:#fff; overflow:hidden; }
.ssm-iw-image img, .ssm-infowindow img { width:100%; height:140px; object-fit:cover; display:block; }
.ssm-iw-content { padding:10px 12px; }
.ssm-iw-title { font-size:15px; margin:0; font-weight:600; color:#111827; line-height:1.3; }
.ssm-marker { font-size:15px; background:#fff; 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:hover { transform:scale(1.05); }
.ssm-marker.active { background:#550076; color:#fff; }

@media (max-width: 1024px) {
    .ssm-left { width:48%; }
    .ssm-list { grid-template-columns:1fr; }
    .ssm-map { width:52%; }
}

@media (max-width: 768px) {
    .ssm-filter-row { flex-direction:column; align-items:stretch; }
    .ssm-radius input[type="range"] { max-width:none; flex:1; }
    .ssm-submit { width:100%; }
    .ssm-layout { flex-direction:column; }
    .ssm-left, .ssm-map { width:100%; }
    #ssm-map-canvas { height:420px; min-height:0; }
}