/* Hududiy bo'linmalar — client */

/* ── Ro'yxat kartochkalari ── */
.rb-list-page {
    padding: 60px 0 80px;
}

.rb-list-page .row.rb-card-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.rb-list-page .row.rb-card-grid > .rb-grid-col {
    flex: 0 0 25%;
    max-width: 25%;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 28px;
}

@media (max-width: 1199px) {
    .rb-list-page .row.rb-card-grid > .rb-grid-col {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (max-width: 991px) {
    .rb-list-page .row.rb-card-grid > .rb-grid-col {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 767px) {
    .rb-list-page .row.rb-card-grid > .rb-grid-col {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 479px) {
    .rb-list-page .row.rb-card-grid > .rb-grid-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.rb-card-grid .rb-card {
    margin-bottom: 0;
}

.rb-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rb-card__inner:hover {
    transform: translateY(-4px);
    border-color: rgba(52, 199, 89, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
}

.rb-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.rb-card__img-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111;
}

.rb-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rb-card__inner:hover .rb-card__img-wrap img {
    transform: scale(1.05);
}

.rb-card__body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.rb-card__title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.rb-card__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #34c759;
}

.rb-card__more i {
    transition: transform 0.2s ease;
}

.rb-card__inner:hover .rb-card__more i {
    transform: translateX(4px);
}

.rb-detail-empty {
    text-align: center;
    padding: 48px 16px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
}

/* ── Batafsil sahifa ── */
.rb-detail-section {
    padding: 48px 0 80px;
}

.rb-detail-card {
    background: linear-gradient(160deg, rgba(26, 32, 48, 0.95) 0%, rgba(18, 22, 32, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.rb-detail-media__frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0d1117;
}

.rb-detail-media__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    cursor: zoom-in;
}

@media (min-width: 992px) {
    .rb-detail-media__img {
        min-height: 380px;
        max-height: 520px;
    }
}

.rb-detail-media__zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.15s ease;
}

.rb-detail-media__zoom:hover {
    background: rgba(0, 0, 0, 0.92);
    transform: scale(1.05);
}

.rb-detail-content__title {
    margin: 0 0 28px;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.rb-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rb-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.rb-info-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(52, 199, 89, 0.25);
}

.rb-info-item__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.rb-info-item__body {
    flex: 1;
    min-width: 0;
}

.rb-info-item__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.rb-info-item__value {
    display: block;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    word-break: break-word;
}

.rb-info-item__value a {
    color: #93c5fd;
    text-decoration: none;
}

.rb-info-item__value a:hover {
    text-decoration: underline;
}

/* ── Tugmalar ── */
.rb-detail-actions,
.rb-map-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.rb-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.rb-action-btn i {
    font-size: 17px;
}

.rb-action-btn--map {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.rb-action-btn--map:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    color: #fff !important;
}

.rb-action-btn--gmaps {
    background: linear-gradient(135deg, #34c759 0%, #28a745 100%);
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.35);
}

.rb-action-btn--gmaps:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(52, 199, 89, 0.45);
    color: #fff !important;
}

.rb-action-btn--outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rb-action-btn--outline:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

/* ── Xarita sahifasi ── */
.rb-map-page {
    padding: 48px 0 80px;
}

.rb-map-page__card {
    background: linear-gradient(160deg, rgba(26, 32, 48, 0.95) 0%, rgba(18, 22, 32, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.rb-map-page__header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rb-map-page__title {
    margin: 0 0 8px;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: #fff;
}

.rb-map-page__address {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.rb-map-page__map {
    width: 100%;
    height: min(65vh, 560px);
    min-height: 360px;
    background: #1a2030;
}

.rb-map-page__map .leaflet-container {
    width: 100% !important;
    height: 100% !important;
    font-family: inherit;
}

.rb-map-page__footer {
    padding: 20px 32px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rb-map-page__coords {
    margin: 0 0 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.rb-map-page__actions {
    margin-top: 0;
}

@media (max-width: 991px) {
    .rb-detail-card {
        padding: 20px;
    }

    .rb-map-page__header,
    .rb-map-page__footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 575px) {
    .rb-detail-actions,
    .rb-map-page__actions {
        flex-direction: column;
    }

    .rb-action-btn {
        width: 100%;
    }

    .rb-map-page__map {
        height: 50vh;
        min-height: 280px;
    }
}
