/**
 * Knock Knock Real Estate - Custom Orange Theme
 * Main color: #FF6B35 (Orange from logo)
 */

/* ========================================
   1. CSS Variables
   ======================================== */
:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #FF8C42;
    --dark-orange: #E55A2B;
    --light-orange: #FFB380;
    --orange-transparent: rgba(255, 107, 53, 0.1);
}

/* ========================================
   2. Typography & Colors
   ======================================== */
.text-orange {
    color: var(--primary-orange) !important;
}

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

.border-orange {
    border-color: var(--primary-orange) !important;
}

/* ========================================
   3. Buttons
   ======================================== */
.btn-orange {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-orange:hover,
.btn-orange:focus,
.btn-orange:active {
    background-color: var(--dark-orange);
    border-color: var(--dark-orange);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

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

.btn-outline-orange:hover,
.btn-outline-orange:focus {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: #ffffff;
}

/* ========================================
   4. Navigation
   ======================================== */
.navbar {
    transition: all 0.3s ease;
}

.navbar .nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

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

.navbar .navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar .navbar-brand:hover img {
    transform: scale(1.05);
}

.top-header {
    font-size: 14px;
}

.top-header .header-contact a,
.top-header .header-social a {
    color: #666;
    transition: color 0.3s ease;
}

.top-header .header-contact a:hover,
.top-header .header-social a:hover {
    color: var(--primary-orange);
    text-decoration: none;
}

/* ========================================
   5. Links
   ======================================== */
a {
    color: var(--primary-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--dark-orange);
    text-decoration: none;
}

/* ========================================
   6. Property Cards
   ======================================== */
.property-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
}

.property-card:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.2);
    transform: translateY(-8px);
    border-color: var(--light-orange);
}

.property-card .property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-orange);
    color: #ffffff;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-card .price {
    color: var(--primary-orange);
    font-size: 26px;
    font-weight: 700;
}

.property-card img {
    transition: transform 0.5s ease;
}

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

/* ========================================
   7. Hero Section
   ======================================== */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(255, 140, 66, 0.85) 100%);
    padding: 120px 0;
    color: #ffffff;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.1;
}

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

/* ========================================
   8. Search Box
   ======================================== */
.search-box {
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.search-box .form-control,
.search-box select {
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 15px;
}

.search-box .form-control:focus,
.search-box select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem var(--orange-transparent);
}

/* ========================================
   9. Section Titles
   ======================================== */
.section-title {
    position: relative;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 38px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    margin: 0 auto;
    border-radius: 2px;
}

/* ========================================
   10. Cards
   ======================================== */
.card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

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

.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3) !important;
    transform: translateY(-8px);
}

/* ========================================
   11. Footer
   ======================================== */
.footer {
    background: #1a1a1a;
    color: #cccccc;
}

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

.footer a:hover {
    color: var(--primary-orange);
}

.footer .footer-links li {
    margin-bottom: 12px;
}

.footer .footer-contact li {
    margin-bottom: 15px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 25px;
}

/* ========================================
   12. Back to Top Button
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--primary-orange);
    color: #ffffff;
    text-align: center;
    line-height: 55px;
    border-radius: 50%;
    display: none;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.back-to-top:hover {
    background: var(--dark-orange);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* ========================================
   13. Forms
   ======================================== */
.form-control:focus,
select:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 0.2rem var(--orange-transparent);
}

/* ========================================
   14. Badges
   ======================================== */
.badge-orange {
    background-color: var(--primary-orange);
    color: #ffffff;
}

