/********** Template CSS **********/
:root {
    --primary: #FEA116;
    --light: #F1F8FF;
    --dark: #0F172B;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-semi-bold {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    text-transform: uppercase;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 2px;
}


/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 43, 0.48);
    
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/* Mobile View */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Laptop / Desktop View — reduced height */
@media (min-width: 769px) {
    #header-carousel .carousel-item {
        height: 55vh; /* 👈 Change this value: 50vh–65vh to your preference */
    }
    #header-carousel .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

.page-header {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.page-header-inner {
    background: rgba(15, 23, 43, .7);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.booking {
    position: relative;
    margin-top: -100px !important;
    z-index: 1;
}
/* Desktop / Laptop View */
@media (min-width: 769px) {
    #header-carousel .carousel-item {
        height: 75vh; /* reduce height (you can try 60vh–80vh) */
    }

    #header-carousel .carousel-item img {
        height: 100%;
        object-fit: cover;
    }
}

/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    left: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title::after {
    position: absolute;
    content: "";
    width: 45px;
    height: 2px;
    top: 50%;
    right: -55px;
    margin-top: -1px;
    background: var(--primary);
}

.section-title.text-start::before,
.section-title.text-end::after {
    display: none;
}


/*** Service ***/
.service-item {
    height: 320px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transition: .5s;
}

.service-item:hover {
    background: var(--primary);
}

.service-item .service-icon {
    margin: 0 auto 30px auto;
    width: 65px;
    height: 65px;
    transition: .5s;
}

.service-item i,
.service-item h5,
.service-item p {
    transition: .5s;
}

.service-item:hover i,
.service-item:hover h5,
.service-item:hover p {
    color: #FFFFFF !important;
}


