:root {
    --agent-primary: #92857A;
    --agent-secondary: #816B63;
    --agent-text: #333;
}

.agent-page-wrapper {
    background: #fff;
    min-height: 100vh;
    padding: 60px 0;
}

.agent-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: visible;
}

.agent-header {
    display: flex;
    gap: 60px;
    margin-bottom: 80px;
    padding: 0;
    align-items: center;
}

.agent-photo-column {
    flex: 0 0 280px;
}

.agent-photo-wrapper {
    width: 280px;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid var(--agent-primary);
    box-shadow: 0 8px 24px rgba(146, 133, 122, 0.2);
}

.agent-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo-placeholder {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.agent-info-column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.agent-name-section {
    margin-bottom: 30px;
}

.agent-main-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--agent-text);
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.agent-license {
    display: inline-block;
    font-size: 13px;
    color: var(--agent-primary);
    background: #f9f9f9;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 500;
}

.agent-contact-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.agent-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.agent-contact-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.contact-icon {
    width: 22px;
    height: 22px;
    color: var(--agent-primary);
    flex-shrink: 0;
}

.contact-content {
    flex: 1;
    min-width: 0;
}

.contact-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 16px;
    color: #222;
    text-decoration: none;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
    overflow: hidden;
    word-break: break-word;
}

a.contact-value:hover {
    color: var(--agent-primary);
}

.agent-description-wrapper {
    padding-top: 30px;
    border-top: 1px solid #e5e5e5;
}

.agent-description {
    line-height: 1.8;
    color: #666;
    font-size: 15px;
}

.agent-properties-section {
    margin-top: 60px;
    overflow: visible;
    padding: 0 70px;
    position: relative;
}

.agent-properties-section .properties-slider {
    position: static !important;
}

.properties-header {
    text-align: center;
    margin-bottom: 50px;
}

.properties-title {
    color: #92857A;
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 20px 0;
}

