/* Synagogue Map Buttons Styling */
.synagogue-map-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.chasadim-map-button {
    display: inline-block;
    padding: 10px 15px;
    text-decoration: none;
    color: #fff; /* White text for contrast */
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    flex-grow: 1; /* Allow buttons to grow and fill space */
    min-width: 150px; /* Minimum width for buttons */
}

.google-maps-button {
    background-color: #4285F4; /* Google Maps blue */
}

.google-maps-button:hover {
    background-color: #357ae8;
}

.waze-button {
    background-color: #30B4FF; /* Waze light blue */
}

.waze-button:hover {
    background-color: #269edc;
}

/* Star Rating Styling for Comments */
.comment-form-rating .comment-rating-stars {
    direction: rtl; /* Stars for right-to-left languages */
    display: inline-block;
}

.comment-form-rating .comment-rating-stars input[type="radio"] {
    display: none; /* Hide the actual radio buttons */
}

.comment-form-rating .comment-rating-stars label {
    color: #ccc; /* Default star color */
    cursor: pointer;
    font-size: 2em; /* Size of the stars */
    padding: 0 5px;
    display: inline-block;
    transition: color 0.2s ease;
}

.comment-form-rating .comment-rating-stars label:before {
    content: '☆'; /* Empty star character */
}

.comment-form-rating .comment-rating-stars input[type="radio"]:checked ~ label {
    color: #FFD700; /* Filled star color */
}

.comment-form-rating .comment-rating-stars label:hover,
.comment-form-rating .comment-rating-stars label:hover ~ label {
    color: #FFD700; /* Hover effect */
}

/* Displaying stars in list/single page */
.synagogue-box p strong:last-child,
.synagogue-details p strong:last-child {
    display: inline-block; /* To align stars properly */
}

/* Image Display on Single Synagogue Page */
.synagogue-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.synagogue-image-item {
    text-align: center;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.synagogue-image-item img {
    max-width: 200px; /* Adjust as needed */
    height: auto;
    display: block;
    margin: 0 auto 10px;
    border-radius: 3px;
}

.synagogue-image-item h4 {
    margin-top: 0;
    font-size: 0.9em;
    color: #555;
}

/* Basic form styling (if not already present) */
.chasadim-form label {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}
.chasadim-form input[type="text"],
.chasadim-form select,
.chasadim-form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding in width */
}

.chasadim-button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.chasadim-button:hover {
    background-color: #005177;
}

.chasadim-success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.chasadim-message-box {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}