/* Lake Dalhousie - Mobile-First Lakefront Property Site
   Colors: Lake blues, soft greens, neutral grays
   Tone: Calm, natural, trustworthy */

:root {
    /* Primary Colors - Lake Blues */
    --lake-deep: #1a4a5e;
    --lake-primary: #2d6a7a;
    --lake-light: #5a9cb0;
    --lake-pale: #b8d4dc;
    --lake-mist: #e8f1f4;

    /* Accent Colors - Soft Greens */
    --forest-deep: #2d4a3e;
    --forest-primary: #4a7c6a;
    --forest-light: #7ba897;
    --forest-pale: #c5ddd4;

    /* Neutrals */
    --gray-900: #1a1a1a;
    --gray-700: #4a4a4a;
    --gray-500: #7a7a7a;
    --gray-300: #b0b0b0;
    --gray-100: #f5f5f5;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
}

/* Base Styles */
html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.8;
    color: var(--gray-900);
    background-color: var(--white);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--lake-deep);
    line-height: 1.3;
    margin-top: 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

@media (min-width: 768px) {
    html { font-size: 20px; }
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.75rem; }
    h3 { font-size: 2rem; }
    h4 { font-size: 1.75rem; }
}

p {
    margin-bottom: var(--space-sm);
}

a {
    color: var(--lake-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--lake-deep);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar {
    padding: var(--space-sm) 0;
}

.navbar > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--lake-deep) !important;
    text-decoration: none;
}

.brand-text {
    color: var(--lake-deep);
}

/* Hamburger toggle button */
.navbar-toggler {
    display: none;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    cursor: pointer;
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--gray-700);
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--gray-700);
}

.navbar-toggler-icon::before {
    top: -7px;
}

.navbar-toggler-icon::after {
    top: 7px;
}

.navbar-nav {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.navbar-nav .nav-item {
    list-style: none;
}

.nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-700) !important;
    padding: var(--space-xs) var(--space-sm) !important;
    transition: color 0.2s ease;
    text-decoration: none;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--lake-primary) !important;
}

/* Desktop: navbar items on same line as logo */
@media (min-width: 768px) {
    .navbar-collapse {
        display: flex !important;
    }

    .navbar-toggler {
        display: none !important;
    }
}

/* Mobile navigation */
@media (max-width: 767.98px) {
    .navbar-toggler {
        display: block;
    }

    .navbar-collapse {
        display: none;
        width: 100%;
        flex-basis: 100%;
        background: var(--white);
        padding: var(--space-sm) 0;
        margin-top: var(--space-sm);
    }

    .navbar-collapse.show {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 0;
    }

    .navbar-nav .nav-link {
        padding: var(--space-sm) 0 !important;
        border-bottom: 1px solid var(--gray-100);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Hero Carousel */
.hero #heroCarousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero .carousel-inner,
.hero .carousel-item {
    height: 100%;
}

.hero .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
}

/* Dark overlay for text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-lg);
    max-width: 800px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Hero title break - shows line break on mobile, single line on larger screens */
.hero-title-break {
    display: block;
}

@media (min-width: 768px) {
    .hero-title-break {
        display: none;
    }
}

@media (min-width: 992px) {
    .hero-content {
        max-width: none;
    }

    .hero-content h1 {
        white-space: nowrap;
    }
}

.hero-content p {
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
    .hero {
        min-height: 90vh;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content p {
        font-size: 1.75rem;
    }
}

/* Hero Value Props */
.hero-props {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.hero-props li {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-left: 1.25rem;
}

.hero-props li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--forest-light);
    font-weight: bold;
}

@media (min-width: 768px) {
    .hero-props li {
        font-size: 1.1rem;
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--lake-primary);
    border-color: var(--lake-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--lake-deep);
    border-color: var(--lake-deep);
}

.btn-lg {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--lake-deep);
}

.btn-outline-primary {
    border: 2px solid var(--lake-primary);
    color: var(--lake-primary);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.875rem 1.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-outline-primary:hover {
    background-color: var(--lake-primary);
    color: var(--white);
}

/* Sections */
.section {
    padding: var(--space-xl) 0;
}

.section-lg {
    padding: var(--space-2xl) 0;
}

.section-muted {
    background-color: var(--lake-mist);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title h2 {
    margin-bottom: var(--space-sm);
}

.section-title p {
    color: var(--gray-700);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Property Cards */
.property-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.property-card-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .property-card-image {
        height: 400px;
    }
}

.property-card-body {
    padding: var(--space-lg);
}

.property-card-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--lake-deep);
    margin-bottom: var(--space-xs);
}

