/**
 * office Biography Page Styles
 * 
 * URL: /office-bio/{id}/{slug}/
 */

/* Base */
.blok-office-bio {
    width: 100%;
    background-color: #fff;
}

#header {
    background-color: #000 !important;
}

/* Hide map button on office bio page */
.blok-office-bio .blok-card__action-btn--map,
.blok-office-bio .blok-card__action-btn[data-view-on-map] {
    display: none !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.blok-office-hero {
    padding-top: 150px;
    background-color: #ffffff;
    position: relative;
}

.blok-office-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 0; /* Remove gap to allow overlap */
    align-items: flex-start;
}

.blok-office-hero__img {
    flex-shrink: 0;
    position: relative;
    z-index: 2; /* Image on top */
    margin-top: 40px;
}

.blok-office-hero__img img {
    width: 370px;
    height: auto;
    object-fit: cover;
    display: block;
}

.blok-office-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 30px;
    padding-left: 60px; /* 30px overlap + 30px extra padding */
    margin-left: -30px; /* Overlap the image by 30px */
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1; /* Content below image */
    min-height: 600px;
}

.blok-office-hero__btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.blok-office-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    background: none;
}

.blok-office-hero__btn--primary {
    background-color: var(--brand-color-1);
    color: #fff;
    border-color: var(--brand-color-1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.blok-office-hero__btn--primary::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transition: top 0.4s ease;
    z-index: -1;
}

.blok-office-hero__btn--primary:hover {
    color: #000;
    border-color: #000;
    border-width: 1px;
}

.blok-office-hero__btn--primary:hover::before {
    top: 0;
}

.blok-office-hero__btn--secondary {
    background-color: #fff;
    color: #333;
    border-color: #000;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.4s ease;
}

.blok-office-hero__btn--secondary::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brand-color-1);
    transition: top 0.4s ease;
    z-index: -1;
}

.blok-office-hero__btn--secondary:hover {
    color: #fff;
    border-color: var(--brand-color-1);
}

.blok-office-hero__btn--secondary:hover::before {
    top: 0;
}

.blok-office-hero__btn svg {
    flex-shrink: 0;
}

.blok-office-hero__info {
    display: flex;
    flex-direction: column;
}

.blok-office-hero__info h1 {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    color: #000;
    line-height: 1.2;
}

.blok-office-hero__designation {
    font-size: 16px;
    font-weight: 600;
    color: var(--brand-color-3);
}

.blok-office-hero__company-branch {
    font-size: 16px;
    color: var(--second-color);
    font-weight: 400;
    margin-top: -4px;
}

.blok-office-hero__contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blok-office-hero__social-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.blok-office-hero__social-link {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--brand-color-1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.blok-office-hero__social-link:hover {
    background-color: var(--brand-color-4);
    color: #fff;
}

.blok-office-hero__social-link svg {
    width: 22px;
    height: 22px;
}

.blok-office-show-phone {
    display: flex;
    align-items: center;
    gap: 15px;
}

.blok-card-show-phone-number {
    padding: 0;
    background: none;
    color: var(--brand-color-1);
    border: none;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: underline;
}

.blok-card-show-phone-number:hover {
    color: var(--brand-color-4);
}

.blok-card-number {
    font-size: 16px;
    font-weight: 400;
}

.blok-card-number a {
    color: var(--brand-color-4);
    text-decoration: none;
}

.blok-card-number a:hover {
    color: var(--brand-color-1);
    text-decoration: underline;
}

/* Office Social Media Links - Match agent bio styling */
.blok-office-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.blok-office-socials li {
    list-style: none;
}

.blok-office-socials a {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--brand-color-1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.blok-office-socials a:hover {
    background-color: var(--brand-color-4);
    color: var(--brand-color-2);
}

.blok-office-socials svg {
    width: 22px;
    height: 22px;
}

.blok-office-hero__save {
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.blok-office-hero__save-link {
    color: var(--brand-color-1);
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.blok-office-hero__save-link:hover {
    color: var(--brand-color-4);
}

/* About Section */
.blok-office-about {
    padding: 20px 0;
}

.blok-office-about .container {
    display: flex;
    flex-direction: column;
}

.blok-office-about__bio {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    width: 100%;
    display: block;
}

.blok-office-about__bio p {
    margin-bottom: 1em;
}

.blok-office-about__awards {
    width: 100%;
    display: block;
}

.blok-office-about__awards h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-color-3);
}

.blok-office-awards-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blok-office-awards-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 1.125rem;
    color: #555;
}

.blok-office-awards-list li:last-child {
    border-bottom: none;
}

/* Listings Section */
.blok-office-listings {
    padding-top: 60px;
    background-color: #fff;
}

.blok-office-listings .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blok-office-listings__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blok-office-listings__header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--brand-color-3);
}

