/* *****************************************
GENERAL STYLES WORKING FOR ALL
**************************************** */

:root {
  --primary: #0e7c7b;
  --dark: #0f172a;
  --light: #f8fafc;
  --accent: #e62401;
}
html {
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}
body {
  background: #f8f9fa;
  color: #111;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

section {
  padding: 64px 0;
}
h2 {
  margin-bottom: 16px;
  color: var(--accent);
}

p {
  font-size: 1rem;
  line-height: 1.6;
}

/***************************************************************
HEADER STYLES WORKING FOR ALL HTML HEADERS (index, food and room) 
******************************************************************/

header {
  position: sticky;
  top: 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}
.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.menu-btn {
  display: none;
  font-size: 1.5rem;
}

/* nav links style works for all html links (index, food and room) */

.nav-links {
  display: flex;
  gap: 18px;
}
.nav-links a {
  color: #333;
  font-size: 17px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #e62401;
  background: #e2f3f2;
}

.nav-links a.active {
  background: #e62401;
  color: var(--light);
  border-radius: 5px;
}

/* nav links style ends here */

/***********************************
INDEX.HTML HERO SECTION
********************************** */

.hero {
  position: relative;
  height: 80vh;
  min-height: 420px;
  overflow: hidden;
}
.slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}
.slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6));
  display: flex;
  align-items: center;
}
.hero .content {
  color: white;
}
.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 10px;
}
.hero p {
  margin-bottom: 18px;
}

.btn, .btn-cancel {
  display: inline-block;
  background: var(--accent);
  color: var(--light);
  padding: 12px 18px;
  margin-top: 20px;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover, .btn-cancel:hover {
  background: #f24021;
  transform: translateY(-1px);
}
.btn.secondary {
  background: var(--light);
  color: #111;
}
.btn.secondary:hover {
  transform: translateY(-1px);
  background-color: #e2f3f2;
}

/***********************************
INDEX.HTML ABOUT SECTION
********************************** */

#about p span {
  color: var(--primary);
}

/***********************************
INDEX.HTML ROOMS  AND GALLARY SECTION
********************************** */

.grid-gallery,
.grid-room {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-gallery img,
.grid-room img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

#rooms p,
#gallery p,
#contact p {
  margin-bottom: 30px;
}

.grid-room img:hover,
.grid-gallery img:hover {
  transform: translateY(-5px);
}

/***********************************
FOOD.HTML NAV ORDER FOOD-DROPDOWN MENU
/***********************************/

/* Dropdown container */
.dropdown {
  position: relative;
  display: flex;
}

/* Hidden menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 170px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* Dropdown links */
.dropdown-menu a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: black;
  font-size: 14px;
}

.dropdown-menu a:hover {
  background: #e2f3f2;
}

/* Show on hover (desktop) */
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu.show {
  display: block;
}

/**********************************
FOOD.HTML SERVICES  SECTION
********************************** */

.services {
  padding: 60px 0 10px;
  background: #f8f9fa;
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.service-item {
  background: #f8f9fa;
  padding: 35px 25px;
  text-align: left;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.06);
  transition: 0.35s ease;
  height: 100%;
  position: relative;
}

.service-item i {
  font-size: 48px;
  color: #e62401;
  margin-bottom: 20px;
  display: block;
}

.service-item h5 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #0f172b;
}

.service-item p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.service-item:hover {
  background: #e62401;
  transform: translateY(-10px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.service-item:hover i,
.service-item:hover h5,
.service-item:hover p {
  color: #ffffff;
}

/***********************************
FOOD.HTML spining/rotating image
********************************** */

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  /* padding: 20px 0; */
}

.wrapper img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #e62401;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.rotate1 {
  animation: spin 10s linear infinite;
}

.rotate2 {
  animation: spin 10s linear infinite;
  animation-delay: 2s;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/***********************************
          FOOD.HTML  ---- MENU
********************************** */

/* General  menu */

#menu {
  background: url("..//images/bg_image/bg_image4.jpg") center/cover no-repeat;
}
.menu-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #ddd;
  color: var(--primary);
  font-weight: 900;
}

