/* Hope Acres Glamping - Main Stylesheet */

:root {
    --primary-orange: #ff8c00;
    --primary-green: #2e7d32;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --shadow: 0 2px 16px rgba(0,0,0,0.1);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Header */
header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    height: 80px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Hide mobile menu close button on desktop */
.mobile-menu-close {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

.cta-button {
    background: var(--primary-green);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(46, 125, 50, 0.3);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-button {
    background: transparent;
    color: var(--dark);
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    border: 2px solid var(--gray-300);
}

.nav-button:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.nav-button-outline {
    background: transparent;
    color: var(--dark);
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.nav-button-outline:hover {
    background: var(--primary-orange);
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    /* Background is now set inline for dynamic images */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200" preserveAspectRatio="none"><path d="M0,150 Q300,100 600,150 T1200,150 L1200,200 L0,200 Z" fill="rgba(255,255,255,0.1)"/></svg>') bottom/cover no-repeat;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    background: white;
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 0 0 5px #FFD700, 0 8px 32px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    font-weight: 300;
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    font-size: 1.125rem;
    margin-top: 2rem;
}

.hero-features span {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* Search Bar */
.search-section {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: -4rem auto 4rem;
    position: relative;
    z-index: 10;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 1rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 0.875rem;
}

.form-group input[type="text"], 
.form-group select {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
    height: 44px;
    display: block;
    width: 100%;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-orange);
}

/* Sites Grid */
.sites-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    position: relative;
    transform: translateZ(0); /* Create new stacking context */
}

.sites-section::before {
    content: '⛰️';
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    opacity: 0.1;
    pointer-events: none; /* Ensure emoji doesn't interfere with interactions */
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

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

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.site-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 140, 0, 0.1);
    transform: translateZ(0); /* Prevents flickering */
    will-change: box-shadow; /* Optimize for animation */
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-green));
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Create a larger hover area to prevent edge flickering */
.site-card::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    z-index: -1;
}

.site-card:hover {
    /* Removed the transform to prevent dancing */
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.site-card:hover::before {
    opacity: 1;
}

.site-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background-color: #f0f0f0; /* Fallback while loading */
}

.site-info {
    padding: 1.5rem;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.site-type {
    color: #666;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0.25rem 0;
}

.site-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-green);
}

.site-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: #666;
}

.site-price-note {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

.site-features {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #666;
}

.site-features span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe0cc 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><path d="M100,200 Q150,100 200,200 T300,200" stroke="%23ff8c0020" stroke-width="2" fill="none"/><path d="M50,300 Q100,200 150,300 T250,300" stroke="%23ff8c0020" stroke-width="2" fill="none"/></svg>') repeat;
    opacity: 0.3;
    transform: rotate(-15deg);
}

.features-section .section-header p {
    color: #666;
    font-size: 1.25rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.features-section .section-header p::before {
    content: '📍 ';
    color: var(--primary-orange);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.feature {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-orange), #ff6b00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature p {
    color: #666;
    line-height: 1.6;
}

.feature p strong {
    color: var(--primary-green);
    font-weight: 600;
}

/* Activities Banner */
.activities-banner {
    max-width: 1200px;
    margin: 4rem auto 0;
    background: linear-gradient(135deg, var(--primary-green), #1e5e20);
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.activities-banner h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.activities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.activities-list span {
    background: rgba(255,255,255,0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1.125rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}

.activities-list span:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.seasonal-activities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.season {
    text-align: center;
}

.season h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.season p {
    font-size: 1.125rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .seasonal-activities {
        grid-template-columns: 1fr;
    }
    
    .activities-banner {
        padding: 2rem 1rem;
    }
    
    .activities-list {
        gap: 1rem;
    }
    
    .activities-list span {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Map Section - Creative Centered Design */
.map-section {
    background: linear-gradient(180deg, #fff 0%, #f8f4f0 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

.map-hero-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.map-backdrop {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 600"><path fill="%23ff8c0010" d="M0,300 C480,100 960,500 1440,300 L1440,600 L0,600 Z"/></svg>') no-repeat center;
    opacity: 0.5;
}

.map-hero-content {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.location-badge {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.location-badge span {
    background: white;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
}

.location-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.location-subtitle {
    font-size: 1.5rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 2rem;
}

.coordinates-display {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: 50px;
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.coord-label {
    background: var(--primary-green);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
}

.coord-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.125rem;
}

.interactive-map-container {
    position: relative;
    z-index: 2;
}

.map-frame {
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    background: white;
    padding: 10px;
}

.map-frame iframe {
    border-radius: 15px;
    filter: saturate(1.2) contrast(1.1);
}

.map-pin-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

.pin-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    filter: blur(10px);
}

.pin-body {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid var(--primary-orange);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
    animation: bounce 2s ease-in-out infinite;
}

.pin-logo {
    width: 50px;
    height: 50px;
    transform: rotate(45deg);
    object-fit: contain;
}

@keyframes bounce {
    0%, 100% { transform: rotate(-45deg) translateY(0); }
    50% { transform: rotate(-45deg) translateY(-10px); }
}

.location-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-green));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.15);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h4 {
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.distance-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.distance-tags span {
    background: var(--light);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.875rem;
    color: #666;
}

.distance-tags strong {
    color: var(--primary-green);
    font-weight: 700;
    margin-left: 0.25rem;
}

.nearby-list {
    list-style: none;
    text-align: left;
    color: #666;
    line-height: 2;
}

.nearby-list li {
    position: relative;
    padding-left: 1.5rem;
}

.nearby-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

.get-directions-btn {
    display: inline-block;
    background: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all 0.3s;
}

.get-directions-btn:hover {
    background: #236b26;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
}

@media (max-width: 968px) {
    .location-title {
        font-size: 2.5rem;
    }
    
    .location-subtitle {
        font-size: 1.25rem;
    }
    
    .location-info-cards {
        grid-template-columns: 1fr;
    }
    
    .map-frame {
        margin: 0 -1rem 2rem;
        border-radius: 0;
    }
    
    .coordinates-display {
        font-size: 0.875rem;
        padding: 0.75rem 1.5rem;
    }
}

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

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

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

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-button {
    background: var(--primary-green);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #236b26;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #999;
}

/* Utah-themed decorative elements */
body {
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 140, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 125, 50, 0.05) 0%, transparent 50%);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 90vh;
    }
    
    .hero-logo-container {
        width: 150px;
        height: 150px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-features span {
        font-size: 1rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-section {
        padding: 1.5rem;
        margin: -3rem 1rem 3rem;
    }
    
    .form-group input[type="text"],
    .form-group select {
        font-size: 16px !important;
        height: 48px !important;
    }
    
    .nav-links {
        display: none;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
/* Mobile-only elements - hide on desktop */
.mobile-only {
    display: none;
}

/* Show mobile-only elements on mobile */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}