.blok-office-listings__view-all {
    font-size: 1rem;
    font-weight: 600;
    color: #004f71;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #004f71;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.blok-office-listings__view-all:hover {
    background-color: #004f71;
    color: white;
}

.blok-office-listings__placeholder {
    padding: 60px;
    background-color: white;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
}

.blok-office-listings__placeholder p {
    font-size: 1.125rem;
    color: #666;
    margin: 10px 0;
}

/* Hide map and quick search bar within office listings section */
.blok-office-listings .blok-map-page__filters {
    display: none !important;
}

.blok-office-listings .blok-map__sidebar {
    display: none !important;
}

.blok-office-listings .blok-map__toggle {
    display: none !important;
}

/* Hide sort dropdown and subtitle on office bio page */
.blok-office-listings .blok-map__sort {
    display: none !important;
}

.blok-office-listings .blok-map__subtitle {
    display: none !important;
}

.blok-office-listings .blok-map__masthead {
    display: none !important;
}

.blok-office-listings .blok-map__toolbar-actions {
    display: none !important;
}

/* Hide the map container completely */
.blok-office-listings .blok-map__map,
.blok-office-listings [data-map-container],
.blok-office-listings .blok-map__canvas,
.blok-office-listings #blok-map {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

/* Ensure listings results take full width and centered */
.blok-office-listings .blok-map__main {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Adjust the inner container to single column layout */
.blok-office-listings .blok-map__inner {
    display: block !important;
    grid-template-columns: 1fr !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.blok-office-listings .blok-map__content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Allow the listings grid to breathe */
.blok-office-listings .blok-map__results {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    flex: 1 1 auto !important; /* Override any flex constraints */
}

/* Override desktop flex behavior */
@media (min-width: 1024px) {
    .blok-office-listings .blok-map__results {
        flex: 1 1 auto !important;
        max-width: 100% !important;
    }
}

/* Ensure cards grid maintains proper 3-column layout */
.blok-office-listings .blok-map__cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
}

/* Responsive: 2 columns on tablets */
@media (max-width: 1023px) {
    .blok-office-listings .blok-map__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 640px) {
    .blok-office-listings .blok-map__cards {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile: Vertical scrolling for listings */
@media (max-width: 768px) {
    .blok-office-listings {
        max-height: 800px; /* Limit section height */
        overflow: hidden;
    }
    
    .blok-office-listings .blok-map__results {
        max-height: 700px; /* Scrollable area height */
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        padding-right: 10px;
    }
    
    .blok-office-listings .blok-map__cards {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Add scroll indicator at bottom */
    .blok-office-listings .blok-map__results::after {
        content: '';
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: linear-gradient(to top, rgba(255,255,255,0.95), rgba(255,255,255,0));
        pointer-events: none;
        display: block;
        margin-top: -40px;
    }
    
    /* Custom scrollbar styling */
    .blok-office-listings .blok-map__results::-webkit-scrollbar {
        width: 8px;
    }
    
    .blok-office-listings .blok-map__results::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .blok-office-listings .blok-map__results::-webkit-scrollbar-thumb {
        background: #a4c639;
        border-radius: 4px;
    }
    
    .blok-office-listings .blok-map__results::-webkit-scrollbar-thumb:hover {
        background: #8fb327;
    }
}

/* Contact Section */
.blok-office-contact {
    padding-bottom: 60px;
}

.blok-office-contact .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blok-office-contact h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--brand-color-3);
    max-width: 1000px;
    margin: 30px auto;
}

.blok-office-contact-form {
    max-width: 1000px;
    margin: 0 auto;
}

.blok-form-main-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    align-items: stretch;
}

.blok-form-left {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blok-form-right {
    flex: 1;
    display: flex;
}

.blok-form-right .blok-form-field {
    flex: 1;
    display: flex;
}

.blok-form-section {
    margin-bottom: 20px;
}

.blok-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.blok-form-row:last-child {
    margin-bottom: 0;
}

.blok-form-field {
    flex: 1;
}

.blok-textarea-full {
    flex: 1;
    height: 100%;
    min-height: auto;
    resize: none;
}

.blok-input-field {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background-color: #fff;
}

.blok-input-field:focus {
    outline: none;
    border-color: #004f71;
}

.blok-input-field::placeholder {
    color: #999;
}

select.blok-input-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

textarea.blok-input-field {
    resize: vertical;
    min-height: 120px;
}

.blok-form-field--checkbox {
    margin-bottom: 20px;
}

.blok-checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    gap: 10px;
}

.blok-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
}