.property-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--lake-primary);
    margin-bottom: var(--space-sm);
}

.property-card-text {
    color: var(--gray-700);
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 576px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
}

@media (min-width: 992px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 4-column gallery variant */
.gallery-4col {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .gallery-4col {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .gallery-4col {
        grid-template-columns: repeat(4, 1fr);
    }
}

.gallery-4col .gallery-item img {
    height: 200px;
}

@media (min-width: 768px) {
    .gallery-4col .gallery-item img {
        height: 220px;
    }
}

/* Clickable hero image */
.hero-image-clickable {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.hero-image-clickable:hover {
    opacity: 0.9;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

@media (min-width: 768px) {
    .gallery-item img {
        height: 350px;
    }
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: var(--space-sm);
    font-size: 1.05rem;
    color: var(--gray-900);
}

.features-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 10px;
    height: 10px;
    background-color: var(--forest-primary);
    border-radius: 50%;
}

.features-list-compact li {
    margin-bottom: calc(var(--space-sm) / 2);
}

/* Location Map */
.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .map-container {
        height: 500px;
    }
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-control {
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--lake-primary);
    box-shadow: 0 0 0 3px rgba(45, 106, 122, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--lake-deep);
    color: var(--white);
    padding: var(--space-xl) 0;
    margin-top: var(--space-xl);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-contact p {
    margin-bottom: 0.25rem;
}

.footer-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.25rem !important;
    color: var(--white);
}

.footer-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 0.25rem !important;
    color: #bbb;
}

.footer-contact p {
    color: #bbb;
}

.footer-contact a,
.footer-contact a:link,
.footer-contact a:visited {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #bbb !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #fff !important;
}

.footer-copy {
    color: var(--lake-pale);
    font-size: 0.9rem;
}

.footer-copy p {
    margin: 0;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--lake-mist) 0%, var(--forest-pale) 100%);
    border-left: 4px solid var(--lake-primary);
    padding: var(--space-md);
    border-radius: 0 8px 8px 0;
    margin: var(--space-md) 0;
}

.highlight-box h4 {
    color: var(--lake-deep);
    margin-bottom: var(--space-xs);
}

/* Property Price Large */
.property-price-large {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--lake-primary);
    margin-bottom: var(--space-md);
}

/* Fact Box */
.fact-box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: var(--space-md);
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fact-box h5 {
    color: var(--lake-deep);
    font-family: var(--font-heading);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--lake-pale);
}

.fact-box ul li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--gray-100);
}

.fact-box ul li:last-child {
    border-bottom: none;
}

/* Package Option */
.package-option {
    background: var(--white);
    border: 2px solid var(--lake-pale);
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.package-option:hover {
    border-color: var(--lake-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.package-option.featured {
    border-color: var(--forest-primary);
    position: relative;
}

.package-option.featured::before {
    content: 'Best Value';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--forest-primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Lightbox (for gallery modal) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: all 0.2s ease;
    z-index: 2001;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(150, 150, 150, 0.3);
}

.lightbox-prev {
    left: calc(5% + 10px);
}

.lightbox-next {
    right: calc(5% + 10px);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #ccc;
    background-color: rgba(0, 0, 0, 0.5);
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.lightbox img {
    z-index: 1;
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 12px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Alert Messages */
.alert-success {
    background-color: var(--forest-pale);
    border-color: var(--forest-primary);
    color: var(--forest-deep);
}

/* Responsive utilities */
.text-center-mobile {
    text-align: center;
}

@media (min-width: 768px) {
    .text-center-mobile {
        text-align: left;
    }
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--lake-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .site-header,
    .site-footer {
        display: none;
    }
}

/* Bootstrap overrides for better contrast */
.text-muted {
    color: var(--gray-700) !important;
}

.small, small {
    font-size: 0.9rem;
    color: var(--gray-700);
}

.lead {
    font-size: 1.35rem;
    color: var(--gray-900);
}

@media (min-width: 768px) {
    .lead {
        font-size: 1.5rem;
    }
}

/* Parcel page hero image */
.img-fluid.rounded.shadow {
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Package options text */
.package-option p {
    color: var(--gray-700);
    font-size: 1.1rem;
}

/* FAQ Accordion */
.accordion-item {
    border: 1px solid var(--lake-pale);
    margin-bottom: 0.5rem;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--lake-deep);
    background-color: var(--white);
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--white);
    color: var(--lake-deep);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--lake-primary);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232d6a7a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.7;
    padding: 0 1.25rem 1.25rem 1.25rem;
}
