/* ================================================
   BOOKIFY - HOME SECTIONS
   Premium Modern Design
   ================================================ */

/* ======================= */
/* FEATURES SECTION */
/* ======================= */

.features-section {
    padding: 40px 0 60px 0;
    background: #ffffff;
    margin-top: 80px
}


/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

/* Feature Card */
.feature-card {
    padding: 15px;
    background: transparent;
    border: none;
    transition: transform 0.3s ease;
}

/* Feature Icon */
.feature-icon {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 1.75rem;
    color: #003580;
}

/* Feature Badge */
.feature-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: #1a1a1a;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Feature Title */
.feature-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.3;
}

/* Feature Description */
.feature-description {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
    max-width: 220px;
    margin: 0 auto;
}

/* ======================= */
/* HOTELS SECTIONS */
/* ======================= */

.hotels-section {
    padding: 60px 0;
    background: #ffffff;
    position: relative;
}

.hotels-section.city-hotels {
    background: #fcfcfc;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0;
    letter-spacing: -0.5px;
}

/* ======================= */
/* CAROUSEL */
/* ======================= */

.hotels-carousel-wrapper {
    position: relative;
    padding: 0 50px;
}

.hotels-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 5px 30px 5px;
}

.hotels-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
    background: #ffffff;
    border-color: #003580;
    color: #003580;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn.prev {
    left: 0;
}

.carousel-nav-btn.next {
    right: 0;
}

/* ======================= */
/* HOTEL CARDS */
/* ======================= */

.hotel-card {
    flex: 0 0 285px;
    /* STRICT fixed width */
    width: 285px;
    min-width: 265px;
    max-width: 265px;
    height: 420px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 10px;
}


.hotel-image {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


.hotel-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 3rem;
}

.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    color: #1a1a1a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    z-index: 2;
}

.hotel-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #ffffff;
}

.hotel-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.hotel-stars {
    color: #ffa41c;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: flex;
    gap: 2px;
}

/* Restored Details */
.hotel-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.rating-score {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
}

.rating-score.excellent {
    background: #155724;
}

.rating-score.very-good {
    background: #28a745;
}

.rating-score.good {
    background: #ff9500;
}

.review-count {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
}

.hotel-price {
    display: block;
    margin-top: auto;
}

.price-label {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-bottom: 2px;
}

.price-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a1a;
}

/* ======================= */
/* CITIES SECTION */
/* ======================= */

.cities-section {
    padding: 60px 0;
    background: #ffffff;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.city-card {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 240px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.city-image {
    width: 100%;
    height: 100%;
}

.city-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.city-card:hover .city-image img {
    transform: scale(1.1);
}

.city-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.city-name {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ======================= */
/* RESPONSIVE */
/* ======================= */

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hotel-card {
        flex: 0 0 260px;
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }

    .info-banner {
        flex-direction: column;
        text-align: center;
    }
}