.blok-form-extras {
    margin-top: 30px;
}

.blok-form-policy,
.blok-form-captcha-policy {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.blok-form-captcha-policy a {
    color: var(--brand-color-1);
    text-decoration: none;
}

.blok-form-captcha-policy a:hover {
    color: var(--brand-color-4);
    text-decoration: underline;
}

.blok-form-button-group {
    margin-top: 20px;
}

.blok-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.blok-button--primary {
    background-color: var(--brand-color-1);
    color: white;
}

.blok-button--primary:hover {
    background-color: var(--brand-color-4);
    color: white;
}

/* Error State */
.blok-office-bio--error {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blok-office-bio__error {
    text-align: center;
    padding: 40px;
}

.blok-office-bio__error h1 {
    font-size: 2.5rem;
    color: #d32f2f;
    margin-bottom: 20px;
}

.blok-office-bio__error p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 968px) {
    .blok-office-hero .container {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }
    
    .blok-office-hero__img {
        z-index: 2;
        margin-bottom: -30px; /* Overlap content below by 30px */
    }
    
    .blok-office-hero__img img {
        width: 300px;
    }
    
    .blok-office-hero__content {
        width: 100%;
        max-width: 600px;
        margin-left: 0; /* Remove desktop overlap */
        padding: 60px 30px 30px 30px; /* Add top padding to account for image overlap */
    }
}

@media (max-width: 768px) {
    .blok-office-hero {
        padding: 40px 0;
    }
    
    .blok-office-hero .container {
        padding: 0 20px;
    }
    
    .blok-office-hero__img img {
        width: 100%;
        max-width: 300px;
    }
    
    .blok-office-hero__info h1 {
        font-size: 28px;
    }
    
    .blok-office-hero__btns {
        flex-direction: column;
    }
    
    .blok-office-hero__btn {
        width: 100%;
        justify-content: center;
    }
    
    .blok-office-about,
    .blok-office-listings,
    .blok-office-contact {
        padding: 40px 0;
    }
    
    .blok-office-listings__header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .blok-form-main-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .blok-form-left {
        flex: 1;
        width: 100%;
    }
    
    .blok-textarea-full {
        min-height: 150px;
    }
    
    .blok-form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .blok-office-hero__img img {
        width: 100%;
        max-width: 250px;
    }
    
    .blok-office-hero__info h1 {
        font-size: 24px;
    }
    
    .blok-office-listings__placeholder {
        padding: 40px 20px;
    }
}

/* Share Modal */
.blok-office-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.blok-office-modal.active {
    display: flex;
}

.blok-office-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
    color: var(--brand-color-4);
    z-index: 1;
}

.blok-office-modal-close:hover {
    opacity: 0.7;
}

.blok-office-modal-close svg {
    width: 24px;
    height: 24px;
}

.blok-office-modal-content {
    background: white;
    padding: 40px 30px;
    min-width: 400px;
    max-width: 90vw;
    position: relative;
}

.blok-office-modal-content .blok-office-hero__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.blok-office-modal-content .blok-office-hero__info h4 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    color: #000;
    line-height: 1.2;
}

.blok-office-modal-title h5 {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
    margin: 0 0 30px 0;
    text-align: center;
}

.blok-office-modal-social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.blok-office-modal-social-icons a {
    text-decoration: none;
}

