/* Churches Page Styles */

.btn-instagram {
    background: #e1306c;
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-instagram:hover {
    background: #c13584;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4);
}

.btn-instagram i {
    background: none !important;
    background-color: transparent !important;
}

.btn-99 {
    background: #deb212;
    border: none;
    color: #000;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;

}

.btn-99:hover {
    background: #d4a10f;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 200, 20, 0.4);
}

.btn-99 i {
    background: none !important;
    background-color: transparent !important;
}

.btn-uber {
    background: #000000;
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-uber:hover {
    background: #1a1a1a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.btn-uber i {
    background: none !important;
    background-color: transparent !important;
}

.btn-waze {
    background: #357ae8;
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-waze:hover {
    background: #2c6ad8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 170, 0.4);
}

.btn-waze i {
    background: none !important;
    background-color: transparent !important;
}

.btn-maps {
    background: #34a853;
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-maps:hover {
    background: #2c8c46;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.4);
}

.btn-maps i {
    background: none !important;
    background-color: transparent !important;
}

.hero-churchs {
    background: linear-gradient(rgba(30, 64, 175, 0.8), rgba(30, 58, 138, 0.8)), 
                url('https://images.unsplash.com/photo-1438032005730-c779502df39b?ixlib=rb-4.0.3') center/cover;
    min-height: 60vh;
    display: flex;
    align-items: center;
    margin-top: 58px;
    position: relative;
    overflow: hidden;
}

.hero-churchs::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-churchs .container {
    position: relative;
    z-index: 2;
}

.hero-churchs .row {
    align-items: center;
}

.hero-churchs h1 {
    animation: slideInLeft 0.8s ease-out;
}

.hero-churchs .lead {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-churchs .d-flex {
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-churchs .churchs-preview {
    animation: slideInRight 0.8s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Church Widget in Hero */
.churchs-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.church-widget {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    max-width: 350px;
    width: 100%;
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.church-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.church-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.church-icon {
    width: 80px;
    height: 80px;
    background: rgba(30, 64, 175, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--primary-color);
    font-size: 2.5rem;
}

/* Featured Church */
.featured-church {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-church:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15) !important;
}

.featured-church-image {
    position: relative;
    height: 100%;
}

.featured-church-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.church-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
}

.church-type-badge .badge {
    font-size: 0.8rem;
    padding: 8px 15px;
    border-radius: 20px;
}

/* Church Cards */
.church-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.church-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.church-image {
    position: relative;
    overflow: hidden;
}

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

.church-card:hover .church-image img {
    transform: scale(1.05);
}

.church-type {
    position: absolute;
    top: 10px;
    left: 10px;
}

.church-type .badge {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 15px;
}

.church-info {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

/* Map Section */
.map-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 500px;
}

.map-placeholder {
    height: 500px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-content {
    max-width: 400px;
    padding: 2rem;
}

/* Filter Buttons */
.btn-custom.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Section Title */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
}

/* Load More Button */
#loadMoreBtn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

/* Search Input */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* Animation Classes */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal-lg {
    max-width: 800px;
}

#churchModalBody {
    padding: 20px;
}

.church-modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-churchs {
        min-height: 55vh;
        padding: 40px 0;
    }
    
    .hero-churchs .row {
        flex-direction: column-reverse;
    }
    
    .hero-churchs .col-lg-6:first-child {
        text-align: center;
        margin-top: 2rem;
    }
    
    .church-widget {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-churchs {
        min-height: auto;
        padding: 60px 0 40px;
        text-align: center;
    }
    
    .hero-churchs .container {
        padding: 0 20px;
    }
    
    .hero-churchs .row {
        gap: 2rem;
    }
    
    .hero-churchs h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-churchs .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }
    
    .hero-churchs .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .hero-churchs .btn {
        width: 200px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    .church-widget {
        max-width: 280px;
        padding: 25px;
    }
    
    .church-stats {
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .stat-number {
        font-size: 1.7rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .church-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .featured-church .card-body {
        padding: 2rem !important;
    }
    
    .church-card {
        margin-bottom: 1.5rem;
    }
    
    .featured-church-image img {
        height: 300px;
    }
    
    .btn-custom, .btn-outline-primary {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-churchs {
        margin-top: 70px;
        padding: 40px 0 30px;
    }
    
    .hero-churchs .container {
        padding: 0 15px;
    }
    
    .hero-churchs h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-churchs .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 5px;
    }
    
    .hero-churchs .d-flex {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .hero-churchs .btn {
        width: 180px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .church-widget {
        max-width: 260px;
        padding: 20px;
    }
    
    .church-stats {
        gap: 10px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .church-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .featured-church .card-body {
        padding: 1.5rem !important;
    }
    
    .church-image img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .hero-churchs h1 {
        font-size: 1.75rem;
    }
    
    .hero-churchs .lead {
        font-size: 0.95rem;
    }
    
    .hero-churchs .btn {
        width: 160px;
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    
    .church-widget {
        max-width: 240px;
        padding: 18px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 375px) {
    .hero-churchs {
        padding: 30px 0 25px;
    }
    
    .hero-churchs .container {
        padding: 0 10px;
    }
    
    .hero-churchs h1 {
        font-size: 1.6rem;
    }
    
    .church-widget {
        max-width: 220px;
        padding: 15px;
    }
    
    .church-stats {
        gap: 8px;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
}

/* Contact Section */
.bg-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-blue) 100%);
}

/* Object Cover Utility */
.object-cover {
    object-fit: cover;
}

/* Search Functionality Styles */
.input-group.searching {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    border-radius: 0.375rem;
}

.input-group.searching .form-control {
    border-color: #0d6efd;
}

.input-group.searching .btn {
    border-color: #0d6efd;
}

.no-results {
    padding: 3rem 1rem;
}

.no-results i {
    opacity: 0.5;
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Input Focus States */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}

/* Loading States */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Clear search button */
.input-group .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}