/* Центр уведомлений и запросы клиентов исполнителям */

/* ---------- Колокольчик ---------- */
.notification-bell {
    position: relative;
    display: inline-flex;
}
.notification-bell-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #253352;
    font-size: 24px;
    text-decoration: none;
}
.notification-bell-toggle:hover {
    color: #2475ee;
    text-decoration: none;
}
.notification-bell-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e5484d;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.notification-bell-count[hidden] {
    display: none;
}
.notification-bell-menu {
    width: 340px;
    max-width: calc(100vw - 24px);
    padding: 0;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(37, 51, 82, .14);
    overflow: hidden;
}
.notification-bell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eef1f6;
    color: #253352;
    font-size: 15px;
}
.notification-bell-head form {
    margin: 0;
}
.notification-bell-head button {
    padding: 0;
    border: 0;
    background: none;
    color: #2475ee;
    font-size: 13px;
    cursor: pointer;
}
.notification-bell-item,
.notification-row {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f8;
    color: #253352;
    text-decoration: none;
}
.notification-bell-item:hover,
.notification-row:hover {
    background: #f6f9ff;
    color: #253352;
    text-decoration: none;
}
.notification-bell-item.is-unread,
.notification-row.is-unread {
    background: #eef5ff;
}
.notification-bell-item > i,
.notification-row-icon {
    flex: 0 0 auto;
    color: #2475ee;
    font-size: 22px;
}
.notification-bell-item span,
.notification-row-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.notification-bell-item strong,
.notification-row-body strong {
    font-size: 14px;
    font-weight: 700;
}
.notification-bell-item small,
.notification-row-body small {
    color: #5b6782;
    font-size: 13px;
    white-space: normal;
}
.notification-bell-item time {
    margin-top: 2px;
    color: #8c96ab;
    font-size: 12px;
}
.notification-bell-empty {
    margin: 0;
    padding: 20px 16px;
    color: #8c96ab;
    font-size: 14px;
    text-align: center;
}
.notification-bell-all {
    display: block;
    padding: 11px 16px;
    color: #2475ee;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.notification-row {
    align-items: center;
    border-radius: 10px;
    border-bottom: 0;
    margin-bottom: 6px;
}
.notification-row-body {
    flex: 1;
}
.notification-row-time {
    flex: 0 0 auto;
    color: #8c96ab;
    font-size: 13px;
}

/* ---------- Списки запросов ---------- */
.service-request-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    padding: 16px 18px;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    color: #253352;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.service-request-card:hover {
    border-color: #2475ee;
    box-shadow: 0 8px 22px rgba(36, 117, 238, .1);
    color: #253352;
    text-decoration: none;
}
.service-request-card.is-new {
    background: #f6f9ff;
}
.service-request-card-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.service-request-card-main small {
    color: #5b6782;
    font-size: 13px;
}
.service-request-card-side {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
}
.service-request-offers-count {
    color: #5b6782;
    font-size: 13px;
}
.service-request-new-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #2475ee;
    vertical-align: middle;
}
.service-request-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.service-request-status--open {
    background: #e7f7ee;
    color: #17864a;
}
.service-request-status--expired {
    background: #fff4e0;
    color: #a86400;
}
.service-request-status--closed {
    background: #eef1f6;
    color: #5b6782;
}
.service-request-empty {
    padding: 30px 16px;
    color: #5b6782;
    text-align: center;
}
.service-request-empty i {
    color: #2475ee;
    font-size: 40px;
}

/* ---------- Подробности запроса ---------- */
.service-request-details {
    margin: 0;
}
.service-request-details-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px dashed #e5e9f2;
    font-size: 14px;
}
.service-request-details dt {
    color: #5b6782;
    font-weight: 400;
}
.service-request-details dd {
    margin: 0;
    color: #253352;
    font-weight: 600;
    text-align: right;
}
.service-request-message {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f6f9ff;
    font-size: 14px;
}
.service-request-message p {
    margin: 6px 0 0;
}
.request-matched-listings {
    margin: 0;
    padding-left: 20px;
}
.request-matched-listings li {
    padding: 4px 0;
}

