/*--------------------------------------------------------------------- File Name: style.css ---------------------------------------------------------------------*/


/*--------------------------------------------------------------------- import Fonts ---------------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css?family=Rajdhani:300,400,500,600,700');
@import url('https://fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i');
@import url('https://fonts.googleapis.com/css?family=Raleway:100,400,600,700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Baloo+Chettan&display=swap');

/*****---------------------------------------- 1) font-family: 'Rajdhani', sans-serif;
 2) font-family: 'Poppins', sans-serif;
 ----------------------------------------*****/


/*--------------------------------------------------------------------- import Files ---------------------------------------------------------------------*/

@import url(animate.min.css);
@import url(normalize.css);
@import url(icomoon.css);
@import url(font-awesome.min.css);

@import url(slick.css);
@import url(jquery.fancybox.min.css);

/*--------------------------------------------------------------------- skeleton ---------------------------------------------------------------------*/

* {
     box-sizing: border-box !important;
}

.container {
     max-width: 1170px;
}

html {
     scroll-behavior: smooth;
}

body {
     color: #666666;
     font-size: 14px;
     font-family: 'Poppins', sans-serif;
     line-height: 1.80857;
     font-weight: normal;
     background: #f8f9fa; /* A light, neutral background */
}

main {
     padding-top: 80px; /* Space for the fixed header */
}

a {
     color: #1f1f1f;
     text-decoration: none !important;
     outline: none !important;
     -webkit-transition: all .3s ease-in-out;
     -moz-transition: all .3s ease-in-out;
     -ms-transition: all .3s ease-in-out;
     -o-transition: all .3s ease-in-out;
     transition: all .3s ease-in-out;
}

:root {
    --primary-red: #fe0000;
    --primary-green: #04844b;
    --dark-text: #121212;
    --light-text: #fff;
    --dark-bg: #1a1a1a;
    --body-bg: #f8f9fa;
}

h1,
h2,
h3,
h4,
h5,
h6 {
     letter-spacing: 0;
     font-weight: normal;
     position: relative;
     padding: 0 0 10px 0;
     font-weight: normal;
     line-height: normal;
     color: #111111;
     margin: 0
}

h1 {
     font-size: 24px;
}

h2 {
     font-size: 22px;
}

h3 {
     font-size: 18px;
}

h4 {
     font-size: 16px
}

h5 {
     font-size: 14px
}

h6 {
     font-size: 13px
}

*,
*::after,
*::before {
     -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
     box-sizing: border-box;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
     color: #212121;
     text-decoration: none!important;
     opacity: 1
}

button:focus {
     outline: none;
}

ul,
li,
ol {
     margin: 0px;
     padding: 0px;
     list-style: none;
}

p {
     margin: 0px;
     font-weight: 500;
     font-size: 15px;
     line-height: 24px;
}

a {
     color: #222222;
     text-decoration: none;
     outline: none !important;
}

a,
.btn {
     text-decoration: none !important;
     outline: none !important;
     -webkit-transition: all .3s ease-in-out;
     -moz-transition: all .3s ease-in-out;
     -ms-transition: all .3s ease-in-out;
     -o-transition: all .3s ease-in-out;
     transition: all .3s ease-in-out;
}

img {
     max-width: 100%;
     height: auto;
}

 :focus {
     outline: 0;
}

.btn-custom {
     margin-top: 20px;
     background-color: transparent !important;
     border: 2px solid #ddd;
     padding: 12px 40px;
     font-size: 16px;
}

.lead {
     font-size: 18px;
     line-height: 30px;
     color: #767676;
     margin: 0;
     padding: 0;
}

.form-control:focus {
     border-color: #ffffff !important;
     box-shadow: 0 0 0 .2rem rgba(255, 255, 255, .25);
}

.navbar-form input {
     border: none !important;
}

.badge {
     font-weight: 500;
}

blockquote {
     margin: 20px 0 20px;
     padding: 30px;
}

button {
     border: 0;
     margin: 0;
     padding: 0;
     cursor: pointer;
}

.full {
     float: left;
     width: 100%;
}

.full {
     width: 100%;
     float: left;
     margin: 0;
     padding: 0;
}

.gallery-view-more-btn {
    margin-top: auto;
    margin-bottom: 40px; /* <-- คุณสามารถปรับระยะห่างด้านล่างที่ต้องการได้ตรงนี้ */
    display: inline-block; /* Changed from block to work with text-center */
}

.loader_bg {
     position: fixed;
     z-index: 9999999;
     background: #fff;
     width: 100%;
     height: 100%;
}

