/* Import modular CSS files */
@import './global/variables.css';
@import './global/reset.css';
@import './global/base.css';

/* Import component styles */
@import './components/error-notification.css';
@import './components/toast.css';
@import './components/optimistic-ui.css';
@import './components/dark-mode.css';
@import './components/breadcrumb.css';
@import './components/progressive-disclosure.css';
@import './components/skeleton.css';
@import './components/inline-editor.css';

/* Import mobile styles */
@import './mobile/touch-targets.css';

/* ==========================================================================
   #GRID
   ========================================================================== */
.row {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  position: relative;
}

.row-space {
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -moz-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.row-refine {
  margin: 0 -15px;
}

.col-2 {
  width: -webkit-calc((100% - 20px) / 2);
  width: -moz-calc((100% - 20px) / 2);
  width: calc((100% - 20px) / 2);
}

@media (max-width: 767px) {
  .col-2 {
    width: 100%;
  }
}

/* ==========================================================================
   #BOX-SIZING
   ========================================================================== */
/**
 * More sensible default box-sizing:
 * css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice
 */
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

* {
  padding: 0;
  margin: 0;
}

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

/* ==========================================================================
   #RESET
   ========================================================================== */
/**
 * A very simple reset that sits on top of Normalize.css.
 */
body,
h1, h2, h3, h4, h5, h6,
blockquote, p, pre,
dl, dd, ol, ul,
figure,
hr,
fieldset, legend {
  margin: 0;
  padding: 0;
}

/**
 * Remove trailing margins from nested lists.
 */
li > ol,
li > ul {
  margin-bottom: 0;
}

/**
 * Remove default table spacing.
 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/**
 * 1. Reset Chrome and Firefox behaviour which sets a `min-width: min-content;`
 *    on fieldsets.
 */
fieldset {
  min-width: 0;
  /* [1] */
  border: 0;
}

button {
  outline: none;
  background: none;
  border: none;
  font-family: inherit;
}

/* ==========================================================================
   #PAGE WRAPPER
   ========================================================================== */
.page-wrapper {
  min-height: calc(100vh - 56px); /* Subtract header height */
  padding-top: 0; /* No top spacing - align with header */
}

body {
  font-family: "Roboto", "Arial", "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

h1 {
  font-size: 36px;
}

h2 {
  font-size: 30px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 15px;
}

h6 {
  font-size: 13px;
}

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

a {
  display: inline-block;
  text-decoration: none;
  -webkit-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

/* ==========================================================================
   #BACKGROUND
   ========================================================================== */
.bg-img-3 {
  background: url("../images/bg-img-03.jpg") center center/cover no-repeat;
}

.bg-color-1 {
  background: #ffece0;
}

/* ==========================================================================
   #SPACING
   ========================================================================== */
.p-t-15 {
  padding-top: 15px;
}

.p-t-5 {
  padding-top: 5px;
}

.p-t-275 {
  padding-top: 275px;
}

@media (max-width: 767px) {
  .p-t-275 {
    padding-top: 120px;
  }
}

.p-t-395 {
  padding-top: 0; /* No padding - align top points */
}

@media (max-width: 767px) {
  .p-t-395 {
    padding-top: 0; /* No padding - align top points */
  }
}

.p-t-290 {
  padding-top: 290px;
}

@media (max-width: 767px) {
  .p-t-290 {
    padding-top: 120px;
  }
}

.p-t-240 {
  padding-top: 240px;
}

@media (max-width: 767px) {
  .p-t-240 {
    padding-top: 150px;
  }
}

.p-t-200 {
  padding-top: 200px;
}

@media (max-width: 767px) {
  .p-t-200 {
    padding-top: 150px;
  }
}

.p-t-165 {
  padding-top: 165px;
}

@media (max-width: 767px) {
  .p-t-165 {
    padding-top: 120px;
  }
}

.p-b-100 {
  padding-bottom: 100px;
}

@media (max-width: 767px) {
  .p-b-100 {
    padding-bottom: 250px;
  }
}

.p-b-120 {
  padding-bottom: 120px;
}

@media (max-width: 767px) {
  .p-b-120 {
    padding-bottom: 250px;
  }
}

.m-r-45 {
  margin-right: 45px;
}

@media (max-width: 767px) {
  .m-r-45 {
    margin-right: 15px;
  }
}

/* ==========================================================================
   #WRAPPER
   ========================================================================== */
.wrapper {
  margin: 0 auto;
}

.wrapper--w680 {
  max-width: 680px;
}

.wrapper--w720 {
  max-width: 720px;
}

.wrapper--w900 {
  max-width: 900px;
}

.wrapper--w1070 {
  max-width: 1070px;
}

.wrapper--w1226 {
  max-width: 1226px;
}

/* ==========================================================================
   #BUTTON
   ========================================================================== */
.btn-submit {
  display: inline-block;
  line-height: 80px;
  font-family: inherit;
  background: #ffe151;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  text-transform: capitalize;
  color: #333;
  font-size: 18px;
  -webkit-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  transition: all 0.4s ease;
  padding: 0 30px;
  -webkit-box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
}

.btn-submit:hover {
  background: #ebcd3d;
}

@media (max-width: 767px) {
  .btn-submit {
    width: 100%;
  }
}

.m-t-0 {
  margin-top: 0;
}

.m-t-15 {
  margin-top: 15px;
}

.m-t-35 {
  margin-top: 35px;
}

/* ==========================================================================
   #DATEPICKER
   ========================================================================== */
.daterangepicker {
  display: none;
  width: 560px;
  -webkit-box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  padding: 0;
  margin-top: 27px;
  margin-left: -20px;
  box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
  .daterangepicker {
    width: -webkit-calc(100% - 60px);
    width: -moz-calc(100% - 60px);
    width: calc(100% - 60px);
    padding: 25px 0px;
  }
}

.daterangepicker:before {
  display: none;
}

.daterangepicker:after {
  top: -13px;
  border-right: 13px solid transparent;
  border-bottom: 13px solid #fff;
  border-left: 13px solid transparent;
}

.daterangepicker.opensright:after {
  left: 84px;
}

.daterangepicker .calendar {
  margin: 0;
  width: 280px;
  max-width: 280px;
  padding: 30px;
  padding-bottom: 25px;
}

.daterangepicker .calendar th {
  font-size: 14px;
  color: #555;
  cursor: default;
  font-weight: 700;
}

.daterangepicker .calendar th.month {
  font-size: 16px;
  color: #555;
  font-weight: 700;
}

.daterangepicker .calendar th.next, .daterangepicker .calendar th.prev {
  font-size: 20px;
  color: #ccc;
  text-align: center;
}

.daterangepicker .calendar.left {
  border-right: 1px solid #e5e5e5;
}

.daterangepicker .calendar.right {
  float: right;
}

@media (max-width: 767px) {
  .daterangepicker .calendar {
    width: 230px;
    max-width: 230px;
    padding: 0;
  }
  .daterangepicker .calendar.right, .daterangepicker .calendar.left {
    border: none;
    float: none !important;
    clear: none !important;
    margin: 0 auto !important;
  }
  .daterangepicker .calendar.left {
    margin-bottom: 30px !important;
  }
}

.daterangepicker .calendar-table {
  padding: 0;
}

.daterangepicker .calendar-table .table-condensed thead tr:nth-child(2) th {
  padding-top: 27px;
  padding-bottom: 17px;
}

.daterangepicker.ltr .calendar.left .calendar-table {
  padding: 0;
}

.daterangepicker_input {
  display: none;
}

.daterangepicker td {
  height: 26px;
  width: 26px;
  min-width: 26px;
  min-width: 26px;
  font-family: "Poppins", "Arial", "Helvetica Neue", sans-serif;
  text-align: center;
  font-size: 14px;
  color: #6b6b6b;
}

@media (max-width: 767px) {
  .daterangepicker td {
    height: 26px;
    width: 26px;
  }
}

.daterangepicker td.start-date, .daterangepicker td.end-date {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  background: #00ad5f;
}

.daterangepicker td.start-date.end-date {
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

.daterangepicker td.in-range {
  background: #eee;
  color: #2c6ed5;
}

.daterangepicker td.in-range.end-date {
  color: #fff;
}

.daterangepicker td.today {
  -webkit-border-radius: 3px !important;
  -moz-border-radius: 3px !important;
  border-radius: 3px !important;
  background: #eee;
  color: #2c6ed5;
}

.daterangepicker td.today.in-range {
  -webkit-border-radius: 0 !important;
  -moz-border-radius: 0 !important;
  border-radius: 0 !important;
  background: #eeeeee;
}

.daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date {
  background: transparent;
}

.daterangepicker select {
  outline: none;
  font-family: inherit;
}

.daterangepicker select.monthselect, .daterangepicker select.yearselect {
  font-size: 16px;
  padding: 8px 4px;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
  background: #2c6ed5;
}

.daterangepicker td.active.today,
.daterangepicker td.active:hover.today {
  background: #eee;
}

/* ==========================================================================
   #FORM
   ========================================================================== */
input,
textarea {
  outline: none;
  margin: 0;
  border: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
  width: 100%;
  font-size: 18px;
  font-family: inherit;
}

input:disabled {
  cursor: pointer;
  background: transparent;
}

textarea {
  resize: none;
}

button {
  cursor: pointer;
}

/* CHECKBOX */
/* Radio button */
.radio-row {
  padding-top: 10px;
}

.radio-container {
  display: inline-block;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 15px;
  color: #fff;
  font-weight: 700;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.radio-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.radio-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #eee;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
}

.radio-container:hover input ~ .radio-checkmark {
  background-color: #fff;
}

.radio-container input:checked ~ .radio-checkmark {
  background-color: #fff;
}

.radio-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.radio-container input:checked ~ .radio-checkmark:after {
  display: block;
}

.radio-container .radio-checkmark:after {
  top: 4px;
  left: 4px;
  width: 12px;
  height: 12px;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  background: #00ad5f;
}

.input-group {
  position: relative;
  margin-bottom: 23px;
  -webkit-box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
  box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  padding-bottom: 10px;
  background: #fff;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  border-radius: 10px;
  float: left;
  margin-right: 10px;
}

.form::after {
  content: "";
  clear: both;
  display: table;
}

.input-icon {
  font-size: 24px;
  color: #808080;
  position: absolute;
  line-height: 60px;
  right: 20px;
  top: 0;
  width: 20px;
  background: #fff;
  text-align: center;
  cursor: pointer;
}

.input-icon::before {
  display: block;
  -webkit-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

.label {
  font-size: 12px;
  color: #6b6b6b;
  text-transform: uppercase;
  display: block;
  font-weight: 700;
}

.input--large {
  width: 300px;
}

.input--medium {
  width: 190px;
}

@media (max-width: 767px) {
  .input--large,
  .input--medium {
    width: 100%;
  }
}

.input--style-1 {
  font-size: 18px;
  padding: 9px 0;
  color: #666;
  font-family: "Roboto", "Arial", "Helvetica Neue", sans-serif;
}

.input--style-1::-webkit-input-placeholder {
  /* WebKit, Blink, Edge */
  color: #333;
}

.input--style-1:-moz-placeholder {
  /* Mozilla Firefox 4 to 18 */
  color: #333;
  opacity: 1;
}

.input--style-1::-moz-placeholder {
  /* Mozilla Firefox 19+ */
  color: #333;
  opacity: 1;
}

.input--style-1:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: #333;
}

.input--style-1:-ms-input-placeholder {
  /* Microsoft Edge */
  color: #333;
}

.m-b-0 {
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .m-b-0 {
    margin-bottom: 26px;
  }
}

/* ==========================================================================
   #SELECT
   ========================================================================== */
.quantity {
  font-size: 18px;
  color: #333;
}

.icon-con {
  position: absolute;
  width: 30px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: #f2f2f2;
  right: 11px;
  top: 50%;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
}

.minus,
.plus {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 18px;
  color: #b2b2b2;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

.minus:hover,
.plus:hover {
  background: #2c6ed5;
  color: #fff;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ==========================================================================
   #CARD
   ========================================================================== */
.card-7 {
  background: transparent;
  position: relative;
}

.card-7 .card-body {
  padding: 0 20px;
}

/* ==========================================================================
   #GUEST FILTER STATE MANAGEMENT (FR-004A)
   ========================================================================== */

/* Guest filter card disabled state */
#guest-filter-card.filter-disabled {
  opacity: 0.5;
  pointer-events: none;
  position: relative;
}

#guest-filter-card.filter-disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  border-radius: 5px;
}

#guest-filter-card.filter-disabled .label {
  color: #6b6b6b;
}

#guest-filter-card.filter-disabled .input--style-1 {
  background-color: #f5f5f5;
  color: #6b6b6b;
  cursor: not-allowed;
}

#guest-filter-card.filter-disabled .icon-con .plus,
#guest-filter-card.filter-disabled .icon-con .minus {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Guest filter card enabled state */
#guest-filter-card.filter-enabled {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease-in-out;
}

#guest-filter-card.filter-enabled .icon-con .plus,
#guest-filter-card.filter-enabled .icon-con .minus {
  cursor: pointer;
}

