﻿:root {
    --teal: #2c7a7b;
    --teal-dark: #1f5e5f;
    --teal-light: #e0f4f4;
    --teal-glow: rgba(44,122,123,.18);
    --ink: #1a2b2b;
    --muted: #6b8080;
    --surface: #f3f8f8;
    --card-bg: #ffffff;
    --border: #d8ecec;
    --danger: #e05252;
    --danger-light: #fdecea;
    --warning: #e09a30;
    --warning-light: #fef5e4;
    --radius-lg: 14px;
    --radius-pill: 50px;
    --shadow-card: 0 4px 24px rgba(44,122,123,.10), 0 1px 4px rgba(0,0,0,.04);
    --shadow-hover: 0 12px 40px rgba(44,122,123,.18), 0 2px 8px rgba(0,0,0,.06);
    --transition: .28s cubic-bezier(.4,0,.2,1);
}

.profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform var(--transition);
}

    .profile-img:hover {
        transform: scale(1.05);
    }

.super-area-badge {
    background-color: #e9ecef;
    color: #495057;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 10px;
    transition: transform var(--transition);
}

    .super-area-badge:hover {
        transform: translateY(-2px);
    }

.call-us-btn {
    background-color: #e9ecef;
    color: #212529;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: transform var(--transition);
    cursor: pointer;
}

    .call-us-btn i {
        margin-right: 8px;
    }

    .call-us-btn:hover {
        transform: translateY(-2px);
    }

.offers-title {
    font-weight: 700;
    color: #2c7a7b;
    margin: 20px 0;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--background-color);
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
}

.page-hero {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #3a9b9c 100%);
    padding: 56px 0 44px;
    position: relative;
    overflow: hidden;
}

    .page-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle at 15% 50%, rgba(255,255,255,.06) 0%, transparent 50%), radial-gradient(circle at 85% 20%, rgba(255,255,255,.08) 0%, transparent 45%);
    }

    .page-hero .container {
        position: relative;
        z-index: 1;
    }

    .page-hero h1 {
        font-family: 'Playfair Display', serif;
        font-weight: 800;
        font-size: clamp(2rem, 4vw, 2.8rem);
        color: #fff;
        letter-spacing: -.5px;
        line-height: 1.15;
    }

    .page-hero p {
        color: rgba(255,255,255,.75);
        font-size: .98rem;
        margin-top: 8px;
        font-weight: 300;
        letter-spacing: .3px;
    }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    backdrop-filter: blur(4px);
    margin-bottom: 16px;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.offers-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    margin-top: 25px;
}

    .offers-toolbar h4 {
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        font-size: 1.45rem;
        color: var(--teal-dark);
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .offers-toolbar h4 .count-chip {
            background: var(--teal-light);
            color: var(--teal-dark);
            font-family: 'DM Sans', sans-serif;
            font-size: .72rem;
            font-weight: 700;
            padding: 3px 10px;
            border-radius: var(--radius-pill);
            letter-spacing: .4px;
            transition: transform var(--transition);
        }

        .offers-toolbar h4:hover .count-chip {
            transform: scale(1.08);
        }

.btn-add-offer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #38b2ac 0%, #2c7a7b 100%);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-family: 'DM Sans', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
    box-shadow: 0 4px 14px var(--teal-glow);
}

    .btn-add-offer:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(44, 122, 123, 0.3);
        color: white;
    }

.offer-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 26px 22px 22px;
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .offer-card:hover {
        box-shadow: var(--shadow-hover);
        transform: translateY(-4px);
    }

    .offer-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 48px;
        height: 48px;
        border-top: 2.5px solid var(--teal);
        border-left: 2.5px solid var(--teal);
        border-radius: var(--radius-lg) 0 0 0;
    }

    .offer-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--teal), #3ab3b4);
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

.card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity var(--transition), transform var(--transition);
}

.offer-card:hover .card-actions {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
    text-decoration: none;
}

    .action-btn:hover {
        transform: scale(1.1);
    }

    .action-btn.edit {
        background: var(--warning-light);
        color: var(--warning);
        border-color: #f5d9a0;
    }

        .action-btn.edit:hover {
            background: var(--warning);
            color: #fff;
            border-color: var(--warning);
        }

    .action-btn.delete {
        background: var(--danger-light);
        color: var(--danger);
        border-color: #f5bebe;
    }

        .action-btn.delete:hover {
            background: var(--danger);
            color: #fff;
            border-color: var(--danger);
        }

.discount-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff 0%, var(--teal-light) 100%);
    border: 3px solid var(--teal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 12px auto 14px;
    position: relative;
    transition: transform var(--transition);
}

.offer-card:hover .discount-ring {
    transform: scale(1.1) rotate(5deg);
}

.discount-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px dashed var(--border);
}

