/**
 * Custom Styles for Tourism/Hospitality Site
 * Based on Wenzlhof Design
 */

/* ===== Typography ===== */
body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #212529;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* ===== Header & Navigation ===== */
.site-header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand .logo {
    max-height: 70px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link {
    color: #2c2e36;
    font-weight: 500;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    padding: 0.75rem 0.75rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== Hero Slider ===== */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
}

.slider-slide {
    position: relative;
    width: 100%;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.slider-content h2 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 4px 8px rgba(0, 0, 0, 0.9), 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.slider-content h3 {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 4px 8px rgba(0, 0, 0, 0.8), 0 8px 20px rgba(0, 0, 0, 0.6);
}

.slider-content p {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 4px 8px rgba(0, 0, 0, 0.8), 0 8px 20px rgba(0, 0, 0, 0.6);
}

.slider-content .btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: white;
    transform: scale(1.2);
}

/* ===== Buttons ===== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 2.5rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #9a8068;
    border-color: #9a8068;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(176, 153, 125, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ===== Page Header ===== */
.page-header {
    position: relative;
    padding: 8rem 0 5rem;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 4px 8px rgba(0, 0, 0, 0.9), 0 8px 24px rgba(0, 0, 0, 0.7), 0 0 60px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.page-header .lead {
    font-size: 1.6rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 4px 8px rgba(0, 0, 0, 0.8), 0 8px 20px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
    font-weight: 500;
}

/* ===== Sections ===== */
.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

/* ===== Image Hover Effects ===== */
.image-hover-overlay {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
}

.image-hover-overlay img {
    transition: transform 0.5s ease;
    width: 100%;
    height: auto;
}

.image-hover-overlay:hover img {
    transform: scale(1.1);
}

.image-hover-overlay figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(176, 153, 125, 0.9), transparent);
    color: white;
    padding: 2rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-hover-overlay:hover figcaption {
    transform: translateY(0);
}

/* ===== Cards ===== */
.card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-title {
    color: var(--secondary-color);
    font-weight: 600;
}

/* ===== Footer ===== */
.footer-section {
    background-color: var(--secondary-color);
}

.footer-section h5 {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-section a {
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color) !important;
}

.social-links a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #9a8068;
    transform: translateY(-5px);
    color: white;
}

/* ===== Contact Form ===== */
.contact-form .form-control,
.contact-form .form-select {
    border-radius: 0.5rem;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(176, 153, 125, 0.25);
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
    .navbar-light .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.75rem 0.45rem;
    }
}

@media (max-width: 1100px) {
    .navbar-brand .logo {
        max-height: 52px;
    }

    .navbar-light .navbar-nav .nav-link {
        font-size: 0.85rem;
        padding: 0.75rem 0.35rem;
    }
}

@media (max-width: 991px) {
    .navbar-brand .logo {
        max-height: 60px;
    }

    .navbar-light .navbar-nav .nav-link {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }

    .slider-content h2 {
        font-size: 2.5rem;
    }

    .slider-content h3 {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header .lead {
        font-size: 1.3rem;
    }
}

@media (max-width: 767px) {
    .slider-slide {
        height: 400px;
    }

    .slider-content h2 {
        font-size: 2rem;
    }

    .slider-content h3 {
        font-size: 1.2rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .page-header {
        padding: 5rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header .lead {
        font-size: 1.1rem;
    }
}

/* ===== Availability Calendar ===== */
.calendar-month {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calendar-month-header {
    background: var(--secondary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0.5rem;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--secondary-color);
    padding: 0.5rem 0;
    font-family: 'Rajdhani', sans-serif;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.calendar-day.booked-waldblick {
    background: var(--primary-color);
    color: white;
}

.calendar-day.booked-oheblick {
    background: var(--secondary-color);
    color: white;
}

.calendar-day.booked-both {
    background: linear-gradient(135deg, var(--primary-color) 50%, var(--secondary-color) 50%);
    color: white;
}

.calendar-day.past {
    opacity: 0.4;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 2px #333;
    font-weight: 700;
}

.calendar-legend-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
}

.calendar-legend-box.available {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.calendar-legend-box.booked-waldblick {
    background: var(--primary-color);
}

.calendar-legend-box.booked-oheblick {
    background: var(--secondary-color);
}

.calendar-legend-box.booked-both {
    background: linear-gradient(135deg, var(--primary-color) 50%, var(--secondary-color) 50%);
}

@media (max-width: 767px) {
    .calendar-day {
        font-size: 0.75rem;
    }

    .calendar-weekday {
        font-size: 0.65rem;
    }
}
