/* ==========================================================================
   CUSTOM DEV STYLES (Rello Portal)
   Тут додаємо ВСЕ, що хочеш стилізувати
   ========================================================================== */

/* ========== 1. LIVE PREVIEW (Property Images) ========== */
.file-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.file-preview-item {
    width: 120px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======== PREVIEW GRID ======== */
.file-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ======== ONE PREVIEW ITEM ======== */
.file-preview-item {
    position: relative;
    width: 120px;
    height: 90px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: #f8f8f8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Image */
.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======== CLOSE BUTTON (X) ======== */
.file-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;            /* <— ТЕ ЩО ТИ ПРОСИВ */
    transition: 0.2s ease-in-out;
    z-index: 10;
}

.file-preview-remove:hover {
    background: #d33;
    transform: scale(1.15);
}

/* ========== 2. Твої кнопки / елементи які захочеш ========== */
/* Приклад: */
/*
.default-btn {
    border-radius: 6px;
}
*/

/* ========== 3. Dashboard tweaks ========== */
/*
.dashboard-title-wrap {
    margin-bottom: 25px;
}
*/


/* ===========================
   Pricing cards (Buyer / Agent)
   =========================== */

.pricing-section {
    padding: 60px 0;
}

.pricing-card {
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 24px 22px 22px;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pricing-card.recommended {
    border-color: #2563eb;
    background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 55%);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
}

.pricing-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.pricing-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111827;
}

.pricing-desc {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 18px;
    min-height: 40px;
}

.pricing-price {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 4px;
    color: #111827;
}

.pricing-price small {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    margin-left: 4px;
}

.pricing-meta {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.pricing-features,
.pricing-quotas {
    margin: 0;
    padding: 0;
    list-style: none;
    margin-bottom: 18px;
}

.pricing-quotas li,
.pricing-features li {
    font-size: 14px;
    padding: 5px 0;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-quotas li::before {
    content: "•";
    color: #2563eb;
    font-size: 18px;
    line-height: 1;
}

.pricing-features li::before {
    content: "✔";
    color: #16a34a;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}

.pricing-btn {
    margin-top: auto;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: block;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pricing-btn-primary {
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
}

.pricing-btn-primary:hover {
    background: #1d4ed8;
    color: #ffffff;
    border-color: #1d4ed8;
}

.pricing-btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.pricing-btn-outline:hover {
    background: #2563eb;
    color: #ffffff;
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 40px 0;
    }

    .pricing-price {
        font-size: 28px;
    }

    .pricing-title {
        font-size: 18px;
    }
}

/* Сітка мініатюр */
.file-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Окремий айтем превʼю */
.file-preview-item {
    position: relative;
    width: 120px;      /* фіксована ширина */
    height: 90px;      /* фіксована висота */
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

/* Картинка всередині */
.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Хрестик видалення */
.file-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
}
.file-preview-remove:hover {
    background: rgba(0, 0, 0, 0.85);
}


/* ----------------------------------------------
   SAVED SEARCHES — TABLE STYLE
---------------------------------------------- */

.dashboard-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.dashboard-table table thead tr {
    background: #f7f9fc;
}

.dashboard-table table thead th {
    font-weight: 600;
    padding: 14px 16px;
    color: #3a3f51;
    border-bottom: 1px solid #e6e9ef;
}

.dashboard-table table tbody tr {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(15, 35, 65, 0.06);
}

.dashboard-table table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    color: #444;
    border-top: 1px solid #f1f1f4;
}

.dashboard-table table tbody tr:first-child td {
    border-top: 0;
}

/* ----------------------------------------------
   BADGES (Filters preview)
---------------------------------------------- */

.dashboard-table .badge {
    background-color: #eef2f7 !important;
    color: #334155 !important;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
}

/* ----------------------------------------------
   BUTTONS (Run / Delete)
---------------------------------------------- */

.dashboard-table .btn-sm {
    padding: 4px 10px;
    font-size: 13px;
    border-radius: 6px;
}

.dashboard-table .btn-outline-primary {
    border-color: #2f80ed;
    color: #2f80ed;
}

.dashboard-table .btn-outline-primary:hover {
    background: #2f80ed;
    color: #fff;
}

.dashboard-table .btn-outline-danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.dashboard-table .btn-outline-danger:hover {
    background: #e74c3c;
    color: #fff;
}

/* ----------------------------------------------
   EMPTY STATE BOX
---------------------------------------------- */

.alert-info {
    background: #eef7ff;
    border: 1px solid #cde5ff;
    color: #2a5fbd;
    border-radius: 8px;
    padding: 16px 20px;
}

/* ----------------------------------------------
   PAGE TITLE
---------------------------------------------- */

.dashboard-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
}


/* -----------------------------------------------------
   MOBILE VERSION — Saved Searches responsive layout
------------------------------------------------------ */

@media (max-width: 768px) {

    /* Ховаємо заголовки таблиці */
    .dashboard-table table thead {
        display: none;
    }

    .dashboard-table table {
        border-spacing: 0 12px;
    }

    .dashboard-table table tbody tr {
        display: block;
        background: #ffffff;
        border-radius: 10px;
        padding: 16px;
        box-shadow: 0 2px 6px rgba(15, 35, 65, 0.08);
    }

    .dashboard-table table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border: none;
        font-size: 14px;
    }

    /* Назва поля зліва */
    .dashboard-table table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #475569;
        margin-right: 10px;
        flex-shrink: 0;
    }

    /* Дії — кнопки в один ряд */
    .dashboard-table table tbody td:last-child {
        justify-content: flex-start;
        gap: 10px;
    }

    /* Buttons smaller */
    .dashboard-table .btn-sm {
        padding: 6px 12px;
        font-size: 13px;
    }
}

