/* ==========================================================================
   GLOBAL STYLES & BASE LAYOUT
   ========================================================================== */

   body {
    margin: 0;
    padding: 0 0 80px 0;
    background-color: #ffffff;
    color: #333;
    font-family: Tahoma, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

/* Homepage background pattern */
body.home {
    background-image: url('/static/img/pattern.jpg');
    background-repeat: repeat;
    background-position: 0 0;
}

h1 {
    font-size: 110px;
    font-weight: 900;
    margin-bottom: 10px;
    font-family: "Garamond Serial", Garamond, "Times New Roman", serif;
    -webkit-text-stroke: 3px currentColor;
}

/* Desktop - larger h1 */
@media (min-width: 769px) {
    h1 {
        font-size: 220px;
    }
}

/* ==========================================================================
   NAVIGATION ELEMENTS
   ========================================================================== */

/* Navigation Links */
.map-link,
.back-link {
    position: absolute;
    top: 30px;
    z-index: 10;
}

.map-link {
    right: 30px;
}

.back-link {
    right: 30px;
}

.map-link a,
.back-link a {
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.map-link a:hover,
.back-link a:hover {
    opacity: 1;
}

.map-link img,
.back-link img {
    display: block;
    width: 34px;
    height: 34px;
}

/* Home button in top left corner */
.home-button {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.home-button a {
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.home-button a:hover {
    opacity: 1;
}

.home-button img {
    display: block;
    width: 34px;
    height: 34px;
}

/* Navigation icons container on map page */
.nav-icons {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.nav-icons a {
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    display: inline-block;
}

.nav-icons a:hover {
    opacity: 1;
}

.nav-icons img {
    display: block;
    width: 34px;
    height: 34px;
}

/* ==========================================================================
   MAIN PAGE STYLES
   ========================================================================== */

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    position: relative;
    margin-top: -20vh;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

/* ==========================================================================
   FOOTER STYLES
   ========================================================================== */

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
    background-color: #fffef4;
    z-index: 5;
    min-height: 30px;
}

.copyright {
    color: #492201;
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   MAP PAGE STYLES
   ========================================================================== */

#map {
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Custom marker styles */
.custom-marker {
    background: none !important;
    border: none !important;
}

/* Override Leaflet popup defaults */
.leaflet-popup-content-wrapper {
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.leaflet-popup-content {
    margin: 0 !important;
}

.location-popup {
    min-width: 250px;
    padding: 15px;
}

.location-popup .location-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0;
    margin-top: 0;
    margin-bottom: 12px;
    display: block;
}

.location-popup h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.location-popup p {
    margin: 5px 0;
    font-size: 14px;
}

.availability {
    font-weight: bold;
    padding: 5px 0;
}

.availability.available {
    color: #28a745;
}

.availability.unavailable {
    color: #dc3545;
}

.availability.limited {
    color: #ffc107;
}

/* ==========================================================================
   INFO PAGE STYLES
   ========================================================================== */

body.info-page {
    background-color: #fffef4;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
    height: 100vh;
}

.info-container {
    width: 100%;
    max-width: 100%;
    padding: 80px 50px 100px 50px;
    box-sizing: border-box;
}

.info-content {
    text-align: left;
    max-width: 800px;
}

.info-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.info-content h1 {
    font-size: 70px;
    margin: 0 0 30px 0;
    font-weight: bold;
}

.info-description {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.info-description p {
    margin: 0 0 15px 0;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 768px) {
    body {
        padding-bottom: 70px;
    }
    
    h1 {
        font-size: 90px;
    }
    
    .footer {
        padding: 15px 10px;
        min-height: 50px;
    }
    
    .copyright {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 65px;
    }
    
    .footer {
        padding: 12px 8px;
        min-height: 45px;
    }
    
    .copyright {
        font-size: 11px;
        line-height: 1.2;
    }
}