/* ===== SEARCH HERO ===== */
.srch-hero{
    background: linear-gradient(135deg, #1a2a3a 0%, #1a5276 100%);
    padding: 86px 0 28px;
}
.srch-hero__inner{ display: flex; flex-direction: column; align-items: center; gap: 18px; }
.srch-hero__title{
    font-size: 1.6rem; font-weight: 800; color: #fff;
    letter-spacing: -.3px;
}
.srch-hero__form{
    display: flex; align-items: center;
    background: #fff; border-radius: 14px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
    width: 100%; max-width: 760px; gap: 0;
}
.srch-hero__field{
    display: flex; align-items: center; gap: 10px;
    flex: 1; color: #888; padding: 4px 0;
}
.srch-hero__field input,
.srch-hero__field select{
    border: none; outline: none; font-size: .95rem; color: #1a1a2e;
    background: none; width: 100%; font-family: inherit;
}
.srch-hero__field select{ cursor: pointer; }
.srch-hero__sep{ width: 1px; height: 32px; background: #dde3ea; margin: 0 14px; flex-shrink: 0; }
.srch-hero__btn{
    display: flex; align-items: center; gap: 8px;
    padding: 12px 22px; border-radius: 10px; flex-shrink: 0;
}

/* ===== BREADCRUMB EXTRAS ===== */
.breadcrumb__count{ color: #aaa; font-size: .8rem; }

/* ===== LAYOUT ===== */
.srch-layout{
    display: grid; grid-template-columns: 272px 1fr;
    gap: 28px; padding: 28px 0 60px; align-items: start;
}

/* ===== FILTERS ===== */
.srch-filters{
    background: #fff; border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    overflow: hidden; position: sticky; top: 80px;
}
.srch-filters__head{
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 18px; border-bottom: 1px solid #f0f4f8;
    font-weight: 700; font-size: .9rem; color: #1a1a2e;
}
.srch-filters__reset{
    font-size: .78rem; color: #e8740c; background: none; cursor: pointer;
    font-weight: 600; padding: 0;
}
.srch-filters__reset:hover{ text-decoration: underline; }
.srch-filters__apply{ margin: 12px 14px 14px; width: calc(100% - 28px); }

/* Active filter tags */
.active-filters{
    display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 0;
    min-height: 0;
}
.active-filter{
    display: inline-flex; align-items: center; gap: 5px;
    background: #eaf0f6; color: #1a5276; font-size: .78rem; font-weight: 600;
    padding: 4px 8px 4px 10px; border-radius: 20px;
}
.active-filter button{
    background: none; color: #1a5276; font-size: 1rem; line-height: 1;
    cursor: pointer; padding: 0 2px; opacity: .6;
}
.active-filter button:hover{ opacity: 1; }

/* Filter blocks */
.filter-block{ border-bottom: 1px solid #f0f4f8; }
.filter-block__head{
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; padding: 14px 18px; background: none; cursor: pointer;
    font-size: .88rem; font-weight: 600; color: #1a1a2e;
    transition: background .15s;
}
.filter-block__head:hover{ background: #fafbfc; }
.filter-block__arrow{
    transition: transform .25s; flex-shrink: 0;
    transform: rotate(-90deg);
}
.filter-block--open .filter-block__arrow{ transform: rotate(0); }
.filter-block__body{
    display: none; padding: 4px 14px 14px; flex-direction: column; gap: 4px;
}
.filter-block--open .filter-block__body{ display: flex; }

/* Region search inside filter */
.frange-search{
    display: flex; align-items: center; gap: 8px;
    background: #f0f4f8; border-radius: 8px; padding: 6px 10px; margin-bottom: 8px; color: #888;
}
.frange-search input{ border: none; background: none; outline: none; font-size: .82rem; width: 100%; color: #1a1a2e; }

/* Checkboxes */
.fcheck{
    display: flex; align-items: center; gap: 8px; font-size: .84rem; color: #444;
    padding: 5px 0; cursor: pointer; user-select: none;
}
.fcheck input{ accent-color: #1a5276; width: 15px; height: 15px; cursor: pointer; flex-shrink: 0; }
.fcheck span{ flex: 1; }
.fcheck__count{ margin-left: auto; font-size: .75rem; color: #aaa; }
.fcheck__stars{ color: #ffd700; letter-spacing: 2px; font-size: .88rem; }
.filter-block__more{
    font-size: .78rem; color: #1a5276; background: none; cursor: pointer;
    text-align: left; margin-top: 4px; font-weight: 600; padding: 0;
}
.filter-block__more:hover{ text-decoration: underline; }

/* Price range */
.fprice-row{ display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.fprice-input{
    flex: 1; display: flex; align-items: center; gap: 4px;
    font-size: .8rem; color: #888;
}
.fprice-input label{ font-size: .75rem; color: #888; width: 20px; }
.fprice-input input{
    flex: 1; border: 1px solid #dde3ea; border-radius: 7px;
    padding: 6px 8px; font-size: .82rem; color: #1a1a2e; min-width: 0;
}
.fprice-dash{ color: #ccc; font-size: .9rem; }
.fprice-slider{ position: relative; height: 24px; margin-bottom: 12px; }
.fprice-slider__track{
    position: absolute; top: 50%; left: 0; right: 0;
    height: 4px; background: #dde3ea; border-radius: 4px; transform: translateY(-50%);
}
.fprice-slider__fill{
    position: absolute; top: 0; height: 100%; background: #1a5276; border-radius: 4px;
}
.fprice-slider__input{
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    appearance: none; -webkit-appearance: none; background: none;
    pointer-events: none;
}
.fprice-slider__input::-webkit-slider-thumb{
    -webkit-appearance: none; width: 16px; height: 16px;
    border-radius: 50%; background: #fff; border: 2px solid #1a5276;
    box-shadow: 0 1px 6px rgba(0,0,0,.15); cursor: pointer;
    pointer-events: all;
}
.fprice-presets{ display: flex; flex-wrap: wrap; gap: 6px; }
.fprice-preset{
    font-size: .72rem; padding: 4px 9px; border: 1px solid #dde3ea;
    border-radius: 20px; cursor: pointer; background: #fff; color: #555;
    white-space: nowrap; transition: all .15s;
}
.fprice-preset:hover,
.fprice-preset--active{ background: #eaf0f6; border-color: #1a5276; color: #1a5276; font-weight: 600; }

/* Toggle switches */
.filter-block--toggles .filter-block__body{ gap: 10px; }
.ftoggle{
    display: flex; align-items: center; justify-content: space-between;
    font-size: .84rem; color: #444; cursor: pointer; padding: 2px 0;
}
.ftoggle__sw{
    width: 38px; height: 20px; border-radius: 20px; background: #ccd4db;
    position: relative; flex-shrink: 0; transition: background .2s;
    cursor: pointer;
}
.ftoggle__sw::after{
    content:''; position: absolute; top: 3px; left: 3px;
    width: 14px; height: 14px; border-radius: 50%;
    background: #fff; transition: left .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.ftoggle__sw--on{ background: #1a5276; }
.ftoggle__sw--on::after{ left: 21px; }

/* ===== RESULTS ===== */
.srch-results{ display: flex; flex-direction: column; gap: 0; }

/* Toolbar */
.srch-toolbar{
    display: flex; justify-content: space-between; align-items: center;
    background: #fff; border-radius: 14px; padding: 12px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05); margin-bottom: 16px;
    gap: 12px; flex-wrap: wrap;
}
.srch-toolbar__left{ display: flex; align-items: center; gap: 14px; }
.srch-toolbar__right{ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.srch-count{ font-size: .88rem; color: #666; }
.srch-count strong{ color: #1a1a2e; font-weight: 700; }
.srch-view-toggle{ display: flex; gap: 2px; }
.srch-view-btn{
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border: 1px solid #dde3ea; border-radius: 7px; cursor: pointer;
    background: #fff; color: #888; transition: all .15s;
}
.srch-view-btn--active,
.srch-view-btn:hover{ background: #eaf0f6; border-color: #1a5276; color: #1a5276; }
.srch-filters-toggle{ display: none; }
.srch-sort{ display: flex; align-items: center; gap: 8px; }
.srch-sort__label{ font-size: .82rem; color: #888; white-space: nowrap; }
.srch-sort select{
    border: 1px solid #dde3ea; border-radius: 8px; padding: 6px 10px;
    font-size: .84rem; color: #1a1a2e; background: #fff; cursor: pointer;
    font-family: inherit;
}
.srch-sort select:focus{ outline: none; border-color: #1a5276; }

/* ===== RESULT CARDS ===== */
.srch-cards{ display: flex; flex-direction: column; gap: 12px; }

/* Grid view */
.srch-cards--grid{ display: grid; grid-template-columns: repeat(2, 1fr); }
.srch-cards--grid .rc{ flex-direction: column; }
.srch-cards--grid .rc__actions{ flex-direction: row; padding-top: 0; border-top: 1px solid #f0f4f8; margin-top: 12px; padding-top: 12px; }

/* Result card */
.rc{
    background: #fff; border-radius: 14px;
    border: 1.5px solid #e8edf2;
    display: flex; gap: 16px; padding: 20px;
    transition: border-color .2s, box-shadow .2s;
    position: relative; overflow: visible;
}
.rc:hover{
    border-color: #1a5276;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

/* TOP badge */
.rc__badge{
    position: absolute; top: -1px; left: 18px;
    font-size: .68rem; font-weight: 800; letter-spacing: .5px;
    padding: 3px 9px; border-radius: 0 0 8px 8px;
}
.rc__badge--top{ background: #e8740c; color: #fff; }

/* Avatar */
.rc__left{ flex-shrink: 0; }
.rc__avatar{
    width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
    border: 2px solid #eee; position: relative;
}
.rc__avatar img{ width: 100%; height: 100%; object-fit: cover; }
.rc__avatar--text{
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800; color: #fff; font-family: inherit;
}
.rc__online{
    position: absolute; bottom: 3px; right: 3px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #27ae60; border: 2px solid #fff;
}

/* Body */
.rc__body{ flex: 1; min-width: 0; }
.rc__head-row{
    display: flex; justify-content: space-between; gap: 16px;
    margin-bottom: 10px; align-items: flex-start;
}
.rc__name-row{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.rc__name{
    font-size: 1.05rem; font-weight: 800; color: #1a1a2e;
    transition: color .15s;
}
.rc__name:hover{ color: #1a5276; }
.rc__online-label{
    font-size: .72rem; font-weight: 700; color: #27ae60;
    background: #eafaf1; padding: 3px 8px; border-radius: 20px;
}
.rc__desc{ font-size: .84rem; color: #555; line-height: 1.5; max-width: 560px; }

/* Rating box */
.rc__rating-box{ text-align: center; flex-shrink: 0; }
.rc__score{ font-size: 1.8rem; font-weight: 800; color: #1a1a2e; line-height: 1; }
.rc__stars{ color: #ffd700; font-size: .85rem; }
.rc__reviews{ font-size: .72rem; color: #888; margin-top: 2px; white-space: nowrap; }

/* Tags */
.rc__tags{ display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* Meta row */
.rc__meta-row{
    display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
    font-size: .8rem; color: #666;
}
.rc__meta{ display: flex; align-items: center; gap: 4px; }
.rc__meta--sro{ color: #1a5276; font-weight: 600; }
.rc__price{ margin-left: auto; }
.rc__price strong{ font-size: .92rem; color: #e8740c; font-weight: 700; }

/* Actions */
.rc__actions{
    display: flex; flex-direction: column; gap: 8px;
    flex-shrink: 0; justify-content: flex-start; align-items: stretch; padding-top: 2px; min-width: 130px;
}
.rc__fav{
    background: none; color: #ccc; cursor: pointer; padding: 6px 0;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    font-size: .78rem; transition: color .2s;
    border: none;
}
.rc__fav:hover{ color: #e8740c; }
.rc__fav--active{ color: #e8740c; }

/* ===== PAGINATION ===== */
.srch-pagination{
    display: flex; align-items: center; gap: 6px;
    justify-content: center; margin-top: 32px; flex-wrap: wrap;
}
.pg-btn{
    width: 38px; height: 38px; border-radius: 9px;
    border: 1.5px solid #dde3ea; background: #fff; cursor: pointer;
    font-size: .88rem; font-weight: 600; color: #444;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
}
.pg-btn:hover:not(:disabled){ border-color: #1a5276; color: #1a5276; background: #eaf0f6; }
.pg-btn--active{ background: #1a5276; border-color: #1a5276; color: #fff; }
.pg-btn--active:hover{ background: #154360; }
.pg-btn:disabled{ opacity: .35; cursor: default; }
.pg-next{ min-width: 38px; }
.pg-btn--prev{ min-width: 38px; }
.pg-dots{ color: #aaa; letter-spacing: 2px; font-size: .9rem; padding: 0 4px; }
.pg-info{ font-size: .78rem; color: #888; margin-left: 8px; }

/* ===== RESPONSIVE ===== */
@media(max-width: 1024px){
    .srch-layout{ grid-template-columns: 240px 1fr; gap: 18px; }
}
@media(max-width: 860px){
    .srch-layout{ grid-template-columns: 1fr; }
    .srch-filters{
        position: fixed; left: 0; top: 0; bottom: 0; width: 300px; z-index: 200;
        transform: translateX(-110%); transition: transform .3s ease;
        border-radius: 0; overflow-y: auto;
    }
    .srch-filters--open{ transform: translateX(0); box-shadow: 6px 0 40px rgba(0,0,0,.2); }
    .srch-filters-toggle{ display: flex; }
}
@media(max-width: 600px){
    .srch-hero__form{ flex-direction: column; padding: 12px; gap: 10px; border-radius: 12px; }
    .srch-hero__sep{ width: 100%; height: 1px; margin: 0; }
    .srch-hero__btn{ width: 100%; justify-content: center; }
    .rc{ flex-direction: column; }
    .rc__head-row{ flex-direction: column; gap: 8px; }
    .rc__actions{ flex-direction: row; flex-wrap: wrap; }
    .rc__rating-box{ display: flex; align-items: center; gap: 10px; }
    .rc__score{ font-size: 1.2rem; }
    .srch-cards--grid{ grid-template-columns: 1fr; }
}

/* ===== RC SKELETON ===== */
.rc--skeleton{
    pointer-events: none;
    overflow: hidden;
}
.rc--skeleton .rc__avatar,
.rc--skeleton .rc__skel{
    background: linear-gradient(90deg,#e8edf2 25%,#f3f5f7 50%,#e8edf2 75%);
    background-size: 1200px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 8px;
}
.rc--skeleton .rc__avatar{ width: 72px; height: 72px; }
.rc__skel{ height: 14px; border-radius: 6px; }
.rc__skel--w75{ width: 75%; }
.rc__skel--w50{ width: 50%; }
.rc__skel--w90{ width: 90%; }
.rc__skel--h20{ height: 20px; }
.rc__skel--tags{ display: flex; gap: 8px; }
.rc__skel--tags span{ height: 22px; width: 70px; border-radius: 20px; background: linear-gradient(90deg,#e8edf2 25%,#f3f5f7 50%,#e8edf2 75%); background-size: 1200px 100%; animation: shimmer 1.4s infinite linear; }
