/* request-details.php — dex-стиль 1:1 с ad-details + акцент заявок */

body.gdi-request-detail {
    background: #ebe4ff !important;
}

.gdi-request-detail .gdi-req-dex-hero {
    margin-bottom: 1.15rem;
}

.gdi-request-detail .gdi-dex-price-card {
    background: linear-gradient(165deg, #faf5ff 0%, #ffffff 45%, #f5f3ff 100%) !important;
    border-top: 4px solid #7c3aed !important;
}

.gdi-request-detail .gdi-dex-hero h1 {
    letter-spacing: -0.02em;
}

.gdi-request-detail .gdi-req-tag--live {
    background: #ecfdf5;
    color: #047857;
}

.gdi-request-detail .gdi-req-tag--bad {
    background: #fef2f2;
    color: #b91c1c;
}

.gdi-request-detail .gdi-dex-tags a.gdi-dex-tag {
    text-decoration: none;
}

.gdi-request-detail .gdi-dex-tags a.gdi-dex-tag:hover {
    background: #f0e9f8;
    color: #6a1b9a;
}

/* Галерея / карта-герой вместо фото */
.gdi-request-detail .gdi-dex-block--gallery .card-body {
    padding: 1rem !important;
}

.gdi-request-detail .gdi-dex-gallery {
    position: relative;
}

.gdi-request-detail .gdi-dex-gallery .main-image {
    width: 100%;
    height: clamp(260px, 42vw, 440px);
    object-fit: cover;
    border-radius: 12px;
    display: block;
    background: linear-gradient(145deg, #f3eefc 0%, #e8e4f4 45%, #ddd6ef 100%);
}

.gdi-request-detail .gdi-req-hero-map__head {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
}

.gdi-request-detail .gdi-req-hero-map__head .gdi-dex-card__title {
    margin: 0;
}

.gdi-request-detail .gdi-req-hero-map__place,
.gdi-request-detail .gdi-req-hero-map__route {
    font-size: 0.95rem;
}

.gdi-request-detail .gdi-req-map--hero {
    height: clamp(280px, 44vw, 460px);
    min-height: 280px;
    border-radius: 12px;
}

.gdi-request-detail .req-route-marker {
    background: transparent;
    border: none;
}

.gdi-request-detail .req-route-marker__n {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, #7c3aed, #5b21b6);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(91, 33, 182, 0.35);
    border: 2px solid #fff;
    line-height: 1;
}

.gdi-request-detail .req-route-marker__n i {
    font-size: 0.85rem;
}

.gdi-request-detail .req-route-marker--b .req-route-marker__n {
    background: linear-gradient(145deg, #0ea5e9, #0369a1);
}

.gdi-request-detail .gdi-req-place-line {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: #1a1730;
    line-height: 1.45;
}

.gdi-request-detail .gdi-req-place-line i {
    margin-top: 0.2rem;
    color: #8b5cf6;
}

.gdi-request-detail .gdi-req-route-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    font-size: 1rem;
    color: #1a1730;
}

.gdi-request-detail .gdi-req-route-arrow {
    color: #8b5cf6;
    font-weight: 800;
}

.gdi-request-detail .gdi-dex-block--map .card-body {
    padding: 1.25rem 1.35rem;
}

.gdi-request-detail .gdi-req-map {
    width: 100%;
    height: min(48vh, 380px);
    min-height: 260px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e4f0;
    background: #edf0f7;
}

.gdi-request-detail .rd-map-hint {
    margin-top: 0.55rem;
    font-size: 0.84rem;
    color: #6b6280;
}

/* Сведения: строки label | value */
.gdi-request-detail .gdi-req-dex-specs .characteristics-grid,
.gdi-request-detail .gdi-dex-specs .characteristics-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    grid-template-columns: none !important;
}

.gdi-request-detail .gdi-req-dex-specs .characteristic-item,
.gdi-request-detail .gdi-dex-specs .characteristic-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    padding: 0.78rem 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #efe8f6;
    box-shadow: none !important;
    transform: none !important;
}

.gdi-request-detail .gdi-req-dex-specs .characteristic-item:hover,
.gdi-request-detail .gdi-dex-specs .characteristic-item:hover {
    background: transparent !important;
    transform: none !important;
}

.gdi-request-detail .gdi-req-dex-specs .characteristic-item:last-child,
.gdi-request-detail .gdi-dex-specs .characteristic-item:last-child {
    border-bottom: none;
}

.gdi-request-detail .gdi-req-dex-specs .characteristic-label,
.gdi-request-detail .gdi-dex-specs .characteristic-label {
    flex: 0 1 42%;
    margin: 0 !important;
    font-size: 0.86rem;
    font-weight: 600;
    color: #6b6280;
    line-height: 1.35;
}

.gdi-request-detail .gdi-req-dex-specs .characteristic-value,
.gdi-request-detail .gdi-dex-specs .characteristic-value {
    flex: 1 1 55%;
    margin: 0 !important;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1730;
    text-align: right;
    line-height: 1.4;
    word-break: break-word;
}

.gdi-request-detail .gdi-req-price-inline {
    color: #5b21b6 !important;
    font-size: 1.12rem !important;
    font-weight: 800 !important;
}

.gdi-request-detail .gdi-req-desc {
    font-size: 0.98rem;
    line-height: 1.55;
    color: #2a2340;
}

.gdi-request-detail .gdi-req-desc br + br {
    display: none;
}

.gdi-request-detail .gdi-req-response-card .form-control {
    border-radius: 10px;
    border-color: #e6e0f0;
}

.gdi-request-detail .gdi-req-response-card .form-control:focus {
    border-color: #a78bfa;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.12);
}

.gdi-request-detail .gdi-req-response-card article.border {
    border-color: #ebe6f4 !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, #fcfbff 0%, #fff 100%);
}

/* Не показываем «телефон», если это простыня — CTA остаётся нормальной */
.gdi-request-detail .phone-number--owner-visible {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: #f5effc;
    color: #6a1b9a;
    font-weight: 800;
    text-decoration: none;
    word-break: break-word;
}

.gdi-request-detail .phone-number--owner-visible:hover {
    background: #efe6fa;
    color: #4a148c;
}

@media (max-width: 575px) {
    .gdi-request-detail .gdi-req-dex-specs .characteristic-item,
    .gdi-request-detail .gdi-dex-specs .characteristic-item {
        flex-direction: column !important;
        gap: 0.2rem;
    }

    .gdi-request-detail .gdi-req-dex-specs .characteristic-value,
    .gdi-request-detail .gdi-dex-specs .characteristic-value {
        text-align: left;
    }

    .gdi-request-detail .gdi-dex-hero__actions {
        flex-wrap: wrap;
    }
}
