/* Taya Real Estate Services - Theme Styling */

:root {
    /* Taya color palette */
    --taya-primary: #1e4d8c;     /* Deep blue */
    --taya-secondary: #e67e22;   /* Orange accent */
    --taya-accent: #f39c12;      /* Gold accent */
    --taya-dark: #2c3e50;        /* Dark blue */
    --taya-light: #f8f9fa;       /* Light background */
    --taya-white: #ffffff;       /* White */
    --taya-gold: #f1c40f;        /* Gold accent */
    --taya-sand: #e6d2b5;        /* Sand color */
    --taya-text: #333333;        /* Text color */
    --taya-gradient-start: #1e4d8c;
    --taya-gradient-end: #2980b9;
}

/* General Styling */
body {
    font-family: 'Tajawal', sans-serif;
    color: var(--taya-text);
}

.btn-primary {
    background-color: var(--taya-primary);
    border-color: var(--taya-primary);
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #16396a;
    border-color: #16396a;
}

.btn-outline-primary {
    color: var(--taya-primary);
    border-color: var(--taya-primary);
}

.btn-outline-primary:hover {
    background-color: var(--taya-primary);
    border-color: var(--taya-primary);
    color: white;
}

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

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

/* Header Styling */
.navbar {
    background: linear-gradient(135deg, var(--taya-gradient-start), var(--taya-gradient-end));
    padding: 0.8rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
}

.navbar-light .navbar-brand {
    color: white !important;
}

.navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.navbar-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.navbar-light .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
}

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

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--taya-white);
}

.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
}

.navbar-dark .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.15);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    background-color: white;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: var(--taya-dark);
}

.dropdown-item:hover {
    background-color: rgba(30, 77, 140, 0.1);
    color: var(--taya-primary);
}

/* Mobile Responsive Navbar */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #16396a;
        background-color: rgb(13, 100, 237);
        border-radius: 0.5rem;
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
    
    .navbar-light .navbar-nav .nav-link {
        border-radius: 0.25rem;
        padding: 0.75rem 1rem;
        color: white;
    }
    
    .dropdown-menu {
        background-color: white;
        border: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    .dropdown-item {
        color: var(--taya-dark);
    }
    
    .dropdown-item:hover {
        background-color: rgba(30, 77, 140, 0.1);
        color: var(--taya-primary);
    }
    
    .navbar-light .navbar-nav .dropdown-menu .dropdown-item {
        color: var(--taya-dark);
    }
    
    /* Asegurar que los elementos del menú desplegable sean visibles */
    .navbar-light .navbar-nav .dropdown-menu {
        background-color: white !important;
    }
    
    .navbar-light .navbar-nav .dropdown-menu .dropdown-item {
        color: var(--taya-dark) !important;
    }
}

/* Corregir colores del dropdown en todos los tamaños de pantalla */
.navbar .dropdown-menu {
    background-color: white;
}

.navbar .dropdown-menu .dropdown-item {
    color: var(--taya-dark);
}

.navbar .dropdown-menu .dropdown-item:hover {
    background-color: rgba(30, 77, 140, 0.1);
    color: var(--taya-primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 43, 73, 0.7), rgba(0, 43, 73, 0.7)), url('../images/gulf-skyline.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    margin-bottom: 40px;
    position: relative;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-section .btn {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Search Section */
.search-section {
    background-color: var(--taya-white);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--taya-primary);
}

.search-section h5 {
    color: var(--taya-dark);
    font-weight: 600;
}

.search-section .form-select,
.search-section .form-control {
    border: 1px solid #e0e0e0;
    padding: 0.75rem;
    height: 50px;
}

.search-section .btn {
    height: 50px;
    font-weight: 500;
}

/* Property Cards */
.property-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.card-img-container {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img-top {
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.property-type-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--taya-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.property-city-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--taya-dark);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

.property-card .card-body {
    padding: 20px;
}

.property-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 3.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--taya-primary);
    margin-bottom: 15px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.property-feature {
    display: flex;
    align-items: center;
    color: #666;
}

.property-feature i {
    margin-right: 5px;
    font-size: 1.1rem;
}

.property-card .card-footer {
    background-color: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 20px;
}

.default-property-img {
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-property-img i {
    font-size: 3rem;
    color: #adb5bd;
}

/* Gulf Properties Section */
.gulf-properties-section {
    padding: 40px 0;
}

.city-heading {
    color: var(--taya-dark);
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.city-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--taya-primary);
    border-radius: 2px;
}

/* Property Detail Page */
.property-detail-section {
    padding: 40px 0;
}

.property-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.property-detail-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--taya-dark);
}

.property-location {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #666;
}

.property-location i {
    margin-right: 10px;
    color: var(--taya-primary);
}

.property-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--taya-primary);
}

.property-detail-price small {
    font-size: 1rem;
    font-weight: 400;
}

.property-main-image {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.property-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-thumbnail {
    height: 190px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.property-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.more-photos {
    position: relative;
}

.more-photos .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    z-index: 1;
}

.property-detail-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--taya-light);
    border-radius: 10px;
}

.property-detail-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.property-detail-feature i {
    font-size: 2rem;
    color: var(--taya-primary);
    margin-bottom: 10px;
}

.property-detail-feature span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--taya-dark);
}

.property-detail-feature small {
    font-size: 0.9rem;
    color: #666;
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-header h4 {
    margin: 0;
    font-weight: 600;
    color: var(--taya-dark);
}

.card-body {
    padding: 20px;
}

.owner-card, .inquiry-card {
    border-top: 4px solid var(--taya-primary);
}

.owner-info {
    text-align: center;
}

.owner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--taya-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.owner-avatar i {
    font-size: 3rem;
    color: var(--taya-primary);
}

.owner-info h5 {
    font-weight: 600;
    margin-bottom: 15px;
}

.owner-contact {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.contact-item i {
    margin-right: 10px;
    color: var(--taya-primary);
}

.similar-properties h3 {
    font-weight: 700;
    color: var(--taya-dark);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.similar-properties h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--taya-primary);
    border-radius: 2px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .property-detail-feature {
        min-width: 100px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .property-main-image {
        height: 300px;
    }
    
    .property-thumbnail {
        height: 150px;
    }
    
    .property-detail-features {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .property-detail-feature {
        min-width: 80px;
    }
    
    .property-main-image {
        height: 250px;
    }
}