/* food menu divided by serving time */

.menu-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 28px;
}

.menu-title i {
  color: #e62401;
  margin-right: 8px;
}

.menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 50px;
}

.food {
  border-bottom: 1px dashed #ccc;
  padding-bottom: 8px;
}

.food h3 {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
}

.food span {
  color: #e62401;
  font-weight: bold;
}

/****************************************************
          FOOD.HTML---- PICKUP and  CITY DELIVER ORDER
*****************************************************/

.order {
  background-color: #1090ef;
  /* background-color: #390015 */
}
.order h2 span {
  font-size: 16px;
  color: #111;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.addItemBtn {
  font-size: 1rem;
  display: inline-block;
  width: auto;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.2s;
  font-weight: 700;
}

#orderForm .addItemBtn,
#pickupOrder .addItemBtn {
  width: fit-content;
  display: inline-block;
  align-self: flex-start;
  margin: auto;
  margin-top: 10px;
}

.order .card {
  padding: 16px;
  margin-top: 1px;
}
.card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.summary-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 5px;
}

.itemsTotal {
  /* font-size: 1rem; */
  color: var(--primary);
  margin-top: 6px;
  font-weight: 700;
}
.calcTotal {
  /* font-size: 1.25rem; */
  color: var(--primary);
  margin-top: 6px;
  font-weight: 700;
}
label {
  margin: 7px 0 0 0;
}

.upload-open {
  display: flex;
  gap: 18px;
  align-items: center;
}

.upload-open input[type="file"],
.upload-open button {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  height: 42px;
  box-sizing: border-box;
  cursor: pointer;
}

.upload-open button:hover {
  background-color: #cec8c8;
}

.upload-open button:disabled {
  background-color: #948e8e;
  cursor: not-allowed;
}

.order > .addItemBtn {
  width: auto;
}
form {
  display: grid;
  gap: 12px;
}
input,
select {
  padding: 8px 12px;
  border-radius: 10px;
}
textarea {
  padding: 6px;
  min-height: 14px;
  border-radius: 10px;
}

.two.dateContainer {
  width: 100%;
  gap: 18px;
}
/* Remove Chrome autofill background color */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
  -webkit-text-fill-color: #000 !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Payment information */

.order-paymentInfo-wrapper {
  width: 90%;
  margin: 0 auto;
  display: flex;
  gap: 18px;
}

.payment-info,
.order {
  flex: 1;
  display: block;
}
.payment-info {
  background-color: #1b1b1b;
  color: var(--light);
  text-align: center;
  place-items: center;
}
.payment-info i {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.payment-info i:hover {
  font-size: 50px;
  color: #e62401;
}
.payment-info h5 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.payment-info p {
  font-size: 15px;
  line-height: 1.6;
}
.bank-info {
  background: #1a1a1a;
  width: 80%;
  margin-top: 25px;
  border: 1px solid var(--light);
  border-radius: 12px;
  padding: 15px 25px;
  text-align: center;
  transition: 0.35s ease;
}
.bank-info:hover {
  transform: translateY(-5px);
  box-shadow:
    2px -2px 0 #1090ef,
    4px -4px 0 gray;
}

.payment-info .bank-info img {
  width: 80px;
  height: 65px;
  margin: auto;
  padding-bottom: 5px;
}
.bank-info p span {
  color: #5a3e36;
  font-weight: 900;
}

/*************************************
FOOD.HTML YOUR ORDER -LIST STYLE
***************************************/
/* Row layout */
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  color: var(--dark);
  font-weight: 700;
}

/* Right side container */
.item-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Vertical separator line */
.item-right::before {
  content: "";
  width: 1px;
  height: 18px;
  background-color: #e62401;
}

/* Remove button styling */
.remove-btn {
  background-color: var(--light);
  border: none;
  color: #e62401;
  font-size: 1.125rem;
  cursor: pointer;
  padding: 0 4px;
}