/* ---------- Предложения ---------- */
.request-offer {
    margin-bottom: 14px;
    padding: 16px 18px;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
}
.request-offer--accepted {
    border-color: #2fb36b;
    background: #f3fbf6;
}
.request-offer--declined {
    opacity: .7;
}
.request-offer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.request-offer-price {
    color: #FF7014;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}
.request-offer-listing,
.request-offer-message {
    margin-bottom: 8px;
    font-size: 14px;
}
.request-offer-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.request-offer-actions form {
    margin: 0;
}
.request-offer-contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 14px;
}
.request-offer-contacts strong {
    color: #17864a;
}
.request-offer-state {
    color: #5b6782;
    font-size: 14px;
}

/* ---------- Окно «Отправить запрос» ---------- */
.service-request-modal .modal-content {
    border: 0;
    border-radius: 14px;
}
.service-request-modal .modal-title i {
    color: #2475ee;
}
.service-request-modal-summary {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f6f9ff;
    color: #253352;
    font-size: 14px;
    font-weight: 600;
}
.service-request-modal-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}
.service-request-modal label {
    color: #253352;
    font-size: 14px;
    font-weight: 600;
}
.service-request-result {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
}
.service-request-result--success {
    background: #e7f7ee;
    color: #17864a;
}
.service-request-result--error {
    background: #fdecec;
    color: #c4333a;
}
@media (max-width: 575px) {
    .service-request-modal-fields {
        grid-template-columns: 1fr;
    }
    .service-request-card {
        align-items: flex-start;
        flex-direction: column;
    }
    .service-request-card-side {
        align-items: flex-start;
        text-align: left;
    }
}

/*======= Requests section (dashboard): buttons in brand orange #FF7014, the rest stays site blue =======*/
.requests-section .theme-btn {
    border-color: #FF7014;
    background-color: #FF7014;
    color: #fff;
}

.requests-section .theme-btn:hover {
    background-color: #fff;
    color: #FF7014;
}

.requests-section .theme-btn-transparent {
    background-color: #fff;
    color: #FF7014;
}

.requests-section .theme-btn-transparent:hover {
    background-color: #FF7014;
    color: #fff;
}

/*======= Request offers: one row per listing (photo, title, city · capacity | price / status / actions) =======*/
.request-offer-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.request-offer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    background: #fff;
}

.request-offer-listing-card {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.request-offer-listing-card__img {
    display: flex;
    flex: 0 0 96px;
    width: 96px;
    height: 72px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    background: #eef3fb;
    color: #9aa8c0;
    font-size: 26px;
}

.request-offer-listing-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.request-offer-listing-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.request-offer-listing-card__title {
    color: #253352;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.request-offer-listing-card__title:hover {
    color: #287dfa;
}

.request-offer-listing-card__meta {
    color: #287dfa;
    font-size: 13px;
}

.request-offer-row__side {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.request-offer-row__side .request-offer-actions {
    margin-bottom: 0;
}

.request-offer-price-input {
    display: flex;
    width: 150px;
    height: 48px;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid #d6e0ee;
    border-radius: 10px;
    background: #fff;
    cursor: text;
    transition: border-color .2s, box-shadow .2s;
}

.request-offer-price-input:focus-within {
    border-color: #FF7014;
    box-shadow: 0 0 0 3px rgba(255, 112, 20, .15);
}

.request-offer-price-input.is-invalid {
    border-color: #dc3545;
}

.request-offer-price-input span {
    color: #253352;
    font-size: 16px;
    font-weight: 700;
}

.request-offer-price-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #253352;
    font-size: 16px;
    font-weight: 700;
}

.request-offer-price-input input::placeholder {
    color: #9aa8c0;
    font-weight: 500;
}

.request-offer-form__intro {
    margin-bottom: 12px;
    color: #5b6782;
    font-size: 14px;
}

.request-offer-form__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.requests-section .request-offer-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    padding-left: 24px;
    padding-right: 24px;
}

.requests-section .request-offer-submit:disabled {
    border-color: #ffc29a;
    background-color: #ffc29a;
    color: #fff;
    cursor: not-allowed;
}

