/* === User Profile Page === */

/* Hero Section */
.profile-hero {
    background: linear-gradient(135deg, #1A237E 0%, #0D47A1 50%, #1565C0 100%);
    color: #fff;
    padding: 60px 0 48px;
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.profile-hero .container {
    position: relative;
    z-index: 1;
}

/* Breadcrumb */
.profile-breadcrumb {
    margin-bottom: 24px;
}

.profile-breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 8px;
    font-size: 14px;
    align-items: center;
}

.profile-breadcrumb li {
    list-style: none;
}

.profile-breadcrumb a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.profile-breadcrumb a:hover {
    color: #fff;
}

.profile-breadcrumb .separator {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
}

.profile-breadcrumb .current {
    color: #fff;
    font-weight: 600;
}

/* Profile Header Card */
.profile-header-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.9);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    flex-shrink: 0;
}

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

.profile-info h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
    line-height: 1.3;
}

/* Contact Details Row */
.profile-contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 12px;
}

.profile-contact-row a,
.profile-contact-row p {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.profile-contact-row a:hover {
    color: #fff;
}

.profile-contact-row i {
    font-size: 13px;
    width: 16px;
    text-align: center;
}

/* About Section */
.profile-about {
    margin-top: 14px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
}

/* Social Links */
.profile-social-links {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.profile-social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.15);
}

.profile-social-links a:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* === Listings Section === */
.profile-listings-section {
    padding: 32px 0 60px;
    background: #FAFAFE;
}

.profile-listings-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #E5EEFF;
}

.profile-listings-header i {
    color: var(--primary, #1A237E);
    font-size: 22px;
}

.profile-listings-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1B1B21;
    margin: 0;
}

.profile-listings-header .count-badge {
    background: #E5EEFF;
    color: var(--primary, #1A237E);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Listings Grid */
.profile-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Listing Card */
.profile-listing-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(198,197,212,0.3);
}

.profile-listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.profile-listing-card-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #eee;
}

.profile-listing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.profile-listing-card:hover .profile-listing-card-img img {
    transform: scale(1.05);
}

/* Wishlist Button on Card */
.profile-listing-card-img .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

html[dir="ltr"] .profile-listing-card-img .wishlist-btn {
    right: auto;
    left: 12px;
}

.profile-listing-card-img .wishlist-btn:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Category Badge on Card */
.profile-listing-card-img .category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(26,35,126,0.88);
    color: #fff;
    backdrop-filter: blur(4px);
    z-index: 2;
}

html[dir="ltr"] .profile-listing-card-img .category-badge {
    left: auto;
    right: 12px;
}

/* Card Body */
.profile-listing-card-body {
    padding: 18px 20px;
}

.profile-listing-card-body .rating {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.profile-listing-card-body .rating i {
    color: #FBBC05;
    font-size: 13px;
}

.profile-listing-card-body .rating i.empty {
    color: #ddd;
}

.profile-listing-card-body .rating span {
    font-size: 12px;
    color: #777;
    margin-left: 6px;
    font-weight: 500;
}

html[dir="ltr"] .profile-listing-card-body .rating span {
    margin-left: 0;
    margin-right: 6px;
}

.profile-listing-card-body h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #1B1B21;
    line-height: 1.4;
}

.profile-listing-card-body h5 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.profile-listing-card-body h5 a:hover {
    color: var(--primary, #1A237E);
}

.profile-listing-card-body .address {
    font-size: 13px;
    color: #777;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-listing-card-body .address i {
    color: var(--primary, #1A237E);
    font-size: 12px;
}

/* Empty State */
.profile-empty-state {
    text-align: center;
    padding: 60px 24px;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed var(--border-color, #C6C5D4);
}

.profile-empty-state i {
    font-size: 52px;
    color: #C6C5D4;
    margin-bottom: 16px;
    display: block;
}

.profile-empty-state p {
    color: #767683;
    font-size: 16px;
    margin: 0;
}

/* Map Modal */
.profile-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.profile-modal .btn-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

html[dir="ltr"] .profile-modal .btn-close {
    right: auto;
    left: 12px;
}

.profile-modal .modal-body {
    padding: 24px;
}

.profile-modal .modal-body h5 {
    font-size: 18px;
    font-weight: 700;
    color: #1B1B21;
    margin-bottom: 12px;
}

.profile-modal .modal-body p {
    font-size: 14px;
    color: #757575;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-modal .modal-body p i {
    color: var(--primary, #1A237E);
    width: 16px;
    text-align: center;
}

.profile-modal .modal-body .btn-primary {
    margin-top: 12px;
}

/* Pagination Override for Profile */
.profile-listings-section .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.profile-listings-section .pagination .page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color, #C6C5D4);
    border-radius: 8px;
    font-weight: 600;
    color: #1B1B21;
    transition: 0.3s ease;
}

.profile-listings-section .pagination .page-item:hover,
.profile-listings-section .pagination .page-item.active {
    background: var(--primary, #1A237E);
    color: white;
    border-color: var(--primary, #1A237E);
}

.profile-listings-section .pagination .page-link {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
    font-size: 14px;
}

/* === Mobile Responsive === */
@media (max-width: 992px) {
    .profile-hero {
        padding: 48px 0 36px;
    }

    .profile-header-card {
        gap: 20px;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
    }

    .profile-info h2 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .profile-hero {
        padding: 40px 0 32px;
    }

    .profile-header-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-contact-row {
        justify-content: center;
    }

    .profile-social-links {
        justify-content: center;
    }

    .profile-about {
        text-align: center;
    }

    .profile-listings-grid {
        grid-template-columns: 1fr;
    }

    .profile-listings-header {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .profile-avatar {
        width: 80px;
        height: 80px;
    }

    .profile-info h2 {
        font-size: 20px;
    }

    .profile-contact-row {
        gap: 12px;
    }

    .profile-contact-row a,
    .profile-contact-row p {
        font-size: 13px;
    }
}