/* ========================================
   15. Alerts
   ======================================== */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-error,
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* ========================================
   16. Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* ========================================
   17. Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .search-box {
        padding: 25px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        line-height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ========================================
   18. Utility Classes
   ======================================== */
.rounded-10 {
    border-radius: 10px;
}

.shadow-orange {
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* ========================================
   19. About Us Page Fixes
   ======================================== */
/* Fix About Us page title appearing on same line as navigation */
.inner-pages .headings {
    margin-top: 100px;
    padding-top: 80px;
}

/* Ensure proper spacing for all inner pages */
.inner-pages section:first-of-type {
    margin-top: 80px;
}

/* ========================================
   20. Agent Image Fixes
   ======================================== */
/* Make agent profile images circular and small on listing pages */
.homes-content .footer a img,
.footer a img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    vertical-align: middle;
}

/* Agent listing page - keep main agent images properly sized */
.project-single .homes-img img {
    width: 100%;
    height: auto;
    border-radius: 0;
}

/* Make agent avatar images on agents page circular and small */
.the-agents a img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Property listing footer agent images */
.project-single .homes-content .footer img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* ========================================
   21. Footer Enhancements
   ======================================== */
/* Footer top section */
.first-footer .top-footer {
    padding: 60px 0 40px;
    background: #1a1a1a;
}

.first-footer .netabout,
.first-footer .navigation,
.first-footer .widget,
.first-footer .newsletters {
    margin-bottom: 30px;
}

.first-footer .netabout .logo img {
    max-width: 180px;
    margin-bottom: 20px;
}

.first-footer .netabout p {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Footer contact info */
.first-footer .contactus ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.first-footer .contactus ul li {
    margin-bottom: 15px;
}

.first-footer .contactus .info {
    display: flex;
    align-items: flex-start;
}

.first-footer .contactus .info i {
    margin-right: 12px;
    margin-top: 5px;
    color: var(--primary-orange);
    font-size: 16px;
}

.first-footer .contactus .info p {
    color: #cccccc;
    margin: 0;
    line-height: 1.6;
}

/* Footer navigation */
.first-footer .navigation h3,
.first-footer .widget h3,
.first-footer .newsletters h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}

.first-footer .nav-footer {
    display: flex;
    gap: 30px;
}

.first-footer .nav-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.first-footer .nav-footer ul li {
    margin-bottom: 12px;
}

.first-footer .nav-footer ul li a {
    color: #cccccc;
    transition: color 0.3s ease;
    font-size: 15px;
}

.first-footer .nav-footer ul li a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

/* Footer property types widget */
.first-footer .twitter-widget .single-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.first-footer .twitter-widget .icon-holder {
    margin-right: 15px;
    flex-shrink: 0;
}

.first-footer .twitter-widget .icon-holder i {
    font-size: 28px;
    color: var(--primary-orange);
}

.first-footer .twitter-widget .text h5 {
    margin: 0;
    margin-bottom: 5px;
}

.first-footer .twitter-widget .text h5 a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.first-footer .twitter-widget .text h4 {
    color: #cccccc;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

/* Footer newsletter */
.first-footer .newsletters p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #cccccc;
}

.first-footer .bloq-email .email {
    position: relative;
}

.first-footer .bloq-email input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #333;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #2a2a2a;
    color: #ffffff;
    font-size: 15px;
}

.first-footer .bloq-email input[type="email"]:focus {
    border-color: var(--primary-orange);
    outline: none;
}

.first-footer .bloq-email input[type="submit"] {
    width: 100%;
    padding: 14px 16px;
    background: var(--primary-orange);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
}

.first-footer .bloq-email input[type="submit"]:hover {
    background: var(--dark-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Social media footer section */
.social-footer {
    margin-top: 25px;
}

.social-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
}

.social-footer ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--primary-orange);
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 18px;
}

