/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #f5f8fa; /* Use your preferred background color */
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    min-width: 100vw;
}

/* Optional: Make main content sections full width */
main, section, header, footer {
    width: 100%;
    box-sizing: border-box;
}

/* Stellenbosch Page Background */
body.stellenbosch-page {
    background: url('images/stellie.jpg') no-repeat center center fixed;
    background-size: cover;
    color: white; /* Ensure text is readable on the background */
}

body.stellenbosch-page header,
body.stellenbosch-page footer {
    background-color: rgba(0, 0, 0, 0.7); /* Add a semi-transparent background for header and footer */
}

body.stellenbosch-page section {
    background-color: rgba(255, 255, 255, 0.8); /* Add a semi-transparent background for sections */
    color: black; /* Ensure text inside sections is readable */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #004080;
    margin-bottom: 1rem;
}

/* Paragraphs */
p {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

/* Links */
a {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #004080;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Buttons */
button, .action-button {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: white;
    background-color: #004080;
    border: none;
    border-radius: 4px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .action-button:hover {
    background-color: #003366;
}

/* Global Styles for Responsiveness */
img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode h2, .dark-mode label, .dark-mode p {
    color: #ffffff;
}

.dark-mode input, .dark-mode button {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #555555;
}

.dark-mode .dark-mode-toggle {
    background-color: #ffffff;
    color: #121212;
    border: 1px solid #ffffff;
}

.dark-mode .dark-mode-toggle:hover {
    background-color: #dddddd;
    color: #121212;
}

/* Header Styling */
header {
    background-color: #0077cc; /* Replace with the primary color of your logo */
    color: white;
    padding: 20px 0;
}

header a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

header a:hover {
    text-decoration: underline;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between logo image and text */
}

.logo-container img {
    height: 40px; /* Adjusted logo size */
    width: auto;
}

/* Ensure Main Content is Visible Below the Navigation Bar */
main {
    padding: 20px;
    font-family: 'Poppins', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Section Titles */
main h2, main h3 {
    color: #004080;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* FAQ Items */
.faq-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-item h4 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    color: #004080;
}

.faq-item p {
    margin: 0;
    font-size: 1rem;
    color: #555;
}

.faq-item a {
    color: #004080;
    text-decoration: underline;
    font-weight: 600;
}

.faq-item a:hover {
    color: #ffcc00;
}

/* Footer Styling */
footer {
    background-color: #005fa3; /* Replace with a complementary color from your logo */
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer a {
    color: #a2d4f7; /* Replace with a lighter color from your logo */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    nav a {
        width: 100%;
        text-align: left;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh; /* Adjust the height to make it smaller */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/kaapstad Bo kant.webp') no-repeat center center;
    background-size: cover;
    color: white; /* Ensure text is readable */
    padding: 50px 20px;
    box-sizing: border-box;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* Add a semi-transparent overlay for better readability */
    padding: 50px 20px;
    border-radius: 10px;
}

.hero h2 {
    font-size: 2rem; /* Adjust font size for the heading */
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem; /* Adjust font size for the paragraph */
    margin-bottom: 1.5rem;
}

.search-container {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 4px;
    padding: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.search-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input input {
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem;
    width: 250px;
}

.search-button {
    background-color: #004080;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #003366;
}

.hero-buttons {
    margin-top: 1.5rem;
}

.hero-button {
    display: inline-block;
    background-color: #004080;
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: #003366;
}

/* Add an overlay for better text readability */
.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;
}

/* Search Bar Styles */
.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 1rem;
}

.search-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    background-color: #f9f9f9;
}

.search-input input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem;
}

.search-button {
    padding: 0.5rem 1rem;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #003366;
}

/* Search Bar Styling */
.search-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin: 20px 0;
}

.search-input-container {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-input-container input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-list li {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-list li:hover {
    background-color: #f0f0f0;
}

/* Filters Styling */
.search-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.search-filters select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Search Results Styling */
#results-container {
    margin: 20px;
}

.result-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.result-item h3 {
    margin: 0 0 10px;
}

.result-item p {
    margin: 0 0 10px;
}

.result-item a {
    color: #0077cc;
    text-decoration: none;
}

.result-item a:hover {
    text-decoration: underline;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 1001;
}

.skip-link:focus {
    top: 0;
}

/* Reviews Section */
.reviews-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    overflow: hidden;
    position: relative;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-item {
    min-width: 300px;
    margin: 0 1rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
}

.review-item h4 {
    font-size: 1.2rem;
    color: #004080;
    margin-bottom: 0.5rem;
}

.review-item p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
}

.review-item .rating {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-item .rating span {
    margin-right: 0.2rem;
}

/* Navigation Buttons */
.review-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #004080;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.review-button.left {
    left: 10px;
}

.review-button.right {
    right: 10px;
}

.review-button:hover {
    background-color: #003366;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .review-item {
        min-width: 100%;
    }
}

