/*
Name: Homepage styles
Theme URI: https://www.caravans2let.com
Author: Daniel Tuck
Author URI: https://www.danieltuck.co.uk
Description: homepage stylesheet, hero banenr and information blocks
Version: 1.0
*/

/*01. Hero Banner with Video*/
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
	width:100%;
	min-height:650px
}


.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* DARK OVERLAY LAYER */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Adjust alpha (0.6 = 60% black) */
    z-index: 2;
}

.hero-overlay {
    position: relative;
    z-index: 3; /* Above the video and dark overlay */
    width: 100%;
    padding: 2rem;
    text-align: center;
}
.hero-overlay .search-heading {color:#091626;}
/* Hide logo/header graphic on small screens */
@media (max-width: 991px) {
  .home_heading_container26 {
    display: none !important;
  }
  .hero {
	min-height:490px
}
}

/* Tablet adjustments */
@media (max-width: 991px) {
  .search-form-overlay {
    width: 90% !important;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    min-width: unset !important;

  }
}

/* Mobile-specific tweaks */
@media (max-width: 769px) {.search-form-overlay {width: 100% !important;}}
@media (max-width: 576px) {
  .search-form-overlay {
    width: 100% !important;
    padding: 20px 15px;
    min-width: unset !important;
  }
  .search-form-overlay{border-radius:0px;margin:0px;}
  .search-heading{font-size:26px; font-weight: 600;line-height:1.2em;padding:0px;}
}

/*02. Why Use us section*/

/* Why Use Section */
.why-use-section {
    text-align: center;
    padding: 50px 20px;
}

/* Individual Info Boxes */
.info-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    font-family: 'Raleway', sans-serif;
    margin: 10px 0;
    min-height:160px
}

/* Headings inside boxes */
.info-box h3 {
    color: #F7941D; /* Orange brand color */
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Paragraph inside boxes */
.info-box p {
    font-size: 16px;
    color: #555;
    margin-bottom: 0;
}

/* Hover Effect */
.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) { 
    .info-box {
        padding: 20px;
    }

    .info-box h3 {
        font-size: 20px;
    }

    .info-box p {
        font-size: 15px;
    }
}

@media (max-width: 576px) { 
    .info-box {
        padding: 18px;
    }

    .info-box h3 {
        font-size: 18px;
    }

    .info-box p {
        font-size: 14px;
    }
}
 
 /*03. Call-to-Action Section*/

.cta-section {
    background: #091626; /* Dark blue background */
    color: white;
    padding: 60px 0;
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('https://www.caravans2let.com/assets/images/caravans2let-sun.svg');
    background-repeat:no-repeat;
    background-size: 400px;
    background-position: 5% 0%;
}

/* CTA Container */
.cta-section .container {
    max-width: 900px;
}

