/* Hotels Grid Section */
.hotels-grid-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hotels-grid-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/kaaba-bg.png') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hotels-grid-container {
    position: relative;
    z-index: 2;
}

.hotels-grid-title {
    text-align: center;
    margin-bottom: 60px;
    color: #2d3748;
}

.hotels-grid-title h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: none;
    color: #1a202c;
}

.hotels-grid-title p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Hotels Scrollable Container */
.hotels-scroll-wrapper {
    position: relative;
    padding: 0 60px; /* Space for scroll buttons */
}

.hotels-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    /* Ensure smooth scrolling on mobile */
    -webkit-overflow-scrolling: touch;
}

.hotels-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.hotels-grid {
    display: flex;
    gap: 30px;
    padding: 0 20px;
    min-width: max-content;
    width: auto;
    /* Start from right on mobile to show next card */
    justify-content: flex-start;
}

/* Hotel Card */
.hotel-card {
    width: 350px;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e2e8f0;
}

.hotel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #f59e0b;
}

.hotel-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.hotel-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hotel-card:hover .hotel-card-image img {
    transform: scale(1.05);
}

.hotel-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
}

.hotel-card-info {
    padding: 25px;
}

.hotel-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hotel-card-location {
    display: flex;
    align-items: center;
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.hotel-card-location i {
    margin-left: 8px;
    color: #667eea;
}

.hotel-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.hotel-stars {
    display: flex;
    gap: 2px;
}

.hotel-stars i {
    color: #ffd700;
    font-size: 0.9rem;
}

.hotel-stars i.text-muted {
    color: #e2e8f0;
}

.hotel-rating-text {
    font-size: 0.85rem;
    color: #718096;
}

.hotel-card-description {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hotel-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.amenity-tag {
    background: #f7fafc;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.amenity-tag:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.hotel-card-actions {
    display: flex;
    gap: 10px;
}

.hotel-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hotel-btn-primary {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    border: none;
}

.hotel-btn-primary:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.hotel-btn-whatsapp {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border: none;
}

.hotel-btn-whatsapp:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Scroll Controls */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.scroll-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    color: #764ba2;
}

.scroll-btn-left {
    left: 10px;
}

.scroll-btn-right {
    right: 10px;
}

/* View All Button */
.view-all-hotels {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.view-all-btn:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Full width button for single action */
.hotel-btn-full {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hotels-grid-section {
        padding: 60px 0;
    }

    .hotels-grid-title h2 {
        font-size: 2rem;
    }

    .hotels-scroll-wrapper {
        padding: 0; /* Remove padding on mobile */
        overflow: hidden; /* Prevent horizontal overflow */
    }

    .hotels-scroll-container {
        padding: 20px 0;
        padding-right: 0; /* No right padding - start from edge */
        padding-left: 0;
    }

    .hotel-card {
        width: 320px; /* Increased width to show more of next card */
    }

    .hotels-grid {
        gap: 15px; /* Reduced gap to show more cards */
        padding: 0;
        padding-right: 0; /* No right padding */
        padding-left: 20px; /* Left padding to show next cards */
    }

    .scroll-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .scroll-btn-left {
        left: 5px;
    }

    .scroll-btn-right {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .hotels-scroll-wrapper {
        padding: 0; /* Remove padding to start from edge */
        overflow: visible;
    }

    .hotels-scroll-container {
        padding: 20px 0;
        /* Start scrolling from right edge */
        padding-right: 0; /* No right padding */
        padding-left: 0;
    }

    .hotel-card {
        width: 75vw; /* 75% of viewport width to ensure next card is visible */
        max-width: 280px;
        min-width: 250px;
    }

    .hotels-grid {
        gap: 15px; /* Gap to create space between cards */
        padding: 0;
        padding-right: 0; /* No right padding */
        padding-left: 20px; /* Left padding to show next cards */
        margin: 0;
    }

    .hotel-card-info {
        padding: 20px;
    }

    .hotel-card-title {
        font-size: 1.2rem;
    }

    .hotel-card-image {
        height: 180px;
    }

    .hotel-card-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hotels-scroll-wrapper {
        padding: 0; /* No wrapper padding */
    }

    .hotels-scroll-container {
        padding-right: 0; /* No right padding */
        padding-left: 0;
    }

    .hotel-card {
        width: 70vw; /* 70% of viewport width */
        max-width: 260px;
        min-width: 220px;
    }

    .hotels-grid {
        gap: 20px; /* Larger gap to show more of next card */
        padding: 0;
        padding-right: 0; /* No right padding */
        padding-left: 25px; /* Left padding to show next cards */
    }
}

@media (max-width: 400px) {
    .hotels-scroll-wrapper {
        padding: 0;
    }

    .hotels-scroll-container {
        padding-right: 0; /* No right padding */
        padding-left: 0;
    }

    .hotel-card {
        width: 65vw; /* 65% of viewport width */
        max-width: 240px;
        min-width: 200px;
    }

    .hotels-grid {
        gap: 25px; /* Larger gap to clearly show next card */
        padding: 0;
        padding-right: 0; /* No right padding */
        padding-left: 30px; /* Left padding to show next cards */
    }
}

@media (max-width: 360px) {
    .hotels-scroll-wrapper {
        padding: 0;
    }

    .hotels-scroll-container {
        padding-right: 0; /* No right padding */
        padding-left: 0;
    }

    .hotel-card {
        width: 60vw; /* 60% of viewport width */
        max-width: 220px;
        min-width: 180px;
    }

    .hotels-grid {
        gap: 30px; /* Maximum gap to show significant portion of next card */
        padding: 0;
        padding-right: 0; /* No right padding */
        padding-left: 35px; /* Left padding to show next cards */
    }
}

/* Additional mobile optimizations to ensure next card visibility */
@media (max-width: 576px) {
    /* Force RTL direction for better right-to-left card display */
    .hotels-scroll-container {
        direction: ltr; /* Keep LTR for proper scrolling */
    }

    /* Ensure first card starts from right edge */
    .hotels-grid .hotel-card:first-child {
        margin-right: 0;
    }

    /* Add visual hint that there are more cards */
    .hotels-grid::after {
        content: '';
        width: 20px;
        height: 1px;
        flex-shrink: 0;
        display: block;
    }

    /* Override any centering that might be applied */
    .hotels-grid {
        justify-content: flex-start !important;
        align-items: stretch;
    }
}

/* Ensure cards are properly spaced on very small screens */
@media (max-width: 320px) {
    .hotels-scroll-wrapper {
        padding: 0;
    }

    .hotels-scroll-container {
        padding-right: 0; /* No right padding */
        padding-left: 0;
    }

    .hotel-card {
        width: 55vw !important;
        max-width: 200px;
        min-width: 160px;
    }

    .hotels-grid {
        gap: 35px;
        padding: 0;
        padding-right: 0; /* No right padding */
        padding-left: 40px; /* Left padding to show next cards */
    }
}