/* Main Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Slick Carousel Navigation Arrows */
.slick-prev,
.slick-next {
    width: 70px !important;
    height: 70px !important;
    z-index: 1;
}

.slick-prev:before,
.slick-next:before {
    font-size: 70px !important;
    color: #000 !important;
    opacity: 0.75 !important;
}

.slick-prev {
    left: -30px !important;
}

.slick-next {
    right: -30px !important;
}

/* Section Title and Buttons Layout */
.section-title h2 {
    text-align: center;
    margin: 0 auto;
    padding: 0 20px;
    white-space: nowrap;
}

.container1 .row.align-items-center {
    justify-content: space-between;
    margin: 0 auto;
    max-width: 100%;
    padding: 0 15px;
}

.container1 .col-md-4 {
    flex: 0 0 auto;
    width: auto;
    padding: 0 10px;
}

.container1 .btn {
    min-width: 150px;
    white-space: nowrap;
}

/* Property Cards */
.card {
    transition: transform 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    color: #333;
}

/* Footer */
footer {
    margin-top: 50px;
    padding: 30px 0;
    background-color: #f8f9fa;
}

footer h5 {
    color: #333;
    margin-bottom: 20px;
}

footer a {
    color: #666;
    text-decoration: none;
}

footer a:hover {
    color: #333;
}

/* Search Box */
.search-box {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-top: 30px;
}

/* Property Details */
.property-details {
    padding-top: 0;
    padding-bottom: 0;
}

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

.property-features li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

/* Pagination Styles */
.pagination .page-item.active .page-link {
    background-color: #212529;
    border-color: #212529;
    color: white;
}

.pagination .page-link {
    color: #212529;
    background-color: #fff;
    border: 1px solid #dee2e6;
}

.pagination .page-link:hover {
    color: #212529;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Property Details Styles */
.property-ref {
    background-color: #404040 !important;
    color: white !important;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
}

/* Custom Background Colors */
.bg-custom-red {
    background-color: #e21e25 !important;
    border-color: #e21e25 !important;
}

/* Tab Styles */
.nav-tabs {
    border-bottom: 2px solid #404040;
    display: flex;
    width: 100%;
    gap: 5px;
    background-color: white;
}

.nav-tabs .nav-item {
    flex: 1;
}

.nav-tabs .nav-link {
    margin-bottom: -2px;
    border: none;
    background-color: rgba(64, 64, 64, 0.3);
    color: #404040 !important;
    padding: 1rem 1.5rem;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.nav-tabs .nav-link:hover {
    border: none;
    background-color: rgba(64, 64, 64, 0.5);
    color: #404040 !important;
}

.nav-tabs .nav-link.active {
    border: none;
    background-color: #404040;
    color: white !important;
    font-weight: 500;
    border-bottom: 2px solid #e21e25;
}

#propertyTabs .nav-link {
    background-color: rgba(64, 64, 64, 0.3) !important;
}

#propertyTabs .nav-link:hover {
    background-color: rgba(64, 64, 64, 0.5) !important;
}

#propertyTabs .nav-link.active {
    background-color: #404040 !important;
    color: white !important;
}

.tab-content {
    padding: 20px 0;
}

.tab-pane ul li {
    font-size: 1rem;
    color: #666;
}

.tab-pane ul li i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* Property Category Banners */
.banners-type {
    margin: 30px 0;
}

.banner-image-text {
    position: relative;
    display: block;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.banner-image-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    text-decoration: none;
}

.banner-image-text img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-image-text:hover img {
    transform: scale(1.05);
}

/* Dark overlay for banner images */
.banner-image-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 40% black tint */
    z-index: 1;
}

.banner-image-text-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: white;
    z-index: 2; /* Ensure text appears above overlay */
}

.banner-image-text-caption h3 {
    margin: 0 0 5px;
    font-size: 1.6rem;
    font-weight: 600;
    color: white;
}

.banner-image-text-caption p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

/* Row fixes for banner heights */
.banners-type .row {
    display: flex;
    flex-wrap: wrap;
}

.banners-type .row > div {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* Custom color overrides for Bootstrap */
.btn-danger, 
.btn-danger:active,
.btn-danger:focus {
    background-color: #e21e25 !important;
    border-color: #e21e25 !important;
}

.btn-danger:hover {
    background-color: #c91c22 !important;
    border-color: #c91c22 !important;
}

.text-danger {
    color: #e21e25 !important;
}

/* Badge color overrides */
.badge-danger {
    background-color: #e21e25;
}

/* Filter Properties Card */
.filter-properties-card .card-body {
    padding: 25px 20px;
}

.filter-properties-card .form-label {
    margin-bottom: 12px;
    font-weight: 500;
}

.filter-properties-card .mb-3 {
    margin-bottom: 22px !important;
}

.filter-properties-card .form-select {
    padding: 12px 10px;
    height: auto;
}

.filter-properties-card button[type="submit"] {
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
}

.filter-properties-card .form-select option {
    padding: 10px 8px;
    line-height: 2;
    margin: 5px 0;
    height: auto;
}

.filter-properties-card select.form-select {
    background-position: right 0.75rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.filter-properties-card select.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(226, 30, 37, 0.25);
}

/* Filter Properties Card specific styles */
.filter-properties-card {
    transition: box-shadow 0.3s ease;
}

.filter-properties-card:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Override the general card hover behavior for filter card */
.card.filter-properties-card:hover {
    transform: none;
}

/* Page content section styling */
.page-content {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
    line-height: 1.4;
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #555;
}

.page-content strong {
    font-weight: 600;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* Similar Properties Styling with Red Color */
#similares-properties h2 {
    color: #e21e25;
    border-color: #e21e25;
}

#similares-properties .property-card:hover {
    border-color: #e21e25;
    box-shadow: 0 0 10px rgba(226, 30, 37, 0.3);
}

#similares-properties .property-title {
    color: #e21e25 !important;
}

#similares-properties .property-card:hover .property-title {
    color: #e21e25;
}

#similares-properties a:hover,
#similares-properties button:hover {
    color: #e21e25;
    border-color: #e21e25;
}

/* Feature icons styling */
.feature-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: middle;
}

.property-features span {
    display: inline-block;
    margin-right: 12px;
    font-size: 0.9rem;
    color: #444;
}