/* CTA Heading */
.cta-section h2 {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* CTA Description */
.cta-section p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* CTA Button */
.cta-section .btn-primary {
    background: #F7941D;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s;
    border: none;
}

/* CTA Button Hover Effect */
.cta-section .btn-primary:hover {
    background: #e6841b;
}

/* Responsive Adjustments */
@media (max-width: 992px) { 
    .cta-section {
       padding: 50px 20px;background-image: none;
    }
}

@media (max-width: 768px) { 
    .cta-section h2 {
        font-size: 26px;
    }

    .cta-section p {
        font-size: 16px;
    }

    .cta-section .btn-primary {
        padding: 12px 25px;
        font-size: 16px;
    }
}

@media (max-width: 576px) { 
    .cta-section {
        padding: 40px 20px;
    }

    .cta-section h2 {
        font-size: 24px;
    }

    .cta-section p {
        font-size: 15px;
    }

    .cta-section .btn-primary {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* 0.4 SErvices cards */
.service-card-icon i {
  display: block;
  line-height: 1;
}

.card-img-top {
  height: 300px;
  object-fit: cover;
  width: 100%;
}

.featured-section
{margin: 60px 0 0px!important;}

/* Parent scoped card styles */
.featuredcard {
  border-radius: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: none;
  position: relative;
  color:#fff;
  overflow: visible;
  border-radius: 20px!important;
  box-shadow: 0 5px 15px 5px #00000020;
}

/* Subtle hover zoom effect */
.featuredcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 10px 5px #00000040;
}

/* Image styling */
.featuredcard .card-img-top img {
  object-fit: cover;
  width: 100%;
  height: 330px;
  border-bottom: 1px solid #f0f0f0;
  transition: transform 0.3s ease;
}
.ref-badge
{position:absolute; z-index:5;   background: #F09819!important; padding:5px 15px;font-size:22px;font-weight:600; border-radius: 0 0 4px; }
/* Optional subtle zoom on hover image */

.featuredcard:hover .card-img-top img {
  transform: scale(1.03);
}


/* Card body spacing and layout */
.featuredcard .card-body {
  padding: 0px;
}

/* Title */
.featuredcard .card-body h5 {
  font-size: 20px;
  font-weight: 300!important;;
    padding: 15px 0;
  background:#fff; width:80%;
  margin:-35px auto 0;
  text-align: center;
  color:#091626;
  box-shadow: 0 0px 15px 0px #00000020 ;
  position: relative;
border-radius:20px;
}
.featuredcard .card-body h5 span {width:100%;display:inline-block;font-weight:600;  font-size: 16px;}

.bi.bi-geo-alt-fill.me-1.text-primary {color:#F09819!important;}

/* Location */
.featuredcard .card-body p.text-muted {
  font-size: 22px!important;
    color: #333!important;
 padding: 0px 20px 0!important;
}
/* spec */
.featuredcard-meta
{
  text-align:center;font-size:20px;
}
.featuredcard-meta .caravan-stats
{padding:0px;margin-top:-5px;}

/* Description */
.featuredcard .card-body p.small {
  font-size: 18px!important;
  line-height: 1.4;
  color: #333;
 padding: 10px 20px 15px!important;
}

/* Facilities layout */
.featuredcard .card-body .row.small ul {
  padding-left: 1rem;
  margin-bottom: 0;
      color: #333!important;
}

.featuredcard .card-body .row.small li {
  margin-bottom: 0.5rem;
  font-size: 14px!important;

}

/*rating*/
.avg-rating{
    text-align:center;font-size:20px;color:#000;
  background:#bbe5a84f; width:30%;margin:0 auto;border-radius:20px;padding: 10px 20px;
}

/* Footer button */
.featuredcard .card-footer {
background:#f8f8f8;
}

.featuredcard .card-footer .btn {
  color:#fff;
  font-size:22px;
  border:none;
  border-radius:15px!important;
  font-weight: 900;
  transition: all 0.3s ease;
  background-image: linear-gradient(to right, #FF512F 0%, #F09819  51%, #FF512F  100%)
}

.featuredcard .card-footer .btn {
             margin: 10px;
            padding: 15px 45px;
            text-align: center;
            transition: 0.5s;
            background-size: 200% auto;
            color: white;            

            border-radius: 10px;
            display: block;
			border: 0px solid transparent;
			font-weight:900; 
}

.featuredcard:hover .card-footer .btn {
            background-position: right center; /* change the direction of the change here */
            color: #fff;
            text-decoration: none;
          box-shadow: 0 0 60px  #FF512F100;
}


/* 05. Promo Cards */
.promo-card {
  height: 140px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
  border-radius: 22px!important;
}
.promo-card.xl {height: 220px;}
.promo-gradient-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0), rgba(0,0,0,0.3));
}
.promo-gradient-overlay:hover {
  background: linear-gradient(135deg, rgba(0,0,0,0), rgba(0,0,0,0));
}
.promo-card h3{
  font-size:32px;
}
.promo-gradient-overlay {
  flex-wrap: nowrap;
  overflow: hidden!important;
}
.promo-gradient-overlay img,
.promo-gradient-overlay div {
  max-width: 100%;
  flex-shrink: 0;
}

/*06. Services */

.py-5.home-services
{ margin: 40px 0 0;
  padding:80px 0!important;
  background:#f1951a17;
}
.home-services i {color:#f96d26 !important;margin:-5px 0 0 0!important;display:block;}
.home-services .services-card h6
{text-align:left;font-size:22px;color:#333;}

.home-services .services-card
{text-align:left;}

.home-services .services-card p
{padding: 20px 0;}

.home-services .services-card .btn
{border: 2px solid #f96d26; color:#f96d26;margin:0 0 20px 0; border-radius:10px; }

.home-services .services-card .btn.btn-sm
{padding: 5px 50px;}

.home-services .services-card .btn:hover
{background:#f96d26; color:#fff;}


/*06.  Date Picker Popup */
.date-popup {
    position: absolute;
    background: white;
    padding: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    width: 420px; /* Set fixed width */
    height: 465px; /* Set fixed height */
    z-index: 1000;
    overflow: hidden;
    display: none; /* Initially hidden */
    flex-direction: column;
    justify-content: space-between;
 top:20px
}

/* Show popup when active */
.date-popup.active {
    display: flex !important;
}

/* Ensure FullCalendar fills the popup */
#date-picker-container {
    flex-grow: 1; /* Allow calendar to fill space but not expand beyond */
    overflow-y: auto; /* Prevent overflow */
}

/* Calendar navigation buttons */
.calendar-buttons {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    background: white; /* Ensure it's visible */
    padding-bottom: 5px;
     font-family: 'Raleway', sans-serif;

}

.calendar-buttons .btn {
    padding: 6px 15px;
    font-size: 14px;
    margin: 0 2px;

}
/* Adjust FullCalendar styles */
.fc-dayGridMonth-view {
    height: auto !important;
}

.fc-day-header {
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    width: 14.28%; /* Each day takes equal space */
}

.fc-day {
    min-height: 40px; /* Ensure day cells are properly sized */
}

/* Adjust FullCalendar Month Grid */
.fc-daygrid-day {
    min-height: 30px !important; /* Reduce day cell height */
    padding: 2px 0 !important; /* Minimize padding */
}

/* Reduce header size (Mon, Tue, etc.) */
.fc-day-header {
    font-size: 10px !important; /* Make headers smaller */
    padding: 2px !important;
    width: 14.28%; /* Ensure equal width */
}

/* Reduce text size inside days */
.fc-daygrid-day-number {
    font-size: 12px !important;
    padding: 2px !important;
}

/* Ensure the entire month grid fits within the popup */
#date-picker-container {
    height: 300px !important; /* Make the calendar fit */
    width: 100% !important;
}


.fc-daygrid-day-frame.fc-scrollgrid-sync-inner {
     font-family: 'Raleway', sans-serif;
  max-height:40px!important;
}
th.fc-col-header-cell.fc-day div.fc-scrollgrid-sync-inner a
{color:#333;text-decoration:none;}

.fc-daygrid-day-frame .fc-daygrid-day-top a.fc-daygrid-day-number
{color:#333;text-decoration:none;font-size:16px!important;}

.fc .fc-toolbar-title {
     font-family: 'Raleway', sans-serif;
  font-size: 1.5em!important;
  margin: 0;font-weight:600;
}
.fc .fc-toolbar.fc-header-toolbar {
  margin-bottom: 1em;
}
div#publicCalendar  .fc-daygrid-day-bg .fc-daygrid-bg-harness .fc-event.fc-event-future.available-period.fc-bg-event
{pointer-events: none;}

.fc-event.hover-preview-range {
  background-color: rgba(255, 179, 71, 0.5) !important; /* light orange */
  pointer-events: none;
}

.search-heading {
  padding: 15px 0;
 font-family: 'Raleway', sans-serif;
 color:#091626;font-size:34px;font-weight:300;
}

.search-form-overlay {
    background: rgba(255, 255, 255, 0.6);
    padding:40px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
    width: 33%;
	min-width:450px;
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-55%);
    transition: 0.5s;
	min-width:450px;
}
.search-form-overlay:hover {
    background: rgba(255, 255, 255, 0.8);
}

.search-form .input-group input {
    border: none;
    outline: none;
    width: 80%;
}

/* General Input Styling */
.search-form .form-control {
    color: #333333;
    border-radius: 10px; /* Chunky rounded corners */
    font-size: 16px;
    padding: 12px;
    width: 100%;
}

.search-form .form-control::placeholder {
    color: #333;
}

/* Special styling for 'Select Dates' to indicate clickability */
#form_dates {
    cursor: pointer; /* Change to hand cursor */
}

/* Input Group Styling */
.input-group {
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 8px;
    background:#fff;
    box-shadow:0px 2px 2px #55555590;
    margin: 0 0 20px 0;
}

/* Icons inside input groups */
.input-group svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

/* Number Pickers Row */
.guest-controls {
    display: flex;
    justify-content: space-between; /* Ensure even spacing */
    align-items: center;
    gap: 10px;
    width: 100%;
  
}
/* Each Number Picker Box */
.number-picker {
    background:#fff;
    border-radius: 10px;
    padding: 10px 0 20px;
    width: 30%; /* Ensure each takes 30% */
        box-shadow:0px 2px 2px #55555590;
}

/* Number Picker Title (Adults, Children, Pets) */

.number-picker label {
    font-size: 16px;
    font-weight: 600;
    text-align: center; /* Center text */
    width: 100%; /* Make label full width */
    display: block; /* Ensure label takes full width */
    padding:0 0 15px 0; /* Add some padding */
    border-radius: 5px 5px 0 0; /* Round only top corners */
     font-family: 'Raleway', sans-serif;
	 color:#222;
}

/* Buttons (Increase / Decrease) */
.number-picker button {
    background: white;
    color: #333;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Hover Effect */
.number-picker button {
    background: #212529;
    color: white;
}
.number-picker button:hover {
    background: #F7941D;
    color: white;
}

/* Number Display */
.number-picker span {
    font-size: 22px;
    font-weight: bold;
    color: orange;
    margin: 5px 10px;
}
/* Form Group Styling */
.search-form .form-group {
    margin-bottom: 15px;
}

.search-form .input-group input {
    border: none;
    outline: none;
    width: 100%;
     font-family: 'Raleway', sans-serif;
}



/* Button Styling */
.search-form .btn-primary {
    background: #F7941D;
    border: none;
    padding: 10px;
    font-size: 18px;
    border-radius: 8px;
    transition: background 0.3s;
 font-family: 'Raleway', sans-serif;
}

.search-form .btn-primary:hover {
    background: #e6841b;
}


/* Live Search Dropdown */

.search-results {
    position: absolute;
    background: white;
    width: 100%;
    max-height: 350px; /* ✅ Limit height */
    overflow-y: auto; /* ✅ Enable scrolling */
    z-index: 1000;
    border-radius: 8px;
    box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.8);
    top:55px;
    left:2px;
	color:#333;
}

/* Section Headings */
.result-heading {
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    background: #f1f1f1;
    border-bottom: 1px solid #ddd;
    color: #333;
    text-transform: uppercase;
}

/* Search Result Items */
.search-result-item {
    padding: 10px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
}

/* Search Icons */
.search-icon {
    font-size: 16px;
    margin-right: 8px;
}

/* Locations: Ensure white background */
.location-result {
    background: white !important;
}

/* Holiday Park Results */
.search-result-item:hover {
    background: #f5f5f5;

}

/* Town/City & County Display */
.search-result-item .location-meta {
    font-size: 12px;
    color: #666;
    display: block;
    margin-top: 3px;
    padding: 0 8px;
}

/* Caravan Availability */
.caravan-count {
    font-size: 12px;
    color: #28a745;
    font-weight: bold;
    padding-top:4px;
}

/* Unavailable parks (0 caravans) */

.unavailable {
    opacity: 0.5; /* Fade out */
    pointer-events: none; /* Prevent clicking */
    cursor: not-allowed;
}

/* Ensure locations & active parks remain selectable */
.location-result {
    background: white !important;
    pointer-events: auto; /* ✅ Ensure clickable */
}

.search-result-item {
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.btn-primary {
    opacity: 1;
    cursor: pointer;
}

/* Reference Results */
.reference-result {
    background: #fff !important;
    border-left: 4px solid #F7941D; /* Orange highlight */
}

.reference-result:hover {
    background: #f9f9f9;
}

/* mobile adjustements */

@media (max-width: 768px) {
	
  .search-form-overlay {
    left: 0;
   position:absolute;
    margin:0px!important;;
    
  }


  .number-picker {
    width: 100%;
  }

  .date-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95% !important;
    height: auto !important;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1050;
	 margin-top:15px;
  }

  .calendar-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .calendar-buttons .btn {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .fc-daygrid-day-number {
    font-size: 16px !important;
    padding: 10px !important;
  }

  .fc-daygrid-day-frame {
    min-height: 50px !important;
  }

  .fc .fc-toolbar-title {
    font-size: 1.2em !important;
  }

  .fc .fc-button {
    font-size: 0.9em;
    padding: 6px 10px;
  }
}

@media (max-width: 768px) {
.featured-section .col-md-4,
.featured-types .col-md-4,
.featured-types .col-md-6
{margin:15px 0!important;}
}