/* ============================================
   Cache Valley Getaways - Clean Stylesheet
   ============================================ */

/* ============================================
   1. IMPORTS
   ============================================ */

/* ============================================
   2. BASE STYLES
   ============================================ */

/* Shared theme colors (used across headings, borders, buttons, links) */
:root {
    --color-gold-heading: #946c2c;
    --color-gold-border: #d4a017;
    --color-gold-button: #d7b062;
    --color-teal: #699199;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Questrial', sans-serif;
}


/* ============================================
   3. NAVIGATION & HEADER
   ============================================ */

/* Navigation */
nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem .1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 100px;
    width: auto;
    max-width: 400px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: #000;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    white-space: nowrap;
}

.nav-menu a {
    color: #000000;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0.8rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--color-teal);
}

/* Hamburger Active States */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Header & Slideshow */
header {
    background: #ffffff;
    text-align: center;
    padding: 0 0 2rem 0;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.active {
    opacity: 1;
}

.slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.slide-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slide-arrow-prev { left: 10px; }
.slide-arrow-next { right: 10px; }


/* ============================================
   4. LAYOUT & SECTIONS
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* General Sections */
section {
    background: #ffffff;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

section h2,
.section h2 {
    color: var(--color-gold-button);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 400;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-gold-border);
}

#welcome {
    padding-top: 0.15rem;
}

/* Anchor offset for sticky nav (only real page sections, not modal content) */
section[id] {
    scroll-margin-top: 130px;
}


/* ============================================
   5. COMPONENTS
   ============================================ */

/* Hospitable Widget */
hospitable-direct-mps {
    width: 100% !important;
    display: block;
    padding: 0 2rem;
}

/* Homepage Widget */
#home-page hospitable-direct-mps {
    overflow: visible !important;
    position: relative;
    z-index: 20;
    display: block;
}

/* Search Page Widget */
#search-page hospitable-direct-mps {
    overflow: auto !important;
    position: relative;
    display: block;
}

/* Property Cards */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin: 2.5rem 0;
}

.property-card {
    background: #ffffff;
    border: 1px solid #e8e0d5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.property-card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-card-content .btn {
    margin-top: auto;
}

.property-card h3 {
    color: var(--color-gold-button);
    font-size: 1.35rem;
    font-weight: 400;
    margin-bottom: 0.85rem;
}

.property-card p {
    font-size: 1.02rem;
    line-height: 1.55;
    color: #333;
    margin-bottom: 0.7rem;
}

.property-card p strong {
    color: #1a1a1a;
}

