.avatar {
    width: 60px;
    height: 50px;
    background: #26C6DA;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Modal Overlay */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Modal Content */
.modal-content {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 8% auto;
    padding: 40px;
    width: 90%;
    max-width: 650px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(62, 193, 211, 0.3);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #999;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    color: #3EC1D3;
    background-color: rgba(62, 193, 211, 0.1);
    transform: rotate(90deg);
}

/* Modal Title */
.modal-content h3 {
    margin: 0 0 35px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.modal-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3EC1D3, #5dd5e8);
    border-radius: 2px;
}

/* Actions Container */
.actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Action Cards */
.action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px 25px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(62, 193, 211, 0.1), transparent);
    transition: left 0.5s ease;
}

.action-card:hover::before {
    left: 100%;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(62, 193, 211, 0.25);
    border-color: #3EC1D3;
}

/* Icon Wrapper */
.icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.property-card .icon-wrapper {
    background: linear-gradient(135deg, rgba(62, 193, 211, 0.1), rgba(62, 193, 211, 0.2));
}

.entity-card .icon-wrapper {
    background: linear-gradient(135deg, rgba(62, 193, 211, 0.15), rgba(62, 193, 211, 0.25));
}

.icon-wrapper svg {
    width: 35px;
    height: 35px;
    color: #3EC1D3;
    transition: all 0.4s ease;
}

.action-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, #3EC1D3, #5dd5e8);
}

.action-card:hover .icon-wrapper svg {
    color: white;
}

/* Card Title */
.action-card h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.action-card:hover h4 {
    color: #3EC1D3;
}

/* Card Description */
.action-card p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.action-card:hover p {
    color: #495057;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 15% auto;
        padding: 30px 20px;
        width: 95%;
    }

    .modal-content h3 {
        font-size: 24px;
    }

    .actions {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .action-card {
        padding: 30px 20px;
    }
}

/* Active State */
.action-card:active {
    transform: translateY(-5px) scale(0.98);
}

.actions {
    /* display: flex; */
    justify-content: space-around;
}



.actions .btn {
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

/* Top Map Controls Container */
.map-top-controls {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    /* Center vertically */
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
    pointer-events: none;
    /* Let clicks pass through to map where there are gaps */
}

.map-top-controls>* {
    pointer-events: auto;
    /* Re-enable clicks for controls */
}

/* Search Box in Controls */
.floating-search-box {
    flex: 1;
    max-width: 584px;
    position: relative;
    /* For absolute positioning of the toggle button */
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dfe1e5;
    border-radius: 24px;
    padding: 8px 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.2s;
    height: 48px;
}

.search-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Type Dropdown */
.type-dropdown {
    position: relative;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #dfe1e5;
    height: 24px;
    display: flex;
    align-items: center;
}

.type-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 5px;
}

.type-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 1002;
    padding: 5px 0;
    margin-top: 10px;
}

.type-dropdown-menu.show {
    display: block;
}

.type-dropdown-item {
    padding: 8px 15px;
    cursor: pointer;
    font-size: 14px;
    color: #202124;
    transition: background 0.2s;
}

.type-dropdown-item:hover {
    background-color: #f1f3f4;
}

.type-dropdown-item.active {
    background-color: #e8f0fe;
    color: #1a73e8;
    font-weight: 500;
}

.search-area-btn {
    position: absolute;
    top: 100%;
    /* Position below the search bar */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #dfe1e5;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: none;
    /* Hidden by default */
    align-items: center;
    pointer-events: auto;
    white-space: nowrap;
    z-index: 1001;
    font-weight: 500;
}

.search-area-btn:hover {
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border-color: #3EC1D3;
    color: #3EC1D3;
}

/* Search Type Filters */
.search-type-filters {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.type-filter-btn {
    border: none;
    background: transparent;
    padding: 5px 15px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    color: #5f6368;
    transition: all 0.2s;
}

.type-filter-btn.active {
    background: #3EC1D3;
    color: white;
    font-weight: bold;
}

.type-filter-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
}

/* Map Buttons (Satellite & Location) - Override existing styles if needed */
.satellite-toggle,
.get-me-location {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    color: #5f6368;
    transition: all 0.2s;
    /* Reset absolute positioning if they had it */
    position: static !important;
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
}

.satellite-toggle:hover,
.get-me-location:hover {
    background-color: #f8f9fa;
    color: #202124;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Adjust icon sizes */
.satellite-toggle i,
.get-me-location i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .map-top-controls {
        top: 10px;
        gap: 10px;
        padding: 0 10px;
    }

    .satellite-toggle,
    .get-me-location {
        width: 40px;
        height: 40px;
    }
}
.language-item {
    transition: all 0.2s ease;
}

.language-item:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.language-item.active {
    background-color: #e9f5ff;
    border-color: #007bff;
}