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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #222;
    background-color: #fff;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    padding: 0 80px;
    z-index: 1000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1760px;
    margin: 0 auto;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: #ff385c;
    text-decoration: none;
    cursor: pointer;
}

.search-container {
    flex: 1;
    max-width: 850px;
    margin: 0 40px;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 40px;
    padding: 8px 8px 8px 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.search-bar:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.search-bar.focused {
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

.search-divider {
    width: 1px;
    height: 24px;
    background: #ddd;
    margin: 0 16px;
}

.search-item {
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
}

.search-item-label {
    font-size: 12px;
    font-weight: 400;
    color: #717171;
    display: block;
}

.search-icon {
    background: #ff385c;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

.search-icon svg {
    width: 16px;
    height: 16px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-item {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    border-radius: 22px;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #f7f7f7;
}

.user-icon {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 5px 5px 12px;
    border: 1px solid #ddd;
    border-radius: 21px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.user-icon:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}

/* Main Content */
.main-container {
    display: flex;
    height: calc(100vh - 80px);
}

.activities-panel {
    flex: 0 0 50%;
    overflow-y: auto;
    padding: 24px 40px;
    background: #fff;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ebebeb;
}

.results-count {
    font-size: 22px;
    font-weight: 600;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #222;
}

.filter-btn.active {
    border-color: #222;
    background: #222;
    color: white;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.activity-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.activity-card:hover {
    transform: translateY(-2px);
}

.activity-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
    background: #f7f7f7;
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.activity-name {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0;
    flex: 1;
}

.activity-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
}

.activity-rating svg {
    width: 14px;
    height: 14px;
    fill: #ff385c;
}

.activity-type {
    font-size: 14px;
    color: #717171;
    text-transform: capitalize;
}

.activity-address {
    font-size: 14px;
    color: #717171;
}

.activity-price {
    font-size: 14px;
    color: #222;
    font-weight: 600;
    margin-top: 4px;
}

/* Map Panel */
.map-panel {
    flex: 0 0 50%;
    position: relative;
    border-left: 1px solid #ebebeb;
}

#map {
    width: 100%;
    height: 100%;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    font-size: 16px;
    color: #717171;
}

.error {
    padding: 24px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    margin: 16px 0;
}

/* Search Modal */
.search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
}

.search-input-group {
    margin-bottom: 24px;
}

.search-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #222;
}

.search-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.search-input-group input:focus {
    outline: none;
    border-color: #222;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #222;
    color: white;
}

.btn-primary:hover {
    background: #000;
}

.btn-secondary {
    background: white;
    color: #222;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    border-color: #222;
}

@media (max-width: 1128px) {
    .activities-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 24px;
    }
}

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

    .activities-panel {
        flex: 0 0 60%;
    }

    .map-panel {
        flex: 0 0 40%;
    }

    .header {
        padding: 0 24px;
    }

    .search-container {
        margin: 0 16px;
    }

    .search-item-label {
        display: none;
    }
}

