/* 
 * Holiday Home Ferias - Index Page Specific Styles
 * Contains only the styles needed for index.html
 */

/* ===========================
   Carousel & Form Overlay
   =========================== */
.carousel1 {
    margin-top: 40px;
    width: 100%;
    height: 600px;
    overflow: hidden;
    user-select: none;
    cursor: pointer;
    background-color: black;
}

.carousel1 .item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    overflow: hidden;
}

.carousel1 img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

/* Form overlay on carousel */
.form-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px;
    background: rgba(26, 60, 78, 0.9);
    z-index: 10;
    border-radius: 10px;
    width: auto;
    max-width: 460px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Button styles for both overlay and mobile */
.button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.action-btn {
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border: none;
    min-width: 160px;
    text-transform: uppercase;
    font-size: 14px;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.action-btn.book-now {
    background-color: #e74c3c;
    color: white;
}

.action-btn.book-now:hover {
    background-color: #c0392b;
}

.action-btn.contact-us {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.action-btn.contact-us:hover {
    background-color: rgba(255,255,255,0.1);
}

.form-overlay .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-overlay .form-control:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.form-overlay .form-label {
    color: white;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-overlay .btn-primary {
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #007bff;
    border-color: #007bff;
    font-size: 1rem;
}

.form-overlay .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: #0069d9;
    border-color: #0062cc;
}

.form-overlay .btn-outline-light {
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: #fff;
    border-color: #fff;
    font-size: 1rem;
}

.form-overlay .btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Form row handling */
.form-overlay .row {
    padding-bottom: 0;
    margin: 0 -10px;
}

.form-overlay .col-md-4 {
    padding: 0 10px;
}

/* Form scrollbar styling */
.form-overlay .row::-webkit-scrollbar {
    height: 6px;
}

.form-overlay .row::-webkit-scrollbar-thumb {
    background-color: rgba(63, 142, 181, 0.5);
    border-radius: 3px;
}

.form-overlay .row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

/* Owl Carousel specific styles */
.owl-stage-outer {
    height: 100%;
}

.owl-stage {
    height: 100%;
    display: flex;
    align-items: stretch;
}

.owl-item {
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    overflow: hidden;
}

.owl-carousel {
    height: 100% !important;
    overflow: hidden;
}

/* ===========================
   Mobile Booking Form
   =========================== */
.mobile-booking-form {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: -5px;
    position: relative;
    z-index: 10;
}

.mobile-booking-form h5 {
    color: #3f8eb5;
    font-weight: 600;
}

.mobile-booking-form .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

.mobile-booking-form .form-control {
    border-color: #dee2e6;
    border-radius: 6px;
}

.mobile-booking-form .btn-primary {
    padding: 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* ===========================
   Mobile Form Below Carousel
   =========================== */
.mobile-form-container {
    background: #1a3c4e;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Mobile specific button adjustments */
.mobile-form-container .button-container {
    padding: 5px 0;
}

.mobile-form-container .action-btn.contact-us {
    background-color: #1a3c4e;
    color: white;
    border: 2px solid white;
}

.mobile-form-container .action-btn.contact-us:hover {
    background-color: #0a1a22;
}

/* Simple hover effect for form controls */
.form-control:hover {
    border-color: #3f8eb5;
}

/* Adjust carousel and overlay for mobile */
@media (max-width: 767.98px) {
    .carousel1 {
        height: 0;
        padding-bottom: 70%; 
        position: relative;
    }
    
    .carousel1 .owl-carousel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }    .form-overlay {
        width: auto;
        max-width: 90%;
        bottom: 10px;
        padding: 10px;
    }
    
    .action-btn {
        padding: 10px 15px;
        min-width: 130px;
        font-size: 13px;
    }
    
    .button-container {
        gap: 10px;
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {    .form-overlay {
        width: 95%;
        padding: 8px;
    }
    
    .action-btn {
        min-width: 110px;
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .button-container {
        gap: 8px;
    }
    
    .mobile-form-container {
        padding: 10px 0;
    }
}

/* ===========================
   Reviews Widget Customizations
   =========================== */
/* Target only the ad links at the bottom, not all widget links */
a[href*="elfsight.com/booking-reviews-widget"],
a[href*="elfsight.com/airbnb-reviews-widget"],
a[href*="utm_campaign=free-widget"],
a[style*="transform:translateX(-50%)"][style*="margin"],
a[style*="background-color:rgba(238,238,238"],
.elfsight-app-36130fdd-6cb0-4b29-abfb-69ad82d10baf + a[href*="elfsight.com"],
.elfsight-app-f8c39c32-227c-46cb-8c77-24ce26fd4640 + a[href*="elfsight.com"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    pointer-events: none !important;
}

/* Style the reviews widget containers - ensure they're visible */
.elfsight-app-36130fdd-6cb0-4b29-abfb-69ad82d10baf,
.elfsight-app-f8c39c32-227c-46cb-8c77-24ce26fd4640 {
    margin: 0 auto;
    max-width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

/* Hide the JSON-LD script that contains tracking info */
script[type="application/ld+json"] {
    display: none !important;
}

/* Ensure no extra margin below the widgets */
.elfsight-app-36130fdd-6cb0-4b29-abfb-69ad82d10baf + *,
.elfsight-app-f8c39c32-227c-46cb-8c77-24ce26fd4640 + * {
    margin-top: 0 !important;
}

/* Anti-uBlock styles - help avoid detection */
.reviews-section [class*="elfsight"] {
    min-height: 200px;
}

.reviews-section .widget-placeholder {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    background: #f9f9f9;
}

.reviews-section .placeholder-title {
    font-size: 18px;
    color: #3f8eb5;
    margin-bottom: 15px;
}

.reviews-section .placeholder-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(63, 142, 181, 0.2);
    border-left-color: #3f8eb5;
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Rename classes to avoid uBlock pattern matching */
.reviews-section.widgets-fallback-mode .elfsight-app-36130fdd-6cb0-4b29-abfb-69ad82d10baf {
    display: block !important;
    visibility: visible !important;
}

.reviews-section.widgets-fallback-mode .elfsight-app-f8c39c32-227c-46cb-8c77-24ce26fd4640 {
    display: block !important;
    visibility: visible !important;
}

/* Prevent common uBlock hiding tactics */
.reviews-section iframe,
.reviews-section [data-elfsight-app-lazy] {
    display: block !important;
    min-height: 100px;
}

