/* San Francisco Rental Helper - Custom Styles */

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* San Francisco Theme Colors */
:root {
    --sf-blue: #0070f3;
    --sf-light-blue: #64b5f6;
    --sf-dark-blue: #0051a2;
    --sf-white: #ffffff;
    --sf-gray: #f8f9fa;
    --sf-dark-gray: #333333;
    --sf-success: #4caf50;
    --sf-danger: #f44336;
    --sf-info: #2196f3;
}

/* Navbar Styles */
.navbar {
    background-color: var(--sf-white) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--sf-blue) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 8px;
}

.navbar-nav .nav-link {
    color: var(--sf-dark-gray) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--sf-blue) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: var(--sf-gray);
    color: var(--sf-blue);
}

/* Button Styles */
.btn-primary {
    background-color: var(--sf-blue);
    border-color: var(--sf-blue);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--sf-dark-blue);
    border-color: var(--sf-dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 112, 243, 0.3);
}

/* Main Content */
main {
    padding-top: 20px;
    padding-bottom: 100px; /* Space for bottom navigation on mobile */
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-img-top {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    height: 150px;
    object-fit: cover;
}

.card-body {
    flex-grow: 1;
    padding: 16px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--sf-dark-gray);
}

.card-text {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #666;
}

.card-footer {
    background-color: var(--sf-white);
    border-top: 1px solid #e9ecef;
    padding: 12px 16px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Floating Action Buttons */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    font-size: 1.25rem;
}

.floating-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Bottom Navigation (Mobile Only) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--sf-white);
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    padding: 8px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    flex: 1;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.bottom-nav-item:hover, .bottom-nav-item.active {
    color: var(--sf-blue);
}

/* Footer Styles */
footer {
    background-color: var(--sf-dark-gray);
    color: var(--sf-white);
    margin-top: 50px;
}

footer h5 {
    color: var(--sf-light-blue);
    margin-bottom: 16px;
    font-weight: 600;
}

footer a {
    color: var(--sf-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--sf-light-blue);
    text-decoration: underline;
}

footer ul {
    padding-left: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 8px;
}

footer ul li i {
    margin-right: 8px;
    color: var(--sf-light-blue);
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: var(--sf-white);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.modal-title {
    color: var(--sf-dark-gray);
    font-weight: 600;
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--sf-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 112, 243, 0.25);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--sf-dark-gray);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card-img-top {
        height: 120px;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
    
    .floating-buttons {
        right: 15px;
        bottom: 70px;
    }
    
    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    main {
        padding-bottom: 80px;
    }
}

@media (max-width: 576px) {
    .card-img-top {
        height: 100px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .card-footer {
        padding: 8px 12px;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .bottom-nav-item {
        font-size: 0.7rem;
    }
    
    .bottom-nav-item i {
        font-size: 1.1rem;
    }
}

/* Property Detail Page Styles */
.property-gallery {
    margin-bottom: 24px;
}

.property-gallery img {
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.property-info {
    background-color: var(--sf-white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.property-title {
    color: var(--sf-dark-gray);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.property-price {
    color: var(--sf-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.property-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.property-features li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.property-features li:last-child {
    border-bottom: none;
}

.property-features li i {
    color: var(--sf-blue);
    margin-right: 12px;
    font-size: 1.1rem;
}

/* Map Section */
.map-container {
    background-color: #e9ecef;
    height: 300px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin-bottom: 24px;
}

/* Video Section */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 24px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Contact Button */
.contact-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 12px 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Loading State */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: var(--sf-blue);
    font-size: 1.1rem;
}

.loading i {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.mb-10 {
    margin-bottom: 6rem;
}

.text-primary {
    color: var(--sf-blue) !important;
}

.bg-primary {
    background-color: var(--sf-blue) !important;
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print Styles */
@media print {
    .navbar, .floating-buttons, .bottom-nav, .footer {
        display: none !important;
    }
    
    main {
        padding-bottom: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
        margin-bottom: 16px;
    }
}