.loader {
     height: 100%;
     width: 100%;
     position: absolute;
     left: 0;
     top: 0;
     display: flex;
     justify-content: center;
     align-items: center;
}

.loader img {
     width: 280px;
}


/*-- header area --*/


/*--------------------------------------------------------------------- top banner area ---------------------------------------------------------------------*/


/*-- navigation--*/

.navigation.navbar {
     padding: 0;
}

/* --- New Modern Header --- */
.modern-header {
     width: 100%;
     position: fixed;
     top: 0;
     left: 0;
     z-index: 1030;
     padding: 10px 0;
    background: linear-gradient(to bottom, #1a1a1a, #2e2e2e);
     transition: top 0.3s ease-in-out, background-color 0.3s ease-in-out, padding 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.modern-header.nav-up {
    top: -100px; /* A value larger than the header's height to hide it */
}

.modern-header.scrolled {
    background-color: #ffffff;
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modern-header .navbar {
    padding: 0;
}

.modern-header .navbar-brand img {
    max-height: 60px; /* Adjust as needed */
    transition: max-height 0.3s ease-in-out;
}

.modern-header.scrolled .navbar-brand img {
    max-height: 50px;
}

.modern-header .navbar-nav .nav-link {
    color: #fff;
    font-weight: 500;
    padding: 8px 15px;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
}

.modern-header.scrolled .navbar-nav .nav-link {
    color: #333;
}

.modern-header .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: width 0.3s ease;
}

.modern-header .navbar-nav .nav-item.active .nav-link::after,
.modern-header .navbar-nav .nav-link:hover::after {
    width: 70%;
}

.modern-header.scrolled .navbar-nav .nav-link:hover,
.modern-header.scrolled .navbar-nav .nav-item.active .nav-link {
    color: var(--primary-red);
}

.modern-header .btn-book-now {
    background-color: var(--primary-red);
    color: #fff;
    border-radius: 50px;
    padding: 8px 25px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.modern-header .btn-book-now:hover {
    background-color: #333;
    color: #fff;
}

.modern-header .navbar-toggler {
    border: none;
    color: #fff;
    font-size: 24px;
}
.modern-header.scrolled .navbar-toggler {
    color: #333;
}

.modern-header .navbar-toggler:focus {
    outline: none;
}

/* Dropdown menu styling */
.modern-header .dropdown-menu {
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.modern-header .dropdown-item {
    font-weight: 500;
}
.modern-header .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-red);
}
.modern-header .auth-link .nav-link {
    display: flex;
    align-items: center;
}
.modern-header .auth-link .nav-link i {
    margin-right: 8px;
}

/* --- Styles for the logo size --- */
#hotel-logo-img {
    max-height: 85px; /* ปรับค่านี้เพื่อเปลี่ยนขนาดโลโก้บนหน้าจอเดสก์ท็อป (ค่าสูงสุดที่แนะนำคือ 56px) */
    width: auto; /* รักษาสัดส่วนของรูปภาพ */
    transition: max-height 0.3s ease-in-out; /* เพิ่ม transition เพื่อความสวยงาม */
}

/** banner section **/

.banner_main {
     position: relative;
}

/** end banner section **/

.titlepage {
     text-align: center;
     padding-bottom: 40px;
}

.titlepage h2 {
     font-size: 40px;
     color: #121212;
     line-height: 45px;
     font-weight: bold;
     text-transform: uppercase;
     padding: 0;
}

.titlepage h2::before {
     position: absolute;
     content: "";
     background-color: var(--primary-red);
     width: 20px;
     height: 4px;
     transform: rotate(-36deg);
}

.titlepage h2::after {
     position: absolute;
     content: "";
     background-color: var(--primary-red);
     width: 20px;
     height: 4px;
     transform: rotate(-36deg);
     bottom: 10px;
}

.d_flex {
     display: flex;
     align-items: center;
     flex-wrap: wrap;
}

.read_more {
     font-size: 16px; /* <-- ปรับขนาดที่นี่ */
     background-color: var(--dark-text);
     color: #fff;
     padding: 8px 15px;
     width: 100%;
     max-width: 144px;
     text-align: center;
     display: inline-block;
     transition: ease-in all 0.5s;
     font-weight: 500;
     border-radius: 30px;
}

.read_more:hover {
     background: var(--primary-red);
     color: #fff;
     transition: ease-in all 0.5s;
}

/** about section **/

.about {
     background-color: transparent;
     padding-top: 85px;
}

/** end about section **/

/** our_room section **/

.our_room {
     background-color: transparent;
     padding: 60px 0 30px 0;
     margin-top: 90px;
}

.our_room .titlepage {
     text-align: center;
}

.our_room .titlepage p {
     color: #121212;
     font-size: 17px;
     margin-top: 20px;
}

.our_room .room, /* Old style, can be deprecated */
.featured-rooms .room { /* Old style, can be deprecated */
     text-align: center;
     background-color: #fff;
     transition: ease-in all 0.5s;
     /* New styles for equal height cards */
     display: flex;
     flex-direction: column;
     height: 100%;
     border-radius: 8px;
     box-shadow: 0 4px 12px rgba(0,0,0,0.08);
     overflow: hidden;
}

.our_room .room:hover,
.featured-rooms .room:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.our_room .room .room_img,
.featured-rooms .room .room_img {
     overflow: hidden;
     /* New styles for aspect ratio */
     position: relative;
     width: 100%;
     padding-top: 75%;
     /* 4:3 Aspect Ratio. 3/4 = 0.75 */
}

.our_room .room .room_img figure,
.featured-rooms .room .room_img figure {
     margin: 0;
     /* New styles for aspect ratio */
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
}

.our_room .room .room_img figure img,
.featured-rooms .room .room_img figure img {
     width: 100%;
     transition: all .5s;
     /* New styles for aspect ratio */
     height: 100%;
     object-fit: cover;
}

.our_room .room .room_img figure img:hover,
.featured-rooms .room .room_img figure img:hover {
     transform: scale(1.2);
}

.our_room .room .bed_room,
.featured-rooms .room .bed_room {
     padding: 33px 30px;
     /* New styles for equal height cards */
     display: flex;
     flex-direction: column;
     flex-grow: 1;
}

.our_room .room .bed_room h3,
.featured-rooms .room .bed_room h3 {
     color: #121212;
     font-size: 25px;
     line-height: 20px;
     font-weight: 500;
     transition: ease-in all 0.5s;
}

#serv_hover:hover.room {
     cursor: pointer;
     box-shadow: 0px 0px 30px rgba(255, 9, 9, 0.15);
     transition: ease-in all 0.5s;
}


