:root {
    --primary-color: #1a5f7a;
    --secondary-color: #159895;
    --accent-color: #57c5b6;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.search-bar {
    flex-grow: 1;
    margin: 0 20px;
}

.search-bar input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
}

.user-actions a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
}

.container {
    display: flex;
    height: calc(100vh - 60px);
}

#map {
    flex: 3;
    height: 100%;
}

.listings-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: var(--white);
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
}

.featured-service {
    background-color: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-service h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 24px;
}

.featured-service .featured-label {
    background-color: var(--accent-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.listings {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

.listing {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.listing:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.listing h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

.listing p {
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 14px;
}

.listing .rating {
    color: #f39c12;
    margin-bottom: 8px;
}

.filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.filter-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--secondary-color);
}

.listing-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.action-btn i {
    margin-right: 5px;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
}

.business-image {
    width: 100%;
    height: 250px;
    background-color: #eee;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #666;
    border-radius: 8px;
    overflow: hidden;
}

.business-details h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.business-details p {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.6;
}

.business-details .icon {
    margin-right: 10px;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    #map, .listings-container {
        flex: none;
        height: 50vh;
    }
}