/* ============ ROOT VARIABLES ============ */
:root {
    --primary: #1a4d2e;
    --primary-light: #2d6a4f;
    --primary-dark: #0d2b1a;
    --primary-gradient: linear-gradient(135deg, #1a4d2e 0%, #2d6a4f 100%);
    --secondary: #52b788;
    --accent: #95d5b2;
    --white: #ffffff;
    --light-bg: #f0f5f2;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --shadow: 0 4px 20px rgba(26, 77, 46, 0.15);
    --radius: 16px;
    --transition: all 0.3s ease;
}

/* ============ SEARCH CONTAINER ============ */
.juniper-search-wrap {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.juniper-search-wrap h2 {
    color: var(--primary-dark);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.juniper-search-wrap h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* ============ SEARCH FORM ============ */
.juniper-search-form {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 77, 46, 0.08);
}

.juniper-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.juniper-col {
    display: flex;
    flex-direction: column;
}

.juniper-col label {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 14px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
}

.juniper-col label .required {
    color: #dc3545;
    margin-left: 3px;
}

.juniper-col input,
.juniper-col select {
    padding: 12px 16px;
    border: 2px solid #e8edea;
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--light-bg);
    color: var(--text-dark);
    width: 100%;
}

.juniper-col input:focus,
.juniper-col select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 77, 46, 0.1);
}

.juniper-col small {
    color: var(--text-light);
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

/* ============ SEARCH BUTTON ============ */
.juniper-search-btn {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 14px 40px;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(26, 77, 46, 0.3);
}

.juniper-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(26, 77, 46, 0.4);
}

.juniper-search-btn:active {
    transform: translateY(0);
}

.juniper-search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ============ RESULTS ============ */
#juniper-results {
    margin-top: 35px;
}

#juniper-results h3 {
    color: var(--primary-dark);
    font-size: 24px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#juniper-results h3 span {
    background: var(--primary);
    color: var(--white);
    padding: 2px 14px;
    border-radius: 20px;
    font-size: 16px;
}

/* ============ HOTEL CARDS ============ */
.juniper-hotels {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.juniper-hotel {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(26, 77, 46, 0.06);
}

.juniper-hotel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(26, 77, 46, 0.2);
}

.juniper-hotel-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.3);
}

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

.juniper-hotel-info {
    padding: 22px 25px;
}

.juniper-hotel-info h4 {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.juniper-hotel-info .juniper-address {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.juniper-hotel-info .juniper-address::before {
    content: '📍';
    font-size: 14px;
}

.juniper-hotel-info .juniper-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    margin: 8px 0 12px 0;
}

.juniper-hotel-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e8edea;
    flex-wrap: wrap;
    gap: 10px;
}

.juniper-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.juniper-price small {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
}

.juniper-book-btn {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 3px 12px rgba(26, 77, 46, 0.25);
}

.juniper-book-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 20px rgba(26, 77, 46, 0.35);
}

.juniper-book-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.juniper-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-size: 14px;
    font-weight: 600;
}

/* ============ LOADING ============ */
.juniper-loading {
    text-align: center;
    padding: 40px;
    color: var(--primary);
    font-size: 18px;
}

.juniper-loading::after {
    content: '...';
    animation: dots 1.5s steps(4) infinite;
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* ============ ERROR ============ */
.juniper-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 18px 22px;
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    margin-top: 20px;
    font-weight: 500;
}

.juniper-no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    background: var(--light-bg);
    border-radius: var(--radius);
}

/* ============ CONFIRMATION PAGE ============ */
.juniper-confirmation {
    max-width: 650px;
    margin: 40px auto;
    padding: 40px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(26, 77, 46, 0.08);
}

.juniper-confirmation h2 {
    color: var(--primary-dark);
    font-size: 28px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.juniper-confirmation .booking-details {
    background: var(--light-bg);
    padding: 20px 25px;
    border-radius: 12px;
}

.juniper-confirmation .booking-details p {
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px solid rgba(26, 77, 46, 0.08);
    display: flex;
    justify-content: space-between;
}

.juniper-confirmation .booking-details p:last-child {
    border-bottom: none;
}

.juniper-confirmation .booking-details strong {
    color: var(--primary-dark);
}

.juniper-confirmation .booking-status {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.booking-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.booking-status.confirmed {
    background: #d1fae5;
    color: #065f46;
}

.juniper-paypal-btn {
    background: #0070ba;
    color: var(--white);
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
    box-shadow: 0 3px 12px rgba(0, 112, 186, 0.3);
}

.juniper-paypal-btn:hover {
    background: #005ea6;
    transform: translateY(-2px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .juniper-search-wrap {
        margin: 20px auto;
        padding: 0 12px;
    }
    
    .juniper-search-wrap h2 {
        font-size: 24px;
    }
    
    .juniper-search-form {
        padding: 20px;
    }
    
    .juniper-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .juniper-hotels {
        grid-template-columns: 1fr;
    }
    
    .juniper-hotel-info h4 {
        font-size: 18px;
    }
    
    .juniper-price {
        font-size: 20px;
    }
    
    .juniper-book-btn {
        width: 100%;
        text-align: center;
    }
    
    .juniper-hotel-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    
    .juniper-confirmation {
        padding: 25px 20px;
        margin: 20px 12px;
    }
    
    .juniper-confirmation h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .juniper-search-form {
        padding: 15px;
    }
    
    .juniper-col input,
    .juniper-col select {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .juniper-search-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .juniper-hotel-info {
        padding: 16px 18px;
    }
}