/* General container styling for the dealer map and filters */
#wp-dealers-map {
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
}

/* Styling infowindow */
.infowindow-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
}

.infowindow-close-button {
    font-size: 24px !important;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    padding: 0 5px;
}

.infowindow-close-button:hover {
    color: #333;
}

.gm-style-iw {
    border-radius: 0 !important;
    box-shadow: none; /* Optional: remove the default shadow */
}

.gm-style-iw-chr {
    display: none;
}

.infowindow-title {
    font-size: 16px;
    font-weight: 900;
    margin: 0 !important;
    color: #0073aa; /* Customize title color */
}

.infowindow-content {
    font-family: 'Montserrat';
}

.infowindow-text {
    padding-bottom: 5px;
}

.infowindow-text p {
    font-size: 18px;
}

/* Styling for the dealer cards container */
#dealer-cards-container,
#featured-dealer-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: 20px;
    margin-top: 0 !important;
    padding-left: 10%;
    padding-right: 10%;
}

/* Dealer card styling */
.dealer-card {
    flex: 0 1 calc(33.3333% - 20px) !important; /* 3 cards per row */
    box-sizing: border-box;
    border: 1px solid #fff;
    padding: 10px;
    margin-bottom: 20px;
    background-color: #fff;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.dealer-card:hover {
    transform: translateY(-5px);
}

/* Headings within dealer cards */
.dealer-card h3 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 18px;
    color: #1b3071;
    font-weight: bold;
}

/* Paragraphs within dealer cards */
.dealer-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #1b3071;
}

/* Links within dealer cards */
.dealer-card a {
    color: #78a9a9;
    text-decoration: none;
}

.dealer-card a:hover {
    text-decoration: underline;
}

/* Highlighted dealer card styling */
.dealer-card.highlighted {
    background-color: #f0f0f0 !important; /* Light grey background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Slightly more pronounced shadow */
    transform: translateY(-3px); /* Slightly lift the card */
}

/* Filter controls */
#filter_shop,
#filter_service {
    margin-right: 10px;
}

#filter_producer {
    width: 100%;
    max-width: 300px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Center the filter controls (Sklep, Serwis, Producers) */
#filter-container {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    flex-wrap: wrap; /* Allow items to wrap if needed */
    margin-bottom: 0px; /* Space below the filters */
    margin-top: 20px;
}

#filter-container label {
    margin-right: 15px; /* Space between checkboxes */
    display: flex;
    align-items: center; /* Center label text vertically with the checkbox */
    margin-top: 10px;
}

#filter-container select {
    max-width: 300px; /* Limit the width of the dropdown */
    width: auto;
    padding: 5px 25px 5px 5px;
    border: 1px solid #fff;
    border-radius: 0 !important;
    margin-left: 15px; /* Space between checkboxes and the dropdown */
    background-color: #fff;
}

#filter-container select:focus {
    border-radius: 0 !important; /* Remove border-radius when focused */
}

/* Checkbox styling */
input[type="checkbox"] {
    width: 20px; /* Adjust the width */
    height: 20px; /* Adjust the height */
    border-radius: 0px; /* Sharp corners */
    border: 5px solid #fff; /* Border for visibility */
    appearance: none; /* Remove default checkbox styling */
    background-color: #fff; /* Background color */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s ease;
    outline: 1px solid #78a9a9;
}

input[type="checkbox"]:checked {
    background-color: #78a9a9 !important; /* Background when checked */
    border-color: #fff !important; /* Border matches background */
}

input[type="checkbox"]:active {
    background-color: #78a9a9; /* Background when active */
    border-color: #fff !important; /* Border matches background */
}

input[type="checkbox"]:hover {
    background-color: #f0f0f0; /* Background on hover */
}

@media (max-width: 767px) {
	.dealer-card{
		flex:100% !important;
	}
}