/* Hero section avec fond spécifique à la carte */
.header-section {
	margin-bottom: 0 !important;	
	background: url('../img/carte.webp') center center / cover no-repeat;
	padding: 1.5rem 0 1rem 0;
}


/* Supprime également le margin-bottom de la navbar */
.desktop-nav-container {
	margin-bottom: 0 !important;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
}

#map {
	height: 100% !important;
	width: 100%;
	margin: 0;
	padding: 0;
	z-index: 1;
}

/* Ajustement pour mobile */
@media (max-width: 768px) {
	#map {
		height: calc(100vh - 140px); /* Hauteur ajustée pour mobile */
	}
}

.leaflet-control-attribution.leaflet-control{
	display: none;
}

/* ========================================
   STYLES POUR LA RECHERCHE DE VILLE
   ======================================== */

/* Contrôle de recherche sur la carte */
.leaflet-control-city-search {
	background: white;
	border-radius: 4px;
	border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
	margin-top: 10px;
}

.city-search-btn {
	background: white;
	border: none;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease;
}

.city-search-btn:hover {
	background-color: #f8f9fa;
}

.city-search-btn i {
	font-size: 16px;
	color: #333;
}

/* Styles pour le modal de recherche */
.search-results {
	position: relative;
	background: white;
	border: 1px solid #ddd;
	border-radius: .375rem;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	max-height: 200px;
	overflow-y: auto;
	display: none;
	margin-top: 10px;
}

.search-result-item {
	padding: 10px 15px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
	display: flex;
	align-items: center;
	gap: 10px;
	transition: background-color 0.2s ease;
}

.search-result-item:last-child {
	border-bottom: none;
}

.search-result-item:hover {
	background-color: #f8f9fa;
}

.search-result-item i {
	color: var(--primary-color);
	font-size: 14px;
}

.search-result-item span {
	font-size: 14px;
	color: #333;
}

.search-result-item:not([data-lat]) {
	pointer-events: none;
	color: #666;
	font-style: italic;
}

/* Marqueur de ville recherchée */
.city-marker {
	width: 30px;
	height: 30px;
	background-color: #dc3545;
	border: 2px solid white;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.city-marker i {
	color: white;
	font-size: 16px;
	transform: rotate(45deg);
}

/* Styles pour le champ de recherche dans le modal */
#citySearch {
	border-radius: .375rem 0 0 .375rem;
	border-right: none;
}

#searchBtn {
	border-radius: 0 .375rem .375rem 0;
	border-left: none;
}

#citySearch:focus {
	box-shadow: none;
	border-color: var(--primary-color);
}

/* ========================================
   STYLES LEAFLET (CARTE INTERACTIVE)
   ======================================== */
.leaflet-popup-content { 
    width: 300px !important; 
    margin: 0 !important; 
}

.popup-img { 
    object-fit: cover; 
    height: 120px; 
    width: 100%; 
    border-radius: .375rem 0 0 .375rem; 
    display: block;
}

.leaflet-container a.leaflet-popup-close-button {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: background-color 0.2s ease;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    background-color: var(--primary-light);
    color: white;
}

/* ========================================
   MARQUEURS ET ÉMOJIS
   ======================================== */
.emoji-marker {
    font-size: 24px;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.emoji-marker:hover {
    transform: scale(1.3);
}

.custom-marker {
    width: 30px;
    height: 30px;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.custom-marker img {
    width: 16px;
    height: 16px;
}

body {
    margin: 0;
    padding: 0;
} 

.parc-card .col-5 {
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* ========================================
   STYLES POUR LES PARCS PROCHES
   ======================================== */

.nearby-parks-container {
	max-height: 400px;
	overflow-y: auto;
}

.nearby-park-item {
	background-color: #f8f9fa;
	border: 1px solid #dee2e6 !important;
	transition: all 0.2s ease;
}

.nearby-park-item:hover {
	background-color: #e9ecef;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nearby-park-item img {
	max-height: 60px;
	object-fit: cover;
}

.nearby-park-item .btn {
	white-space: nowrap;
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.nearby-park-item .btn:hover {
	background-color: var(--primary-dark, #0056b3);
	border-color: var(--primary-dark, #0056b3);
}

/* Responsive pour les parcs proches */
@media (max-width: 480px) {
	.nearby-park-item .col-3:first-child {
		flex: 0 0 25%;
		max-width: 25%;
	}
	
	.nearby-park-item .col-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
	
	.nearby-park-item .col-3:last-child {
		flex: 0 0 25%;
		max-width: 25%;
	}
	
	.nearby-park-item .btn {
		font-size: 0.75rem;
		padding: 0.25rem 0.5rem;
	}
}