.discount-percent {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
    color: #2c7a7b;
    line-height: 1;
}

.discount-label {
    font-size: .62rem;
    font-weight: 700;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-top: 2px;
}

.offer-dates {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 5px 12px;
    font-size: .75rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 14px;
}

    .offer-dates i {
        color: var(--teal);
        font-size: .72rem;
    }

.project-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--ink);
    font-size: 1rem;
    min-height: 44px;
    max-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    padding: 0 4px;
}

.location-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: .82rem;
    margin: 6px 0 18px;
}

    .location-row i {
        color: var(--teal);
        font-size: .78rem;
    }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

    .status-badge.active {
        background: #d1fae5;
        color: #065f46;
    }

    .status-badge.expiring {
        background: var(--warning-light);
        color: #92400e;
    }

    .status-badge.expired {
        background: #f1f5f9;
        color: #64748b;
    }

    .status-badge .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

.get-offer-btn {
    border: 2px solid var(--teal);
    background: linear-gradient(135deg, #38b2ac 0%, #2c7a7b 100%);
    color: white;
    padding: 9px 28px;
    border-radius: var(--radius-pill);
    font-family: 'DM Sans', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    transition: all 0.4s ease;
    margin-top: auto;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

/* محتوى الزرار الأساسي */
.btn-default-content {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.4s ease;
    opacity: 1;
}

/* محتوى الزرار عند الـ Hover */
.btn-hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 16px;
    opacity: 0;
    transition: all 0.4s ease;
}

.btn-hover-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

    .btn-hover-text .main-text {
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }

    .btn-hover-text .sub-text {
        font-size: 0.65rem;
        font-weight: 400;
        opacity: 0.9;
    }

.whatsapp-btn {
    background: #25D366;
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}

    .whatsapp-btn i {
        font-size: 1.1rem;
    }

/* عند الـ Hover */
.get-offer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 122, 123, 0.3);
}

    .get-offer-btn:hover .btn-default-content {
        opacity: 0;
    }

    .get-offer-btn:hover .btn-hover-content {
        opacity: 1;
    }

.card-img-wrap {
    width: calc(100% + 44px);
    margin: -26px -22px 14px;
    height: 110px;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-prop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.offer-card:hover .card-prop-img {
    transform: scale(1.06);
}

.img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(26,43,43,.45));
}

.offer-title-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: .78rem;
    color: var(--teal-dark);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.duration-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}

    .duration-chip i {
        font-size: .65rem;
    }

.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--muted);
}

    .empty-state .empty-icon {
        width: 80px;
        height: 80px;
        background: var(--teal-light);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        font-size: 2rem;
        color: var(--teal);
    }

    .empty-state h5 {
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        font-size: 1.3rem;
        color: var(--ink);
        margin-bottom: 8px;
    }

    .empty-state p {
        font-size: .9rem;
    }

.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26,43,43,.55);
    backdrop-filter: blur(4px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

    .confirm-overlay.show {
        display: flex;
    }

.confirm-box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 36px 32px 28px;
    max-width: 380px;
    width: calc(100% - 32px);
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,.18);
    animation: popIn .22s cubic-bezier(.34,1.56,.64,1);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.confirm-icon {
    width: 62px;
    height: 62px;
    background: var(--danger-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 1.6rem;
    color: var(--danger);
}

.confirm-box h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 8px;
}

.confirm-box p {
    font-size: .875rem;
    color: var(--muted);
    margin-bottom: 26px;
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

.btn-cancel-del {
    flex: 1;
    padding: 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    background: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: .875rem;
    color: var(--ink);
    cursor: pointer;
    transition: background var(--transition);
}

    .btn-cancel-del:hover {
        background: var(--surface);
    }

.btn-confirm-del {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--danger);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: .875rem;
    color: #fff;
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 14px rgba(224,82,82,.3);
}

    .btn-confirm-del:hover {
        background: #c93e3e;
    }

.offer-card-wrap {
    animation: fadeUp .5s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.offer-card-wrap:nth-child(1) {
    animation-delay: .05s;
}

.offer-card-wrap:nth-child(2) {
    animation-delay: .10s;
}

.offer-card-wrap:nth-child(3) {
    animation-delay: .15s;
}

.offer-card-wrap:nth-child(4) {
    animation-delay: .20s;
}

.offer-card-wrap:nth-child(5) {
    animation-delay: .25s;
}

.offer-card-wrap:nth-child(6) {
    animation-delay: .30s;
}

.offer-card-wrap:nth-child(7) {
    animation-delay: .35s;
}

.offer-card-wrap:nth-child(8) {
    animation-delay: .40s;
}

@media (max-width: 576px) {
    .page-hero {
        padding: 36px 0 28px;
    }

    .offers-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
