﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification\
for details on configuring this project to bundle and minify static web assets. */

/* Main navbar stays pinned to the top of the viewport while scrolling */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* Sub-nav sticks just below the main navbar; JS sets the exact top value on load/resize */
/* Background, border, and link colors are defaults — override in Site{nnnn}.css per site */
.sub-nav {
    position: sticky;
    top: 56px; /* fallback — JS overrides with measured navbar height */
    z-index: 1010;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.sub-nav .nav-link {
    color: #495057;
}

.sub-nav .nav-link:hover {
    color: #000;
}

/* Offset scroll targets so neither sticky bar overlaps them; JS overrides with measured total */
[id^="section-"] {
    scroll-margin-top: 110px; /* fallback */
}

body {
    padding-bottom: 20px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

/* Properties page */
.propertyHeader {
    font-weight: 600;
}

.property-image {
    width: 100%;
    border-radius: 4px;
}

.property-features {
    margin-top: 0;
}

.property-more-images-heading {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.property-gallery-links li {
    margin-bottom: 0.25rem;
}

.property-features thead th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Back-to-top button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background-color: rgba(108, 117, 125, 0.75);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

#back-to-top:hover {
    background-color: rgba(52, 58, 64, 0.9);
}

#back-to-top.visible {
    display: flex;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}
