:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #ffffff;
    --navbar-bg: #f8f9fa;
    --section-bg: #f8f9fa;
    --footer-bg: #2c3e50;
    --shadow-color: rgba(0,0,0,0.1);
    --hover-bg: rgba(190, 144, 213, 0.1);
    --active-color: #be90d5;
    --nav-text: #505050;
    --motion-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Font Face Declaration */
@font-face {
    font-family: 'BlisoVF';
    src: url('../fonts/BlisoVF.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'modernline';
    src: url('../fonts/modernline.otf') format('opentype');
    font-weight: 100 900;
    font-style: normal;
}

/* General Styles */
body {
    font-family: 'BlisoVF', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    padding-top: 76px;
    background-color: #e6e6e6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
    background-color: var(--navbar-bg);
    box-shadow: 0 2px 4px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 80px;
    width: 120px;
    object-fit: contain;
}

/* Navigation Links */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    border-radius: 12px;
    color: var(--nav-text) !important;
    transition: background-color 250ms var(--motion-timing),
                color 250ms var(--motion-timing);
}

.nav-link:hover {
    background-color: var(--hover-bg);
    color: var(--active-color) !important;
}

.nav-link.active {
    background-color: var(--hover-bg);
    color: var(--active-color) !important;
}

/* Hero Section */
.hero {
    background: url('../images/hero-bg.png');
    background-color: #cbc6d1;
    background-position: right center;
    background-size: contain;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    padding: 150px 0;
    margin-bottom: 4rem;
    margin-top: 20px;
    text-align: left;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, #be90d5 20%, rgba(190, 144, 213, 0));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    padding-left: 0;
}

.hero h1 {
    font-family: modernline;
    color: white;
    font-size: 4.5rem;
    margin-bottom: 1rem;
    max-width: 50%;
    margin-left: -40px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 3rem;
    color: white;
    max-width: 40%;
    /* margin-left: -40px; */
    text-align: center;
}

/* Property Cards */
.property-card {
    background-color: var(--card-bg);
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    min-width: 400px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.property-card img {
    height: 250px;
    object-fit: cover;
}

.property-card .card-body {
    padding: 1.5rem;
}

.property-card .card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgb(106, 106, 106);
}

.amenities {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    justify-content: space-between;
    width: 100%;
}

.amenities .badge {
    padding: 0.5rem 0.5rem;
    font-weight: 500;
    white-space: nowrap;
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
}

.amenities .badge i {
    margin-right: 0.25rem;
}

.location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.amenity-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.amenity-item {
    background-color: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Modal Amenities Styles */
.amenities-container .amenity-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.amenities-container .amenity-item {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
}

.amenities-container .amenity-item i {
    color: #198754;
    font-size: 1.1em;
}

.amenities-category h6 {
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
}

.amenity-description {
    margin-top: 0.25rem;
    color: #6c757d;
}

.not-included .amenity-item {
    color: #6c757d;
}

.not-included .amenity-item i {
    color: #6c757d;
}

.amenities-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 1rem;
}

.amenities-container::-webkit-scrollbar {
    width: 6px;
}

.amenities-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.amenities-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.amenities-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Modal Styles */
#amenitiesModal .modal-dialog {
    max-width: 800px;
}

#amenitiesModal .amenities-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#amenitiesModal .amenities-category h6 {
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
    margin-bottom: 1rem;
}

#amenitiesModal .amenity-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

#amenitiesModal .amenity-item {
    display: block;
    line-height: 1.4;
}

#amenitiesModal .amenity-description {
    display: inline;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 400;
    margin-left: 0.5rem;
}

/* Property Details Page */
.property-details .carousel-item img {
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}

/* Index Page */
.property-listing .carousel-item img {
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* Carousel Styles */
#propertyCarousel {
    padding: 0 50px;
    margin-bottom: 2rem;
}

#propertyCarousel .carousel-control-prev,
#propertyCarousel .carousel-control-next {
    width: 40px;
    background-color: var(--bg-color);
    border: 2px solid var(--text-color);
    opacity: 1;
    border-radius: 50%;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

#propertyCarousel .carousel-control-prev:hover,
#propertyCarousel .carousel-control-next:hover {
    background-color: var(--text-color);
}

#propertyCarousel .carousel-control-prev:hover i,
#propertyCarousel .carousel-control-next:hover i {
    color: var(--bg-color);
}

#propertyCarousel .carousel-control-prev {
    left: 0;
}

#propertyCarousel .carousel-control-next {
    right: 0;
}

#propertyCarousel .carousel-control-prev i,
#propertyCarousel .carousel-control-next i {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

#propertyCarousel .carousel-item {
    padding: 1rem 0;
}

#propertyCarousel .property-card {
    margin-bottom: 0;
}

/* Property Detail Page Specific Styles */
.property-detail h1 {
    font-size: 26px;
    font-weight: 600;
    padding: 1rem 0;
}

.property-detail #propertyCarousel {
    padding: 0 50px;
    margin: 0;
}

.property-detail #propertyCarousel .carousel-inner {
    border-radius: 12px;
    overflow: hidden;
    width: calc(100% - 20px);
    margin: 0 auto;
}

.property-detail #propertyCarousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.property-detail #propertyCarousel .carousel-control-prev,
.property-detail #propertyCarousel .carousel-control-next {
    width: 40px;
    background-color: var(--bg-color);
    border: 2px solid var(--text-color);
    opacity: 1;
    border-radius: 50%;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-detail #propertyCarousel .carousel-control-prev:hover,
.property-detail #propertyCarousel .carousel-control-next:hover {
    background-color: var(--text-color);
}

.property-detail #propertyCarousel .carousel-control-prev:hover i,
.property-detail #propertyCarousel .carousel-control-next:hover i {
    color: var(--bg-color);
}

.property-detail #propertyCarousel .carousel-control-prev {
    left: 0;
}

.property-detail #propertyCarousel .carousel-control-next {
    right: 0;
}

.property-detail #propertyCarousel .carousel-control-prev i,
.property-detail #propertyCarousel .carousel-control-next i {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.property-detail .col-md-8 {
    padding: 0;
}

.property-detail .about-section {
    padding: 2rem 0;
}

/* Property Detail Page Carousel */
.property-details .carousel-inner {
    height: 500px;
}

.property-details .carousel-item {
    height: 100%;
}

.property-details .carousel-item img {
    height: 100%;
    object-fit: cover;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background-color: var(--section-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
    color: #505050;
}

.section-title-h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    color: #505050;
    font-size: 1.25rem;
}

.about-section .row {
    min-height: 400px;
}

.about-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-section .col-md-6:last-child {
    height: 100%;
}

.about-section .col-md-6:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* padding: 2rem 0; */
}

.about-section p {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 1.1rem;
}

.about-section p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
}

.contact-info {
    text-align: center;
    padding: 2rem;
    background-color: var(--section-bg);
    border-radius: 10px;
    height: 100%;
}

.contact-info i {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background-color: #be90d5;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    margin-left: 1rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    color: white;
}

/* Show More Link */
.show-more-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.show-more-link:hover {
    text-decoration: underline;
}

/* Description Modal */
#descriptionModal .modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
}

#descriptionModal .modal-content {
    border-radius: 12px;
}

#descriptionModal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

#descriptionModal .modal-body {
    padding: 1rem 1.5rem 1.5rem;
}

#descriptionModal .modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

#descriptionModal ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

#descriptionModal li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .carousel-item img {
        height: 300px;
    }
}
