html, body {
	font-family: Arial, sans-serif;
    margin: 5px 10px 10px 10px;
    background-color: #f9f9f9;
    color: #333;
	height: 100%;
	padding: 0;
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
}
.logo {
	font-size: 24px;
	font-weight: bold;
}
.nav-links {
	display: flex;
	gap: 15px;
}
.nav-links a {
	color: #333;
	text-decoration: none;
	padding: 8px 12px;
	border-radius: 4px;
	transition: background-color 0.3s;
}
.nav-links a:hover {
	background-color: #fff;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.form-container {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 20px;
		margin-bottom: 20px;
	}

select, input, button {
	flex: 1;
	min-width: 200px;
	padding: 10px;
	font-size: 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin: 10px;
}



#map {
    height: 60vh;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.grid-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

.grid-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: repeat(2, min-content);
    border-radius: 8px;
    padding: 15px;
    background-color: #fff;
    gap: 20px;
    align-items: start;
    width: 100%;
}

.item-image { 
    grid-area: 1 / 1 / 3 / 2; 
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.item-details { 
    grid-area: 1 / 2 / 2 / 3; 
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0; /* Ensure flex items can shrink */
}

.item-name {
    font-size: 1.5em;
    margin: 0;
}

.item-address {
    font-size: 0.9em;
    color: #555;
    margin: 0;
}

.item-description {
    margin: 5px 0;
}

.item-scores { 
    grid-area: 1 / 3 / 2 / 4; 
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    justify-content: center;
}

.item-tags { 
    grid-area: 2 / 2 / 3 / 4; 
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0; /* Ensure flex items can shrink */
    overflow-wrap: break-word:
}

.tag {
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    white-space: nowrap;
}