/* Golden Apartment - Main Stylesheet */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-radius: 1rem;
    --border-radius-lg: 1.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --box-shadow-xl: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
    padding: 0.75rem 1.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

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

/* Cards */
.card {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-xl);
}

/* Header Section */
.header-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

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

.hero-text {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: white !important;
    font-weight: 600;
}

.hero-text h1 {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9), 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.hero-indicator.active {
    background: white;
    transform: scale(1.2);
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(20px) rotate(-1deg); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

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

/* Pricing Section */
.pricing-section {
    background: var(--light-color);
}

/* Pricing Cards */
.pricing-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    text-align: center;
    color: var(--dark-color);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-xl);
    border-color: var(--primary-color);
}

.pricing-card h4 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-card .text-muted {
    color: var(--secondary-color) !important;
}

/* Ensure all text is visible */
.pricing-card * {
    color: inherit;
}

.pricing-card .price-amount {
    color: var(--primary-color) !important;
}

.pricing-card .price-period {
    color: var(--secondary-color) !important;
}

.pricing-card ul li {
    color: var(--dark-color) !important;
}

.apartment-image {
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 220px;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

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

/* Ensure consistent card heights and spacing */
.pricing-card h4 {
    margin-bottom: 1rem;
}

.pricing-card .price-amount {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-card .price-period {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-size: 1rem;
}

.pricing-card ul {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pricing-card ul li {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-card ul li i {
    color: var(--success-color) !important;
    margin-right: 0.5rem;
    font-size: 1rem;
    flex-shrink: 0;
}

.pricing-card ul li i.bi-check-circle {
    color: var(--success-color) !important;
}

.pricing-card ul li:last-child {
    margin-bottom: 0;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
}

/* Global price styles */
.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    color: var(--secondary-color);
    font-size: 1rem;
}

/* Amenities Section */
.amenities-section {
    background: var(--light-color);
}

.amenity-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.amenity-icon {
    color: var(--primary-color);
}

/* Featured Apartments */
.featured-apartments {
    background: white;
}

.featured-apartment-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.featured-apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-xl);
}

.apartment-image-container {
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apartment-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.featured-apartment-card:hover .apartment-image-container img {
    transform: scale(1.05);
}

.apartment-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.apartment-details .btn {
    margin-top: auto;
}

.apartment-specs {
    font-size: 0.9rem;
}

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

.spec-item i {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--light-color);
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.testimonial-avatar {
    color: var(--primary-color);
}

.testimonial-text {
    font-style: italic;
    color: var(--secondary-color);
}

/* Map Section */
.map-section {
    background: white;
}

.map-placeholder {
    background: var(--light-color);
    border-radius: var(--border-radius-lg);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.location-feature {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.location-feature i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Mobile CTA */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: var(--box-shadow-lg);
    transition: var(--transition);
    font-size: 1.5rem;
}

.whatsapp-link:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: var(--box-shadow-xl);
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

/* Filters Section */
.filters-section {
    background: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Apartment Cards */
.apartment-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-xl);
}

.apartment-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.apartment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.apartment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), transparent);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.apartment-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.apartment-content {
    padding: 1.5rem;
}

