body {
    font-family: "Cormorant Garamond", serif;
    background-color: #ffffff;
    color: #182d5f;
}

.container {
    padding: 2em;
    margin-top: 14%;
    max-width: 1200px;
}

/* Heading Styles */
h1, h2 {
    text-align: center;
    font-family: "Italiana", sans-serif;
    color: #182d5f;
    font-size: 2.5em;          /* Larger font size for a bold presence */
    font-weight: 400;
}

/* Search Banner Container */
.search-box {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Center vertically if needed */
    width: 100%;
    padding: 0 15px; /* Add padding for smaller screens */
}

.search-banner {
    background-color: #ffffff; /* Dark blue background */
    padding: 20px; /* Padding around the content */
    margin-bottom: 20px; /* Space below the banner */
    border: solid 2px #182d5f;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
    border-radius: 5px; /* Rounded corners */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

/* Form Styles */
.search-banner .form-inline {
    display: flex;
    flex-wrap: wrap; /* Allows form elements to wrap on smaller screens */
    align-items: center;
    width: 100%;
}

/* Form Controls */
.search-banner .form-control {
    background-color: transparent; /* Transparent background */
    color: #182d5f; 
    border: 1px solid #d4a256; /* Gold border */
    border-radius: 5px; /* Slightly rounded corners */
    padding: 10px 15px; /* Padding inside inputs */
    margin-right: 10px; /* Space between inputs */
    min-width: 150px; /* Minimum width for dropdowns */
}

/* Buttons */
.search-banner .btn {
    background-color: #d4a256; /* Gold background */
    color: #182d5f; /* White text color */
    border: none; /* No border */
    padding: 10px 20px; /* Padding inside buttons */
    cursor: pointer;
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease; /* Smooth transition on hover */
    margin-right: 10px; /* Space between buttons */
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-banner .btn:hover {
    background-color: #b08a45; /* Darker gold on hover */
}

/* Search Icon */
.search-banner .fa-search {
    color: #182d5f; /* Dark blue icon color */
    font-size: 16px; /* Icon size */
}

/* Search by Ref Input */
.search-banner input[type="text"] {
    flex: 1; /* Makes the input take up remaining space */
    max-width: 250px; /* Maximum width for the search input */
    border-bottom: 1px solid #182d5f; /* Bottom border for the search input */
    background-color: transparent; /* Transparent background */
    color: #182d5f; 
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-banner .form-control,
    .search-banner .btn,
    .search-banner input[type="text"] {
        margin-bottom: 10px; /* Add space between elements on small screens */
        width: 100%; /* Make inputs and buttons full-width */
        margin-right: 0; /* Remove right margin */
    }

    .search-banner .btn {
        padding: 10px; /* Adjust padding for smaller screens */
    }
}

/* Responsive alignment and spacing */
.sorting-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* Vertically center items */
    justify-content: center; /* Center items horizontally */
}

.sort-select-wrapper {
    max-width: 100%; /* Ensure select does not exceed its container */
    max-width: 400px;
    border: solid 2px #182d5f;
    border-radius: 5px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.6);
}

.custom-select {
    max-width: 400px;
    color: #182d5f;
}

/* Ensure proper alignment of sort-select and text */
.d-flex {
    display: flex;
    align-items: center; /* Center items vertically */
}

@media (max-width: 768px) {
    .sorting-box {
        flex-direction: column; /* Stack items vertically on small screens */
        text-align: center; /* Center text on small screens */
    }

    .col-12 {
        margin-bottom: 10px; /* Add space between stacked items */
    }

    .sort-select-wrapper select {
        max-width: 100%; /* Make sure the select box is responsive */
    }
}

/* Property card styles */
.card {
    border-radius: 5px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 1);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img-top-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio (height/width = 9/16 = 0.5625) */
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background-color: black;
}

.card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;  /* Ensure the whole image/video fits without cropping */
    object-position: center;  /* Center the media content */
}

/* Card body styling */
.card-body {
    /* background-color: #fff; */
    padding: 1em;
}

.card-body p {
    margin-bottom: 0.5em;
    color: #182d5f;
}

/* Card footer styles for property details */
.card-footer {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    padding: 1em;
    border-top: none;
}