/* Colored top borders */
.property-card.western-loft { border-top: 6px solid #a8553f; }
.property-card.diamond-house { border-top: 6px solid #7d8a99; }
.property-card.mountaineer { border-top: 6px solid #5c7a52; }
.property-card.blue-cottage { border-top: 6px solid #5a8a9e; }
.property-card.apex { border-top: 6px solid #8a7d6b; }
.property-card.luna { border-top: 6px solid #8b7ba8; }
.property-card.rise { border-top: 6px solid #c97a55; }
.property-card.lumen { border-top: 6px solid #7fa8b5; }
.property-card.terra { border-top: 6px solid #8b5e3c; }

.coming-soon-badge {
    display: inline-block;
    background-color: #f0ece0;
    color: var(--color-gold-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    align-self: flex-start;
}

.btn-disabled {
    background-color: #f0f0f0;
    color: #999;
    border: 1px solid #ddd;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-disabled:hover {
    background-color: #f0f0f0;
    color: #999;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    color: var(--color-teal);
    border: 1px solid var(--color-teal);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--color-teal);
    color: #ffffff;
}

/* About Us Image */
.about-us-content {
    overflow: hidden;
}

.support-local-image {
    float: right;
    width: 200px;
    height: auto;
    max-width: 100%;
    margin: 0 0 1rem 1rem;
}

/* Footer */
footer {
    background: #ffffff;
    color: #000000;
    text-align: center;
    padding: 2rem 1.5rem 1rem;
    border-top: 1px solid #e0e0e0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-teal);
}

/* ============================================
   6. MODALS & UTILITIES
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 20px auto;
    padding: 0;
    border-radius: 12px;
    width: 95%;
    max-width: 780px;           /* Larger modal */
    height: 90vh;               /* Fill most of the screen */
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 25px;
    font-size: 36px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: #f8f5f0;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
    text-align: left;
}

/* Distinguished group headers inside modal */
.modal-body h3 {
    color: var(--color-gold-button);
    font-size: 1.35rem;
    font-weight: 400;
    margin: 2rem 0 1rem 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-gold-border);
}


/* ============================================
   7. CACHE VALLEY GUIDE PAGE (Things to Do)
   ============================================ */

.guide-section {
    margin-bottom: 60px;
    padding: 0 0;
}

.guide-section h2 {
    margin-top: 40px;
}

.guide-section h3,
.season-card h3 {
    color: #1f2a44;
    font-size: 1.5rem;
    margin: 1.25rem 0 0.75rem 0;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.season-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 20px;
}

.season-card {
    background: #f9f9f9;
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
}

.season-card img.guide-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin: 0;
}

.season-card h3 {
    margin: 15px 0 8px 0;
    color: #2c3e50;
}

.season-card p {
    padding: 0 15px 20px 15px;
    margin: 0;
}

.activity-list {
    list-style: none;
    padding: 0;
}

.activity-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.activity-list li:last-child {
    border-bottom: none;
}

.highlight {
    background: #fff9e6;
    padding: 15px;
    border-left: 5px solid var(--color-gold-border);
    margin: 20px 0;
    border-radius: 4px;
}

.guide-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* Quick Navigation & Links */
.table-of-contents ul {
    list-style: none;
    padding: 0;
}

.table-of-contents li {
    margin: 0.6rem 0;
}

.table-of-contents a {
    color: var(--color-teal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--color-gold-heading);
    text-decoration: underline;
}

/* Consistent link styling for cache-valley.html */
#outdoors a,
#university a,
#arts-culture a,
#foodie a,
.activity-list a,
.season-card a,
.guide-section a {
    color: var(--color-teal);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#outdoors a:hover,
#university a:hover,
#arts-culture a:hover,
#foodie a:hover,
.activity-list a:hover,
.season-card a:hover,
.guide-section a:hover {
    color: var(--color-gold-heading);
    text-decoration: underline;
}


/* ============================================
   8. PROPERTY PAGE STYLES
   ============================================ */

.property-header {
    background: #f8f5f0;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.property-header h1 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-gold-button);
}

.section {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.map-placeholder {
    margin-bottom: 1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--color-teal);
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.share-btn {
    background: #ffffff;
    color: var(--color-teal);
    border: 1px solid var(--color-teal);
    padding: 0.75rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.share-btn:hover {
    background-color: var(--color-teal);
    color: #ffffff;
}

.photo-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 0.5rem;
    margin: 0.75rem 0;
    max-width: 1200px;
    position: relative;
}

.main-photo img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
}

.thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
   gap: 0.5rem;
}

.thumbnail img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
}

.show-all-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    color: var(--color-teal);
    border: 1px solid var(--color-teal);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.show-all-btn:hover {
    background-color: var(--color-teal);
    color: #ffffff;
}

.property-info h2 {
    font-size: 1.5rem;
    color: #333;
}

.guest-stats {
    color: #666;
    font-size: 0.75rem;
}

.highlights {
    margin-top: 3.5rem; /* more space above highlights */
}

.highlight-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;           /* space between icon and text */
    margin-bottom: 1rem;
    padding-left: 8px;   /* slight indent */
}

.inline-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.bedrooms-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.bedroom-card {
    flex: 0 0 280px;           /* Fixed width for each card */
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
}

.bedroom-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.bedrooms-grid::-webkit-scrollbar {
    height: 8px;
}

.bedrooms-grid::-webkit-scrollbar-thumb {
    background: #b3b3b3;
    border-radius: 4px;
}

.amenity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.amenity-list .amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
}

.amenity-group {
    margin-bottom: 2.8rem;
}

.amenity-group .amenity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0.8rem;
    font-size: 1.02rem;
}

.amenity-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0;
    align-items: center;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    color: #333;
}

.show-more-btn {
    margin-top: 1rem;
    background: #ffffff;
    color: var(--color-teal);
    border: 1px solid var(--color-teal);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background-color: var(--color-teal);
    color: #ffffff;
}


/* ============================================
   9. GALLERY MODAL STYLES
   ============================================ */

#gallery-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    overflow: auto;
}

#gallery-modal .modal-content {
    max-width: 1150px;
    margin: 30px auto;
    padding: 0;
    background: white;
    color: #333;
    height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#gallery-modal .modal-header {
    background: #f8f5f0;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

#gallery-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
}

#gallery-modal .modal-body {
    flex: 1;
    padding: 25px 35px;
    overflow-y: auto;
}

/* Top Navigation */
.gallery-nav-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.gallery-nav-thumbs button {
    padding: 8px 18px;
    background: white;
    border: 1px solid var(--color-teal);
    border-radius: 30px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 0.95rem;
}

.gallery-nav-thumbs button:hover {
    background: var(--color-teal);
    color: white;
}

/* Section Headers */
.gallery-sections h4 {
    color: var(--color-gold-button);
    font-size: 1.45rem;
    font-weight: 400;
    margin: 2.8rem 0 1.2rem 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-gold-border);
}

/* Masonry Layout */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-bottom: 3.5rem;
}

.gallery-masonry img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive for property gallery */
@media (max-width: 700px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    .thumbnails {
        display: none;
    }
    .main-photo img {
        height: 350px;
    }
    .show-all-btn {
        margin-top: 1rem;
        width: fit-content;
    }
}

/* ============================================
   10. RESPONSIVE
   ============================================ */

@media (max-width: 950px) {
    .hamburger {
        display: flex;
    }
   
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: 0.4s ease;
        z-index: 1000;
        padding-top: 80px;
    }
   
    .nav-menu.active {
        left: 0;
    }
   
    .nav-menu a {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .slideshow { height: 250px; }
   
    .slide-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
}

@media (max-width: 550px) {
    .modal-content {
        width: 96%;
        max-width: 440px;
        margin: 3% auto;
    }
   
    .modal-body {
        padding: 12px;
    }
   
    .modal-body iframe {
        height: 540px;
        max-width: 400px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .amenity-icons {
        gap: 12px;
    }
    
    .amenity-item {
        font-size: 0.95rem;
    }
    
    .season-grid {
        grid-template-columns: 1fr;
    }
   
    .season-card img.guide-img {
        height: 180px;
    }
}