.request-offer-status {
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 112, 20, .1);
    color: #FF7014;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.request-offer-status--accepted {
    background: #e6f6ed;
    color: #1f8a50;
}

/* declined - red, readable text */
.request-offer-status--declined {
    background: #fdecec;
    color: #c62828;
}

.request-offer-count {
    padding: 3px 10px;
    border-radius: 20px;
    background: #eaf3ff;
    color: #287dfa;
    font-size: 13px;
    font-weight: 700;
}

.request-offer-sent-message {
    margin-bottom: 8px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f5f9ff;
    font-size: 14px;
}

@media (max-width: 575px) {
    .request-offer-row {
        flex-direction: column;
        align-items: stretch;
    }

    .request-offer-row__side {
        align-items: stretch;
    }

    .request-offer-price-input {
        width: 100%;
    }

    .request-offer-listing-card__img {
        flex-basis: 80px;
        width: 80px;
        height: 60px;
    }

    .request-offer-form__footer .request-offer-submit {
        width: 100%;
        justify-content: center;
    }
}

/*======= Send request (modal submit): brand orange #FF7014, same as the catalog "Send request" button =======*/
.service-request-modal .service-request-submit {
    border-color: #FF7014;
    background-color: #FF7014;
    color: #fff;
}

.service-request-modal .service-request-submit:hover {
    border-color: #e85f05;
    background-color: #e85f05;
    color: #fff;
}

/*======= Stay offers: price for all nights of the request + price per night =======*/
.request-offer-row__side--input {
    align-items: flex-start;
}

.request-offer-price-caption {
    color: #287dfa;
    font-size: 13px;
    font-weight: 600;
}

.request-offer-price-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.request-offer-per-night {
    color: #5b6782;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* per-night next to the input: fixed width, so rows do not jump while typing */
.request-offer-price-line .request-offer-per-night {
    min-width: 96px;
}

@media (max-width: 575px) {
    .request-offer-price-line {
        width: 100%;
    }

    .request-offer-price-line .request-offer-price-input {
        flex: 1 1 auto;
        width: auto;
    }
}

/*======= Client offers: price | wishlist heart | "Show contacts" in one centred row =======*/
.request-offer-row__deal {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.request-offer-row__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.request-offer-row__deal .wishlist-card-form {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border: 1px solid #dfe8f5;
    border-radius: 50%;
    background: #fff;
    color: #287dfa;
    font-size: 22px;
    transition: border-color .2s, background-color .2s, color .2s;
}

.request-offer-row__deal .wishlist-card-form:hover,
.request-offer-row__deal .wishlist-card-form.is-active {
    border-color: #287dfa;
    background: #eaf3ff;
}

.request-offer-row__deal .wishlist-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    cursor: pointer;
}

.requests-section .request-offer-contacts-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.request-offer-head strong {
    color: #253352;
    font-size: 16px;
}

.request-offer-phone {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.request-offer-messenger {
    font-size: 20px;
    line-height: 1;
}

/* provider: "Read" / "Unread" - whether the client has opened the offers */
.request-offer-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.request-offer-status--read {
    background: #e6f6ed;
    color: #1f8a50;
}

.request-offer-status--unread {
    background: #f1f3f7;
    color: #5b6782;
}

@media (max-width: 575px) {
    .request-offer-row__deal {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .request-offer-row__price {
        align-items: flex-start;
    }

    .requests-section .request-offer-contacts-btn {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/*======= Received requests: open first (orange accent), closed/expired after a divider, muted =======*/
.service-request-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 10px;
    color: #8a94a6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.service-request-divider::after {
    flex: 1 1 auto;
    height: 1px;
    background: #e5e9f2;
    content: '';
}

.service-request-divider--open {
    margin-top: 0;
    color: #FF7014;
}

.service-request-card.is-open {
    border-left: 4px solid #FF7014;
}

.service-request-card.is-closed {
    border-color: #eceff4;
    background: #f7f8fa;
    opacity: .7;
}

.service-request-card.is-closed strong {
    color: #5b6782;
}

.service-request-card.is-closed:hover {
    opacity: 1;
}