/** end our_room section **/


/** gallery  section **/

.gallery {
     padding-top: 60px;
}

.gallery .titlepage {
     text-align: center;
}

.gallery .gallery_img {
     overflow: hidden;
     margin-bottom: 30px;
}

.gallery .gallery_img figure {
     margin: 0;
}

.gallery .gallery_img figure img {
     width: 100%;
     transition: all .5s;
}

.gallery .gallery_img figure img:hover {
     transform: scale(1.2);
}


/** end gallery  section **/


/** blog section **/

.blog {
     /* Removed background image to allow body gradient to show */
     background: transparent;
     padding: 60px 0 30px 0;
     margin-top: 60px;
}

.blog .titlepage {
     text-align: center;
}

.blog .titlepage h2 {
     color: #fff;
}

.blog .titlepage p {
     color: #fff;
     font-size: 17px;
     margin-top: 20px;
}

.blog .blog_box {
     text-align: left;
     background-color: #fff;
     margin-bottom: 30px;
     transition: ease-in all 0.5s;
}

.blog .blog_box .blog_img {
     overflow: hidden;
}

.blog .blog_box .blog_img figure {
     margin: 0;
}

.blog .blog_box .blog_img figure img {
     width: 100%;
     transition: all .5s;
}

.blog .blog_box .blog_img figure img:hover {
     transform: scale(1.2);
}

.blog .blog_box .blog_room {
     padding: 33px 30px;
     text-align: left;
}

.blog .blog_box .blog_room h3 {
     color: #121212;
     font-size: 25px;
     line-height: 20px;
     font-weight: 500;
     padding-bottom: 5px;
     transition: ease-in all 0.5s;
     margin: auto;
}

.blog .blog_box .blog_room span {
     font-size: 15px;
     color: #ff0909;
     font-weight: bold;
     margin-bottom: 10px;
     display: block;
}

.blog .blog_box .blog_room p {
     font-size: 14px;
     line-height: 20px;
}


/** end blog section **/


/** contact section **/

.contact {
     background: transparent;
     margin-top: 90px;
}

.about {
    padding: 90px 0;
    background: #fff;
}

.about .titlepage {
    text-align: left;
    max-width: 100%;
}

.about_img {
    margin-left: 30px;
}

.main_form .contactus {
     border: #fff solid 1px;
     padding: 0 15px;
     margin-bottom: 25px;
     width: 100%;
     height: 58px;
     background: #fff;
     color: #000000;
     font-size: 18px;
     font-weight: normal;
     box-shadow: 2px 0px 6px rgba(255, 9, 9, 0.20);
}