.remove-btn:hover {
  transform: scale(1.2);
}
/**********************************************
    ROOM.HTML ROOMS and SERVICES SECTION
**********************************************/
.bed-footer {
  padding: 4px 10px;
  margin-top: 15px;
  margin-bottom: 20px;
}
.badge {
  display: inline-block;
  background: #ecfeff;
  color: #0e7c7b;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.price {
  font-weight: 700;
  color: var(--primary);
}

/**********************************************
    ROOM.HTML ROOMS RESERVATION SECTION
**********************************************/

/* same style with pickup and city delivery order in food.html part */

/* **************************************
        SUMMARY MODAL 
************************************/


#summaryContent strong {
  color: #1090ef;
}

#summaryContent div {
  margin-bottom: 3px;
}

#summaryContent table {
  font-family: Arial, sans-serif;
}

#summaryContent th {
  background-color: #333;
  color: white;
}

#summaryContent td, 
#summaryContent th {
  padding: 10px;
}

#summaryContent tr:nth-child(even) {
  background-color: #f9f9f9;
}

.modal-content,
#summaryContent,
#summaryContent * {
  font-size: 16px !important;
}

.modal-content h3 {
  text-align:center;
}
/***********************************
              CONTACT SECTION
********************************** */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
#contact p a {
  color: blue;
  text-decoration: underline;
}
#contact i {
  color: var(--accent);
  font-size: 21px;
}
#contact p a:hover {
  color: var(--accent);
}
.map iframe {
  width: 100%;
  height: 450px;
  border: 0;
  border-radius: 16px;
}

/***********************************
            FOOTER
********************************** */

footer {
  background: var(--dark);
  color: #e5e7eb;
  padding: 28px 0;
  text-align: center;
  margin-top: 50px;
}

/***********************************
              WHATSAPP
********************************** */
.wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  color: white;
  padding: 14px 16px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/******************************************************
              RESPONSIVENESS      RESPONSIVENESS   RESPONSIVENESS 
********************************** ********************/

@media (min-width: 600px) {
  p {
    font-size: 1.125rem;
  }
  .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 993px) {
  p {
    font-size: 1.25rem;
  }
  .row {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  h2 {
    font-size: 1.25rem;
  }
  .logo {
    font-size: 1.5rem;
  }
  .menu-btn {
    display: block;
  }
  .nav-links {
    position: absolute;
    right: 16px;
    top: 60px;
    background: var(--light);
    flex-direction: column;
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    display: none;
  }
  .nav-links.show {
    display: flex;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .two,
  .contact-grid,
  .menu,
  .summary-box {
    grid-template-columns: 1fr;
  }
  .menu-title {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .grid-gallery,
  .grid-room {
    grid-template-columns: 1fr;
  }
  .grid-gallery img,
  .grid-room img {
    height: 200px;
  }
}

@media (max-width: 1024px) {
  .grid-gallery,
  .grid-room {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-gallery img,
  .grid-room img {
    height: 230px;
  }
}

/* spinning image */
@media (max-width: 440px) {
  .wrapper {
    gap: 20px;
    padding: 10px 0;
  }
}

@media (max-width: 440px) {
  .wrapper img {
    width: 100px;
    height: 100px;
  }
}
@media (min-width: 441px) {
  .wrapper img {
    width: 150px;
    height: 150px;
  }
}
@media (min-width: 769px) {
  .wrapper img {
    width: 220px;
    height: 220px;
  }
}
@media (min-width: 993px) {
  .wrapper img {
    width: 300px;
    height: 300px;
  }
}
@media (min-width: 1125px) {
  .wrapper img {
    width: 400px;
    height: 400px;
  }
}

/* spinning image ends here */

/* payment information */
@media (max-width: 800px) {
  .order-paymentInfo-wrapper {
    flex-direction: column;
  }
}

/* ROOM ROOM ROOM */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 10px;
  margin: 5px 0;
}

.room-box {
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

.available {
  background-color: green;
}

.occupied {
  background-color: red;
  cursor: not-allowed;
}

.selected {
  background-color: orange;
}

.room-message {
  margin: 5px 0;
  font-weight: bold;
}

/* ***********************************************
 Simple modal styling 
*********************************************** */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  text-align: left;
  position: relative;
}
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}
#summaryContent p {
  margin: 6px 0;
}