/* Accessibility: ARIA disabled state support */
#guest-filter-card[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* Guest filter card alignment */
#guest-filter-card {
  display: flex;
  flex-direction: column;
  padding: 0;
}

#guest-filter-card .form-label {
  margin-bottom: 0.25rem;
  padding-left: 0;
  padding-right: 0;
}

#guest-filter-card .input-group {
  width: 100%;
  margin: 0;
  padding: 0;
}

#guest-filter-card .input-group .btn,
#guest-filter-card .input-group .form-control {
  margin: 0;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

/* ==========================================================================
   #SEARCH LIFECYCLE STATES - Guest Counter Buttons (FR-008A)
   ========================================================================== */

/* Initial State - Disabled (before first search) */
.icon-con .plus.state-initial,
.icon-con .minus.state-initial,
button.plus.state-initial,
button.minus.state-initial,
.btn.plus.state-initial,
.btn.minus.state-initial {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  color: #ccc !important;
  background-color: #f9f9f9 !important;
  border: 1px dashed #ddd !important;
  transition: all 0.3s ease;
}

/* Searching State - Disabled during search */
.icon-con .plus.state-searching,
.icon-con .minus.state-searching,
button.plus.state-searching,
button.minus.state-searching,
.btn.plus.state-searching,
.btn.minus.state-searching {
  opacity: 0.4 !important;
  cursor: wait !important;
  pointer-events: none !important;
  color: #aaa !important;
  background-color: #f5f5f5 !important;
  border: 1px solid #e0e0e0 !important;
  animation: pulse 1.5s ease-in-out infinite;
  transition: all 0.3s ease;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
  }
}