/* Blog Section */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-post {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.blog-post h3 {
    font-size: 1.2rem;
    color: #004080;
    margin-bottom: 0.5rem;
}

.blog-post p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1rem;
}

.blog-post .read-more {
    display: inline-block;
    color: #004080;
    font-weight: bold;
    text-decoration: none;
    margin-top: 1rem;
}

.blog-post .read-more:hover {
    text-decoration: underline;
}

/* Listing Section */
.listing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
}

.listing-item {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.listing-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.listing-item h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
    color: #004080;
}

.listing-item p {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #555;
}

/* Mobile Property Listings */
@media (max-width: 768px) {
    .listing-item h3 {
        font-size: 1.2rem;
    }

    .listing-item p {
        font-size: 0.9rem;
    }
}

.view-details {
    display: inline-block;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background-color: #004080;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.view-details:hover {
    background-color: #003366;
}

.view-all-listings {
    display: block;
    margin: 2rem auto;
    text-align: center;
    padding: 0.5rem 1rem;
    background-color: #004080;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    max-width: 200px;
}

.view-all-listings:hover {
    background-color: #003366;
}

/* Chatbot styles */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Chatbot Toggle Button */
.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0077cc;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.chatbot-toggle:hover {
    background-color: #005fa3;
}

/* Chatbot Box */
.chatbot-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 300px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default */
    z-index: 1000;
}

.chat-header {
    background-color: #0077cc;
    color: white;
    padding: 10px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
    color: #333;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-right: 10px;
}

.chat-input button {
    background-color: #0077cc;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.chat-input button:hover {
    background-color: #005fa3;
}

/* Verified Badge */
.verified-badge {
    display: inline-block;
    background-color: #28a745;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    text-transform: uppercase;
}

/* Notification Banner */
.notification-banner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #004080;
    color: white;
    text-align: center;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notification-banner p {
    margin: 0;
    font-size: 1rem;
}

.notification-banner a {
    color: #FFD700;
    font-weight: bold;
    text-decoration: underline;
}

.notification-banner a:hover {
    text-decoration: none;
}

