﻿/* Public Layout Styles */

.public-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content with navbar compensation - High specificity */
.public-layout .main-content,
.public-layout main.main-content,
main.main-content {
    flex: 1;
    margin-top: 0 !important;
    padding-top: 80px !important; /* Add padding to account for fixed navbar height */
    box-sizing: border-box !important;
}

/* Responsive navbar compensation */
@media (max-width: 991.98px) {
    .public-layout .main-content,
    .public-layout main.main-content,
    main.main-content {
        padding-top: 70px !important; /* Slightly less padding on mobile */
    }
}

/* For pages with hero sections that should touch the navbar */
.main-content.hero-page {
    padding-top: 0 !important;
}

.main-content.hero-page .hero-section {
    padding-top: 80px !important;
}

@media (max-width: 991.98px) {
    .main-content.hero-page .hero-section {
        padding-top: 70px !important;
    }
}

/* Additional fallback styles */
body .public-layout .main-content {
    padding-top: 80px !important;
}

@media (max-width: 991.98px) {
    body .public-layout .main-content {
        padding-top: 70px !important;
    }
}

/* Public Navbar Styles */
.navbar.fixed-top {
    z-index: 1030;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand img {
    transition: transform 0.2s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Custom button styles for public navbar */
.btn-lodgenda {
    background-color: #00A6FF;
    border-color: #00A6FF;
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-lodgenda:hover {
    background-color: #0085CC;
    border-color: #0085CC;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 166, 255, 0.3);
}

.btn-lodgenda-outline {
    background-color: transparent;
    border-color: #00A6FF;
    color: #00A6FF;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-lodgenda-outline:hover {
    background-color: #00A6FF;
    border-color: #00A6FF;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 166, 255, 0.2);
}

/* Form controls in navbar */
.navbar .form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.navbar .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Mobile navbar improvements */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        border-radius: 8px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .navbar-nav .d-flex.gap-2 {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #dee2e6;
    }
}

/* Public Footer Styles */
.public-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

.public-footer .footer-brand {
    font-weight: 600;
    color: #495057;
}

.public-footer .footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.public-footer .footer-links a:hover {
    color: #007bff;
}

.public-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    color: #6c757d;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-right: 0.5rem;
}

.public-footer .social-links a:hover {
    background-color: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Breadcrumb improvements */
.breadcrumb-section {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb-item a {
    color: #007bff;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #0056b3;
}

/* Photo gallery improvements */
.photo-gallery img {
    transition: transform 0.2s ease;
    cursor: pointer;
}

.photo-gallery img:hover {
    transform: scale(1.02);
}

/* Accommodation cards */
.accommodation-card {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: white;
}

.accommodation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.accommodation-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.accommodation-card:hover .card-img-top {
    transform: scale(1.05);
}

.accommodation-card .card-body {
    padding: 1.25rem;
}

.accommodation-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #212529;
}

.accommodation-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.accommodation-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #007bff;
}

.accommodation-card .rating {
    color: #ffc107;
}

/* Search and filter sections */
.search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.search-section .form-control,
.search-section .form-select {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.search-section .btn-search {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.search-section .btn-search:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Loading states */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility classes */
.text-lodgenda {
    color: #007bff !important;
}

.bg-lodgenda {
    background-color: #007bff !important;
}

.border-lodgenda {
    border-color: #007bff !important;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .accommodation-card .card-img-top {
        height: 180px;
    }

    .search-section .btn-search {
        width: 100%;
        margin-top: 1rem;
    }

    .photo-gallery img {
        margin-bottom: 0.5rem;
    }
}

/* CRITICAL: Navbar compensation - Must be at the end for highest priority */
html body .public-layout .main-content,
html body main.main-content,
body .public-layout main.main-content,
.public-layout main.main-content[style] {
    padding-top: 80px !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
    /* Temporary: Add a subtle border to verify CSS is loading */
    border-top: 3px solid rgba(0, 123, 255, 0.1) !important;
}

@media screen and (max-width: 991.98px) {
    html body .public-layout .main-content,
    html body main.main-content,
    body .public-layout main.main-content,
    .public-layout main.main-content[style] {
        padding-top: 70px !important;
    }
}

/* Force override any conflicting styles */
.main-content {
    padding-top: 80px !important;
}

@media screen and (max-width: 991.98px) {
    .main-content {
        padding-top: 70px !important;
    }
}

/* FAQ Accordion Styles - Simple and Guaranteed */
.accordion-button {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background: #f8f9fa !important;
    text-align: left !important;
    width: 100% !important;
    padding: 1rem 1.25rem !important;
    font-weight: 500 !important;
    position: relative !important;
}

.accordion-button:hover {
    background-color: #e9ecef !important;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(13, 110, 253, 0.1) !important;
    color: #0d6efd !important;
}

/* Commented out to avoid conflicts with Blazorise accordion
.accordion-button::after {
    content: '+' !important;
    position: absolute !important;
    right: 1.25rem !important;
    font-size: 1.2rem !important;
    font-weight: bold !important;
    transition: transform 0.2s ease !important;
}

.accordion-button:not(.collapsed)::after {
    content: '−' !important;
    transform: rotate(0deg) !important;
}
*/

.accordion-collapse {
    overflow: hidden !important;
    transition: all 0.2s ease !important;
}

/* Force hide/show states */
.accordion-collapse {
    display: none !important;
}

.accordion-collapse.show {
    display: block !important;
}

.accordion-body {
    padding: 1rem 1.25rem !important;
    background-color: #ffffff !important;
    border-top: 1px solid #dee2e6 !important;
}

/* Simple FAQ Styles */
.faq-question {
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.faq-question:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.faq-toggle {
    font-size: 1.2rem;
    font-weight: bold;
    color: #0d6efd;
    min-width: 20px;
}

.faq-answer {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ensure accordion buttons work on mobile */
@media (max-width: 768px) {
    .accordion-button {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .accordion-body {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .faq-question {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Property Grid Placeholder Images */
.placeholder-image {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    height: 200px;
    width: 100%;
}

.placeholder-image:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}