.apartment-title {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.apartment-description {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.apartment-specs {
    margin: 1rem 0;
}

.spec-item {
    text-align: center;
    padding: 0.5rem;
}

.spec-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.spec-item small {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.spec-item strong {
    color: var(--dark-color);
    font-size: 1.1rem;
}

.apartment-amenities {
    margin: 1rem 0;
}

.apartment-price {
    text-align: center;
    margin: 1rem 0;
}

.apartment-actions {
    margin-top: 1rem;
}

/* Apartment Details Page */
.apartment-details-section {
    background: white;
}

.gallery-container {
    position: relative;
}

.main-image-container {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
}

.main-image {
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.main-image-container:hover .image-overlay {
    opacity: 1;
}

.thumbnail-gallery {
    margin-top: 1rem;
}

.thumbnail-item {
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.thumbnail-item:hover {
    transform: scale(1.05);
}

.thumbnail-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-image.active {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.apartment-info-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

.quick-specs {
    text-align: center;
}

.contact-info {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 1rem;
}

/* Availability Calendar */
.availability-calendar {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
}

.calendar-container {
    padding: 1rem;
}

.calendar-header {
    text-align: center;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 1rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--secondary-color);
    padding: 0.5rem;
}

.calendar-day {
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: var(--light-color);
}

.calendar-day.today {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.calendar-day.booked {
    background: var(--danger-color);
    color: white;
    cursor: not-allowed;
}

.calendar-day.blocked {
    background: var(--warning-color);
    color: var(--dark-color);
    cursor: not-allowed;
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
}

.calendar-legend {
    font-size: 0.8rem;
}

.calendar-legend .calendar-day {
    width: 20px;
    height: 20px;
    min-height: auto;
    margin-right: 0.5rem;
}

/* Similar Apartments */
.similar-apartments {
    background: var(--light-color);
}

.similar-apartment-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.similar-apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--secondary-color);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* Toast Notifications */
.toast-container {
    z-index: 1055;
}

.toast {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow-lg);
}

/* Footer */
.footer-section {
    background: var(--dark-color);
    color: white;
}

.footer-section h5,
.footer-section h4,
.footer-section h3,
.footer-section h2,
.footer-section h1 {
    color: white !important;
}

.footer-section .text-white {
    color: white !important;
}

.footer-section .text-light {
    color: #00ff00 !important; /* Pure green */
}

.footer-section strong {
    color: white !important;
}

.footer-section a.text-light {
    color: #00ff00 !important; /* Pure green */
}

.footer-section a.text-light:hover {
    color: #00cc00 !important; /* Darker green on hover */
}

.footer-brand {
    margin-bottom: 2rem;
}

.footer-brand .bi {
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom-links a {
    color: #00ff00 !important; /* Pure green */
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: #00cc00 !important; /* Darker green on hover */
}

/* 404 Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--light-color), white);
}

.error-content {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.error-icon {
    color: var(--warning-color);
}

.search-box {
    max-width: 400px;
    margin: 0 auto;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    }
    
    .hero-text p {
        font-size: 1.1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    }
    
    .hero-indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .hero-indicator {
        width: 12px;
        height: 12px;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .featured-apartment-card .row {
        flex-direction: column;
    }
    
    .apartment-image-container {
        height: 250px;
    }
    
    .apartment-image {
        height: 200px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .thumbnail-image {
        height: 60px;
    }
    
    .calendar-grid {
        gap: 1px;
    }
    
    .calendar-day {
        min-height: 35px;
        font-size: 0.8rem;
    }
    
    .mobile-cta {
        padding: 0.75rem;
    }
    
    .whatsapp-float {
        bottom: 70px;
        right: 15px;
    }
    
    .whatsapp-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
    }
    
    .hero-text p {
        font-size: 1rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    }
    
    .hero-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
    
    .display-3 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .pricing-card {
        margin-bottom: 1.5rem;
    }
    
    .apartment-image {
        height: 180px;
    }
    
    .apartment-image-container {
        height: 200px;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail-image {
        height: 50px;
    }
    
    .calendar-day {
        min-height: 30px;
        font-size: 0.75rem;
        padding: 0.25rem;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header-section,
    .mobile-cta,
    .whatsapp-float,
    .toast-container {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-color: var(--primary-color);
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --primary-dark: #000060;
        --secondary-color: #404040;
        --light-color: #f0f0f0;
        --dark-color: #000000;
    }
    
    .card {
        border: 2px solid var(--dark-color);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-background {
        animation: none;
    }
    
    .pricing-card:hover,
    .apartment-card:hover,
    .featured-apartment-card:hover {
        transform: none;
    }
}
