/* Custom CSS for BlockHaus - Updated with Dark Green Theme */
/* Cache Buster: v2.0 - Updated 2025-06-16 */

:root {
    --primary-green: #263d33;
    --secondary-green: #2f4a3c;
    --light-green: #3a5f4a;
    --dark-green: #1a2b21;
    --gradient-start: #263d33;
    --gradient-end: #2f4a3c;
    --text-white-75: rgba(255, 255, 255, 0.75);
    --text-white-50: rgba(255, 255, 255, 0.5);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Custom Bootstrap Button Colors */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border: none;
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-green), var(--light-green));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 52, 44, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    color: #4a5568 !important;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.text-white-75 {
    color: var(--text-white-75) !important;
}

.text-white-50 {
    color: var(--text-white-50) !important;
}

.hero-image {
    position: relative;
    z-index: 2;
}

.property-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.property-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.property-badge .badge {
    background: var(--primary-green) !important;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 6px;
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    padding: 80px 0;
    position: relative;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--light-green) 100%);
    padding: 100px 0;
    position: relative;
}

.search-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.search-tabs .btn-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-tabs .btn {
    border-radius: 0;
    border: none;
    padding: 12px 20px;
    font-weight: 500;
}

.search-tabs .btn-check:checked + .btn {
    background: var(--primary-green);
    color: white;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(31, 52, 44, 0.1);
}

/* Property Listings */
.listings-section {
    padding: 100px 0;
}

.listing-tabs .btn-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
}

.listing-tabs .btn {
    border-radius: 0;
    border: none;
    padding: 12px 20px;
    font-weight: 500;
}

.listing-tabs .btn-check:checked + .btn {
    background: var(--primary-green);
    color: white;
}

.property-listing-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.property-listing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-listing-card:hover .property-image img {
    transform: scale(1.05);
}

.property-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
}

.crypto-price {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.usd-price {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-top: 2px;
}

.property-details {
    padding: 20px;
}

.property-details h5 {
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a202c;
}

.location {
    color: #718096;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.location i {
    margin-right: 5px;
    color: var(--primary-green);
}

.property-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.property-features span {
    color: #4a5568;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features i {
    color: var(--primary-green);
    font-size: 0.8rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 100px 0;
    position: relative;
}

.newsletter-image {
    position: relative;
}

.newsletter-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.property-info-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.newsletter-content h2 {
    font-weight: 700;
    margin-bottom: 20px;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.author-info h6 {
    margin-bottom: 2px;
    font-weight: 600;
}

/* Modal Styles */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #f1f5f9;
    padding: 24px 24px 16px;
}

.modal-body {
    padding: 24px;
}

.modal-title {
    font-weight: 600;
    color: #1a202c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .search-card {
        padding: 30px 20px;
    }
    
    .property-features {
        justify-content: center;
    }
    
    .testimonial-card {
        margin-bottom: 20px;
    }
    
    .newsletter-section .row {
        flex-direction: column-reverse;
    }
    
    .newsletter-content {
        text-align: center;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 8px !important;
        margin-bottom: 5px;
    }
    
    .property-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* About Us Bootstrap Collapse Dropdown Styles */
.about-section-item .btn-link {
    border: none;
    background: none;
    text-decoration: none !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    padding: 0 !important;
    margin: 0;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-section-item .btn-link:hover {
    color: var(--primary-green) !important;
}

.about-section-item .btn-link:focus {
    box-shadow: none;
}

.collapse-indicator {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-green);
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-green);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.about-section-item .btn-link:hover .collapse-indicator {
    background: var(--primary-green);
    color: white;
}

.about-section-item .btn-link[aria-expanded="true"] .collapse-indicator {
    background: var(--primary-green);
    color: white;
}

.about-section-item .btn-link[aria-expanded="true"] .collapse-indicator::before {
    content: '−';
}

.about-section-item .btn-link[aria-expanded="false"] .collapse-indicator::before {
    content: '+';
}

.about-section-item .card-body {
    padding: 20px;
    margin-top: 15px;
    border-left: 3px solid var(--primary-green);
    background: linear-gradient(135deg, rgba(31, 52, 44, 0.05) 0%, rgba(45, 74, 62, 0.05) 100%);
}

.about-section-item .card-body p {
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.7;
}

.about-section-item .feature-item {
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.about-section-item .feature-item:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(31, 52, 44, 0.1);
}

.about-section-item .feature-item h5 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.about-section-item .user-type-card {
    transition: all 0.3s ease;
}

.about-section-item .user-type-card:hover {
    border-color: var(--primary-green);
    background: rgba(31, 52, 44, 0.05);
}

.about-section-item .security-item {
    transition: all 0.3s ease;
}

.about-section-item .security-item:hover {
    background: rgba(31, 52, 44, 0.05);
    border-left: 4px solid var(--primary-green);
    padding-left: 19px;
}

/* Property Card Clickable Styles */
.property-listing-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.property-listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(31, 52, 44, 0.1) 0%, rgba(45, 74, 62, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.property-listing-card:hover::before {
    opacity: 1;
}

.property-listing-card .property-details {
    position: relative;
    z-index: 2;
}

.property-listing-card .property-image {
    position: relative;
    z-index: 2;
}

/* Add a subtle "click me" indicator */
.property-listing-card::after {
    content: '\f35d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(31, 52, 44, 0.9);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 3;
}

.property-listing-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

/* Property Image Carousel */
.property-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.property-carousel .carousel-inner {
    border-radius: 16px 16px 0 0;
}

.property-carousel .carousel-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.property-carousel .carousel-control-prev,
.property-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(31, 52, 44, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.property-carousel .carousel-control-prev {
    left: 10px;
}

.property-carousel .carousel-control-next {
    right: 10px;
}

.property-listing-card:hover .carousel-control-prev,
.property-listing-card:hover .carousel-control-next {
    opacity: 1;
}

.property-carousel .carousel-control-prev-icon,
.property-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.property-carousel .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
}

.property-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

.property-carousel .carousel-indicators .active {
    background-color: var(--primary-green);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-green);
}
