/*
 Theme Name:   Elementra Child
 Theme URI:    
 Description:  Tema child di Elementra
 Author:       
 Author URI:   
 Template:     elementra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  elementra-child
*/

/* Aggiungi qui le tue personalizzazioni CSS */

/* ========================================
   Stili per la ricerca farmacie
   ======================================== */

.farmacie-search-container {
	margin: 20px 0;
	font-family: 'Gantari', sans-serif;
}

.farmacie-search-form {
	margin-bottom: 30px;
	padding: 20px;
	background: #D8FDF0;
	border-radius: 8px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.farmacie-search-form input[type="text"] {
	flex: 1;
	min-width: 300px;
	padding: 12px 15px;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
}

.farmacie-search-form input[type="text"]:focus {
	outline: none;
	border-color: #089551;
}

.farmacie-search-buttons {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.farmacie-search-form button {
	padding: 12px 30px;
	background: #089551;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.3s;
	white-space: nowrap;
	font-family: inherit;
}

.farmacie-search-form button:hover {
	background: #067341;
}

.farmacie-search-form button.reset-btn {
	background: #6c757d;
}

.farmacie-search-form button.reset-btn:hover {
	background: #5a6268;
}

.farmacie-search-form button.geolocation-btn {
	background: #F32935;
	padding: 12px;
	min-width: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.farmacie-search-form button.geolocation-btn:hover {
	background: #C41E28;
}

.farmacie-search-form button.geolocation-btn:disabled {
	background: #6c757d;
	cursor: not-allowed;
	opacity: 0.6;
}

.farmacie-search-form button .geo-icon {
	width: 16px;
	height: 16px;
	margin: 0;
	vertical-align: middle;
	display: inline-block;
}

.farmacie-search-form button .geo-icon.loading {
	width: auto;
	height: auto;
	font-size: 18px;
}

.farmacie-loading,
.farmacie-error {
	padding: 40px 20px;
	text-align: center;
	font-size: 16px;
	color: #666;
}

.farmacie-error {
	color: #dc3545;
}

.farmacie-loading p::after {
	content: '...';
	animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
	0%, 20% { content: '.'; }
	40% { content: '..'; }
	60%, 100% { content: '...'; }
}

.farmacie-table-wrapper {
	overflow-x: auto;
	margin-top: 20px;
}

.farmacie-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.farmacie-table thead {
	background: #089551;
}

.farmacie-table thead th {
	color: white;
	padding: 15px;
	text-align: left;
	font-weight: bold;
	font-size: 14px;
	text-transform: uppercase;
}

.farmacie-table tbody tr {
	border-bottom: 1px solid #eee;
	transition: background 0.2s;
}

.farmacie-table tbody tr:hover {
	background: #f9f9f9;
}

.farmacie-table tbody td {
	padding: 15px;
	vertical-align: top;
}

.servizio-badge {
	display: inline-block;
	background: #F32935;
	color: white;
	font-weight: bold;
	padding: 6px 12px;
	margin: 3px;
	border-radius: 4px;
	font-size: 12px;
	white-space: nowrap;
}

.no-results {
	padding: 40px;
	text-align: center;
	color: #666;
	font-size: 16px;
}

.farmacie-search-message {
	padding: 30px;
	text-align: center;
	background: #f9f9f9;
	border-radius: 8px;
	border-left: 4px solid #089551;
	margin-top: 20px;
}

.farmacie-search-message p {
	margin: 0;
	color: #666;
	font-size: 16px;
	line-height: 1.6;
}

/* Selettore numero elementi per pagina */
.farmacie-per-page-selector {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
	padding: 10px;
	background: #f9f9f9;
	border-radius: 4px;
}

.farmacie-per-page-selector label {
	font-weight: 600;
	color: #333;
	margin: 0;
}

.farmacie-per-page-selector select {
	padding: 8px 12px;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: white;
	cursor: pointer;
	transition: border-color 0.3s;
}

.farmacie-per-page-selector select:focus {
	outline: none;
	border-color: #089551;
}

.farmacie-results-info {
	color: #666;
	font-size: 14px;
	margin-left: auto;
}

/* Paginazione */
.farmacie-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 30px;
	padding: 20px 0;
	flex-wrap: wrap;
}

.pagination-btn {
	padding: 10px 20px;
	background: #089551;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
}

.pagination-btn:hover:not(.disabled) {
	background: #067341;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(8, 149, 81, 0.3);
}

.pagination-btn.disabled {
	background: #ccc;
	cursor: not-allowed;
	opacity: 0.6;
}

.pagination-numbers {
	display: flex;
	align-items: center;
	gap: 5px;
}

.pagination-number {
	min-width: 40px;
	height: 40px;
	padding: 8px 12px;
	background: white;
	color: #333;
	border: 2px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
}

.pagination-number:hover {
	background: #f0f0f0;
	border-color: #089551;
	color: #089551;
}

.pagination-number.active {
	background: #089551;
	color: white;
	border-color: #089551;
	cursor: default;
}

.pagination-dots {
	padding: 0 8px;
	color: #999;
	font-weight: bold;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
	.farmacie-search-form {
		flex-direction: column;
		align-items: stretch;
	}
	
	.farmacie-search-form input[type="text"] {
		width: 100%;
		min-width: auto;
	}
	
	.farmacie-search-buttons {
		width: 100%;
	}
	
	.farmacie-search-form button {
		flex: 1;
	}
	
	.farmacie-per-page-selector {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.farmacie-results-info {
		margin-left: 0;
	}
	
	.farmacie-table {
		font-size: 14px;
	}
	
	.farmacie-table thead {
		display: none;
	}
	
	.farmacie-table tbody tr {
		display: block;
		margin-bottom: 15px;
		border: 1px solid #ddd;
		border-radius: 8px;
		padding: 10px;
	}
	
	.farmacie-table tbody td {
		display: block;
		padding: 8px 10px;
		text-align: left;
		border: none;
	}
	
	.farmacie-table tbody td:before {
		content: attr(data-label);
		font-weight: bold;
		display: block;
		margin-bottom: 5px;
		color: #089551;
	}
	
	.farmacie-pagination {
		gap: 5px;
	}
	
	.pagination-btn {
		padding: 8px 15px;
		font-size: 12px;
	}
	
	.pagination-number {
		min-width: 35px;
		height: 35px;
		padding: 6px 10px;
		font-size: 12px;
	}
}
