/* Agent Profile Styles */

.agent-profile {
    padding: 40px 0;
}

.profile-header {
    background: var(--surface);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-light);
    margin-bottom: 32px;
}

.profile-header-content {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-light);
    flex-shrink: 0;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-title {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.profile-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.profile-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 63, 85, 0.1);
    color: var(--primary);
}

.profile-contact-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 15px;
}

.contact-info-item i {
    color: var(--primary);
    font-size: 16px;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-contact-large {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-size: 16px;
    text-decoration: none;
}

.btn-call-large {
    background: var(--primary);
    color: white;
}

.btn-call-large:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-call-large:hover,
.btn-call-large:hover i,
.btn-call-large:hover span {
    color: white;
}

.btn-message-large {
    background: var(--background);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-message-large:hover {
    background: var(--primary);
    color: white;
}

.profile-stats {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    flex-wrap: wrap;
    align-items: flex-start;
}

.profile-stat-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.profile-stat-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 63, 85, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 0;
}

.profile-stat-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: flex-start;
}

.profile-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    display: flex;
    align-items: center;
    font-variant-numeric: tabular-nums;
    margin: 0;
    padding: 0;
    height: 24px;
}

.profile-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.portfolio-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-options {
    display: flex;
    gap: 8px;
    background: var(--surface);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.view-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:hover {
    background: var(--border-light);
    color: var(--primary);
}

.view-btn.active {
    background: var(--primary);
    color: white;
}

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

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

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

.listings-grid.list-view .listing-card {
    display: flex;
    flex-direction: row;
}

.listings-grid.list-view .listing-image {
    width: 400px;
    height: 300px;
    flex-shrink: 0;
}

.listing-card {
    background: var(--surface);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    cursor: pointer;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.listing-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--border-light);
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.listing-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.badge-primary {
    background: rgba(255, 63, 85, 0.9);
    color: white;
}

.badge-secondary {
    background: rgba(255, 95, 115, 0.9);
    color: white;
}

.badge-featured {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.listing-price-overlay {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 63, 85, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    min-width: fit-content;
}

.listing-content {
    padding: 20px;
}

.listing-header {
    margin-bottom: 16px;
}

.listing-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.listing-location {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.listing-location-left,
.listing-location-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-location i {
    font-size: 12px;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.favorite-btn:hover {
    background: rgba(255, 63, 85, 0.95);
    transform: scale(1.1);
}

.favorite-btn:hover i {
    color: white;
}

.favorite-btn i {
    font-size: 18px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.favorite-btn.active i,
.favorite-btn.active:hover i {
    color: var(--primary);
}

.favorite-btn.active {
    background: rgba(255, 255, 255, 0.95);
}

.load-more-section {
    text-align: center;
    margin: 40px 0;
}

.btn-load-more {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
}

.btn-load-more:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.reviews-section {
    background: var(--surface);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-light);
    margin-bottom: 40px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.reviews-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 16px;
}

.reviews-rating {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.reviews-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.review-form {
    background: var(--background);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.review-form-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.rating-input {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    font-size: 28px;
    color: var(--border);
    cursor: pointer;
    transition: color 0.2s;
}

.rating-input label:hover,
.rating-input label:hover~label,
.rating-input input[type="radio"]:checked~label {
    color: #fbbf24;
}

.review-form-group {
    margin-bottom: 20px;
}

.review-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.review-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s;
}

.review-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 63, 85, 0.1);
}

.review-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-submit-review {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
}

.btn-submit-review:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.review-item {
    padding: 24px;
    background: var(--background);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-user-avatar-link {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
    flex-shrink: 0;
}

.review-user-avatar-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.review-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
    display: block;
}

.review-user-name-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.review-user-name-link:hover {
    color: var(--primary);
}

.review-user-name-link h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.2s;
}

.review-user-name-link:hover h4 {
    color: var(--primary);
}

.review-user-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.review-user-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.review-rating {
    display: flex;
    gap: 4px;
    color: #fbbf24;
    font-size: 16px;
}

.review-date {
    font-size: 12px;
    color: var(--text-light);
}

.review-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.no-listings {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
    grid-column: 1 / -1;
    justify-self: center;
    align-self: center;
    width: 100%;
}

.no-reviews {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 16px;
}

@media (max-width: 768px) {

    /* Mobilde görünüm butonlarını gizle */
    .view-options {
        display: none !important;
    }

    /* Mobilde başlık ile ilan kartları arasındaki boşluğu kaldır */
    .section-header {
        margin-bottom: 0px !important;
    }

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

    .profile-badges {
        justify-content: center;
    }

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

    .profile-actions {
        justify-content: center;
    }

    .profile-stats {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .profile-stat-item {
        align-items: flex-start;
    }

    .profile-stat-icon {
        width: 36px;
        height: 36px;
        margin-top: 0;
    }

    .profile-stat-value {
        font-size: 20px;
        line-height: 1;
        height: 28px;
        display: flex;
        align-items: center;
    }

    .listings-grid.list-view .listing-card {
        flex-direction: column;
    }

    .listings-grid.list-view .listing-image {
        width: 100%;
        height: 240px;
    }
}