/* Main Variables */
:root {
    --primary-color: #e65100;
    /* Egyptian orange */
    --secondary-color: #03a9f4;
    /* Nile blue */
    --accent-color: #ffc107;
    /* Gold for pyramids */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition-speed: 0.3s ease;
    --heading-font: 'Poppins', Arial, sans-serif;
    --body-font: 'Open Sans', Arial, Helvetica, sans-serif;

    /* New variables for night mode */
    --night-bg: #121212;
    --night-card-bg: #1e1e1e;
    --night-text: #e0e0e0;
    --night-secondary-text: #aaaaaa;
    --night-border: #333333;
    --night-card-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    --night-hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600&family=Poppins:wght@400;500;600;700&display=swap');

/* Base Styles */
body {
    background-color: #fff;
    font-family: var(--body-font);
    height: 100%;
    color: var(--text-color);
    line-height: 1.6;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

main {
    height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
}

/* Navigation */
#heroSection {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    background-color: var(--white);
    padding: 10px 0;
}

.navbar {
    padding: 0;
}

/*   .navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.8rem;
    position: relative;
  }
  
  .navbar-brand::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 3px;
    width: 60%;
    background-color: var(--accent-color);
    border-radius: 5px;
  } */

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    position: relative;
    padding: 8px 0 !important;
    margin: 0 15px;
    font-size: 1.05rem;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Listing Cards */
.listing-card {
    border: none;
    background-color: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.listing-card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to top, var(--primary-color), transparent);
    opacity: 0.3;
    transition: height 0.3s ease;
    z-index: 1;
    border-radius: var(--border-radius);
}

.listing-card:hover::before {
    height: 100%;
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.listing-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.listing-info {
    padding: 15px 10px 5px;
}

.listing-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 5px;
    color: var(--text-color);
}

.listing-info p {
    font-size: 0.9rem;
    color: #666;
    margin: 3px 0;
}

.price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
}

/* Badge for special offers */
.badge-offer {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: #333;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 30px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Rating Stars */
.stars {
    color: var(--accent-color);
    margin-bottom: 8px;
}

/* Location with Icon */
.location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.location i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Footer */
footer {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px 0;
    background-color: var(--white);
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

footer p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

footer img {
    transition: transform 0.3s ease;
}

footer:hover img {
    transform: rotate(15deg);
}

/* Hero Section / Banner */
.hero-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/egypt/pyramids.jpg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.search-bar {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin-top: 20px;
}

.search-bar .form-control {
    height: 50px;
    border-radius: 25px;
    padding-left: 20px;
    box-shadow: none;
    border: 1px solid #eee;
}

.search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    height: 50px;
    border-radius: 25px;
    font-weight: 600;
    width: 100%;
    transition: background-color var(--transition-speed);
}

.search-btn:hover {
    background-color: #d84e00;
}

/* Filters Section */
.filters {
    background-color: var(--light-bg);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.filters .form-select,
.filters .form-control {
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 30px;
    font-weight: 600;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background-color: white;
        padding: 15px;
        border-radius: 10px;
        box-shadow: var(--card-shadow);
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .listing-img {
        height: 180px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .listing-card {
        margin-bottom: 20px;
    }

    .hero-banner {
        height: 40vh;
    }

    .search-bar {
        padding: 15px;
    }

    .search-bar .row>div {
        margin-bottom: 15px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slider Images */
.slider-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    filter: brightness(90%) blur(1px);
    transition: filter var(--transition-speed);
}
.slider-img2 {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: var(--border-radius);
    /* filter: brightness(90%) blur(1px); */
    transition: filter var(--transition-speed);
}

.slider-container:hover .slider-img {
    filter: brightness(100%);
}

/* CTA Sections */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/egypt/nile.jpg');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: white;
    text-align: center;
    margin: 40px 0;
}

.cta-btn {
    background-color: var(--accent-color);
    color: #333;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    transition: transform var(--transition-speed);
}

.cta-btn:hover {
    transform: scale(1.05);
}


/* ========================================= */

/* Night Mode Styles */
body.night-mode {
    background-color: var(--night-bg);
    color: var(--night-text);
}

/* Night mode navigation */
body.night-mode #heroSection {
    background-color: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.night-mode .navbar-brand {
    color: var(--primary-color);
}

body.night-mode .nav-link {
    color: var(--night-text) !important;
}

body.night-mode .navbar-toggler-icon {
    filter: invert(1);
}

/* Night mode cards */
body.night-mode .listing-card {
    background-color: transparent;
}

body.night-mode .listing-card:hover {
    box-shadow: var(--night-hover-shadow);
}

body.night-mode .listing-info h5 {
    color: var(--night-text);
}

body.night-mode .listing-info p {
    color: var(--night-secondary-text);
}

/* Night mode footer */
body.night-mode footer {
    background-color: #1a1a1a;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    border-top: 1px solid #333;
}

body.night-mode footer p {
    color: var(--night-text);
}

/* Night mode search bar and forms */
body.night-mode .search-bar {
    background-color: var(--night-card-bg);
}

body.night-mode .form-control,
body.night-mode .form-select {
    background-color: #2d2d2d;
    border: 1px solid #444;
    color: var(--night-text);
}

body.night-mode .form-control::placeholder {
    color: #888;
}

/* Night mode other elements */
body.night-mode .section-title {
    color: var(--night-text);
}

body.night-mode .category-card {
    background-color: var(--night-card-bg);
}

body.night-mode .feature-tag {
    background-color: rgba(230, 81, 0, 0.2);
}

body.night-mode .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Night mode toggle button styling */
.night-mode-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.night-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

body.night-mode .night-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.night-mode-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

body.night-mode .moon-icon {
    display: none;
}

body.night-mode .sun-icon {
    display: inline-block !important;
    color: var(--accent-color);
}

.sun-icon {
    display: none !important;
    color: var(--accent-color);
}

.moon-icon {
    display: inline-block;
    color: #555;
}