/* Results State - Enabled after search completes */
.icon-con .plus.state-results,
.icon-con .minus.state-results,
button.plus.state-results,
button.minus.state-results,
.btn.plus.state-results,
.btn.minus.state-results {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  color: #4CAF50 !important;
  background-color: #fff !important;
  border: 1px solid #4CAF50 !important;
  transition: all 0.3s ease;
}

/* Override disabled attribute cursor for result state */
button.plus.state-results:disabled,
button.minus.state-results:disabled,
.btn.plus.state-results:disabled,
.btn.minus.state-results:disabled {
  cursor: pointer !important;
}

.icon-con .plus.state-results:hover,
.icon-con .minus.state-results:hover,
button.plus.state-results:hover,
button.minus.state-results:hover,
.btn.plus.state-results:hover,
.btn.minus.state-results:hover {
  background-color: #4CAF50 !important;
  color: white !important;
  transform: scale(1.1);
  cursor: pointer !important;
}

.icon-con .plus.state-results:active,
.icon-con .minus.state-results:active,
button.plus.state-results:active,
button.minus.state-results:active,
.btn.plus.state-results:active,
.btn.minus.state-results:active {
  transform: scale(0.95);
  cursor: pointer !important;
}

/* ==========================================================================
   #GUEST NUMBER FILTERING (FR-004B)
   ========================================================================== */

/* Hotel card and vacancy item transitions */
.hotel-card {
  transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.hotel-card[style*="display: none"] {
  opacity: 0;
  transform: scale(0.98);
}

.vacancy-item {
  transition: opacity 0.2s ease-in-out, max-height 0.3s ease-in-out;
  overflow: hidden;
}

.vacancy-item[style*="display: none"] {
  opacity: 0;
  max-height: 0;
  padding: 0;
  margin: 0;
}

/* Results counter styling */
#results-counter {
  padding: 8px 16px;
  background: #e3f2fd;
  border-radius: 20px;
  border: 1px solid #2196F3;
  font-weight: 500;
}

#results-counter strong {
  color: #1976D2;
}

/* No results message animation */
#no-results-filter-message {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