.notification-banner .close-notification {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.notification-banner .close-notification:hover {
    color: #FFD700;
}

/* Login Button */
.login-button {
    background-color: #004080;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.login-button:hover {
    background-color: #003366;
}

/* Mobile adjustments for chatbot */
@media screen and (max-width: 768px) {
    .chatbot-box {
        width: calc(100vw - 40px);
        right: 0;
    }
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    header {
        padding: 1rem 5%;
        background: rgba(0, 0, 0, 0.8);
    }

    .logo {
        height: 30px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    header nav ul {
        gap: 1rem;
    }

    .hero {
        height: 100vh;
        height: -webkit-fill-available;
    }

    .hero-overlay {
        padding: 60px 1rem 0;
        align-items: center;
        justify-content: flex-start;
    }

    .hero h2 {
        font-size: 2rem;
        padding: 1rem;
        margin-top: 2rem;
        text-align: center;
        white-space: normal;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    }

    .hero-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
        text-align: center;
        white-space: normal;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    }

    .search-container {
        width: 90%;
        margin: 1rem auto;
    }

    .search-box {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
        border-radius: 15px;
    }

    .search-input {
        width: 100%;
    }

    .search-button {
        width: 100%;
        margin-top: 0.5rem;
        padding: 0.8rem;
    }

    .popular-searches {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0 1rem;
    }

    .popular-searches a {
        font-size: 0.8rem;
        margin: 0;
        padding: 0.3rem 0.8rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 15px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    main {
        padding: 1rem;
    }

    footer nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .blog-container {
        grid-template-columns: 1fr;
    }

    .blog-post {
        padding: 1rem;
    }

    .blog-post h3 {
        font-size: 1rem;
    }

    .blog-post p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .carousel-item {
        min-width: 100%;
    }
}

/* Remove scrollbar on mobile */
@media screen and (max-width: 480px) {
    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    body::-webkit-scrollbar {
        display: none;
    }

    header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .hero h2 {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-top: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    .search-box {
        padding: 0.8rem;
    }

    .search-input input {
        font-size: 0.9rem;
    }

    .search-button {
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .blog-post h3 {
        font-size: 0.9rem;
    }

    .blog-post p {
        font-size: 0.8rem;
    }
}

/* Handle landscape orientation */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .hero-overlay {
        padding-top: 40px;
    }

    .hero h2 {
        font-size: 1.5rem;
        margin-top: 1rem;
    }

    .search-container {
        margin: 0.5rem auto;
    }

    .popular-searches {
        margin-top: 0.5rem;
    }
}

/* Fix for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
    .hero-overlay {
        padding-top: calc(env(safe-area-inset-top) + 60px);
    }
}

/* Additional fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: -webkit-fill-available;
    }
}

/* Dashboard Styles */
h2 {
    color: #004080;
    margin-bottom: 1rem;
}

/* General Styles for Property Images */
.property-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #f9f9f9;
    padding: 1rem;
    margin: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.property-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.property-item h3 {
    margin: 0.5rem 0;
    font-size: 1.2rem;
    text-align: center;
}

.property-item p {
    margin: 0.3rem 0;
    font-size: 1rem;
    color: #555;
    text-align: center;
}

/* Container for Saved Properties */
.saved-properties {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 1200px;
}

/* Responsive Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table th, table td {
    padding: 0.8rem;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #004080;
    color: white;
}

/* Mobile Table */
@media (max-width: 768px) {
    table th, table td {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

form {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form label {
    font-weight: bold;
    color: #004080;
}

form input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

form button {
    padding: 0.5rem 1rem;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

form button:hover {
    background-color: #003366;
}

/* Virtual Tour Styles */
.virtual-tour {
    margin: 2rem 0;
    text-align: center;
}

.virtual-tour iframe {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Carousel Track */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

/* Carousel Item */
.carousel-item {
    min-width: 100%;
    text-align: center;
    padding: 1rem;
    background-color: #f9f9f9;
}

.carousel-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.carousel-item h3 {
    margin: 1rem 0 0.5rem;
    font-size: 1.5rem;
    color: #004080;
}

.carousel-item p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #555;
}

.carousel-item .view-details {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #004080;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.carousel-item .view-details:hover {
    background-color: #003366;
}

/* Carousel Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    z-index: 1000;
}

.carousel-button.left {
    left: 1rem;
}

.carousel-button.right {
    right: 1rem;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Contact Button */
.contact-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 2rem auto;
    text-align: center;
}

.contact-button:hover {
    background-color: #003366;
}

/* Hidden Form */
.hidden {
    display: none;
}

#contact-form-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Action Buttons (Contact Us and Make a Payment) */
.action-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 1rem auto;
    text-align: center;
}

.action-button:hover {
    background-color: #003366;
}

/* Hidden Content */
#payment-info-container {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Quote Section */
.quote-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #f9f9f9;
    text-align: center;
}

.quote-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.founder-picture-frame {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #004080;
}

.founder-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    margin: 0;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    color: #004080;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

/* Explore Section */
#explore {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#explore h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #004080;
}

#explore iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
#contact-section {
    margin: 2rem auto;
    padding: 1.5rem;
    max-width: 600px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#contact-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #004080;
}

#contact-section form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-section label {
    font-size: 1rem;
    color: #333;
    text-align: left;
}

#contact-section input,
#contact-section textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

#contact-section button {
    padding: 0.8rem 1.5rem;
    background-color: #004080;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-section button:hover {
    background-color: #003366;
}

