/* Profile Layout Styles */
.profile-container {
    background: linear-gradient(135deg, #f8fdf8 0%, #e8f5e8 100%);
    min-height: 100vh;
    padding: 40px 0;
}

.profile-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    transition: gap 0.3s ease;
}

.profile-wrapper.sidebar-collapsed {
    gap: 15px;
}

.profile-sidebar {
    width: 280px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(29, 189, 8, 0.1);
    overflow: hidden;
    border: 1px solid rgba(29, 189, 8, 0.1);
    height: fit-content;
    transition: all 0.3s ease;
    position: sticky;
    top: 90px;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    color: #333;
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    border: none;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-toggle:hover {
    background: #f8f9fa;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Collapsed state */
.profile-sidebar.collapsed {
    width: 60px;
}

.profile-sidebar.collapsed .profile-card .profile-content,
.profile-sidebar.collapsed .menu-text,
.profile-sidebar.collapsed .profile-avatar-section,
.profile-sidebar.collapsed .profile-card .profile-content,
.profile-menu.collapsed .menu-text
{
    opacity: 0;
    visibility: hidden;
    height: 0px;
    width: 0px;
    display: none;
}

.profile-sidebar.collapsed .profile-cover {
    height: 40px;
}

.profile-sidebar.collapsed .profile-menu a {
    padding: 15px 8px;
    text-align: center;
    justify-content: center;
    position: relative;
}

.profile-sidebar.collapsed .profile-menu a::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-left: 10px;
    z-index: 1000;
    font-size: 12px;
    font-weight: normal;
}

.profile-sidebar.collapsed .profile-menu a:hover::after {
    opacity: 1;
    visibility: visible;
}

.profile-sidebar.collapsed .profile-menu i {
    margin-right: 0;
    font-size: 16px;
}

.profile-sidebar.collapsed .btn-logout {
    padding: 10px 6px;
    font-size: 16px;
    position: relative;
}

.profile-sidebar.collapsed .btn-logout .menu-text {
    display: none;
}

.profile-sidebar.collapsed .btn-logout::after {
    content: attr(title);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-left: 10px;
    z-index: 1000;
    font-size: 12px;
    font-weight: normal;
}

.profile-sidebar.collapsed .btn-logout:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Profile wrapper adjustments when sidebar is collapsed */
.profile-wrapper.sidebar-collapsed .profile-content {
    margin-left: 20px;
}

/* Menu text animation */
.menu-text {
    transition: all 0.3s ease;
    opacity: 1;
    visibility: visible;
}

.profile-content {
    flex: 1;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(29, 189, 8, 0.1);
    overflow: hidden;
    border: 1px solid rgba(29, 189, 8, 0.1);
}

.profile-content-header {
    background: linear-gradient(135deg, #1563df, #1752ae);
    color: white;
    padding: 25px 30px;
}

.profile-content-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.profile-content-body {
    padding: 40px 30px;
}

/* Modern Profile Card Design */
.profile-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* Cover Background */
.profile-cover {
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-sidebar.collapsed .profile-cover {
    height: 60px;
}

.cover-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
}

.profile-cover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-20px, -20px) rotate(180deg); }
}

