/**
 * Mosque Directory Styles
 * Extends the main site styles with directory-specific components
 */

/* Search Section */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    font-size: 0.875rem; 
	font-weight: 600;
    color: #6b7280;
}
    
.breadcrumb a {
    color: #079768;
    text-decoration: none;
}
    
.breadcrumb a:hover {
    text-decoration: underline;
}
    
.breadcrumb span {
    color: #fbbf24;
}

.breadcrumb a::after {
    content: '\005C';
    
}
	
.search-section {
    margin-bottom: 3rem;
}

.section-header.directory-header {
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    row-gap: 0.75rem;
}

.section-header.directory-header .header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header.directory-header .submit-mosque-action {
    margin-left: auto;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.15);
    color: #079768;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.section-header.directory-header .submit-mosque-action:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #079768;
}

@media (max-width: 640px) {
    .section-header.directory-header .submit-mosque-action {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
}

.search-container {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mosque-search-form {
    max-width: 800px;
    margin: 0 auto;
}

.search-row {
    margin-bottom: 1.5rem;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
	overflow: hidden;
}

.search-input-group input {
    flex: 1;
    padding: 1rem 0.5rem 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px 0 0 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.search-input-group input:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.search-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    border: none;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.search-btn:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-2px);
}

.filters-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.filters-row select {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.filters-row select:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.facility-filter-toggle {
    padding: 0.75rem 1.5rem;
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border: 2px solid #059669;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.facility-filter-toggle:hover {
    background: #059669;
    color: white;
    transform: translateY(-2px);
}

.facilities-filter {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(5, 150, 105, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.facilities-filter h4 {
    margin-bottom: 1rem;
    color: #059669;
    font-weight: 600;
}

.facility-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.facility-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.facility-checkboxes label:hover {
    background: rgba(5, 150, 105, 0.1);
}

.facility-checkboxes input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #059669;
}

.facility-checkboxes i {
    color: #059669;
    font-size: 0.9rem;
}

/* Featured Section */
.featured-section {
    margin-bottom: 3rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Mosque Cards */
.mosque-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.mosque-card {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    border: 3px solid rgb(241, 192, 46);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}

.mosque-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
   /*  background: linear-gradient(90deg, #059669, #047857);*/
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mosque-card:hover::before {
    opacity: 1;
}

.mosque-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.mosque-card.featured {
    border: 2px solid rgba(5, 150, 105, 0.3);
}

.mosque-card.featured::after {
    content: '\f005';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.mosque-card-header {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mosque-card-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.mosque-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mosque-card:hover .mosque-card-image img {
    transform: scale(1.1);
}

.mosque-card-title {
    flex: 1;
    min-width: 0;
}

.mosque-card-title h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.mosque-card-title h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mosque-card-title h3 a:hover {
    color: #059669;
}

.mosque-capacity {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #6b7280;
    background: rgba(107, 114, 128, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.mosque-card-content {
    padding: 1.5rem;
}

.mosque-address {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

.mosque-address i {
    color: #059669;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.mosque-jumuah {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(5, 150, 105, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(5, 150, 105, 0.4);
}

.mosque-jumuah strong {
    color: #059669;
    display: block;
    margin-bottom: 0.25rem;
}

.mosque-jumuah span {
    display: inline-block;
    margin-right: 1rem;
    color: #4b5563;
    font-size: 0.9rem;
}

.mosque-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.facility-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.facility-badge:hover {
    background: #059669;
    color: white;
    transform: translateY(-2px);
}

.facility-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0 0.5rem;
}

.mosque-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(249, 250, 251, 0.5);
}

.mosque-view-details {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mosque-view-details:hover {
    color: #047857;
    transform: translateX(4px);
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

.loading-indicator i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
    color: #fbbf24;
}

/* Results Count */
.results-count {
    font-size: 0.95rem;
    color: #000;
    font-weight: 500;
}

#results-count {
    color: #000;
    font-weight: 600;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination button,
.pagination span {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.9);
    color: #4b5563;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-decoration: none;
}

.pagination button:hover:not(:disabled) {
    background: #059669;
    color: white;
    border-color: #059669;
    transform: translateY(-2px);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .active {
    background: #059669;
    color: white;
    border-color: #059669;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        padding: 1.5rem;
    }

    .filters-row {
        flex-direction: column;
    }

    .filters-row select,
    .facility-filter-toggle {
        width: 100%;
    }

    .facility-checkboxes {
        grid-template-columns: 1fr;
    }

    .mosque-directory-grid,
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .mosque-card-header {
        padding: 1rem;
    }

    .mosque-card-content {
        padding: 1rem;
    }

    .mosque-card-image {
        width: 60px;
        height: 60px;
    }

    .mosque-card-title h3 {
        font-size: 1.1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mosque-card {
    animation: fadeInUp 0.6s ease-out;
}

.mosque-card:nth-child(1) {
    animation-delay: 0.1s;
}

.mosque-card:nth-child(2) {
    animation-delay: 0.2s;
}

.mosque-card:nth-child(3) {
    animation-delay: 0.3s;
}

.mosque-card:nth-child(4) {
    animation-delay: 0.4s;
}

.mosque-card:nth-child(5) {
    animation-delay: 0.5s;
}

.mosque-card:nth-child(6) {
    animation-delay: 0.6s;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.no-results i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
    display: block;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Mosque Submission Form Styles */
.submission-section {
    margin-bottom: 3rem;
}

.mosque-submission-form {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 100%;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: #059669;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.form-group label {
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.form-group select {
    appearance: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1rem;
    width: 100%;
}

.custom-facilities {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #e5e7eb;
    max-width: 80%;
}

.custom-facilities-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.facility-item:hover {
    border-color: #059669;
    background: rgba(5, 150, 105, 0.05);
}

.facility-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #059669;
}

.facility-item i {
    color: #059669;
    font-size: 1.2rem;
}

.facility-item span {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.prayer-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #047857, #059669);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.btn-secondary:hover {
    background: #4b5563;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.form-note {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(107, 114, 128, 0.05);
    border-radius: 8px;
    border-left: 4px solid #6b7280;
}

.form-note p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Success Section */
.success-section {
    text-align: center;
    padding: 0 2rem;
}

.success-container {
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    color: #fbbf24;
    margin-bottom: 2rem;
}

.success-section h2 {
    font-size: 2rem;
    color: #079768;
    margin-bottom: 1rem;
}

.success-section p {
    font-size: 1.1rem;
    color: #079768;
    margin-bottom: 1.5rem;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Error Message */
.error-message {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fed8d8;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.error-message ul {
    margin: 0;
    padding-left: 1.5rem;
}

.error-message li {
    margin-bottom: 0.25rem;
}

.error-message li:last-child {
    margin-bottom: 0;
}

/* Responsive Form Styles */
@media (max-width: 768px) {
    .mosque-submission-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .facilities-grid {
        grid-template-columns: 1fr;
    }

  /*  .prayer-times-grid {
        grid-template-columns: repeat(2, 1fr);
    }  */

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .success-actions {
        flex-direction: column;
        align-items: center;
    }

    .success-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 380px) {
    .submission-section {
        overflow-x: clip;
    }

    .mosque-submission-form {
        padding: 1rem;
        border-radius: 12px;
    }

    .form-section h3 {
        font-size: 1.1rem;
        flex-wrap: wrap;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.625rem 0.75rem;
        font-size: 16px;
    }

    .form-group small {
        font-size: 0.8125rem;
    }

    .facilities-grid,
    .prayer-times-grid {
        grid-template-columns: 1fr;
    }

    .facility-item {
        padding: 0.75rem;
    }

    .custom-facilities {
        max-width: 100%;
    }

    .form-actions .btn {
        padding: 0.875rem 1rem;
        font-size: 1rem;
    }
}

/* Mosque Detail Page Enhancements */
.automatic-prayer-times {
    margin-top: 1rem;
}

.prayer-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(5, 150, 105, 0.05);
    border: 1px solid rgba(5, 150, 105, 0.1);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    color: #059669;
    font-weight: 500;
}

.next-prayer-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(5, 150, 105, 0.05);
    border: 1px solid rgba(5, 150, 105, 0.1);
    border-radius: 12px;
    text-align: center;
}

.next-prayer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.next-prayer-label {
    font-weight: 500;
    color: #e9e9e9;
}

.next-prayer-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.countdown-display {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    background: rgba(5, 150, 105, 0.1);
    padding: 0.75rem 0.5rem 0.75rem 1.75rem;
    border-radius: 8px;
    border: 2px solid rgba(5, 150, 105, 0.2);
}

@media (max-width: 768px) {
    .next-prayer-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .countdown-display {
        font-size: 1.25rem;
    }
}

/* Lightbox Styles */
.media-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-media-container {
    position: relative;
    max-width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image,
.lightbox-video {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lightbox-video {
    max-height: 60vh;
}

.lightbox-caption {
    margin-top: 1rem;
    text-align: center;
    color: white;
}

.lightbox-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(93, 87, 87, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    pointer-events: all;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.lightbox-prev:disabled:hover,
.lightbox-next:disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
}

/* Make gallery items clickable */
.gallery-item {
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .lightbox-close {
        top: -50px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .lightbox-image,
    .lightbox-video {
        max-height: 60vh;
    }
    
    .lightbox-navigation {
        padding: 0 0.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-title {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 98vw;
        max-height: 98vh;
    }
    
    .lightbox-image,
    .lightbox-video {
        max-height: 50vh;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Sort Controls */
.sort-controls {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.sort-toggle {
    background: linear-gradient(135deg, rgb(30, 175, 168), rgb(62, 163, 48));
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

.sort-toggle:hover {
    background: linear-gradient(135deg, rgb(30, 175, 168), rgb(62, 163, 48));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4);
}

.sort-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    min-width: 160px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.sort-option {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: white;
    color: #374151;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    white-space: nowrap;
    text-align: left;
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option:hover {
    background: #f9fafb;
    color: #1e40af;
}

.sort-option i {
    width: 16px;
    text-align: center;
}

/* Distance Display */
.mosque-distance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #059669;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(5, 150, 105, 0.05); 
    border-radius: 6px;
    border: 1px solid rgba(5, 150, 105, 0.4);
    margin-bottom: 25px;
}

.mosque-distance i {
    font-size: 0.75rem;
}



/* Responsive adjustments for sort controls */
@media (max-width: 768px) {
    .filters-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .sort-controls {
        order: -1;
        width: 100%;
    }
    
    .sort-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .sort-dropdown {
        left: 0;
        right: auto;
    }
}


@media (max-width: 450px) {
    .search-input-group input {
        max-width: 80%;
    }
}