/* Highlights Section */
.highlights {
    padding: 2rem;
    background-color: #f9f9f9;
    text-align: center;
    border-radius: 8px;
    margin: 2rem auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.highlights h2 {
    font-size: 2rem;
    color: #004080;
    margin-bottom: 1rem;
}

.highlights .Highlights_subtext__Nomcw {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.highlights .Highlights_cashback__1O7mM {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.highlights .Highlights_cashback__1O7mM img {
    margin-right: 0.5rem;
}

.highlights .CustomButton_btn__2M7Y7 {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #004080;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.highlights .CustomButton_btn__2M7Y7:hover {
    background-color: #003366;
}

.highlights .Highlights_stats__33ILL {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.highlights .Highlights_stat__1OEBR h3 {
    font-size: 1.5rem;
    color: #004080;
    margin: 0;
}

.highlights .Highlights_stat__1OEBR span {
    font-size: 1rem;
    color: #555;
}

@media (max-width: 768px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .carousel-container {
        flex-direction: column;
    }

    .reviews-container {
        flex-direction: column;
    }
}

/* Book Your Accommodation Section */
#book-accommodation {
    text-align: center;
    margin-top: 40px;
}

.book-button {
    background-color: #0077cc;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.book-button:hover {
    background-color: #005fa3;
}

.booking-info {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
}

.booking-info h2 {
    color: #0077cc;
    margin-bottom: 20px;
}

.booking-info label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.booking-info input,
.booking-info select,
.booking-info textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.booking-info button {
    background-color: #0077cc;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.booking-info button:hover {
    background-color: #005fa3;
}

/* Room Carousel */
.room-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.room-track-container {
    overflow: hidden;
    width: 100%;
}

.room-track {
    display: flex;
    transition: transform 0.5s;
}

.room-item {
    min-width: 250px; /* or your preferred width */
    flex-shrink: 0;
}

/* Poster Section */
.poster {
  background: linear-gradient(to right, #e0f7fa, #ffffff);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 50px auto;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.poster h1 {
  color: #0077cc;
  font-size: 36px;
}

.poster p {
  font-size: 20px;
  color: #333333;
  margin-bottom: 30px;
}

.poster ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.poster ul li {
  font-size: 18px;
  margin: 15px 0;
}

.poster a {
  background-color: #0077cc;
  color: white;
  padding: 15px 30px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 20px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.poster a:hover {
  background-color: #005fa3;
}

/* Privacy Policy Section */
.privacy-policy {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.privacy-policy h2, .privacy-policy h3 {
    color: #0077cc;
    margin-bottom: 15px;
}

.privacy-policy ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.privacy-policy ul li {
    margin-bottom: 10px;
}

.privacy-policy a {
    color: #0077cc;
    text-decoration: none;
}

.privacy-policy a:hover {
    text-decoration: underline;
}

/* History Section */
.history-section {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    color: #333;
}

.history-section h2, .history-section h3 {
    color: #0077cc;
    margin-bottom: 15px;
}

.history-section ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.history-section ul li {
    margin-bottom: 10px;
}

/* Welcome Poster */
.welcome-poster {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: #f9f9f9; /* Optional background color */
}

.welcome-poster img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Review Section */
#reviews {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

#reviews h2 {
    font-size: 32px;
    color: #0077cc;
    margin-bottom: 20px;
}

.review-carousel {
    overflow: hidden;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.review-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.review-item {
    flex: 0 0 100%;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    border-radius: 10px;
    margin: 0 10px;
}

.review-item p {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.review-item h4 {
    font-size: 16px;
    color: #555;
    font-weight: bold;
}

/* Room Types Section */
#room-types {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

#room-types h2 {
    font-size: 32px;
    color: #0077cc;
    margin-bottom: 20px;
}

.room-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.room-track-container {
    overflow: hidden;
    width: 100%;
}

.room-track {
    display: flex;
    transition: transform 0.5s;
}

.room-item {
    min-width: 250px; /* or your preferred width */
    flex-shrink: 0;
}

/* Stellenbosch Page */
section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 28px;
    color: #0077cc;
    margin-bottom: 15px;
}

.accommodation-list {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.accommodation-item {
    flex: 1 1 calc(33.333% - 20px);
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
}

.accommodation-item img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.accommodation-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.accommodation-item p {
    font-size: 16px;
    color: #555;
}

/* Student Dashboard and Related Sections */
#student-dashboard, #suggested-listings, #map-view, #shortcuts, #notices, #help-support, #user-profile, #optional-features {
    margin: 20px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#student-dashboard .search-container input, #student-dashboard .search-container select, #student-dashboard .search-container button {
    margin: 5px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#map-container {
    margin-top: 20px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

/* Navigation Bar Styling */
nav ul {
    display: flex; /* Align items horizontally */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 20px; /* Add spacing between buttons */
    justify-content: center; /* Center the navigation items */
    align-items: center; /* Vertically align items */
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2); /* Add hover effect */
}

/* Marquee Container Styling */
.marquee-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    margin: 20px 0;
}

.marquee-content {
    display: flex;
    gap: 20px; /* Space between items */
    animation: marquee 10s linear infinite;
}

.marquee-content .carousel-item {
    text-align: center;
    flex-shrink: 0;
    width: 300px; /* Adjust width as needed */
}

.marquee-content img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Property Rating System */
.property-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.property-rating .star {
    font-size: 20px;
    color: #c9af1c; /* Default star color */
    cursor: pointer;
    transition: color 0.3s ease;
}

.property-rating .star:hover,
.property-rating .star.selected {
    color: #FFD700; /* Highlighted star color (gold) */
}

/* Marquee Container for Reviews */
.review-marquee-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    margin: 20px 0;
}

.review-marquee-content {
    display: flex;
    gap: 20px; /* Space between items */
    animation: review-marquee 10s linear infinite;
}

.review-item {
    flex-shrink: 0;
    width: 300px; /* Adjust width as needed */
    text-align: center;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.review-item p {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.review-item h4 {
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

/* Marquee Animation */
@keyframes review-marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Google Review Wrapper */
.google-review-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.google-review-wrapper .google-review-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #0077cc;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.hamburger-menu i {
    font-size: 28px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: white;
    width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 999;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid #ddd;
}

.mobile-nav ul li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
}

.mobile-nav ul li a:hover {
    background-color: #f0f0f0;
}

/* Show Hamburger Menu on Smaller Screens */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
}