.blok-office-modal-social-icon {
    background: white;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blok-office-modal-social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blok-office-modal-dark-icon {
    background: #f5f5f5;
}

.blok-office-modal-dark-icon:hover {
    background: #e8e8e8;
}

#blok-office-bio-main > section.blok-office-listings > div > main {
    padding: 0px;
}

@media (max-width: 640px) {
    .blok-office-modal-content {
        min-width: 90%;
        padding: 30px 20px;
    }
    
    .blok-office-modal-content .blok-office-hero__info h4 {
        font-size: 1.5rem;
    }
    
    .blok-office-modal-title h5 {
        font-size: 0.9rem;
    }
    
    .blok-office-modal-social-icons {
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .blok-office-modal-social-icon {
        padding: 10px;
    }
    
    .blok-office-modal-social-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Valuation Modal */
.blok-valuation-modal-content {
    max-width: 800px !important;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px !important;
}

.blok-valuation-modal-body {
    width: 100%;
}

/* Center align valuation modal header text */
.blok-valuation-modal-body #next {
    text-align: center;
}

.blok-valuation-modal-body #next h2 {
    text-align: center;
}

.blok-valuation-modal-body #next p {
    text-align: center;
}

/* Ensure form inside modal displays properly */
.blok-valuation-modal-body form {
    max-width: 100%;
}

/* Add spacing for modal header with close button */
.blok-valuation-modal .blok-agent-modal-close,
.blok-valuation-modal .blok-office-modal-close {
    top: 10px;
    right: 10px;
}

@media (max-width: 768px) {
    .blok-valuation-modal-content {
        width: 95vw;
        padding: 15px !important;
        max-height: 95vh;
    }
}

/* Office Team Carousel */
.blok-office-team {
    padding: 60px 0;
    background-color: #ffffff;
}

.blok-office-team .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.blok-office-team h2 {
    text-align: left;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--brand-color-3);
}

.blok-office-team-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.blok-office-team-carousel__wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.blok-office-team-carousel__track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.blok-office-team-carousel__track .blok-carousel-item {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
}

.blok-carousel-arrow {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid #a4c639;
    color: #a4c639;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.blok-carousel-arrow:hover:not(:disabled) {
    background-color: #a4c639;
    color: #fff;
}

.blok-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #ccc;
    color: #ccc;
}

.blok-carousel-arrow svg {
    width: 24px;
    height: 24px;
}

/* Responsive carousel */
@media (max-width: 1024px) {
    .blok-office-team-carousel__track .blok-carousel-item {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 375px) {
    .blok-about-me.about-me {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}


@media (max-width: 768px) {
    .blok-office-team-carousel {
        position: relative;
    }
    
    .blok-office-team-carousel__track .blok-carousel-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .blok-office-team-carousel__track .blok-carousel-item .blok-agentsBox,
    .blok-office-team-carousel__track .blok-carousel-item .bio-card {
        width: 100%;
    }
    
    .blok-office-team-carousel__track .blok-carousel-item .blok-about-me,
    .blok-office-team-carousel__track .blok-carousel-item .about-me {
        width: 100%;
    }
    
    .blok-office-team-carousel__track .blok-carousel-item .blok-about-me-thumbnail,
    .blok-office-team-carousel__track .blok-carousel-item .blok-about-me-thumbnail img {
        width: 100%;
    }
    
    .blok-carousel-arrow {
        position: absolute;
        width: 40px;
        height: 40px;
        background-color: var(--brand-color-1);
        border: 2px solid #fff;
        color: #fff;
        z-index: 100;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .blok-carousel-arrow:hover:not(:disabled) {
        background-color: var(--brand-color-1);
        color: #fff;
    }

    .blok-about-me.about-me {
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .blok-carousel-arrow--prev {
        left: 10px;
    }
    
    .blok-carousel-arrow--next {
        right: 10px;
    }
    
    .blok-carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .blok-office-listings .blok-map__inner {
        padding: 0 !important;
    }

}

/* Listings section scrollable container */
.blok-office-listings .blok-map.blok-map--map-hidden {
    max-height: 800px;
    overflow-y: auto;
    overflow-x: hidden;
}

.blok-agentsBox {
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    margin-bottom: 10px;
}