/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    background-size: cover !important;
    background-position: center !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-container,
.mobile-hero {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-left: 5%;
}

/* Explore Tag */
.explore-tag {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: max-content;
}

.explore-tag small {
    color: #12163c;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Hero Text */
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: white;
}

.hero-description {
    color: white;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Button Styles */
.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-plan {
    background: #f67300;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-plan:hover {
    background: #e66900;
    transform: translateY(-2px);
    color: white;
}

.btn-plan i {
    transition: transform 0.3s ease;
}

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

/* Improved Responsive Hero Section */
@media (max-width: 1400px) {
    .px-10 {
        padding-left: 10% !important;
        padding-right: 10% !important;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 1200px) {
    .px-10 {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* Tablet Styles - refined */
@media (min-width: 769px) and (max-width: 991px) {
    .hero-section {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .px-10 {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .col-md-6.hero-content {
        padding-left: 5%;
        width: 70%;
    }
}

/* Mobile Styles - improved */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 40px 0;
    }

    .mobile-hero {
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 24px;
    }

    .px-10 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Adjust form elements for mobile */
    .form-floating > label {
        font-size: 0.85rem;
    }

    .card-body {
        padding: 1rem;
    }

    /* Make date inputs more usable on mobile */
    input[type="date"] {
        font-size: 14px;
    }

    /* Improve hotel cards on mobile */
    .hotelCaard {
        margin-bottom: 20px;
    }

    /* Adjust pagination for mobile */
    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Small mobile devices */
@media (max-width: 576px) {
    .hero-section {
        min-height: 40vh;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .explore-tag {
        padding: 6px 12px;
        margin-bottom: 16px;
    }

    .explore-tag small {
        font-size: 0.8rem;
    }

    .btn-plan {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Zoom level adjustments for laptops */
@media screen and (min-resolution: 120dpi) {
    .px-10 {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .form-floating > label {
        font-size: 0.9rem;
    }
}

/* Improved hotel cards */
.hotelCaard {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hotelCaard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Remove hover effects on mobile and tablet */
@media (max-width: 991px) {
    .hotelCaard:hover {
        transform: none;
        box-shadow: none;
    }
}

.hotelCaard .card-body {
    flex-grow: 1;
}

.hotelCaard .card-footer {
    background-color: transparent;
    border-top: none;
    padding-top: 0;
}

/* Swiper navigation improvements */
.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.7);
    width: 30px !important;
    height: 30px !important;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 14px !important;
    font-weight: bold;
    color: #333;
}

/* Improved form elements */
.form-floating .form-control,
.form-floating .form-select {
    height: calc(3.5rem + 2px);
}

.form-floating > label {
    padding-top: 1rem;
}

/* Fix for dropdown on smaller screens */
@media (max-width: 991px) {
    .dropdown-menu {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Ensure buttons are properly sized on all screens */
.btn {
    white-space: nowrap;
}

/* Improve search button visibility */
#searchButton {
    min-width: 140px;
}

.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.floating-btn button {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: white;
}

.page-item.active .page-link {
    background-color: #12163c !important;
    border-color: #12163c !important;
}

.page-link {
    color: #12163c !important;
}

.page-item.active .page-link {
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .hero-image-container-mobile img {
        width: 100% !important;
        height: 500px !important;
        object-fit: cover;
    }

    .hero-text-block div {
        font-size: 6vw;
        line-height: 7vw;
    }

    .hero-text-block span {
        font-size: 10vw;
    }

    .lbltxt1 {
        font-size: 0.8rem !important;
    }

    .btn {
        font-size: 0.8rem !important;
    }

    .filteredtxt {
        font-size: 1rem !important;
    }
}

@media (max-width: 576px) {
    .lbltxt1 {
        font-size: 0.8rem !important;
    }

    .btn {
        font-size: 0.6rem !important;
    }

    .filteredtxt {
        font-size: 0.8rem !important;
    }
}

.skeleton {
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.lazy-image.loaded {
    opacity: 1;
}

.lazy-image:not(.loaded) {
    background: url("../images/load.gif") center center no-repeat;
}

/* Modern Form Styles */
.custom-input,
.custom-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.custom-input:focus,
.custom-select:focus {
    border-color: #12163c;
    box-shadow: 0 0 0 0.25rem rgba(18, 22, 60, 0.25);
}

.form-floating > label {
    padding-left: 1rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-select:focus ~ label {
    color: #12163c;
}

.date-picker-container .form-control {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

/* Dropdown styling */
.dropdown-toggle {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.dropdown-menu {
    border-radius: 12px;
    border: none;
}

/* Input group for number inputs */
.input-group .btn {
    z-index: 0;
}

/* Remove spinner from number inputs */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Search button */
#searchButton {
    border-radius: 8px;
    background-color: #12163c;
    border: none;
    transition: all 0.3s ease;
}

#searchButton:hover {
    background-color: #1a2158;
    transform: translateY(-2px);
}

/* Modern Hotel Card Styling - Fully Responsive */
.hotel-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.hotel-card .swiper {
    height: 220px;
    border-radius: 12px 12px 0 0;
}

.hotel-card img {
    height: 220px !important;
    object-fit: cover;
    width: 100%;
}

.hotel-rating {
    top: 12px;
    right: 12px;
    z-index: 10;
}

.card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.1rem;
    color: #333;
}

.reserve-btn {
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    font-weight: 500 !important;
    background-color: #1a2158 !important;
    border: none !important;
    transition: all 0.2s ease !important;
    color: white !important;
}

.reserve-btn:hover {
    background-color: #12163c !important;
}

/* Responsive Grid System */
@media (min-width: 1400px) {
    .container-fluid.px-10 {
        padding-left: 10% !important;
        padding-right: 10% !important;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .container-fluid.px-10 {
        padding-left: 5% !important;
        padding-right: 5% !important;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991px) {
    .container-fluid.px-10 {
        padding-left: 3% !important;
        padding-right: 3% !important;
    }

    .hotel-card .swiper {
        height: 200px;
    }

    .hotel-card img {
        height: 200px !important;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .reserve-btn {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.9rem !important;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    .container-fluid.px-10 {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .hotel-card {
        margin-bottom: 1rem;
    }

    .hotel-card .swiper {
        height: 140px !important;
    }

    .hotel-card img {
        height: 140px !important;
    }

    .card-body {
        padding: 0.5rem !important;
    }

    .card-title {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
    }

    .card-text {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .reserve-btn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.75rem !important;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 24px !important;
        height: 24px !important;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 10px !important;
    }

    .hotel-rating .badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem !important;
    }
    .cardSlider {
        overflow: hidden !important;
    }
}

/* Small mobile devices */
@media (max-width: 575px) {
    .col-12.col-md-6.col-lg-4.col-xl-3 {
        padding-left: 10px;
        padding-right: 10px;
    }

    .hotel-card .swiper {
        height: 160px;
    }

    .hotel-card img {
        height: 160px !important;
    }

    .card-body {
        padding: 0.75rem;
    }

    .card-title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem !important;
    }

    .card-text {
        font-size: 0.8rem;
        margin-bottom: 0.5rem !important;
    }

    .reserve-btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.8rem !important;
    }
    .cardSlider {
        overflow: hidden !important;
    }
}

/* Equal height cards in all rows */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Fix for Safari flexbox issues */
@supports (-webkit-overflow-scrolling: touch) {
    .card-body {
        height: auto;
    }
}

/* Improved Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.8);
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 14px !important;
    font-weight: bold;
    color: #333;
}

.swiper-pagination-bullet-active {
    background-color: #12163c;
}

/* Fix for button alignment */
.mt-auto {
    margin-top: auto !important;
}

/* Improved Pagination Styling */
.pagination {
    margin-bottom: 0;
}

.pagination .page-item .page-link {
    color: #12163c;
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.25;
    border-radius: 0.25rem;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.pagination .page-item.active .page-link {
    background-color: #12163c;
    border-color: #12163c;
    color: white;
    box-shadow: 0 2px 5px rgba(18, 22, 60, 0.2);
}

.pagination .page-item .page-link:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #12163c;
    z-index: 2;
}

.pagination .page-item.active .page-link:hover {
    background-color: #12163c;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Responsive pagination adjustments */
@media (max-width: 767px) {
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        margin: 0 1px;
    }

    #paginationLinksTop .page-link {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }

    .filteredtxt {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 575px) {
    .pagination .page-link {
        padding: 0.35rem 0.5rem;
        font-size: 0.8rem;
        margin: 0;
    }

    #paginationLinksTop
        .page-item:not(:first-child):not(:last-child):not(.active) {
        display: none;
    }
}

/* Improved card styling for pagination container */
#hotelFilterContainer .card,
.pagination-container.card {
    border-radius: 10px;
    transition: all 0.3s ease;
}

#hotelFilterContainer .card:hover,
.pagination-container.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* For very small screens */
@media (max-width: 375px) {
    .hotel-card .swiper {
        height: 120px !important;
    }

    .hotel-card img {
        height: 120px !important;
    }

    .card-title {
        font-size: 0.8rem !important;
    }

    .card-text {
        font-size: 0.7rem !important;
    }
}

/* image loader */
.image-container {
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 10px 10px 0px 0px;
}

.pulse-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
    position: relative;
}

.lazy-image.loaded {
    opacity: 1;
}

/* pagination */

.pagination-modern .page-link {
    color: #333;
    border: 1px solid #e0e0e0;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.pagination-modern .page-item.active .page-link {
    background-color: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: white;
    font-weight: 500;
}

.pagination-modern .page-link:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.pagination-modern .page-item.active .page-link:hover {
    background-color: var(--bs-primary, #0d6efd);
}
.active {
    background-color: transparent !important;
}
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    /* Ensures it stays above other elements */
}

.floating-btn button {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-color: white;
}

.carousel-inner {
    width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    /* Maintains the aspect ratio while covering the entire container */
}

/* Remove button backgrounds */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: transparent;
}

/* Customize the carousel indicators (dots) */
.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50%;
    background-color: #000;
    border: none;
}

.carousel-indicators .active {
    background-color: #fff;
}

.accordion-button:hover {
    color: white !important;
}

.booked-date {
    color: red !important;
    background-color: rgba(255, 0, 0, 0.1) !important;
}

/* Style for disabled dates in the calendar */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
}

/* Additional styles to ensure visibility */
input[type="date"].booked-date::-webkit-datetime-edit-text,
input[type="date"].booked-date::-webkit-datetime-edit-month-field,
input[type="date"].booked-date::-webkit-datetime-edit-day-field,
input[type="date"].booked-date::-webkit-datetime-edit-year-field {
    color: red;
}

#checkin_date {
    position: relative;
}

#checkin_date.booked-date {
    color: red !important;
    background-color: rgba(255, 0, 0, 0.1) !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
}

input[type="date"].booked-date::-webkit-datetime-edit-text,
input[type="date"].booked-date::-webkit-datetime-edit-month-field,
input[type="date"].booked-date::-webkit-datetime-edit-day-field,
input[type="date"].booked-date::-webkit-datetime-edit-year-field {
    color: red;
}

/* Base styles for the date input */
#checkin_date {
    position: relative;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

/* Hover effect for the date input */
#checkin_date:hover {
    border-color: #aaa;
}

/* Focus effect for the date input */
#checkin_date:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.2);
}

/* Disabled state styling */
#checkin_date:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Booked date styles */
#checkin_date.booked-date {
    background-color: #ffebee !important;
    border: 1px solid #ff1744 !important;
    color: #d50000 !important;
    box-shadow: 0 0 0 2px rgba(255, 23, 68, 0.2);
}

/* Calendar picker icon styles */
input[type="date"]::-webkit-calendar-picker-indicator {
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Tab styling */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

.nav-tabs .nav-link {
    margin-bottom: -2px;
    border: none;
    color: #6c757d;
    padding: 0.75rem 1.25rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #12163c;
}

.nav-tabs .nav-link.active {
    border: none;
    border-bottom: 3px solid #12163c;
    color: #12163c;
    background-color: transparent;
    font-weight: bold;
}

/* Remove the show class styling */
.nav-tabs .nav-link.show {
    border: none;
}

/* Hover effect */
.nav-tabs .nav-link:hover {
    background-color: rgba(18, 22, 60, 0.05);
}

.hover-effect {
    transition: all 0.2s ease-in-out;
}

.hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}