.main_form .textarea {
     border: #fff solid 1px;
     margin-bottom: 25px;
     width: 100%;
     background: #fff;
     color: #000000;
     font-size: 18px;
     font-weight: normal;
     padding: 12px 15px 0 15px;
     box-shadow: 2px 0px 6px rgba(255, 9, 9, 0.20);
     height: 150px;
}

.main_form .send_btn {
     font-size: 18px; /* <-- ปรับขนาดที่นี่ */
     transition: ease-in all 0.5s;
     background-color: #000000;
     text-transform: uppercase;
     color: #fff;
     padding: 10px 15px;
     max-width: 193px;
     width: 100%;
     display: block;
     margin-top: 10px !important;
     font-weight: 500;
     border-radius: 50px;
}

.main_form .send_btn:hover {
     background-color: #ff0909;
     transition: ease-in all 0.5s;
     color: #fff;
}

#request *::placeholder {
     color: #000000;
     opacity: 1;
}

/* --- Custom Styles for Date Inputs to make them stand out --- */
.flatpickr-input {
    background-color: #f8f9fa !important; /* A very light gray to differentiate from white page background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3E%3Cpath d='M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7v-5z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px 20px;
    padding-right: 45px !important; /* Make space for the icon */
    border: 1px solid #ced4da !important; /* A consistent, visible border */
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

/* Override styles for date inputs on the booking page to match the homepage */
.main_form .contactus.flatpickr-input {
    height: 50px; /* Match homepage height */
    font-size: 16px; /* Match homepage font-size */
    box-shadow: none !important; /* Remove shadow to match homepage */
    border-radius: 4px; /* Match homepage border-radius */
}

/* Keep the nice focus effect and apply it to all date inputs */
.flatpickr-input:focus {
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 0.2rem rgba(4, 132, 75, .25) !important;
}

.map figure {
     margin: 0;
}

.map figure img {
     width: 100%;
}


/** end contact section **/


/** footer **/

.footer {
     margin-top: 90px;
}

/* --- New Modern Footer --- */
.modern-footer {
    background: linear-gradient(to top, #1a1a1a, #2e2e2e);
    color: #a9a9a9;
    padding: 60px 0 0 0;
    font-size: 15px;
}

.modern-footer .footer-heading {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modern-footer .footer-text {
    margin-bottom: 20px;
    line-height: 1.7;
}

.modern-footer .footer-contact-list,
.modern-footer .footer-link-list {
    list-style: none;
    padding: 0;
}

.modern-footer .footer-contact-list li,
.modern-footer .footer-link-list li {
    margin-bottom: 12px;
}

.modern-footer .footer-contact-list a,
.modern-footer .footer-link-list a {
    color: #a9a9a9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modern-footer .footer-contact-list a:hover,
.modern-footer .footer-link-list a:hover {
    color: #fff;
}

.modern-footer .footer-contact-list i {
    margin-right: 10px;
    color: var(--primary-red);
    width: 20px;
}

.modern-footer .newsletter-form {
    position: relative;
    margin-bottom: 30px;
}

.modern-footer .newsletter-form .form-control {
    background-color: #2b2b2b;
    border: 1px solid #444;
    color: #fff;
    height: 50px;
    border-radius: 50px;
    padding-left: 20px;
}
.modern-footer .newsletter-form .form-control::placeholder {
    color: #888;
}

.modern-footer .newsletter-form .btn {
    position: absolute;
    right: 5px;
    top: 5px;
    height: 40px;
    width: 40px;
    background-color: var(--primary-red);
    color: #fff;
    border-radius: 50%;
    border: none;
}

.modern-footer .social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background-color: #2b2b2b;
    color: #fff;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.modern-footer .social-icons a:hover {
    background-color: var(--primary-red);
}

.modern-footer .copyright-bar {
    border-top: 1px solid #333;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

.modern-footer .copyright-bar p {
    margin: 0;
    font-size: 14px;
}
.modern-footer .copyright-bar a {
    color: #fff;
    text-decoration: underline;
}

/** end footer **/

.back_re .title {
     text-align: center;
}
.back_re .title h2 {
color:#fff;
font-size: 40px;
padding: 40px 0;
font-weight: 600;
text-transform: uppercase;
line-height: 35px;
}
.margin_0 {
     margin:0 !important;
}


.inner_page .gallery {
     padding-top: 115px; /* Increased from 90px to prevent overlap with the fixed header */
}
.inner_page .blog {
     margin-top: 90px;
}

/* --- New Professional Styles for Homepage Booking Form --- */
.booking-form-container {
    position: fixed; /* ทำให้กรอบนี้ "ลอย" อยู่กับที่บนหน้าจอ ไม่เลื่อนตามเนื้อหาเว็บ */
    bottom: 10px; /* กำหนดให้อยู่ห่างจากขอบล่างของหน้าจอ 10 pixels */
    left: 50%; /* ย้ายขอบซ้ายของกรอบไปที่กึ่งกลางของหน้าจอ */
    transform: translateX(-50%); /* ใช้คู่กับ left: 50% เพื่อดึงกรอบกลับมาทางซ้าย 50% ของความกว้างของตัวมันเอง ทำให้กรอบอยู่กึ่งกลางพอดี */
    width: 100%; /* ทำให้กรอบพยายามขยายเต็มความกว้างของหน้าจอ */
    max-width: 950px; /* แต่จำกัดความกว้างสูงสุดไว้ที่ไม่เกิน 950 pixels (สำหรับจอใหญ่) */
    height: 100%; /* พยายามทำให้สูงเต็ม 100% */
    max-height: 50px; /* แต่จำกัดความสูงสูงสุดไว้ที่ 50 pixels (บรรทัดนี้จะสำคัญกว่า height: 100%) */
    z-index: 10; /* กำหนดให้กรอบนี้แสดงอยู่ "ชั้นบน" หรือ "ทับ" เนื้อหาอื่นๆ บนหน้าเว็บ */
    padding: 5 5px; /* เพิ่มช่องว่างด้านซ้ายและขวาภายในกรอบ 15 pixels */
}

.booking-form-horizontal {
    background: rgba(12, 47, 33, 0.90);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    border-top: 3px solid #07e283;
}

.booking-form-horizontal .form-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.booking-form-horizontal .form-group {
    flex: 1;
    margin-right: 20px;
    position: relative;
}

.booking-form-horizontal .form-group:last-child {
    margin-right: 0;
    flex: 0 0 200px; /* Fixed width for the button container */
}

.booking-form-horizontal label {
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-form-horizontal .input-with-icon {
    position: relative;
}

.booking-form-horizontal .input-with-icon .fa {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.booking-form-horizontal input.online_book {
    width: 100%;
    height: 50px;
    border: 1px solid #555;
    background: #222;
    color: #fff;
    padding: 0 15px 0 45px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

.booking-form-horizontal input.online_book:focus {
    border-color: #07e283;
    outline: none;
}

.booking-form-horizontal input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.booking-form-horizontal .book_btn {
    height: 50px;
    padding: 0 30px;
    margin: 0;
    width: 100%;
    max-width: none;
    border-radius: 5px;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    background-color: #fe0000;
    transition: background-color 0.3s;
}

.booking-form-horizontal .book_btn:hover {
    background-color: #d40000;
    color: #fff;
}

/* --- New Professional Styles for Our Room Page --- */

.room-card-detailed {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.room-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.room-card-gallery {
    position: relative;
    height: 100%;
}

.room-card-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.room-card-gallery .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.room-card-gallery a:hover .gallery-overlay {
    background-color: rgba(0,0,0,0.5);
    opacity: 1;
}

.gallery-overlay i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.gallery-overlay span {
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.room-card-body-detailed {
    padding: 30px;
    text-align: left;
}

.room-card-title-detailed {
    font-size: 2rem;
    font-weight: 600;
    color: #121212;
    margin-bottom: 15px;
    padding-bottom: 0;
}

.room-card-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.room-card-amenities-detailed {
    list-style: none;
    padding: 15px 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.room-card-amenities-detailed .amenity-item {
    width: 50%;
    margin-bottom: 8px;
}

.room-card-amenities-detailed .amenity-item i {
    margin-right: 8px;
    color: #04844b;
    width: 20px;
    text-align: center;
}

.room-card-footer-detailed {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-card-footer-detailed .price-section {
    text-align: left;
}

.room-card-footer-detailed .price-section span {
    font-size: 0.9rem;
    color: #888;
}

.room-card-price-detailed {
    font-size: 2rem;
    font-weight: 700;
    color: #04844b;
    line-height: 1.1;
    margin: 0;
}

.room-card-footer-detailed .book_btn {
    background-color: #fe0000;
    color: #fff;
    max-width: 180px;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
    margin: 0;
}

.room-card-footer-detailed .book_btn:hover {
    background-color: #121212;
}

@media (max-width: 767px) {
    .room-card-body-detailed {
        padding: 20px;
    }
    .room-card-title-detailed {
        font-size: 1.5rem;
    }
    .room-card-price-detailed {
        font-size: 1.5rem;
    }
    .room-card-footer-detailed {
        flex-direction: column;
        align-items: flex-start;
    }
    .room-card-footer-detailed .book_btn {
        margin-top: 15px;
        width: 100%;
        max-width: 100%;
    }
}

/* --- New Professional Styles for Booking Process Page --- */

.our_room .col-md-12 .titlepage {
    margin-bottom: 20px;
}

#booking-dates-info {
    font-size: 1.1rem;
    color: #555;
}

#loading-indicator h3,
#no-rooms-message h3 {
    font-weight: 300;
    color: #6c757d;
}

/* Unified Room Card Style */
.room-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.room-card .room_img {
    position: relative;
    width: 100%;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.room-card .room_img figure {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: 0;
}

.room-card .room_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-card-body {
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.room-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 10px;
}

.room-card-amenities {
    list-style: none;
    padding: 0;
    margin: 10px 0 15px 0;
    display: flex;
    flex-wrap: wrap;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 0;
}

.amenity-item {
    margin-right: 15px;
    margin-bottom: 5px;
}

.amenity-item i {
    margin-right: 5px;
    color: #04844b;
}

.room-card-footer {
    margin-top: auto; /* Pushes footer to the bottom */
    padding-top: 15px;
}

.room-card-price {
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
    margin-bottom: 5px;
}

.room-card-price strong {
    font-size: 1.6rem;
    font-weight: 700;
    color: #04844b;
}

.room-card-availability {
    font-size: 0.9rem;
    color: #dc3545;
    margin-bottom: 15px;
}

.room-card .book_btn {
    background-color: #04844b;
    color: #fff;
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 5px;
}

.room-card .book_btn:hover {
    background-color: #036a3c;
    color: #fff;
}

/* --- New Professional Booking Summary Bar --- */
.booking-summary-bar {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.summary-item {
    display: flex;
    align-items: center;
    padding: 0 20px;
    flex-grow: 1;
    position: relative;
}

.summary-item:not(:last-of-type) {
    border-right: 1px solid #e9ecef;
}

.summary-item i.fa {
    font-size: 1.8rem;
    color: var(--primary-green); /* Use theme color */
    margin-right: 15px;
}

.summary-text {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.summary-value {
    font-size: 1rem;
    font-weight: 600;
    color: #343a40;
}

.summary-action {
    margin-left: auto; /* Pushes button to the right */
    padding-left: 20px;
}

.summary-action .btn {
    font-weight: 500;
}

/* Homepage Booking Form Section */
.booking_section {
    padding: 60px 0;
    position: relative;
    margin-top: -100px;
    z-index: 10;
}

.booking_form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.booking_form .form-group {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-bottom: 0; /* Reset margin */
}

.booking_form label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 15px;
}

.booking_form .book_input {
    border: 1px solid #ced4da;
    border-radius: 4px;
    height: 50px;
    padding: 0 15px;
    font-size: 16px;
    width: 100%;
    box-shadow: none;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.booking_form .book_input:focus {
    border-color: #04844b;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(4, 132, 75, .25);
}

.booking_form .book_btn {
    height: 50px;
    border: none;
    border-radius: 4px;
    background: #fe0000;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0 30px;
    flex-shrink: 0;
    transition: background-color .3s, transform .2s;
}

.booking_form .book_btn:hover {
    background: #d40000;
    transform: translateY(-2px);
}

/* Segmented Control for Booking Forms */
.segmented-control {
    display: flex;
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 4px; /* Match book_input */
    overflow: hidden;
    background-color: #fff;
}
.segmented-control input[type="radio"] {
    display: none;
}
.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 0 10px;
    margin: 0;
    cursor: pointer;
    color: #495057;
    transition: background-color 0.2s, color 0.2s;
    user-select: none;
    font-size: 14px;
    line-height: 48px;
    font-weight: 500;
    white-space: nowrap;
    text-transform: none; /* Override label uppercase */
}
.segmented-control label:not(:last-child) {
    border-right: 1px solid #ced4da;
}
.segmented-control input[type="radio"]:checked + label {
    background-color: #04844b;
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Responsive Styles for Booking Form */
@media (max-width: 767px) {
    .booking_form {
        flex-direction: column;
        align-items: stretch;
    }

    .booking_form .form-group {
        width: 100%;
    }
}

/* --- Cookie Consent Banner Styles --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a1aa8;
    color: #ffffff;
    padding: 15px 25px;
    z-index: 9999;
    display: none; /* Hidden by default, shown by JS */
    align-items: center;
    justify-content: center;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    font-size: 15px;
    gap: 20px; /* Adds space between text and button */
}

/* Add backdrop blur if supported */
@supports (backdrop-filter: blur(5px)) or (-webkit-backdrop-filter: blur(5px)) {
    #cookie-banner {
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        background: #1a1a1aa8;
    }
}

#cookie-banner p {
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

#cookie-banner a {
    color: #07e283; /* Site's highlight green */
    text-decoration: underline;
    font-weight: 500;
}

#cookie-banner a:hover {
    color: #ffffff;
}

#cookie-banner button {
    background-color: #fe0000; /* Site's highlight red */
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s;
    flex-shrink: 0; /* Prevent button from shrinking */
}

#cookie-banner button:hover {
    background-color: #d40000;
}

@media (max-width: 767px) {
    #cookie-banner {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
}

/* --- Cookie Settings Modal & Advanced Banner Styles --- */

/* New Banner Actions */
#cookie-banner {
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

#cookie-banner button.cookie-btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
}
#cookie-banner button.cookie-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Modal Overlay */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Modal Content */
.cookie-modal-content {
    background-color: #fff;
    color: #333;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.cookie-modal-content h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: #121212;
}

.cookie-modal-content p {
    color: #555;
    line-height: 1.6;
    font-size: 15px;
}

.cookie-modal-content a {
    color: #fe0000;
    text-decoration: underline;
}

/* Cookie Category Styling */
.cookie-category {
    border-top: 1px solid #e9ecef;
    padding: 20px 0;
}

.cookie-category:last-of-type {
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 25px;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #04844b;
}

.cookie-modal-actions {
    text-align: right;
}

.cookie-modal-actions button {
    background-color: #fe0000;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.cookie-modal-actions button:hover {
    background-color: #d40000;
}

/* Toggle Switch CSS */
.cookie-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.cookie-slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .cookie-slider { background-color: #04844b; }
input:focus + .cookie-slider { box-shadow: 0 0 1px #04844b; }
input:checked + .cookie-slider:before { transform: translateX(22px); }
.cookie-slider.round { border-radius: 34px; }
.cookie-slider.round:before { border-radius: 50%; }
input:disabled + .cookie-slider { cursor: not-allowed; background-color: #d6d6d6; }
input:disabled:checked + .cookie-slider { background-color: #82c5a8; }

/* --- New Modern Room Card Styles (for our_room.html) --- */
.modern-room-card {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.modern-room-image {
    flex: 0 0 40%; /* Image takes 40% of the width */
    min-height: 300px;
}

.modern-room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modern-room-details {
    flex: 1; /* Details take the remaining space */
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
}

.modern-room-title {
    font-size: 2rem;
    font-weight: 600;
    color: #121212;
    margin-bottom: 15px;
    padding-bottom: 0;
}

.modern-room-description {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1rem;
}

.modern-room-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
}

.modern-room-features li {
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.95rem;
}

.modern-room-features li i {
    color: #04844b;
    font-size: 1.2rem;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.modern-room-details .read_more {
    background-color: #fe0000;
    align-self: flex-start; /* Align button to the left */
    margin-top: auto; /* Pushes button to the bottom */
    max-width: 180px;
}

.modern-room-details .read_more:hover {
    background-color: #121212;
}

/* --- New Availability Box Styles --- */
.modern-room-availability {
    font-size: 0.95rem;
    font-weight: 500;
    color: #04844b; /* Green */
    background-color: #e6f3ed;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #cce8d8;
}

.modern-room-availability.sold-out {
    color: #dc3545; /* Red */
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* --- New Highlights Section --- */
.highlights {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.highlight-box {
    text-align: center;
    padding: 30px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.highlight-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.highlight-box i {
    font-size: 3rem;
    color: #04844b;
    margin-bottom: 20px;
    display: block;
}

.highlight-box h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    padding-bottom: 0;
}

.featured-rooms {
    padding-top: 90px;
}

/* Custom styles for uniform cover images */
.banner_main .carousel-item {
    height: 85vh; /* Set a responsive height based on the viewport */
    min-height: 450px; /* Minimum height for smaller screens */
    background-color: #1a1a1a; /* Add a background color for loading */
}

.banner_main .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the key property */
    object-position: center; /* Center the image within the frame */
}

/* --- Booking, Profile, and Payment Page Styles --- */

/* General Wizard Card for Booking Process */
.booking-wizard-card {
   background-color: #fff;
   border: 1px solid #e9ecef;
   border-radius: 8px;
   box-shadow: 0 5px 20px rgba(0,0,0,0.08);
   margin-bottom: 30px;
   overflow: hidden;
}

/* Professional Summary Box (Used in all booking steps) */
.summary-box {
   background-color: #f8f9fa;
   padding: 30px;
   border-right: 1px solid #e9ecef;
   display: flex;
   flex-direction: column;
}

.summary-box h4 {
   font-size: 1.4rem;
   font-weight: 600;
   color: #343a40;
   margin-bottom: 25px;
   padding-bottom: 15px;
   border-bottom: 1px solid #e0e0e0;
}

.summary-box .room-details img {
   border-radius: 6px;
   margin-bottom: 15px;
}

.summary-box .room-details h5 {
   font-size: 1.2rem;
   font-weight: 600;
   margin-bottom: 20px;
}

.summary-box .booking-info {
   margin-bottom: 20px;
}

.summary-box .info-line {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 12px;
   font-size: 1rem;
}
.summary-box .info-label {
   font-weight: 500;
   color: #495057;
   display: flex;
   align-items: center;
}
.summary-box .info-label i {
   margin-right: 10px;
   color: #04844b; /* Theme color */
   width: 20px;
   text-align: center;
}
.summary-box .info-value {
   font-weight: 600;
   color: #343a40;
}

.price-breakdown {
   margin-top: auto; /* Pushes to the bottom */
   padding-top: 20px;
   border-top: 1px solid #e0e0e0;
}

.price-breakdown p {
   display: flex;
   justify-content: space-between;
   margin-bottom: 8px;
   font-size: 16px;
}
.price-breakdown .total {
   font-weight: bold;
   font-size: 1.2em;
   border-top: 1px solid #eee;
   padding-top: 10px;
   margin-top: 10px;
}

.summary-box .secure-payment-info {
   margin-top: 25px;
   text-align: center;
   font-size: 0.9rem;
   color: #6c757d;
}
.summary-box .secure-payment-info i {
   color: #28a745;
   margin-right: 5px;
}

/* Payment Option Cards */
.payment-option {
   display: flex;
   align-items: flex-start; /* Align items to the top */
   padding: 20px;
   border: 1px solid #e0e0e0;
   border-radius: 8px;
   cursor: pointer;
   transition: all 0.2s ease-in-out;
   margin-bottom: 15px;
}
.payment-option input[type="radio"] {
   margin-top: 8px; /* Adjust to vertically align with the first line of text */
   margin-right: 15px; /* <-- Adjust space between radio button and text */
}
.payment-option:hover {
   border-color: #04844b;
   box-shadow: 0 4px 12px rgba(0,0,0,0.08);
   transform: translateY(-2px);
}
.payment-option i.fa-credit-card,
.payment-option i.fa-university {
    font-size: 2.5rem;
    color: #04844b;
    margin-right: 20px;
    width: 50px;
    text-align: center;
}
.payment-option div {
    flex-grow: 1;
}
.payment-option h5 {
    margin: 0;
    font-weight: 600;
    color: #343a40;
    padding-bottom: 0;
}
.payment-option p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}
.payment-option i.fa-chevron-right {
    color: #ced4da;
    transition: color 0.2s ease-in-out;
}
.payment-option:hover i.fa-chevron-right {
    color: #343a40;
}

/* Bank Transfer Details Box (inside payment option) */
.bank-details-flex-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}
.bank-details-qr-code {
    text-align: right;
    flex-shrink: 0;
}

/* Responsive layout for bank details on mobile */
@media (max-width: 767px) {
    .bank-details-flex-container {
        flex-direction: column; /* Stack vertically on mobile */
        align-items: center;   /* Center items when stacked */
        gap: 15px;
    }
    .bank-details-info, .bank-details-qr-code {
        text-align: center; /* Center text and QR code */
    }
    .room-card {
        margin-bottom: 5px;
    }
}

/* Loyalty Points & Messages */
.loyalty-points-section {
   background-color: #f8f9fa;
   padding: 15px;
   border-radius: 5px;
   margin-bottom: 20px;
}
#booking-message {
   text-align: center;
   font-weight: bold;
   margin-bottom: 15px;
}

/* Booking Statuses (for profile page) */
.booking-status {
   font-weight: bold;
   padding: 3px 8px;
   border-radius: 4px;
   color: white;
   text-transform: capitalize;
   display: inline-block;
   font-size: 0.85rem;
}
.booking-status-confirmed { background-color: #28a745; }
.booking-status-booked { background-color: #17a2b8; }
.booking-status-checked_in { background-color: #007bff; }
.booking-status-checked_out { background-color: #6c757d; }
.booking-status-cancelled { background-color: #dc3545; }
.booking-status-payment_failed { background-color: #dc3545; }
.booking-status-pending_payment { background-color: #ffc107; color: #212529; }
.booking-status-pending { background-color: #ffc107; color: #212529; }