.social-footer ul li a:hover {
    background: var(--dark-orange);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

/* Footer bottom section */
.second-footer {
    background: #A94D14;
    padding: 25px 0;
    border-top: 1px solid #8a3d10;
}

.second-footer .sd-f {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.second-footer p {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
}

.second-footer .developer-credit {
    color: #ffffff;
    font-size: 14px;
    text-align: right;
    margin-left: auto;
}

.second-footer .developer-credit a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.second-footer .developer-credit a:hover {
    color: #ffd7b5;
    border-bottom: 1px solid #ffd7b5;
}

.second-footer .netsocials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 12px;
}

.second-footer .netsocials li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.second-footer .netsocials li a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive footer adjustments */
@media (max-width: 991px) {
    .first-footer .nav-footer {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .first-footer .top-footer {
        padding: 40px 0 20px;
    }

    .second-footer .sd-f {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .inner-pages .headings {
        margin-top: 80px;
        padding-top: 60px;
    }
}

/* ========================================
   22. Header Spacing & Clearfix
   ======================================== */
/* Add clear spacing between header and content */
header#header-container + .clearfix {
    display: block;
    height: 10px;
    clear: both;
}

/* Ensure inner pages have proper spacing after header */
.inner-pages section:first-of-type,
.inner-pages .properties-right:first-of-type {
    margin-top: 100px;
}

/* ========================================
   23. Consistent Footer Styling Across All Pages
   ======================================== */
/* Override any conflicting footer styles to ensure consistency */
body .first-footer,
.homepage-9 .first-footer,
.homepage-1 .first-footer,
.homepage-4 .first-footer,
.inner-pages .first-footer {
    background: #1a1a1a !important;
}

body .first-footer .top-footer,
.homepage-9 .first-footer .top-footer,
.homepage-1 .first-footer .top-footer,
.homepage-4 .first-footer .top-footer,
.inner-pages .first-footer .top-footer {
    background: #1a1a1a !important;
    padding: 60px 0 40px !important;
}

body .second-footer,
.homepage-9 .second-footer,
.homepage-1 .second-footer,
.homepage-4 .second-footer,
.inner-pages .second-footer {
    background: #A94D14 !important;
    border-top: 1px solid #8a3d10 !important;
    padding: 25px 0 !important;
}

/* Ensure footer text colors are consistent across all page types */
body .first-footer,
body .first-footer *,
.homepage-9 .first-footer,
.homepage-9 .first-footer *,
.homepage-1 .first-footer,
.homepage-1 .first-footer *,
.homepage-4 .first-footer,
.homepage-4 .first-footer *,
.inner-pages .first-footer,
.inner-pages .first-footer * {
    color: #cccccc !important;
}

/* Footer headings should be white */
body .first-footer h3,
body .first-footer h4,
body .first-footer h5,
.homepage-9 .first-footer h3,
.homepage-1 .first-footer h3,
.homepage-4 .first-footer h3,
.inner-pages .first-footer h3 {
    color: #ffffff !important;
}

/* Footer links */
body .first-footer a,
.homepage-9 .first-footer a,
.homepage-1 .first-footer a,
.homepage-4 .first-footer a,
.inner-pages .first-footer a {
    color: #cccccc !important;
}

body .first-footer a:hover,
.homepage-9 .first-footer a:hover,
.homepage-1 .first-footer a:hover,
.homepage-4 .first-footer a:hover,
.inner-pages .first-footer a:hover {
    color: var(--primary-orange) !important;
}

/* Footer icons */
body .first-footer i,
.homepage-9 .first-footer .contactus i,
.homepage-1 .first-footer .contactus i,
.homepage-4 .first-footer .contactus i,
.inner-pages .first-footer .contactus i {
    color: var(--primary-orange) !important;
}

body .first-footer .twitter-widget i,
.homepage-9 .first-footer .twitter-widget i,
.homepage-1 .first-footer .twitter-widget i,
.homepage-4 .first-footer .twitter-widget i,
.inner-pages .first-footer .twitter-widget i {
    color: var(--primary-orange) !important;
}

/* Ensure consistent logo sizing */
body .first-footer .netabout .logo img,
.homepage-9 .first-footer .netabout .logo img,
.homepage-1 .first-footer .netabout .logo img,
.homepage-4 .first-footer .netabout .logo img,
.inner-pages .first-footer .netabout .logo img {
    max-width: 180px !important;
    margin-bottom: 20px !important;
}

/* Second footer consistency */
body .second-footer p,
.homepage-9 .second-footer p,
.homepage-1 .second-footer p,
.homepage-4 .second-footer p,
.inner-pages .second-footer p {
    color: #ffffff !important;
    margin: 0 !important;
}

/* ========================================
   24. Footer Container Fix
   ======================================== */
/* Prevent footer overflow */
.first-footer .top-footer .container-fluid,
.second-footer .container-fluid {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.first-footer .row,
.second-footer .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* ========================================
   25. Navigation Text Color Visibility
   ======================================== */
/* Navigation text should be visible on all backgrounds */
#navigation ul li a {
    color: #333333 !important;
    font-weight: 500 !important;
}

/* White text on colored/dark backgrounds */
.homepage-9 #navigation ul li a,
.homepage-1 #navigation ul li a,
.header.cloned #navigation ul li a {
    color: #333333 !important;
}

/* Hover and active states */
#navigation ul li a:hover,
#navigation ul li a.active,
#navigation ul li.active a {
    color: var(--primary-orange) !important;
}

/* Sign In button visibility */
.header-widget.sign-in a,
.show-reg-form a {
    color: #333333 !important;
    font-weight: 500 !important;
}

.header-widget.sign-in a:hover,
.show-reg-form a:hover {
    color: var(--primary-orange) !important;
}

/* User menu visibility */
.header-user-menu .header-user-name {
    color: #333333 !important;
}

/* ========================================
   26. Hide Duplicate Dropdowns
   ======================================== */
/* Hide the hidden select elements that are causing duplicates */
.select-hidden {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide all native select elements in the search form */
.trip-search select,
.main-search-field select,
.widget-boxed select {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Ensure nice-select dropdowns are visible */
.nice-select {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
}

/* ========================================
   27. Consistent Form Field Spacing
   ======================================== */
/* Make spacing between all search form fields consistent */
.widget-boxed .trip-search .form-group {
    margin-top: 15px !important;
    margin-bottom: 0 !important;
}

/* First form group should also have consistent spacing */
.widget-boxed .trip-search .form-group:first-child {
    margin-top: 0 !important;
}

/* Reset any extra spacing on nice-select elements */
.widget-boxed .trip-search .nice-select {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

/* Remove extra margin from input containers */
.widget-boxed .trip-search .main-search-input-item {
    margin-bottom: 0 !important;
}
