/* Custom CSS for Campo and Coast */

:root {
    --campo-green: #4A7C59;    /* Forest Green from logo */
    --coast-blue: #4682B4;     /* Steel Blue for coastal elements */
    --sand-yellow: #F4A460;    /* Sandy Yellow accent */
    --dark-green: #2E5233;     /* Darker green for text/headers */
    --light-cream: #FDF6E3;    /* Light cream background */
    --luxury-text: #333;
}

/* Remove overlays from property preview carousels */
.property-preview-carousel .carousel-item::before,
.property-preview-carousel .carousel-item .overlay,
.property-preview-carousel .carousel-item .image-overlay,
.property-preview-carousel .carousel-item .darken,
.property-preview-carousel .carousel-item .bg-dark,
.property-preview-carousel .carousel-item .card-img-overlay {
    content: none !important;
    background: none !important;
    background-color: transparent !important;
    opacity: 0 !important;
    display: none !important;
    z-index: -1 !important;
}

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--luxury-text);
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Custom Button Styles */
.btn-campo {
    background: linear-gradient(45deg, var(--campo-green), var(--dark-green));
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

.btn-campo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
    color: white;
    background: linear-gradient(45deg, var(--dark-green), var(--campo-green));
}

/* AI Search Styling */
.search-input-group {
    max-width: 700px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.search-input-group .form-control {
    border: none;
    padding: 18px 25px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.95);
    font-weight: 400;
}

.search-input-group .btn {
    border: none;
    padding: 18px 30px;
    font-weight: 600;
    background: linear-gradient(45deg, var(--campo-green), var(--dark-green));
    transition: all 0.3s ease;
}

.search-input-group .btn:hover {
    background: linear-gradient(45deg, var(--dark-green), var(--campo-green));
    transform: translateY(-1px);
}

.search-container {
    position: relative;
}

#ai-search-input:focus {
    box-shadow: none;
    border-color: transparent;
    background: rgba(255,255,255,1);
    outline: none;
}

.text-white-75 {
    color: rgba(255,255,255,0.85) !important;
}

.btn-coast {
    background: linear-gradient(45deg, var(--coast-blue), #2E6DA4);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(70, 130, 180, 0.3);
}

.btn-coast:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.4);
    color: white;
}

/* Navbar customization with green/blue theme */
.navbar-dark {
    background: linear-gradient(135deg, var(--campo-green), var(--dark-green)) !important;
}

/* Primary colors for Bootstrap components */
.btn-primary {
    background: var(--campo-green);
    border-color: var(--campo-green);
}

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

.text-primary {
    color: var(--campo-green) !important;
}

.form-control:focus {
    border-color: var(--campo-green);
    box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25);
}

.form-select:focus {
    border-color: var(--campo-green);
    box-shadow: 0 0 0 0.2rem rgba(74, 124, 89, 0.25);
}

/* Navigation */
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--sand-yellow);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(46, 82, 51, 0.9), rgba(70, 130, 180, 0.8)), 
                url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1920&h=1080&fit=crop') center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Feature Boxes */
.feature-box {
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
}

/* Property Cards */
.property-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

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

.property-image img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent !important;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(74, 124, 89, 0.3);
    z-index: 2;
}

.image-count-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--luxury-text);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    z-index: 10;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.property-details .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
}

/* Contact Form */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--luxury-gold);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.form-label {
    color: var(--luxury-text);
    margin-bottom: 8px;
}

/* Contact Info Boxes */
.contact-info-box {
    padding: 2rem 1rem;
}

.contact-info-box i {
    color: var(--luxury-gold);
}

/* Thank You Page */
.thank-you-content {
    padding: 3rem 1rem;
}

.step-number {
    min-width: 30px;
    height: 30px;
    flex-shrink: 0;
}

/* Admin Panel */
.message-preview {
    max-width: 200px;
    cursor: help;
}

/* Footer */
footer {
    background: var(--luxury-dark) !important;
}

footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--luxury-gold);
}

/* Under Offer badge */
.status-badge.under-offer {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b35, #ff8f65);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .property-image img {
        height: 200px;
    }
    
    .btn-luxury {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .feature-box {
        padding: 1.5rem;
    }
    
    .contact-info-box {
        padding: 1.5rem 1rem;
    }
}

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

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Table Improvements */
.table th {
    border-top: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-hover tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

/* Card Statistics */
.card.bg-primary, .card.bg-success, .card.bg-warning, .card.bg-info {
    border: none;
    border-radius: 15px;
}

/* Remove dark overlay from Similar Properties section images */
.similar-properties .property-image,
.similar-properties .property-image::before,
.similar-properties .property-image::after,
.similar-properties .carousel-item,
.similar-properties .carousel-item::before,
.similar-properties .carousel-item::after,
.similar-properties .carousel-inner,
.similar-properties .carousel-inner::before,
.similar-properties .carousel-inner::after,
.similar-properties .property-preview-carousel,
.similar-properties .property-preview-carousel::before,
.similar-properties .property-preview-carousel::after {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    filter: none !important;
    opacity: 1 !important;
    box-shadow: none !important;
}

/* Ensure images in similar properties are fully visible */
.similar-properties .carousel-item img,
.similar-properties .property-tile-image,
.similar-properties .card-img-top {
    filter: none !important;
    opacity: 1 !important;
    background: transparent !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
}

/* Remove any pseudo-elements that might create overlays */
.similar-properties *::before,
.similar-properties *::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Override Bootstrap carousel default dark overlay */
.similar-properties .carousel-item > img {
    filter: none !important;
    opacity: 1 !important;
}

.similar-properties .carousel-fade .carousel-item {
    opacity: 1 !important;
}

.similar-properties .carousel-fade .carousel-item.active {
    opacity: 1 !important;
}

.card.bg-warning {
    background: linear-gradient(45deg, #f39c12, #f1c40f) !important;
}

.card.bg-info {
    background: linear-gradient(45deg, #3498db, #5dade2) !important;
}

/* Utility Classes */
.text-luxury {
    color: var(--luxury-gold) !important;
}

.bg-luxury {
    background-color: var(--luxury-gold) !important;
}

.border-luxury {
    border-color: var(--luxury-gold) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--luxury-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

/* Blog Styles */
.blog-post {
    line-height: 1.8;
}

.blog-content h2 {
    color: var(--campo-green);
    font-weight: 600;
    border-bottom: 2px solid var(--sand-yellow);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.blog-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.blog-content .lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--dark-green);
    border-left: 4px solid var(--campo-green);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.text-campo {
    color: var(--campo-green) !important;
}

/* Property Actions Buttons */
.property-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.property-actions .btn {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.property-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.property-actions .btn i {
    margin-right: 6px;
}

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

.property-actions .btn-outline-secondary:hover {
    background-color: var(--coast-blue);
    border-color: var(--coast-blue);
}

/* Copy success animation */
.btn-success {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .property-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .property-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.blog-post .card {
    border: none;
    border-radius: 15px;
}

.blog-post .card-body {
    background: linear-gradient(135deg, #ffffff 0%, var(--light-cream) 100%);
    border-radius: 15px;
}
