/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(214, 214, 214, 0.5), rgba(214, 214, 214, 0.185)), url('https://backend.staypattern.com/Images/Banners/Anuj_1/638744584200913875_temp.jpg');
    background-size: cover;
    background-position: top center;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    color: var(--text-dark-color);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: var(--text-dark-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    background: #ffffff;
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: 50px;
}

.search-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background: var(--accent-color-hover);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .search-container {
        width: 90%;
        margin: 0 auto;
    }

    .search-box {
        flex-direction: row;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .search-input {
        width: 70%;
        padding: 0.6rem 1rem;
        border-radius: 6px;
        font-size: 0.9rem;
        text-align: left;
    }

    .search-button {
        width: 30%;
        padding: 0.6rem;
        border-radius: 6px;
        font-size: 0.9rem;
    }

    .search-button .search-icon {
        margin-right: 4px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 60vh;
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .search-box {
        padding: 0.4rem;
    }

    .search-input {
        width: 65%;
        font-size: 0.85rem;
    }

    .search-button {
        width: 35%;
        font-size: 0.85rem;
    }

    .search-button span:not(.search-icon) {
        display: none;
    }

    .search-button .search-icon {
        margin: 0;
    }

    .location-item h3 {
        text-align: center;
        
    }
}

/* Recommended Stays */


.recommended-stays {
    padding: 48px 0;
    background-color: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.section-heading {
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-subheading {
    font-size: 18px;
    color: #666;
    font-weight: 500;
    margin-bottom: 32px;
}

.stay-slider {
    position: relative;
    overflow: hidden;
}

.stay-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stay-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

.image-container {
    position: relative;
    aspect-ratio: 4 / 3;
}

.stay-image {
    position: absolute;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.stay-image.active {
    opacity: 1;
}

.stay-image.next {
    transform: translateX(100%);
}

.stay-image.prev {
    transform: translateX(-100%);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.card-content {
    padding: 16px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.star {
    color: var(--accent-color);
    font-size: 22px;
    font-weight: 700;
}

.rating-value {
    font-weight: 900;
}

.stay-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stay-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.stay-location img{
    width: 16px;
    height: 16px;
}

.amenities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.amenity {
    font-size: 14px;
    padding: 4px 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.amenity span {
    margin-right: 4px;
}

.price-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 12px;
    color: #666;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-value {
    color: var(--primary-color);
    font-weight: 600;
}

.price-period {
    font-size: 14px;
    color: #666;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.slider-button:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slider-button.prev {
    left: -16px;
}

.slider-button.next {
    right: -16px;
}

@media (max-width: 768px) {
    .stay-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .stay-grid {
        grid-template-columns: 1fr;
    }
    
    .section-heading {
        font-size: 20px;
    }
    
    .section-subheading {
        font-size: 14px;
    }
    
    .slider-button {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 640px) {
    .slider-button {
        display: none;
    }
}

/* Our Locations */
.locations-section {
    padding: 80px 0;
    background-color: var(--section-bg);
}

.location-card {
    background: var(--location-card-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.location-card:hover {
    background: var(--location-card-hover);
}

/* Why Stay With Us */
.why-stay-section {
    padding: 80px 0;
    background-color: var(--testimonial-bg);
}

/* Testimonials */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--section-bg);
}

.testimonial-card {
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    padding: 30px;
}

/* Payment Methods */
.payment-section {
    padding: 60px 0;
    background-color: var(--section-bg);
}

.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.payment-methods img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Common Section Styles */
.section-heading {
    color: var(--section-heading);
    margin-bottom: 40px;
    text-align: center;
}

.section-text {
    color: var(--section-text);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Stay Icons */
.stay-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between icons */
    margin-top: 10px; /* Space above icons */
}

.icon {
    font-size: 16px; /* Adjust icon size */
    color: var(--icon-color); /* Define a color variable in your CSS */
}

.location-grid {
    display: grid;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* margin-left: 1rem; */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    /* margin-left: -0.7rem; */
    margin-top: 2rem;
}

.location-grid img {
    width: 350px;
    height: 200px;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 1rem;
}

.location-grid h3 {
    /* text-align: center; */
    font-size: 1.2rem;
    color: #333;
    margin-top: 0.5rem;
}

/* Benefits Slider Styles */
.benefits-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.benefits-track {
    display: flex;
    animation: scroll 30s linear infinite;
    width: calc(300px * 8); /* 300px * number of items (including clones) */
}

.benefit-item {
    flex: 0 0 300px;
    padding: 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 10px;
    margin: 0 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.benefit-icon img{
    width: 50px;
    height: 50px;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.benefit-item p {
    font-size: 0.9rem;
    color: #666;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 4)); /* 300px * number of original items */
    }
}

/* Optional: Pause animation on hover */
.benefits-slider:hover .benefits-track {
    animation-play-state: paused;
}

/* Testimonials Slider Styles */
.testimonials-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.testimonials-track {
    display: flex;
    animation: testimonialScroll 40s linear infinite;
    width: fit-content;
    gap: 40px;
    padding: 20px;
}

.testimonial-item {
    flex: 0 0 400px;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.guest-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.guest-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #333;
}

.guest-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.stars {
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 12px;
}

.review-date {
    font-size: 0.85rem;
    color: #888;
}

@keyframes testimonialScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Add this to ensure smooth infinite loop */
.testimonials-track:hover {
    animation-play-state: paused;
}

.testimonials-track::after {
    content: '';
    display: block;
    clear: both;
}

/* Make animation smoother */
.testimonials-track {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonial-item {
        flex: 0 0 300px;
    }
    
    .testimonials-track {
        width: calc(300px * 6);
    }
    
    @keyframes testimonialScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-300px * 3));
        }
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .amenities {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .amenity {
        font-size: 12px;
        padding: 3px 6px;
    }

    .location-grid img{
        width: 250px;
        height: 250px;
    }
}

@media screen and (max-width: 480px) {
    .amenities {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
}

.quote-button {
    display: block;
    width: 80%;  /* Reduced from full width */
    margin: 0 auto;  /* Centers the button */
    background-color: var(--primary-color);  /* Using primary color instead of WhatsApp green */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    text-align: center;
    transition: background-color 0.3s ease;
}

.quote-button:hover {
    background-color: var(--primary-hover);  /* Using primary hover color */
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 35px;
        height: 35px;
        bottom: 15px;
        right: 15px;
    }
}

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%; /* Adjust height as needed */
}

.slider img {
    width: 100%;
    height: 100%;
    display: none;
    object-fit: cover;
}

.slider img.active {
    display: block;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    cursor: pointer;
    padding: 10px;
}

.prev, .next {
    cursor: pointer;
    opacity: 1;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev.hidden, .next.hidden {
    display: none;
}

.prev:hover, .next:hover {
    background: rgba(255, 255, 255, 1);
}

/* Index display */
.index-display {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
    opacity: 0;
    transition: opacity 0.3s;
}

.image-container {
    position: relative;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.prev, .next {
    cursor: pointer;
    opacity: 1;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev.hidden, .next.hidden {
    display: none;
}

.prev:hover, .next:hover {
    background: rgba(255, 255, 255, 1);
}

/* Ensure next button stays on the right */
.next {
    position: absolute;
    right: 10px;
}

.prev {
    position: absolute;
    left: 10px;
}

/* Show controls and index display on hover */
.image-container:hover .slider-controls,
.image-container:hover .index-display {
    opacity: 1;
}

/* Dots container */
.dots {
    position: absolute;
    bottom: 40px; /* Position above the index display */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for centering */
    display: flex; /* Use flexbox for alignment */
    opacity: 0; /* Hide dots by default */
    transition: opacity 0.3s; /* Smooth transition for visibility */
}

/* Individual dot styles */
.dot {
    height: 10px; /* Dot height */
    width: 10px; /* Dot width */
    margin: 0 5px; /* Space between dots */
    background-color: #bbb; /* Default dot color */
    border-radius: 50%; /* Make dots circular */
    cursor: pointer; /* Change cursor to pointer */
}

/* Active dot style */
.dot.active {
    background-color: #717171; /* Active dot color */
}

/* Show controls, index display, and dots on hover */
.image-container:hover .slider-controls,
.image-container:hover .index-display,
.image-container:hover .dots {
    opacity: 1; /* Show on hover */
}

/* Modern Booking Form */
.booking-form-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    width: 100%;
}

.form-grid {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-left: 5px;
}

.input-icon {
    position: relative;
    height: 56px; /* Fixed height for all inputs */
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
    font-size: 18px;
}

.modern-input, .modern-select {
    width: 100%;
    padding: 18px 15px 18px 40px; /* Increased padding */
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    height: 100%; /* Take full height of parent */
    min-height: 56px; /* Minimum height */
}

.modern-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.modern-input:focus, .modern-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    outline: none;
}

.book-now {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    border: none;
    padding: 18px 30px; /* Increased padding */
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    width: 100%;
    height: 56px; /* Match input height */
}

.book-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.offer {
    text-align: center;
    color: var(--text-dark-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .button-group {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .button-group {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        grid-column: span 1;
    }
    
    .booking-form-container {
        padding: 1.5rem;
    }
    
    .modern-input, .modern-select {
        padding: 15px 12px 15px 36px; /* Adjusted padding for mobile */
        font-size: 15px;
    }
    
    .input-icon i {
        font-size: 16px;
    }
}

.floating-booking-form {
    position: relative;
    max-width: 1200px;
    margin: -140px auto 0;
    z-index: 10;
    padding: 0 20px;
}

.booking-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: end;
}

.button-group {
    grid-column: span 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .form-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .button-group {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .floating-booking-form {
        margin: -130px auto 0;
    }
    
    .booking-form-container {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .button-group {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .floating-booking-form {
        margin: -125px auto 0;
        padding: 0 10px;
    }
    
    .booking-form-container {
        padding: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        grid-column: span 1;
    }
    
    .modern-input, .modern-select {
        padding: 12px 10px 12px 36px;
        font-size: 14px;
    }
    
    .input-icon i {
        font-size: 16px;
        left: 10px;
    }
    
    .book-now {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* For very small devices */
@media (max-width: 360px) {
    .booking-form-container {
        padding: 10px;
    }
    
    .form-group label {
        font-size: 12px;
    }
    
    .modern-input, .modern-select {
        padding: 10px 8px 10px 32px;
        font-size: 13px;
    }
    
    .input-icon i {
        font-size: 14px;
    }
}

.booking-error {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
    display: block;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
