:root {
    --primary-color: #2E5BBA;
    --secondary-color: #FFB800;
    --accent-color: #8B4513;
    --light-brown: #F5E6D3;
    --light-blue: #E3F2FD;
    --light-yellow: #FFF8E1;
    --dark-text: #2C3E50;
    --light-text: #6C757D;
    --success: #28A745;
    --danger: #DC3545;
    --warning: #FFC107;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: linear-gradient(135deg, var(--light-yellow) 0%, var(--light-blue) 100%);
    min-height: 100vh;
}

/* Custom Bootstrap overrides */
.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: var(--border-radius);
    padding: 12px 24px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 500;
}

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

/* Cards */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-img-top {
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Property card specific */
.property-card {
    position: relative;
    margin-bottom: 30px;
}

.property-card .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    border-radius: 20px;
    padding: 8px 12px;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0;
}

.feature-badge {
    background: var(--light-brown);
    color: var(--accent-color);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Search form */
.search-form {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    margin: -50px auto 50px;
    position: relative;
    z-index: 10;
}

.form-control, .form-select {
    border: 2px solid #E9ECEF;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 91, 186, 0.25);
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

/* Navigation */
.navbar-brand {
    font-size: 2rem !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    border-radius: 20px;
    padding: 8px 16px !important;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover {
    background: var(--light-blue);
    color: var(--primary-color) !important;
}

/* Property filters */
.filter-sidebar {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E9ECEF;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Price range slider */
.price-range {
    margin: 20px 0;
}

.price-inputs {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.price-inputs input {
    flex: 1;
    text-align: center;
}

/* Amenity checkboxes */
.amenity-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
}

.amenity-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: var(--primary-color);
}

.amenity-checkbox label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Property details page */
.property-gallery {
    position: relative;
    margin-bottom: 30px;
}

.main-image {
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border: 2px solid var(--primary-color);
}

/* Rating stars */
.rating-stars {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.rating-stars .filled {
    color: var(--secondary-color);
}

.rating-stars .empty {
    color: #DDD;
}

/* Booking widget */
.booking-widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 100px;
}

.booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.price-breakdown {
    border-top: 1px solid #E9ECEF;
    padding-top: 20px;
    margin-top: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.total-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-top: 2px solid #E9ECEF;
    padding-top: 15px;
    margin-top: 15px;
}

/* Reviews section */
.review-item {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 15px;
}

/* Messages */
.message-thread {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: #F8F9FA;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.message-item {
    margin-bottom: 15px;
    display: flex;
}

.message-item.sent {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 20px;
    position: relative;
}

.message-item.received .message-bubble {
    background: white;
    color: var(--dark-text);
}

.message-item.sent .message-bubble {
    background: var(--primary-color);
    color: white;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 5px;
}

/* Dashboard */
.dashboard-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
}

.stat-card {
    text-align: center;
    padding: 30px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--light-text);
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .search-form {
        margin: -30px 15px 30px;
        padding: 20px;
    }
    
    .booking-dates {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .main-image {
        height: 250px;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 30px;
    }
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shadow-custom {
    box-shadow: var(--box-shadow);
}

.rounded-custom {
    border-radius: var(--border-radius);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .filter-sidebar {
        display: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
}