body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper {
    flex: 1;
    overflow-y: auto; /* Enable vertical scrollbar when content overflows */
    padding-top: 20px;
    background-color: #f9f8ff;
}

footer {
    background-color: #f9f8ff; /* Light purple background */
    color: black;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

main, header {
    flex-grow: 1; /* This makes the main content area grow to fill the remaining space */
    overflow-y: auto; /* Add scrollbars when content overflows */
    background-color: #f9f8ff; /* Light purple background */
    color: black;
}


p, body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400; /* Regular weight */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700; /* Bold weight */
}

nav {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.nav-item {
    margin-right: 30px;
}

.navbar-nav .nav-item .nav-link {
    color: black;
}

/* Add hover effect for navigation items */
.navbar-nav .nav-item:hover .nav-link {
    color: #797be4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Style for the breadcrumb list */
ol.breadcrumb {
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 25px;
}

/* Style for each breadcrumb item */
.breadcrumb-item {
    display: inline; /* Display items horizontally */
    margin-right: 5px; /* Space between items */
}

/* Style for other breadcrumb items */
.breadcrumb-item:not(.active) a {
    text-decoration: none; /* Removes underline by default */
    color: #797be4; /* Primary color */
}

.breadcrumb-item:not(.active) a:hover {
    text-decoration: underline; /* Adds underline on hover */
    color: #5e61b4;
}

/* Primary Button Styles */
.btn.btn-primary {
    background-color: #797be4;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease; /* Smooth transition */
}

/* Hover State */
.btn.btn-primary:hover {
    background-color: #5e61b4;
    color: white;
    transition: background-color 0.2s ease; /* Smooth transition */
}

/* Focus State */
.btn.btn-primary:focus {
    outline: 2px solid #5e61b4; /* Solid outline on focus */
    outline-offset: 3px; /* Slight offset for clarity */
}

/* Active State */
a.btn.btn-primary:active,
button.btn.btn-primary:active {
    background-color: #5e61b4;
    transform: scale(0.98); /* Slightly smaller size on click */
    transition-duration: 0.5s; /* Slower transition */
    opacity: 0.8; /* Darken opacity */
}

/* Delete Button Styles */
.btn.btn-danger {
    background-color: #DC3545; /* Red */
    color: #FFFFFF; /* White text for contrast */
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease; /* Smooth transition */
}

/* Hover State */
.btn.btn-danger:hover {
    background-color: #C82333; /* Darker red on hover */
    transition: background-color 0.2s ease; /* Smooth transition */
}

/* Focus State */
.btn.btn-danger:focus {
    outline: 2px solid #C82333; /* Solid outline on focus */
    outline-offset: 3px; /* Slight offset for clarity */
}

/* Active State */
.btn.btn-danger:active {
    background-color: #C82333;
    transform: scale(0.98); /* Slightly smaller size on click */
    transition-duration: 0.5s; /* Slower transition */
    opacity: 0.8; /* Darken opacity */
}

/* Button Wrapper in property_details */
.button-wrapper .btn {
    display: block;
    width: 100%;
    margin-bottom: 4px;
}

.container.mt-4 {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

.custom-link {
    text-decoration: none; /* Removes underline by default */
    color: #797be4; /* Primary color */
}

.custom-link:hover {
    text-decoration: underline; /* Adds underline on hover */
    color: #5e61b4;
}

.details {
    flex-grow: 1; /* Allow the details div to grow to occupy remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute items evenly along the column */
    padding-top: 15px;
    padding-left: 20px;
}

.detail-line {
    display: flex;
    margin-bottom: 8px;
}

.icon-container {
    width: 20px;
    margin-right: 10px;
}

.icon {
    margin-right: 8px;
}

/* Positioning for photo count */
.photo-count {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 3px 5px;
    margin: 10px;
    border-radius: 5px;
}

/* Hover effect */
.hover-effect:hover {
    opacity: 0.8;
}

.myFancyBox .fancybox-container {
    width: 100%; /* Set the width to 100% */
}

.myFancyBox .fancybox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80vw; /* Set maximum width to 80% of the viewport width */
    max-height: 80vh; /* Set maximum height to 80% of the viewport height */
}

.myFancyBox .fancybox-slide img {
    /* fit the image to the container */
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.myFancyBox .fancybox-inner {
    width: 100%; /* Set the width to 100% */
    max-width: 100%; /* Ensure the maximum width is 100% */
}


.myFancyBox .fancybox-thumbs {
    top: auto;
    width: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: 95px;
    padding: 10px 10px 5px 10px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.3);
}

.myFancyBox .fancybox-show-thumbs .fancybox-inner {
    right: 0;
    bottom: 95px;
}

.myFancyBox .fancybox-thumbs__list a:before {
    border: 4px solid #5e61b4; /* Change border color to #5e61b4 */
}

.optional-text {
    font-size: 0.8em;
    color: #6c757d;
    font-style: italic;
}

.pagination .page-item.active .page-link {
    background-color: #797be4;
    border-color: #797be4;
    color: white;
}

.pagination .page-link {
    color: black;
}

.pagination .page-link:hover {
    color: black;
}

/* Add this CSS code to your stylesheet */
.pagination-container {
    border-radius: 0.5rem; /* Adjust the border radius as needed */
    /* Add any other styling you want for the pagination container */
}
