/* Popular Hotels Section */
.popular-hotels-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: #ff6b6b;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 18px;
    max-width: 700px;
    margin: 25px auto 0;
    line-height: 1.6;
}

/* View Toggle Buttons */
.view-toggle {
    margin: 30px 0 15px;
    text-align: center;
}

.view-toggle-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    padding: 10px 25px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
}

.view-toggle-btn i {
    margin-right: 8px;
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Grid View */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1199px) {
    .hotels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hotels-grid {
        grid-template-columns: 1fr;
    }
}

.hotel-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 30px;
}

.hotel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.hotel-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hotel-card:hover .hotel-image img {
    transform: scale(1.05);
}

.hotel-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hotel-price {
    position: absolute;
    background: #fff;
    color: #ff6b6b;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.hotel-price span {
    font-size: 13px;
    font-weight: 500;
    color: #7f8c8d;
    margin-left: 5px;
    white-space: nowrap;
}

.hotel-content {
    padding: 25px;
    position: relative;
    background: #fff;
    border-radius: 0 0 12px 12px;
    display: flex;
    flex-direction: column;
}

.hotel-title {
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: 700;
    color: #2c3e50;
}

.hotel-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hotel-title a:hover {
    color: #ff6b6b;
}

.hotel-location {
    display: flex;
    align-items: center;
    color: #7f8c8d;
    font-size: 15px;
    margin: 0 0 10px 0;
    justify-content: flex-start;
    width: 100%;
}

.hotel-location i {
    margin-right: 8px;
    color: #ff6b6b;
    font-size: 16px;
}

.hotel-info {
    width: 100%;
    margin-bottom: 15px;
}

.hotel-rating {
    color: #f8d64e;
    font-size: 14px;
    display: flex;
    align-items: center;
    margin: 5px 0 0 0;
    width: 100%;
    justify-content: flex-start;
}

.hotel-rating i {
    margin-right: 3px;
}

.rating-number {
    color: #7f8c8d;
    margin-left: 8px;
    font-weight: 500;
    font-size: 14px;
}

/* Popular Destination Buttons - High specificity to override other styles */
.view-details-btn,
body .view-details-btn,
.popular-hotels-section .view-details-btn,
.popular-hotels-widget .view-details-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 25px !important;
    background: var(--popular-dest-btn-bg, var(--primary-color)) !important;
    color: var(--popular-dest-btn-text, #ffffff) !important;
    text-decoration: none !important;
    border-radius: 30px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    border: 2px solid var(--popular-dest-btn-bg, var(--primary-color)) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.view-details-btn:hover,
body .view-details-btn:hover,
.popular-hotels-section .view-details-btn:hover,
.popular-hotels-widget .view-details-btn:hover {
    background: var(--popular-dest-btn-hover-bg, var(--secondary-color)) !important;
    color: var(--popular-dest-btn-hover-text, #ffffff) !important;
    border-color: var(--popular-dest-btn-hover-bg, var(--secondary-color)) !important;
    transform: translateY(-2px) !important;
}

.view-details-btn i {
    margin-left: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.view-details-btn:hover i {
    transform: translateX(5px);
}

.hotel-price span {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

.hotel-content {
    padding: 20px;
}

.hotel-title {
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: 700;
}

.hotel-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hotel-title a:hover {
    color: #ff6b6b;
}

.hotel-location {
    display: flex;
    align-items: center;
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.hotel-location i {
    margin-right: 5px;
    color: #ff6b6b;
}

.hotel-rating {
    color: #ffc107;
    margin-bottom: 15px;
    font-size: 14px;
}

.hotel-rating i {
    margin-right: 2px;
}

.rating-number {
    color: #777;
    margin-left: 5px;
    font-weight: normal;
}

.hotel-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Removing duplicate .view-details-btn styles - using the ones defined at the top of the file */

/* Slider View */
.hotels-slider {
    padding: 0 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.slick-prev:before,
.slick-next:before {
    color: #ff6b6b;
    font-size: 30px;
}

.slick-dots li button:before {
    font-size: 12px;
    color: #ff6b6b;
}

.slick-dots li.slick-active button:before {
    color: #ff6b6b;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hotels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    .hotels-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .hotel-card {
        margin-bottom: 30px;
    }
}

/* View Toggle Buttons */
.view-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.view-toggle-btn {
    background: none;
    border: 2px solid #ddd;
    color: #666;
    padding: 8px 20px;
    margin: 0 5px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.view-toggle-btn i {
    margin-right: 5px;
}

.view-toggle-btn.active,
.view-toggle-btn:hover {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.view-toggle-btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 0;
}

.view-toggle-btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: 0;
    border-left: none;
}