/*** Youtube Video ***/
.video {
    position: relative;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(rgba(15, 23, 43, .1), rgba(15, 23, 43, .1)), url(../img/video.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.video .btn-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--dark);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Testimonial ***/
.testimonial {
    background: linear-gradient(rgba(15, 23, 43, .7), rgba(15, 23, 43, .7)), url(../img/carousel-2.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.testimonial-carousel {
    padding-left: 65px;
    padding-right: 65px;
}

.testimonial-carousel .testimonial-item {
    padding: 30px;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 40px;
    top: calc(50% - 20px);
    left: 0;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 2px;
    font-size: 18px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--primary);
    background: #FFFFFF;
}


/*** Team ***/
.team-item,
.team-item .bg-primary,
.team-item .bg-primary i {
    transition: .5s;
}

.team-item:hover {
    border-color: var(--secondary) !important;
}

.team-item:hover .bg-primary {
    background: var(--secondary) !important;
}

.team-item:hover .bg-primary i {
    color: var(--secondary) !important;
}


/*** Footer ***/
.newsletter {
    position: relative;
    z-index: 1;
}

/* Footer Main */
.footer {
    position: relative;
    margin-top: -60px;
    padding-top: 80px;
    padding-bottom: 20px;
}

/* Social Icons */
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    background: #fff;
}

/* Footer Links */
.footer .btn.btn-link {
    display: block;
    margin-bottom: 4px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    color: var(--primary);
    box-shadow: none;
}

/* Copyright Section */
.footer .copyright {
    padding: 15px 0;
    font-size: 14px;
    border-top: 1px solid rgba(256,256,256,.1);
}

.footer .copyright a {
    color: var(--light);
}

/* Footer Menu */
.footer .footer-menu a {
    margin-right: 12px;
    padding-right: 12px;
    border-right: 1px solid rgba(255,255,255,.3);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* Mobile Responsive */
@media (max-width:768px){

.footer{
    margin-top:0;
    padding-top:40px;
    padding-bottom:15px;
}

.footer .btn.btn-link{
    font-size:13px;
}

.footer .copyright{
    text-align:center;
}

}
/*** Villa/Room Section ***/
.room-item {
    background: #FFFFFF;
    border: none;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.room-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 60px rgba(254, 161, 22, 0.15) !important;
}

/* Villa Carousel Container */
.villa-carousel-container {
    position: relative;
    overflow: hidden;
    background: #F1F8FF;
}

.villa-carousel-container .carousel {
    border-radius: 15px 15px 0 0;
}

.villa-carousel-container .carousel-inner {
    border-radius: 15px 15px 0 0;
    min-height: 300px;
}

.villa-carousel-container .carousel-item {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.villa-carousel-container .carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.villa-carousel-container .carousel-item.active img {
    animation: zoomInImage 0.6s ease-out;
}

@keyframes zoomInImage {
    from {
        transform: scale(1.1);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.carousel-image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
}

.carousel-image-caption .badge {
    font-size: 12px;
    padding: 8px 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Carousel Controls */
.villa-carousel-container .carousel-control-prev,
.villa-carousel-container .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(254, 161, 22, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.villa-carousel-container:hover .carousel-control-prev,
.villa-carousel-container:hover .carousel-control-next {
    opacity: 1;
}

.villa-carousel-container .carousel-control-prev:hover,
.villa-carousel-container .carousel-control-next:hover {
    background: var(--primary);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Carousel Indicators */
.villa-carousel-container .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.villa-carousel-container .carousel-indicator-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.villa-carousel-container .carousel-indicator-btn.active {
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

.villa-carousel-container .carousel-indicator-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Villa Badge */
.villa-badge {
    animation: slideUp 0.5s ease-out;
    box-shadow: 0 5px 15px rgba(254, 161, 22, 0.3) !important;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 13px;
}

@keyframes slideUp {
    from {
        transform: translateY(30px) translateX(-50%);
        opacity: 0;
    }

    to {
        transform: translateY(0) translateX(-50%);
        opacity: 1;
    }
}

/* Villa Content */
.room-item .p-4 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.villa-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.villa-rating {
    text-align: center;
}

.villa-rating .rating-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 3px;
}

/* Feature Boxes */
.feature-box {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #F8F9FA;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid #E9ECEF;
}

.feature-box:hover {
    background: #FFF8F0;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 24px;
    min-width: 30px;
}

.feature-label {
    font-size: 11px;
    color: #6C757D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.feature-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

/* Amenities */
.amenities-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.amenity-tag {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    font-size: 13px;
    color: #555555;
    transition: all 0.3s ease;
    font-weight: 500;
}

.amenity-tag:hover {
    background: #FFF8F0;
    border-color: var(--primary);
    transform: translateX(3px);
}

.amenity-tag i {
    min-width: 16px;
}

/* Description */
.room-item p {
    font-size: 15px;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Buttons */
.room-item .btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #FF8A00 100%);
    border: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(254, 161, 22, 0.3);
}

.room-item .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(254, 161, 22, 0.4);
    background: linear-gradient(135deg, #FF8A00 0%, var(--primary) 100%);
}

.room-item .btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
}

.room-item .btn-outline-primary:hover {
    background: var(--primary);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(254, 161, 22, 0.3);
}

.room-item .btn i {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .villa-carousel-container .carousel-inner {
        min-height: 280px;
    }

    .villa-carousel-container .carousel-item img {
        height: 280px;
    }

    .room-item .p-4 {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .villa-carousel-container .carousel-inner {
        min-height: 220px;
    }

    .villa-carousel-container .carousel-item img {
        height: 220px;
    }

    .villa-title {
        font-size: 22px;
    }

    .room-item .p-4 {
        padding: 25px;
    }

    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-item p {
        font-size: 14px;
        line-height: 1.6;
    }

    .room-item .btn-primary,
    .room-item .btn-outline-primary {
        font-size: 13px;
        padding: 10px 25px !important;
    }
}

/* Villa Card Styling */
.villa-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: 0.4s ease;
}

.villa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Image */
.villa-img {
    overflow: hidden;
}

.villa-img img {
    width: 100%;
    height: 280px;
    /* Controlled height */
    object-fit: cover;
    transition: 0.5s ease;
}

.villa-card:hover .villa-img img {
    transform: scale(1.08);
}

/* Content */
.villa-content {
    padding: 20px;
}

.villa-content h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.villa-content p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

/* Book Button */
.btn-book {
    display: inline-block;
    padding: 8px 18px;
    background: #d4a017;
    /* golden farmhouse look */
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-book:hover {
    background: #000;
    color: #fff;
}



/* Card Styling */
.view-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    background: #fff;
}

/* Make all images same height */
.view-card img {
    width: 100%;
    height: 280px;
    /* Same height for all images */
    object-fit: cover;
    /* Crop properly */
    object-position: center;
    /* Keep center focus */
    transition: transform 0.5s ease;
}

/* Hover Effect */
.view-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}

.view-card:hover img {
    transform: scale(1.08);
}

/* Card Title Styling */
.view-card .card-body {
    padding: 18px;
    background: #f8f9fa;
}

.view-card .card-title {
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .view-card img {
        height: 220px;
    }
}

.gallery-img {
    cursor: pointer;
}

/* ABOUT SECTION MOBILE FIX */

/* Fix last image crop */

@media (max-width:768px){

  .container-xxl .row.g-3 .col-6{
      flex: 0 0 100% !important;
      max-width: 100% !important;
      text-align:center !important;
  }

  .container-xxl .row.g-3 .col-6 img{
      width:100% !important;
      max-width:100% !important;
      height:auto !important;
      margin-top:0 !important;
      display:block;
  }

}