/* Profile Avatar */
.profile-avatar-section {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    transition: all 0.3s ease;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.profile-avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    background: linear-gradient(135deg, #1563df, #0d47a1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Profile Content */
.profile-card .profile-content {
    padding: 60px 25px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.2;
}

.profile-code {
    color: #7f8c8d;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.profile-bio {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    border-left: 4px solid #1563df;
}

.profile-bio p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
}

/* Stats Grid */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-box {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1563df;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Contact Info */
.profile-contact {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: #555;
    font-size: 0.9rem;
}

.contact-item i {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    color: #1563df;
    font-size: 16px;
}

/* Profile Menu */
.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.profile-menu li:last-child {
    border-bottom: none;
}

.profile-menu a {
    display: block;
    padding: 18px 25px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.profile-menu a:hover {
    background: #f8fdf8;
    color: #1563df;
    text-decoration: none;
    border-left-color: #1563df;
}

.profile-menu a.active {
    background: #f8fdf8;
    color: #1563df;
    border-left-color: #1563df;
    font-weight: 600;
}

.profile-menu i {
    margin-right: 12px;
    width: 18px;
    text-align: center;
}

/* Action Buttons */
.profile-actions {
    margin-top: 20px;
}

.btn-profile-edit,
.btn-contact-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-profile-edit {
    background: linear-gradient(135deg, #1563df, #0d47a1);
    color: white;
    box-shadow: 0 4px 15px rgba(21, 99, 223, 0.3);
}

.btn-profile-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 99, 223, 0.4);
    color: white;
    text-decoration: none;
}

.btn-contact-user {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-contact-user:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-profile-edit i,
.btn-contact-user i {
    margin-right: 8px;
    font-size: 16px;
}

.btn-logout {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
    color: white;
    text-decoration: none;
}

.stat-table td{
    color: #000 !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .profile-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .profile-sidebar {
        width: 100%;
        position: relative !important;
        top: auto !important;
    }

    .profile-sidebar.collapsed {
        width: 100%;
    }
}

/* Mobile menu - horizontal layout */
/* Mobile Responsiveness */
@media (max-width: 768px) {
    .profile-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }

    .profile-sidebar {
        width: 100%;
        position: relative !important;
        top: auto !important;
    }

    .profile-sidebar.collapsed {
        width: 100%;
    }

    .profile-content-body,.profile-wrapper{
        padding: 4px 3px;
    }

    .form-section{
        padding: 5px !important;
    }

    /* Mobile menu - grid layout */
    .profile-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* mindig 3 oszlop */
        gap: 10px; /* távolság az elemek között */
        padding: 10px 0;
    }

    .profile-menu li {
        border: none; /* rácsban nem kell vonal */
    }

    .profile-menu a {
        padding: 12px 8px;
        text-align: center;
        display: flex;
        flex-direction: column;  /* ikon felül, szöveg alul */
        align-items: center;
        justify-content: center;
        border: 1px solid #f0f0f0;
        border-radius: 8px;
        font-size: 12px;
    }

    .profile-menu a:hover,
    .profile-menu a.active {
        background: #f8fdf8;
        color: #1563df;
        border-color: #1563df;
    }

    .profile-menu i {
        margin: 0 0 4px 0;
        font-size: 16px;
        display: block;
    }



    .sidebar-toggle {
        top: 10px;
        right: 10px;
    }

    .profile-card .profile-content {
        padding: 60px 20px 20px;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-box:last-child {
        grid-column: 1 / -1;
        max-width: 150px;
        margin: 0 auto;
    }

    /* On mobile, don't hide content when collapsed */
    .profile-sidebar.collapsed .profile-card .profile-content,
    .profile-sidebar.collapsed .menu-text,
    .profile-sidebar.collapsed .profile-avatar-section {
        opacity: 1;
        visibility: visible;
    }

    .profile-sidebar.collapsed .profile-menu a {
        padding: 18px 25px;
        text-align: left;
        justify-content: flex-start;
    }

    .profile-sidebar.collapsed .profile-menu i {
        margin-right: 12px;
        font-size: 16px;
    }

    .profile-sidebar.collapsed .btn-logout .menu-text {
        display: inline;
    }
}

/* City Images Uniform Size */
.tf-sw-location .box-location {
    height: 280px;
}

.tf-sw-location .box-location .image {
    height: 100%;
}

.tf-sw-location .box-location .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease-in-out;
}

.tf-sw-location .box-location:hover .image img {
    transform: scale(1.1);
}