.mirror-silver-background {
    background: linear-gradient(135deg, #e6e6e6, #cccccc, #d3d3d3, #a9a9a9, #bfbfbf);
    padding: 1em;
    border: none;
    background-size: 400% 400%; /* Enhance gradient movement */
    animation: shiny-effect 5s ease-in-out infinite;
    }
    
    /* Animation to create a moving shine effect */
    @keyframes shiny-effect {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

.card-footer .property-details p {
    margin-bottom: 0.25em; /* Adjust spacing between property details */
    color: #182d5f;
}

.card-footer .property-details .small {
    color: #182d5f;
}

#border {
    border: none;
}

/* Price styling */
.price {
    font-weight: bold;
    font-size: 1.25rem;
}

.property-details{
    background: transparent;
    border: none;
}

.property-details .row {
    display: flex;
    justify-content: space-between; /* Adjusts spacing between the two columns */
}

.property-details .col-6 {
    flex: 0 0 48%; /* Each column takes up about half the width */
    max-width: 48%;
}

.property-details .small {
    margin-bottom: 0.5em; /* Adds spacing between items */
}

/* Make sure there is enough spacing between the columns on smaller screens */
@media (max-width: 768px) {
    .property-details .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Like button */
/* Property Card */
.property-card {
    position: relative;
}

/* Sold sign for admin user */
.sold-label {
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #182d5f; /* No background */
    border-radius: 5px;
    transform: translate(-50%, -50%) rotate(-45deg); /* Center and angle the text */
    z-index: 10;
    white-space: nowrap; /* Prevent text from wrapping */
    padding: 10px; /* Space for the inner border */
    font-size: 30px; /* Example font size */
    color: #182d5f; /* Inner text color */
    font-weight: bold;
    font-family: "Cinzel", serif;
    
    /* The first (outer) border */
    border: solid 6px #182d5f; /* Outer border color */
    box-sizing: border-box;
}

.sold-label::before {
    content: ''; /* Empty content for the pseudo-element */
    position: absolute;
    top: -10px; /* Offset to create a transparent gap */
    left: -10px;
    right: -10px;
    bottom: -10px;
    
    /* Second (inner) border */
    border: solid 6px transparent; /* Transparent gap */
    border-radius: 10px; /* Match the border-radius of the label */
    z-index: -1; /* Place behind the original label */
    box-sizing: border-box;
}

.sold-label::after {
    content: ''; /* Empty content for the pseudo-element */
    position: absolute;
    top: -20px; /* Offset to create the transparent gap */
    left: -20px;
    right: -20px;
    bottom: -20px;
    
    /* Third (inner) border */
    border: solid 6px #182d5f; /* Inner border color */
    border-radius: 15px; /* Match the border-radius of the label */
    z-index: -2; /* Behind the transparent gap and first border */
    box-sizing: border-box;
}

.sold {
    color: transparent;
    font-family: font-family: "Cinzel", serif;
    font-size: 60px;
    padding-left: 15px;
    padding-right: 15px;
    font-weight: 900;
    text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Like Container */
.like-container {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 10; /* Ensure it appears above other content */
}

.like {
    cursor: pointer;
    font-size: 1.5em; 
    color: #daa520; 
    transition: color 0.3s ease; /* Smooth color transition */
}

/* Base shimmer effect */
.fa-star-base {
    display: inline-block;
    background: linear-gradient(
        135deg,
        #daa520 0%,
        #daa520 40%,
        #ffffff 50%,
        #daa520 60%,
        #daa520 100%
    );
    background-size: 200%;
    background-position: -200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 1.5s infinite;
}

/* Shimmer animation */
@keyframes shimmer {
    0% {
        background-position: -200%;
    }
    100% {
        background-position: 200%;
    }
}

/* Default star color */
.fa-star {
    color: #daa520; /* Default color for the star */
    position: relative;
}

/* Shimmer effect on hover */
.fa-star:hover,
.fa-star.light-base {
    background: linear-gradient(
        135deg,
        #daa520 0%,
        #daa520 40%,
        #ffffff 50%,
        #daa520 60%,
        #daa520 100%
    );
    background-size: 200%;
    background-position: -200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 1.5s infinite;
}

/* Help button styles */
.help-button {
    position: fixed;
    bottom: 1em;
    right: 1em;
    border-radius: 50%;
    padding: 0.5em;
    z-index: 1000;
}

.help-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #daa520;
    text-decoration: none;
}

.help-link i {
    font-size: 2.5em;
}

.help-button a {
    text-decoration: none;
}

/* Adjustments for 3 cards layout */
@media (min-width: 768px) {
    .property-container .row {
        display: flex;
        flex-wrap: wrap;
    }

    .property-container .col-md-4 {
        flex: 0 0 33.3333%; /* 3 cards per row */
        max-width: 33.3333%;
    }
}

@media (max-width: 768px) {
    .property-container .col-sm-6 {
        flex: 0 0 50%; /* 2 cards per row on smaller screens */
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .property-container .col-12 {
        flex: 0 0 100%; /* 1 card per row on extra-small screens */
        max-width: 100%;
    }
}

/* Media Query for tablets and smaller screens */
@media (max-width: 768px) {
    .sold-label {
        font-size: 24px; /* Reduce font size */
        padding: 8px; /* Adjust padding for smaller screens */
        border-width: 4px; /* Reduce border width */
    }
    .sold-label::before {
        top: -8px; /* Adjust the gap */
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
    .sold-label::after {
        top: -16px; /* Adjust the gap */
        left: -16px;
        right: -16px;
        bottom: -16px;
    }
    .sold {
        font-size: 50px; /* Smaller font size for mobile */
        padding-left: 10px; /* Adjust padding */
        padding-right: 10px;
        text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Media Query for smaller screens (phones) */
@media (max-width: 480px) {
    .sold-label {
        font-size: 20px; /* Even smaller font for small phones */
        padding: 5px; /* Less padding for small screens */
        border-width: 2px; /* Thinner borders */
    }
    .sold-label::before {
        top: -5px; /* Adjust the gap */
        left: -5px;
        right: -5px;
        bottom: -5px;
    }
    .sold-label::after {
        top: -10px; /* Adjust the gap */
        left: -10px;
        right: -10px;
        bottom: -10px;
    }
    .sold {
        font-size: 35px; /* Very small font for very small screens */
        padding-left: 5px; /* Smaller padding */
        padding-right: 5px;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    }
}