.properties-underline {
    height: 3px;
    width: 100px;
    background-color: #92857A;
    margin: 0 auto 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.properties-count {
    color: var(--agent-primary);
    font-size: 18px;
    margin: 0;
}

.properties-slider {
    position: relative;
    margin: 0 auto;
    padding: 0 70px;
    overflow: visible;
}

.properties-slider .swiper {
    overflow: hidden;
    position: relative;
}

.properties-slider .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.properties-slider .swiper-slide {
    height: auto;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
}

.properties-slider .swiper-slide-active,
.properties-slider .swiper-slide-next,
.properties-slider .swiper-slide-prev {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.properties-slider .swiper-slide * {
    transform: none !important;
    transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.property-card {
    background: white;
    border: 1px solid #333;
    border-radius: 0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: row;
    height: 260px;
    width: 100%;
    position: relative;
    transform: none !important;
    backface-visibility: hidden;
}

.property-card:hover {
    box-shadow: 4px 4px 15px rgba(0,0,0,0.2);
    border-color: #92857A;
    z-index: 10;
    transform: none !important;
}

.property-image {
    position: relative;
    overflow: hidden;
    flex: 0 0 300px;
    height: 100%;
    width: 300px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #92857A;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.property-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-width: 0;
}

.property-divider {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #92857A 0%, #E6E0DA 100%);
}

.property-header {
    margin-bottom: 12px;
    text-align: left;
}

.property-title {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-title a:hover {
    color: #92857A;
}

.property-address {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
}

.property-info-item {
    font-size: 13px;
    color: #666;
    flex: 0 0 auto;
    white-space: nowrap;
}

.property-info-item strong {
    color: #333;
    font-weight: 600;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.property-pricing {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.property-price {
    font-size: 22px;
    font-weight: 700;
    color: #92857A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.property-price-per-m {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.property-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.property-id {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
}

.property-link {
    display: inline-block;
    padding: 8px 20px;
    background-color: #92857A;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.property-link:hover {
    background-color: #816B63;
    transform: translateX(5px);
}

.properties-nav-prev {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 60px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    outline: none;
}

.properties-nav-prev:focus {
    outline: none;
}

.properties-nav-prev::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -60px;
    width: 50px;
    height: 50px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M90,10 L90,90 L13.4,50 Z' fill='%23E6E0DA' stroke='%23E6E0DA' stroke-width='20' stroke-linejoin='round' stroke-linecap='round'/></svg>") no-repeat center/contain;
    filter: drop-shadow(-2px 3px 6px rgba(0,0,0,.15));
    transition: all .3s ease;
}

.properties-nav-prev:hover::before {
    filter: drop-shadow(3px 4px 10px rgba(0,0,0,0.25));
    transform: translateX(-3px);
}

.properties-nav-next {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 60px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    outline: none;
}

.properties-nav-next:focus {
    outline: none;
}

.properties-nav-next::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -60px;
    width: 50px;
    height: 50px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M10,10 L10,90 L86.6,50 Z' fill='%23E6E0DA' stroke='%23E6E0DA' stroke-width='20' stroke-linejoin='round' stroke-linecap='round'/></svg>") no-repeat center/contain;
    filter: drop-shadow(-2px 3px 6px rgba(0,0,0,.15));
    transition: all .3s ease;
}

.properties-nav-next:hover::before {
    filter: drop-shadow(-3px 4px 10px rgba(0,0,0,0.25));
    transform: translateX(3px);
}

.properties-nav-prev svg,
.properties-nav-next svg {
    display: none;
}

.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.swiper-button-disabled:hover::before {
    filter: drop-shadow(-2px 3px 6px rgba(0,0,0,.15)) !important;
    transform: none !important;
}

.swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.properties-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #D9D9D9 !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.properties-slider .swiper-pagination-bullet-active {
    background: #92857A !important;
    width: 30px;
    border-radius: 5px;
}

.properties-slider .swiper-pagination-bullet:focus {
    outline: none;
}

.no-properties {
    text-align: center;
    padding: 80px 20px;
    background: var(--agent-light);
    border-radius: 12px;
}

.no-properties-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: var(--agent-primary);
}

.no-properties-text {
    font-size: 18px;
    color: var(--agent-text);
}

@media (max-width: 1600px) {
    .property-image {
        flex: 0 0 280px;
        width: 280px;
    }
}

@media (max-width: 1400px) {
    .property-image {
        flex: 0 0 260px;
        width: 260px;
    }
    
    .property-card {
        height: 250px;
    }
    
    .property-content {
        padding: 18px;
    }
}

@media (max-width: 1200px) {
    .agent-container {
        padding: 0 20px;
    }
    
    .properties-slider {
        padding: 0 60px;
    }
    
    .properties-nav-prev {
        display: none;
    }
    
    .properties-nav-next {
        display: none;
    }
    
    .property-image {
        flex: 0 0 240px;
        width: 240px;
    }
    
    .property-card {
        height: 240px;
    }
}

@media (max-width: 1024px) {
    .agent-header {
        flex-direction: column;
        gap: 40px;
    }
    
    .agent-photo-column {
        order: -1;
        flex: none;
    }
    
    .agent-info-column {
        width: 100%;
    }
    
    .property-card {
        height: 250px;
    }
    
    .property-image {
        flex: 0 0 350px;
        width: 350px;
    }
}

@media (max-width: 768px) {
    .agent-page-wrapper {
        padding: 40px 0;
    }
    
    .agent-container {
        padding: 0 15px;
    }
    
    .agent-main-name {
        font-size: 28px;
    }
    
    .agent-photo-wrapper {
        width: 220px;
        height: 280px;
    }
    
    .agent-contact-section {
        grid-template-columns: 1fr;
    }
    
    .properties-title {
        font-size: 28px;
    }
    
    .properties-slider {
        padding: 0 45px;
    }
    
    .properties-nav-prev {
        left: 5px;
    }
    
    .properties-nav-next {
        right: 5px;
    }
    
    .property-card {
        flex-direction: column;
        height: auto;
    }
    
    .property-image {
        flex: none;
        width: 100%;
        height: 220px;
    }
    
    .property-divider {
        width: 100%;
        height: 2px;
        left: 0;
        top: 0;
        background: linear-gradient(90deg, #92857A 0%, #E6E0DA 100%);
    }
    
    .properties-nav-prev,
    .properties-nav-next {
        width: 35px;
        height: 50px;
    }
    
    .property-content {
        padding: 20px;
    }
    
    .property-title {
        font-size: 18px;
    }
    
    .property-price {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .agent-main-name {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .agent-photo-wrapper {
        width: 180px;
        height: 230px;
    }
    
    .properties-title {
        font-size: 24px;
        letter-spacing: 1px;
    }
    
    .properties-slider {
        padding: 0 35px;
    }
    
    .properties-nav-prev,
    .properties-nav-next {
        width: 30px;
        height: 40px;
    }
    
    .properties-nav-prev {
        left: 5px;
    }
    
    .properties-nav-next {
        right: 5px;
    }
    
    .property-link {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .property-content {
        padding: 15px;
    }
    
    .property-title {
        font-size: 16px;
    }
    
    .property-info {
        gap: 10px;
    }
    
    .property-info-item {
        font-size: 12px;
    }
    
    .property-price {
        font-size: 18px;
    }
    
    .agent-photo-wrapper {
        width: 200px;
        height: 200px;
    }
}
