/* Modern Design Fixes and Enhancements */

/* Ensure all sections are visible */
section {
    opacity: 1 !important;
    transform: none !important;
}

/* Fix header spacing */
body {
    padding-top: 0; /* Removed padding to allow hero to show fully */
}

/* Modern Hero Background Fix */
.modern-hero {
    background-blend-mode: normal; /* Changed to normal to show image clearly */
    background-color: transparent; /* Made transparent to show full image */
}

/* Remove conflicting overlay */
.modern-hero::before {
    background: rgba(0, 0, 0, 0.4) !important; /* Consistent overlay */
}

/* Ensure cards are visible */
.card-modern,
.feature-card-modern {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Fix button styles */
.btn-modern,
.btn-card-modern,
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* Fix section titles */
.section-title {
    opacity: 1;
    transform: none;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

/* Fix feature icons */
.feature-icon-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

/* Fix modern cards layout */
.card-modern-content {
    padding: 30px;
}

.card-modern-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

/* Fix amenity badges */
.amenity-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(102, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 5px;
    border: 1px solid rgba(102, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.amenity-badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Fix star ratings */
.stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.stars .fa-star {
    color: #f59e0b;
    font-size: 1.2rem;
}

/* Fix gallery items */
.gallery-item-modern {
    margin-bottom: 30px;
}

/* Fix floating buttons */
.floating-modern {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn-modern {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* Fix responsive design */
@media (max-width: 768px) {
    body {
        padding-top: 0; /* Remove padding for mobile too */
    }
    
    .modern-hero {
        padding-top: 70px; /* Use padding instead of margin for mobile */
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .modern-hero .hero-buttons {
        flex-wrap: nowrap !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .modern-hero .btn-hero {
        padding: 12px 15px !important;
        font-size: 0.85rem !important;
        flex: 1 1 50% !important;
        text-align: center !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        max-width: 50% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .modern-hero .btn-hero i {
        font-size: 0.8rem !important;
        margin-left: 5px !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .modern-hero .hero-buttons {
        gap: 8px !important;
        padding: 0 10px !important;
    }
    
    .modern-hero .btn-hero {
        padding: 10px 8px !important;
        font-size: 0.75rem !important;
        flex: 1 1 50% !important;
        max-width: 50% !important;
    }
    
    .modern-hero .btn-hero i {
        font-size: 0.7rem !important;
        margin-left: 3px !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .modern-hero .hero-buttons {
        gap: 5px !important;
        padding: 0 5px !important;
    }
    
    .modern-hero .btn-hero {
        padding: 8px 5px !important;
        font-size: 0.7rem !important;
    }
    
    .modern-hero .btn-hero i {
        font-size: 0.65rem !important;
        margin-left: 2px !important;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .feature-icon-modern {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .card-modern-content {
        padding: 20px;
    }
    
    .card-modern-actions {
        flex-direction: column;
    }
    
    .floating-modern {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn-modern {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* Fix navbar toggler for mobile */
.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Ensure all text is readable */
.text-muted {
    color: #6c757d !important;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Fix any layout issues */
.container {
    max-width: 1200px;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.row > * {
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure proper spacing */
.section-padding {
    padding: 100px 0;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Fix any z-index issues */
.modern-header {
    z-index: 1030;
}

.floating-modern {
    z-index: 1020;
}

.scroll-indicator {
    z-index: 1040;
}

/* Smooth transitions */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Fix any overflow issues */
.container-fluid {
    overflow-x: hidden;
}

/* Ensure proper font loading */
body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Tajawal', sans-serif;
}

/* Fix any animation issues */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}