/*body {
    background-color: #f8f9fa;
}*/

body {
    padding-top: 55px; /* Adjust this value based on your header height */
}

/* Ensure main content has proper spacing */
main.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    background: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
}
.navbar {
    background-color: #ffffff;
}
.navbar-brand {
    display: flex;
    align-items: flex-end;
    margin-top: 0px;
}

.navbar-brand img {
    width: 2.5em;
    height: auto;
}

.btn-primary {
    background-color: #156f5b;
    border-color: #156f5b;
}
.btn-primary:hover {
    background-color: #156f5b;
    border-color: #156f5b;
}
.jumobox {
    background-color: #f3f8f7;
    /*padding: 0 1500px;*/
    /*margin: 0 -1500px;*/
    padding-top: 1.4em;
    padding-bottom: 1em;
}

/*.message-block-layout {
    --display: flex;
    --flex-direction: row;
    --container-widget-width: calc((1 - var(--container-widget-flex-grow)) * 100%);
    --container-widget-height: 100%;
    --container-widget-flex-grow: 1;
    --container-widget-align-self: stretch;
    --align-items: stretch;
    --gap: 10px 10px;
    --background-transition: 0.3s;
    --padding-block-start: 100px;
    --padding-block-end: 50px;
    --padding-inline-start: 20px;
    --padding-inline-end: 20px;
}*/

/*.message-block img {
    height: auto;
    max-width: 100%;
    border: none;
    border-radius: 6px 6px 6px 6px;
    box-shadow: none;
    vertical-align: middle;
    display: inline-block;
}*/

.card {
    border: none;
    transition: transform 0.2s;
    border-radius: 12px;
    overflow: hidden;
}

/* Create consistent image container */
.card-img-wrapper {
    position: relative;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
}

/* Style the image itself - only absolute inside wrapper */
.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Apartment image preview in upload forms */
.apartment-preview-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-top-left-radius: calc(0.25rem - 1px);
    border-top-right-radius: calc(0.25rem - 1px);
}

/* Apartment detail page images */
.apartment-detail-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.apartment-detail-img-small {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.card:hover {
    transform: translateY(-5px);
}
.card-title {
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.card-text {
    color: #6c757d;
}

/* Ensure consistent card body spacing */
.card-body {
    padding: 1.25rem;
}

.card {
    width: 100%;
}


.text-primary {
    color: #156f5b!important;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

.sticky-top {
    top: 60px !important;
    z-index: 99;
}

.badge.bg-light {
    background-color: #f8f9fa!important;
    border: 1px solid #dee2e6!important;
}

.form-check-input:checked {
    background-color: #156f5b;
    border-color: #156f5b;
}

.alert-secondary {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Image handling */
.carousel-fixed-height {
    height: 500px;
}

.ratio-16x9 {
    aspect-ratio: 16 / 9;
}

.img-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .carousel-fixed-height {
        height: 300px;
    }
}

.feature-icon {
    color: #156f5b;
    font-size: 1.5rem;
    margin-right: 10px;
}

.filter-sidebar {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
}

.jumobox {
    background-color: #f3f8f7;
    padding-top: 1.4em;
    padding-bottom: 1em;
}

footer {
    font-size: 0.9rem;
}

footer h5,
footer h6 {
    font-weight: bold;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    color: #2b6777 !important;
}

footer .btn-primary {
    background-color: #2b6777;
    border-color: #2b6777;
}

footer .btn-primary:hover {
    background-color: #1f4d59;
    border-color: #1f4d59;
}

.social-icons a {
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #156f5b !important;
}

/* Tabs styling - match site theme */
.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.6rem 1rem;
}
.nav-tabs .nav-link:hover {
    color: #495057;
    border-color: transparent;
    border-bottom-color: #dee2e6;
}
.nav-tabs .nav-link.active {
    color: #156f5b;
    border: none;
    border-bottom: 2px solid #156f5b;
    background: transparent;
}

.multiline-truncate {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Booking cards - horizontal layout with subtle styling */
.booking-card {
    border: 1px solid #e9ecef !important;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
    overflow: hidden;
}
.booking-card:hover {
    transform: none;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.booking-card.border-warning {
    border-color: #ffc107 !important;
}
.booking-card.border-secondary {
    border-color: #adb5bd !important;
}
.booking-card-img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
}
@media (max-width: 767.98px) {
    .booking-card-img {
        border-radius: 12px 12px 0 0;
        min-height: 160px;
        max-height: 180px;
    }
}
