/* EVA Property Valuation System - Custom CSS (No Bootstrap) */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
    direction: rtl;
    text-align: right;
}

.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Bootstrap Navbar Override Styles */
.navbar {
    background-color: white !important;
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #dee2e6;
}

.navbar-brand img {
    height: 55px;
    width: auto;
}

.navbar-nav .nav-link {
    color: #495057 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    margin: 0 0.25rem !important;
    background-color: white !important;
}

.navbar-nav .nav-link:hover {
    background-color: #967c3f !important;
    color: white !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link.active {
   
    color: #273f52 !important;
}

.navbar-brand-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-brand-right .text-end {
    min-width: 180px;
    text-align: right !important;
}

.brand-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #273f52 !important;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: #6c757d !important;
    line-height: 1.2;
}

.navbar-brand-right img {
    height: 55px;
    width: auto;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px auto;
    transition: all 0.3s;
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s;
}

.nav-toggle-icon::before {
    top: -8px;
}

.nav-toggle-icon::after {
    top: 8px;
}

/* Main Content Styles */
.main-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 500;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #273f52;
    color: white;
}

.btn-primary:hover {
    background-color: #001b30;
    transform: translateY(-2px);
}

/* Mobile Navigation Toggle */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #273f52 0%, #001a2e 100%);
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 300px;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 1rem;
    }
    
    .nav-brand-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
}

/* Main Content Styles */
.main-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

/* Section Titles */
.section-title {
    color: #3c4b64;
    border-bottom: 2px solid #273f52;
    padding-bottom: 8px;
    margin-bottom: 20px;
}

/* Form Styles */
.form-label {
    font-weight: bold;
    color: #273f52;
}

/* Chip Styles */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.chip {
    padding: 8px 15px;
    border: 1.5px solid #967c3f;
    border-radius: 20px;
    background-color: #ffffff;
    cursor: pointer;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    user-select: none;
    color: #273f52;
}

.chip input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}

.chip label {
    margin-bottom: 0;
    vertical-align: middle;
    font-weight: normal;
}

/* Building Details Sections */
#buildingDetailsAdmin {
    border: 1px dashed #273f52;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    display: none;
}

#buildingDetailsSection {
    border: 1px dashed #967c3f;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    display: none;
}

/* Navbar Styles */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.navbar-brand {
    margin: 0;
    padding: 0;
}

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

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

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    margin: 0 5px;
    transition: all 0.3s ease;
    color: #273f52 !important;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background-color: #967c3f;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 44, 70, 0.106);
}

.navbar-nav .nav-link.active {
    
    color:  #273f52 !important;
    box-shadow: 0 4px 8px rgba(0, 44, 70, 0.106);
}

.navbar-nav .nav-link.active:hover {
    
    color:  #ffffffff !important;
    box-shadow: 0 4px 8px rgba(0, 44, 70, 0.106);
}
.navbar-nav .nav-link i {
    font-size: 1rem;
}

.navbar-brand-right {
    margin: 0;
}

.brand-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #273f52;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: #967c3f;
    line-height: 1.2;
}

.navbar-toggler {
    border: 2px solid #273f52;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 44, 70, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 44, 70, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar Responsive Styles */
@media (max-width: 992px) {
    .navbar-brand-right {
        display: none !important;
    }
    
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        margin: 2px 0;
        text-align: center;
    }
    
    .brand-title, .brand-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-brand-right img {
        height: 35px;
    }
}

/* Custom scrollbar for navbar */
.navbar-nav {
    scrollbar-width: thin;
    scrollbar-color: #967c3f #ffffff;
}

.navbar-nav::-webkit-scrollbar {
    width: 6px;
}

.navbar-nav::-webkit-scrollbar-track {
    background: #ffffff;
}

.navbar-nav::-webkit-scrollbar-thumb {
    background-color: #967c3f;
    border-radius: 3px;
}

/* Valuation Form Specific Styles */
.form-container {
    background-color: #f9fafb;
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(255,140,0,0.08);
    max-width: 700px;
    margin: 30px auto;
    direction: rtl;
}