/* Responsive city image heights */
@media (max-width: 768px) {
    .tf-sw-location .box-location {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .tf-sw-location .box-location {
        height: 200px;
    }
}

/* Custom pagination bullets for cities section */
.sw-pagination-location {
    margin-top: 15px !important;
    position: relative;
}

.sw-pagination-location .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    margin: 0 6px !important;
    background: rgba(21, 99, 223, 0.2) !important;
    border: 2px solid transparent !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
}

.sw-pagination-location .swiper-pagination-bullet:hover {
    background: rgba(21, 99, 223, 0.4) !important;
    transform: scale(1.2);
    border-color: rgba(21, 99, 223, 0.3) !important;
}

.sw-pagination-location .swiper-pagination-bullet-active {
    background: linear-gradient(135deg, #1563df, #0d47a1) !important;
    border-color: rgba(21, 99, 223, 0.3) !important;
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(21, 99, 223, 0.4) !important;
}

.sw-pagination-location .swiper-pagination-bullet-active:hover {
    transform: scale(1.4);
    box-shadow: 0 6px 16px rgba(21, 99, 223, 0.5) !important;
}

/* Why Advertise Sidebar Banner Styles */
.widget-box .tf-btn.style-1:hover {
    background: #f8f9fa !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Why Advertise Banner Responsive Styles */
@media (max-width: 991px) {
    .flat-section .box-icon-style {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .flat-section h2.title {
        font-size: 28px !important;
    }

    .flat-section .box-icon-style {
        padding: 20px !important;
    }

    .flat-section .box-icon-style h6 {
        font-size: 16px !important;
    }

    .flat-section .box-icon-style p,
    .flat-section .box-icon-style ul {
        font-size: 13px !important;
    }
}

@media (max-width: 576px) {
    .flat-section h2.title {
        font-size: 24px !important;
        margin-bottom: 15px !important;
    }

    .flat-section .tf-btn {
        width: 100%;
        text-align: center;
        padding: 12px 30px !important;
        font-size: 15px !important;
    }

    .flat-section .box-icon-style {
        padding: 18px !important;
    }

    .flat-section .box-icon-style .icon {
        width: 45px !important;
        height: 45px !important;
        margin-bottom: 12px !important;
    }

    .flat-section .box-icon-style .icon i {
        font-size: 20px !important;
    }
}

/* Add a subtle background to pagination area */
.sw-pagination-location::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 25px;
    padding: 8px 20px;
    z-index: -1;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* Estate Card Avatar Styles */
.estate-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.estate-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: linear-gradient(135deg, #1563df, #0d47a1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.estate-avatar-placeholder:hover {
    background: linear-gradient(135deg, #0d47a1, #1563df);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Agent Avatar Styles for Homepage */
.agent-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.agent-avatar-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, #1563df, #0d47a1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.agent-avatar-placeholder:hover {
    background: linear-gradient(135deg, #0d47a1, #1563df);
    transform: scale(1.02);
}

.box-agent .box-img.img-style {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 280px;
}

.box-agent .agent-social {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 8px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.box-agent:hover .agent-social {
    opacity: 1;
    transform: translateY(0);
}
/* Eladott hirdetések stílusai */
.sold-estate {
    position: relative;
}

.sold-image {
    position: relative;
    overflow: hidden;
}

.sold-image img {
    filter: grayscale(50%) opacity(0.7);
    transition: all 0.3s ease;
}

.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sold-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sold-badge i {
    font-size: 20px;
}

.sold-tag {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: white !important;
    font-weight: bold;
    border-radius: 6px !important;
}

.sold-estate .price {
    text-decoration: line-through;
    opacity: 0.6;
}
.favorite-small-card {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.sold-image-small {
    position: relative;
}

.sold-img {
    filter: grayscale(50%) opacity(0.7);
}

.sold-overlay-small {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sold-badge-small {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.4);
}

.sold-estate-small .text-btn {
    text-decoration: line-through;
    opacity: 0.6;
}
