/*
 * COMPONENTS.CSS
 * Visual Styles: Buttons, Cards, Inputs, Slider
 */

/* 1. Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,115,170,0.3);
}
.btn-block { display: block; width: 100%; }

/* 2. Hero Slider */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed Height */
    overflow: hidden;
    margin-top: -80px; /* Behind Header */
}

.hero-wrapper { position: relative; width: 100%; height: 100%; }

.hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out; z-index: 1;
}
.hero-slide.active { opacity: 1; z-index: 2; }

.hero-img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; color: #fff; z-index: 5; width: 90%; max-width: 800px;
}
.hero-content h2 { 
    font-size: 3.5rem; font-weight: 700; margin-bottom: 15px; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.3); line-height: 1.1;
}

/* Dots */
.hero-dots {
    position: absolute; bottom: 80px; /* Moved up for Search Bar */
    left: 50%; transform: translateX(-50%);
    display: flex; gap: 10px; z-index: 10;
}
.hero-dots .dot {
    width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; cursor: pointer; background: transparent;
}
.hero-dots .dot.active { background: #fff; }

/* 3. Search Widget (The Floating Bar) */
.relative-search-container { position: relative; z-index: 20; height: 0; }
.search-widget-wrapper { 
    position: absolute; top: -45px; left: 0; width: 100%; padding: 0 15px; 
}

.search-glass-panel {
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    padding: 8px 10px;
    max-width: 850px;
    margin: 0 auto;
    align-items: center;
}

.search-item { 
    flex: 1; padding: 0 20px; border-right: 1px solid #eee; position: relative;
}
.search-item:last-of-type { border-right: none; }

.search-item label { 
    display: block; font-size: 0.7rem; color: #888; font-weight: 700; 
    text-transform: uppercase; margin-bottom: 2px; letter-spacing: 0.5px;
}
.search-item input, .search-item select { 
    border: none; width: 100%; font-size: 0.95rem; font-weight: 600; 
    color: #333; outline: none; background: transparent; padding: 0;
}

.btn-search { 
    width: 48px; height: 48px; border-radius: 50%; 
    background: var(--primary); color: #fff; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1.4rem; flex-shrink: 0; 
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.3);
    margin-left: 10px;
}
.btn-search span { color: #fff; } /* Force Icon White */

/* 4. Resort Card */
.resort-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); transition: 0.3s; border: 1px solid #f0f0f0;
}
.resort-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }

.card-image { position: relative; height: 220px; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-rating {
    position: absolute; top: 15px; right: 15px;
    background: #fff; padding: 4px 10px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 700; color: #f39c12; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.card-details { padding: 20px; }
.card-meta .location { font-size: 0.8rem; color: #888; text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }
.card-title { font-size: 1.25rem; margin: 10px 0; color: #222; font-weight: 700; }
.card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f5f5f5; padding-top: 15px; margin-top: 15px; }
.price-block .label { font-size: 0.75rem; color: #999; display: block; }
.price-block .price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.btn-text { font-size: 0.9rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 5px; }

/* 5. Sticky Mobile Buttons */
.sticky-btn {
    flex: 1; padding: 12px; border-radius: 50px; text-align: center;
    font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 0.9rem; text-transform: uppercase; text-decoration: none;
}
.btn-outline { background: #f0f7ff; color: var(--primary); border: 1px solid var(--primary); }
.btn-solid { background: #25D366; color: #fff; box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4); border: none; animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* --- MOBILE SPECIFIC (The Fix) --- */
@media (max-width: 768px) {
    .hero-slider-container { height: 450px; } /* Reduce Hero height on mobile */
    .hero-content h2 { font-size: 2rem; margin-bottom: 5px; }
    
    /* Compact Search Widget */
    .search-glass-panel { 
        flex-direction: column; 
        border-radius: 20px; 
        padding: 15px; /* Tighter Padding */
        align-items: stretch;
        gap: 10px;
    }
    .search-item { 
        border-right: none; 
        border-bottom: 1px solid #f0f0f0; 
        width: 100%; 
        padding: 0 0 10px 0; /* Minimal padding */
    }
    .search-item:last-of-type { border-bottom: none; padding-bottom: 0; }
    
    .btn-search { 
        width: 100%; 
        border-radius: 12px; 
        margin-top: 5px; 
        height: 45px;
    }
    
    .search-widget-wrapper { top: -60px; padding: 0 15px; }
    
    /* Move Dots up so Search bar doesn't cover them */
    .hero-dots { bottom: 120px; }
}