.chip.selected {
    background-color: #967c3f;
    color: #fff;
    border-color: #967c3f;
}

#extraBuildingDetails {
    padding: 10px 0 0 0;
    display: none;
}

#priceResult {
    font-size: 1.3em;
    font-weight: bold;
    color: #967c3f;
    margin-top: 20px;
    text-align: center;
}

.mode-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mode-switch .btn {
    min-width: 130px;
    border-color: #967c3f;
    color: #967c3f;
    background: #fff;
}

.mode-switch .btn.active, .mode-switch .btn:active {
    background-color: #967c3f !important;
    color: #fff !important;
    border-color: #967c3f !important;
}

.quick-fields {
    display: none;
}

.detailed-fields {
    display: none;
}

.btn-orange {
    background-color: #967c3f;
    color: #fff;
    border: none;
}

.btn-orange:hover, .btn-orange:focus {
    background-color: #967c3f;
    color: #fff;
}

.result-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    background-color: #fff8e1;
    border: 1px solid #ffe0b2;
    text-align: center;
}

.breakdown-card {
    transition: transform 0.2s ease-in-out;
}

.breakdown-card:hover {
    transform: translateY(-2px);
}

.card-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.card h4, .card h3 {
    margin-bottom: 0;
    font-weight: bold;
}

/* Enhanced Footer Styles */
.eva-footer {
    background-color: #273f52;
    color: white;
    padding: 3rem 0 1.5rem 0;
    margin-top: 4rem;
}

.footer-logo {
    height: 60px;
   
}

.footer-brand {
    text-align: center;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #967c3f;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.footer-partner {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0;
}

/* Enhanced Footer Styles */


.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    gap: 2rem;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.footer-partner {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0;
}

.left-column {
    display: flex;
    flex-direction: column;
    order: 2;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-badges {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.app-badge-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-badge-link:hover {
    transform: scale(1.05);
}

.app-badge {
    height: 45px;
    width: auto;
}

.right-column {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.markaz-text {
    text-align: right;
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem 0;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0;
}

/* Footer Responsive Styles */
@media (max-width: 991px) {
    .footer-logo {
        height: 50px;
    }
    
    .footer-title {
        font-size: 1.25rem;
    }
    
    .app-badge {
        height: 40px;
    }
}

@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .eva-footer {
        padding: 2rem 0 1rem 0;
    }
    
    .footer-logo {
        height: 45px;
    }
    
    /* Center the logo and title */
    .left-column {
        align-items: center;
    }
    
    .logo-wrapper {
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .right-column {
        justify-content: center;
        flex-direction: row-reverse; /* Reverse order on mobile to keep logo on right */
    }
    
    .markaz-text {
        text-align: center;
    }
    
    .app-badges {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .app-badge {
        height: 38px;
    }
}

@media (max-width: 480px) {
    .footer-title {
        font-size: 1.1rem;
    }
    
    .left-column {
        align-items: center;
        text-align: center;
    }
    
    .right-column {
        flex-direction: column; /* Stack vertically on very small screens */
    }
}

/* Banner Styles */
.banner-vertical {
    max-height: 600px;
    width: auto;
}

.banner-horizontal {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
}

.banner-side {
    width: 175px !important;
    height: 715px !important;
    object-fit: cover;
    border-radius: 0;
}

.banner-item {
    transition: transform 0.3s ease;
}

.banner-item:hover {
    transform: scale(1.02);
}

.sticky-top {
    position: sticky;
    z-index: 1020;
}

/* Adjust content margins for fixed banners */
@media (min-width: 992px) {
    .main-container {
        margin-left: 175px;
        margin-right: 175px;
    }
}

/* Banner responsive adjustments */
@media (max-width: 991.98px) {
    .banner-item {
        margin-bottom: 1rem !important;
    }
    
    .main-container {
        margin-left: 0;
        margin-right: 0;
    }
}
