/* Tenant Representation Block Styles */
.c-tenant-representation {
    margin: 3rem 0;
    position: relative;
}



.c-tenant-representation__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.c-tenant-representation__title {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #293E46; /* tetra-black */
    text-align: center;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.c-tenant-representation__subtitle {
    text-align: center;
    color: #657962; /* tetra-green */
    margin-bottom: 2rem;
    font-size: 1.125rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* A-Z Index Navigation Styles */
.c-tenant-az-index {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.az-index-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.az-index-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.az-index-letter.active {
    background: #293E46; /* tetra-black */
    color: #FFFFFF;
    border-color: #293E46;
}

.az-index-letter.active:hover {
    background: #1e2d33;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(41, 62, 70, 0.2);
}

.az-index-letter.inactive {
    background: #e9ecef;
    color: #6c757d;
    cursor: default;
    opacity: 0.5;
}

.az-index-letter.inactive:hover {
    background: #e9ecef;
    transform: none;
    box-shadow: none;
}

/* Letter Anchor Points */
.tenant-letter-anchor {
    scroll-margin-top: 100px; /* Offset for fixed headers if any */
}

.c-tenant-representation__list {
    background: #FFFFFF; /* tetra-white */
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(37, 30, 45, 0.1), 0 2px 4px -1px rgba(37, 30, 45, 0.06);
    overflow: hidden;
    border: 1px solid #F0EBE5; /* stone */
}

.c-tenant-representation__item {
    border-bottom: 1px solid #DED2CF; /* tetra-warm */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.c-tenant-representation__item:last-child {
    border-bottom: none;
}

.c-tenant-representation__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #6C486E 0%, #345C6D 100%); /* tetra-purple-to-teal */
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.c-tenant-representation__item.active::before,
.c-tenant-representation__item:hover::before {
    transform: scaleY(1);
}

.c-tenant-representation__item.active {
    background: linear-gradient(135deg, #F6F8F6 0%, #DED2CF 100%); /* tetra-cool to tetra-warm */
    box-shadow: inset 0 1px 3px rgba(37, 30, 45, 0.05);
}

.c-tenant-representation__trigger {
    width: 100%;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.125rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.c-tenant-representation__trigger:hover {
    background: linear-gradient(135deg, rgba(108, 72, 110, 0.05) 0%, rgba(52, 92, 109, 0.05) 100%); /* tetra-purple-to-teal with opacity */
    transform: translateX(4px);
}

.c-tenant-representation__trigger:focus {
    outline: none; 

}

.tenant-name {
    color: #293E46; /* tetra-black */
    font-weight: 700;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.c-tenant-representation__trigger:hover .tenant-name {
    color: #6C486E; /* tetra-purple */
}

.tenant-arrow {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #657962; /* tetra-green */
    display: flex;
    align-items: center;
    background: #F6F8F6; /* tetra-cool */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(37, 30, 45, 0.1);
}

.c-tenant-representation__trigger:hover .tenant-arrow {
    background: #6C486E; /* tetra-purple */
    color: white;
    transform: scale(1.1);
}

.c-tenant-representation__details {
    background: linear-gradient(135deg, #F0EBE5 0%, #F6F8F6 100%); /* stone to tetra-cool */
    border-top: 1px solid #DED2CF; /* tetra-warm */
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-10px);
}

.c-tenant-representation__item.active .c-tenant-representation__details {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px; /* Large enough to accommodate content */
}

.tenant-details__content {
    padding: 2rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: opacity 0.3s ease 0.1s;
}

.c-tenant-representation__item:not(.active) .tenant-details__content {
    opacity: 0;
}

.c-tenant-representation__item.active .tenant-details__content {
    opacity: 1;
}

/* Main Layout: Logo and Brokers Side by Side */
.tenant-details__main-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .tenant-details__main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

.tenant-details__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #DED2CF; /* tetra-warm */
    min-height: 200px;
  
}

.tenant-logo {
    max-width: 250px;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tenant-details__logo a {
    display: inline-block;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.tenant-details__logo a:hover {
    transform: scale(1.05);
}

.tenant-details__logo a:focus {
    outline: 2px solid #293E46;
    outline-offset: 2px;
}

.tenant-logo:hover {
    transform: scale(1.05);
}

.tenant-details__info {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    min-width: 0;
}

@media (max-width: 767px) {
    .tenant-details__info {
            flex-direction: column;
    }
}

.tenant-info__item {
    position: relative;
    padding-left: 1rem;
}

.tenant-info__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #6C486E 0%, #345C6D 100%); /* tetra-purple-to-teal */
    border-radius: 2px;
}

.tenant-info__label {
    font-size: 17px;
    font-weight: 700;
    color: #293E46; /* tetra-green */
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tenant-info__value {
    font-size: 1.125rem;
    color: #251E2D; /* tetra-black */
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* Bottom Section: Broker Contacts */
.tenant-details__brokers {
    background: #F6F8F6; /* tetra-purple-to-teal */
    border-radius: 8px;
    padding: 2rem;
    color: white;
 border: 1px solid #DED2CF;
    position: relative;
    overflow: hidden;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.tenant-details__brokers:hover {
    opacity: 1;
}

.tenant-details__brokers::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(246, 248, 246, 0.1) 0%, transparent 70%); /* tetra-cool with opacity */
    transform: rotate(45deg);
}

.brokers-section__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #251E2D;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.brokers-grid { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 1024px) {
    .brokers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
}

.broker-contact__card {
    background: rgba(246, 248, 246, 0.8); /* tetra-cool with opacity */
    border: 1px solid rgba(222, 210, 207, 0.4); /* tetra-warm with opacity */
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.broker-contact__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #657962 0%, #345C6D 100%); /* tetra-green to teal */
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.broker-contact__card:hover::before {
    opacity: 1;
}

.broker-contact__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 30, 45, 0.15); /* tetra-black shadow */
}

.broker-card__header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 8px 8px 0 0;
    background: rgba(224, 230, 229, 0.6); /* light stone */
    border-bottom: 1px solid rgba(222, 210, 207, 0.3); /* tetra-warm with opacity */
}

.broker-photo {
    flex-shrink: 0;
}

.broker-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(246, 248, 246, 0.6); /* tetra-cool with opacity */
    box-shadow: 0 2px 6px rgba(37, 30, 45, 0.15); /* tetra-black shadow */
    transition: transform 0.3s ease;
}

.broker-avatar:hover {
    transform: scale(1.05);
}

.broker-basic-info {
    flex-grow: 1;
    min-width: 0;
}

.broker-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #293E46;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.broker-position {
    font-size: 0.875rem;
    color: #293E46;
    margin: 0;
    font-style: italic;
    font-weight: 400;
}

.broker-contact__details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
}
.broker-contact__details a {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}
.broker-contact__details a:hover {
    background: rgba(108, 72, 110, 0.05);
    transform: translateX(2px);
}
.broker-contact__item {
    display: flex;
    align-items: center;
}




.broker-email svg,
.broker-phone svg,
.broker-linkedin svg {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Responsive Design */
@media (max-width: 767px) {
    .c-tenant-representation__container {
        padding: 0 0.75rem;
    }
    
    .c-tenant-representation__trigger {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .tenant-name {
        font-size: 1.125rem;
    }
    
    .tenant-details__content {
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .tenant-details__header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .tenant-details__logo {
        margin: 0 auto;
    }
    
    .brokers-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .broker-card__header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .broker-contact__details {
        align-items: stretch;
    }
    
    .tenant-arrow {
        width: 36px;
        height: 36px;
    }
}

/* Enhanced animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.tenant-details__content > * {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.tenant-details__header {
    animation-delay: 0.1s;
}

.tenant-details__brokers {
    animation-delay: 0.2s;
}

.broker-contact__card {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.broker-contact__card:nth-child(2) {
    animation-delay: 0.1s;
}

.broker-contact__card:nth-child(3) {
    animation-delay: 0.2s;
}

.broker-contact__card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Focus states for accessibility */
.c-tenant-representation__trigger:focus-visible {
   outline: 0; 
}

.broker-contact__item a:focus-visible {
    outline: 2px solid #FFFFFF; 
    outline-offset: 2px;
    border-radius: 6px;
}

.broker-contact__item a:hover {
    color: #fff !important;
}

/* Loading state */
.c-tenant-representation.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Enhanced hover effects */
.c-tenant-representation__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 30, 45, 0.15); /* tetra-black with opacity */
}

/* Smooth scrolling anchor */
.c-tenant-representation__item[data-tenant] {
    scroll-margin-top: 2rem;
}

/* Responsive A-Z Index */
@media (max-width: 768px) {
    .c-tenant-az-index {
        margin-bottom: 1.5rem;
        padding: 0.75rem;
    }
    
    .az-index-container {
        gap: 0.25rem;
    }
    
    .az-index-letter {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .az-index-container {
        gap: 0.125rem;
    }
    
    .az-index-letter {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}
