/* Kuhio Shores - Exact WordPress Duplicate Styles */

:root {
  --ks-primary: #1c1c1c;
  --ks-gold: #B19F6A;
  --ks-dark-gray: #424242;
  --ks-light-gray: #292929;
  --ks-text-white: #fff;
  --ks-text-gray: #dadada;
  --ks-border: #1c1c1c;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: #1c1c1c;
  color: #fff;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* Navbar */
.navbar {
  background-color: var(--ks-primary);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--ks-gold) !important;
}

/* ==========================================
   BUILDING MAP - EXACT WORDPRESS COPY
   ========================================== */

.booking-main {
  min-height: 930px;
  position: relative;
  background: rgba(0,0,0,.75);
  padding: 40px;
}

/* Unit Button Styles */
.buttoncust {
  display: block;
  width: 28px;
  background-color: #333;
  padding: 2px;
  text-align: center;
  border-radius: 7px;
  color: #666;
  font-weight: bold;
  margin: 1px;
  text-decoration: none;
  font-size: 10px;
  cursor: default;
  pointer-events: none;
}

.buttoncust:hover {
  color: #fff;
  text-decoration: none;
}

/* 1 Bedroom = Green */
.buttoncust.available.br1 {
  background-color: #2e7d32;
  color: #fff;
  cursor: pointer;
  pointer-events: all;
  z-index: 3;
}

.buttoncust.available.br1:hover {
  background-color: #388e3c;
}

/* 2 Bedroom = Blue */
.buttoncust.available.br2 {
  background-color: #1565c0;
  color: #fff;
  cursor: pointer;
  pointer-events: all;
  z-index: 3;
}

.buttoncust.available.br2:hover {
  background-color: #1976d2;
}

/* Non-participating = Black/dark */
.buttoncust.not-participating,
.buttoncust.disabled {
  background-color: #222;
  color: #444;
  cursor: not-allowed;
}

/* Block Base Styles */
.block {
  border: 1px solid #a13741;
  background-color: #e8cbd0;
}

/* South Wing Blocks */
.block.south a {
  display: inline-block;
  transform: rotate(-90deg);
  width: 24px;
}

.block.south a:nth-child(2) {
  position: relative;
  top: 5px;
}

.block.south a:nth-child(3) {
  position: relative;
  top: 10px;
}

.block.south a:nth-child(4) {
  position: relative;
  top: 15px;
}

.south-block .block a {
  margin: -2px;
  padding: 1px;
}

/* East Wing Blocks */
.east-block .block {
  float: right !important;
  height: 126px;
  position: relative;
  display: flex !important;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 30px;
  background: url('../images/blocks/eastblock.png');
  border: none;
  background-repeat: no-repeat;
  background-size: contain;
}

.east-block .block > a:nth-child(2) {
  margin-left: -5px;
}

.east-block .block > a:nth-child(3) {
  margin-left: -10px;
}

.east-block .block > a:nth-child(4) {
  margin-left: -20px;
}

.east-block .block.block09 {
  background: url('../images/blocks/block09.png');
  border: none;
  margin-top: -24px;
  background-repeat: no-repeat;
  background-size: contain;
}

/* South Block Backgrounds */
.south-block .block.block10 {
  background: url('../images/blocks/block10.png');
  border: none;
  background-repeat: no-repeat;
  background-size: contain;
  min-width: 112px;
}

.south-block .block.block11 {
  background: url('../images/blocks/block11.png');
  border: none;
  background-repeat: no-repeat;
  background-size: contain;
  min-width: 112px;
}

.south-block .block.block12 {
  background: url('../images/blocks/block12.png');
  border: none;
  background-repeat: no-repeat;
  background-size: contain;
  min-width: 112px;
}

.south-block .block.block13 {
  background: url('../images/blocks/block13.png');
  border: none;
  background-repeat: no-repeat;
  background-size: contain;
  min-width: 112px;
}

.south-block .block.block14 {
  background: url('../images/blocks/block14.png');
  border: none;
  background-repeat: no-repeat;
  background-size: contain;
  min-width: 112px;
}

.south-block .block.block15 {
  background: url('../images/blocks/block15.png');
  border: none;
  background-repeat: no-repeat;
  background-size: contain;
  min-width: 112px;
}

.south-block .block.block16 {
  background: url('../images/blocks/block16.png');
  border: none;
  background-repeat: no-repeat;
  background-size: contain;
  min-width: 112px;
}

.south-block .block.block17 {
  background: url('../images/blocks/block17.png');
  border: none;
  background-repeat: no-repeat;
  background-size: contain;
  min-width: 112px;
}

.south-block .block.block18 {
  background: url('../images/blocks/block18.png');
  border: none;
  background-repeat: no-repeat;
  background-size: contain;
  min-width: 112px;
}

.south-block .block.block19 {
  background: url('../images/blocks/block19.png');
  border: none;
  background-repeat: no-repeat;
  background-size: contain;
  min-width: 112px;
}

/* Corner Block (407/408) */
.corner-block {
  background-image: url('../images/blocks/floor.png');
  background-repeat: no-repeat;
  background-size: contain;
  min-height: 132px;
}

.corner-block .block {
  border: none !important;
  background: none;
}

.corner-block .block.block20 {
  margin-top: 65px;
}

.corner-block .block.block21 {
  margin-top: 20px;
}

/* South Block Margins */
.south-block .block.block17 {
  margin-left: 25px;
}

.south-block .block.block18 {
  margin-left: 25px;
}

.south-block .block.block19 {
  margin-left: 50px;
}

.south-block .block.block13,
.south-block .block.block14 {
  margin-left: -15px;
}

.south-block .southwing {
  display: none;
}

/* Desktop Loaded Blocks */
.loadedblocks {
  width: 100%;
  height: 800px;
  position: relative;
}

.loadedblocks:before {
  content: "Click on available condos shown in green for details and booking";
  position: absolute;
  right: 20px;
  left: 200px;
  font-family: 'Playfair Display', serif;
  top: 100px;
  font-size: 24px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.6);
  padding: 10px 20px;
  border-radius: 8px;
}

.loadedblocks .block-floating-frame {
  width: 100%;
}

.block-floating-frame {
  width: 100%;
  float: right;
  z-index: 1;
  height: 100%;
  position: relative;
}

.col {
  padding: 0;
}

/* Mobile Hidden by Default */
.loadedblocks-xs {
  display: none;
}

/* ==========================================
   DESKTOP BREAKPOINTS (767px+)
   ========================================== */

@media screen and (min-width: 767px) {
  .loadedblocks-xs {
    display: none;
  }
  
  .corner-block:after {
    content: '';
    background-image: url('../images/blocks/kuhioline.png');
    width: 60px;
    height: 50px;
    position: relative;
    display: block;
    bottom: -80px;
    left: -30px;
    background-size: contain;
  }
  
  .booking-side-wrapper {
    width: calc(100% - 30px);
    margin: 0 auto;
  }
  
  .booking-main-wrapper {
    width: calc(100% - 30px);
    margin: 0 auto 30px auto;
    float: none;
    background: transparent !important;
  }
  
  .main-frame {
    position: absolute;
    top: 255px;
    height: 1430px;
    width: 100%;
  }
  
  .loadedblocks {
    width: 100%;
    height: 1430px;
    position: relative;
  }
  
  .east-block {
    position: absolute;
    bottom: 200px;
    z-index: 2;
    left: 100px;
  }
  
  .loadedblocks .east-block {
    left: 0px;
  }
  
  .east-block .block {
    display: inline-block;
    width: 70px;
    padding-left: 30px;
    min-height: 95px;
    float: left;
    padding-right: 5px;
  }
  
  .south-block {
    position: absolute;
    left: 100px;
    bottom: 200px;
  }
  
  .loadedblocks .south-block {
    left: 20px;
  }
  
  .south-block .block {
    padding-top: 5px;
    padding-bottom: 32px;
    padding-left: 15px;
  }
  
  .corner-block {
    position: absolute;
    left: 220px;
    bottom: 200px;
  }
  
  .loadedblocks .corner-block {
    left: 140px;
  }
  
  .corner-block .block {
    display: inline-block;
    padding-top: 12px;
    padding-left: 40px;
    height: 50px;
    float: left;
    padding-right: 40px;
  }
}

/* ==========================================
   TABLET BREAKPOINT (768px - 990px)
   ========================================== */

@media screen and (max-width: 990px) and (min-width: 768px) {
  .booking-main {
    background-size: 100%;
    min-height: 900px;
    height: 900px;
  }
  
  .main-frame {
    height: 940px;
  }
  
  .loadedblocks {
    height: 860px;
  }
  
  .east-block {
    position: absolute;
    bottom: 20px;
    z-index: 2;
    left: 60px;
  }
  
  .loadedblocks .east-block {
    bottom: 40px;
  }
  
  .east-block .block {
    display: inline-block;
    width: 65px;
    padding-left: 20px;
    min-height: 95px;
    float: left;
    padding-right: 10px;
    height: 120px;
  }
  
  .south-block {
    position: absolute;
    left: 80px;
    bottom: 160px;
  }
  
  .loadedblocks .south-block {
    bottom: 182px;
  }
  
  .south-block .block {
    padding-top: 5px;
    padding-bottom: 32px;
    padding-left: 15px;
  }
  
  .corner-block {
    position: absolute;
    left: 190px;
    bottom: 120px;
  }
  
  .loadedblocks .corner-block {
    bottom: 140px;
  }
  
  .corner-block .block {
    height: auto;
    padding: 25px;
  }
  
  .corner-block .block.block20 {
    margin-top: 20px;
  }
  
  .corner-block .block.block21 {
    margin-top: 0;
  }
}

/* ==========================================
   LARGER DESKTOP (991px+)
   ========================================== */

@media screen and (min-width: 991px) {
  .booking-side-wrapper {
    width: calc(100% - 30px);
    margin: 0 auto;
  }
  
  .booking-main-wrapper {
    width: calc(100% - 30px);
    margin: 0 auto 30px auto;
    float: none;
    background: transparent !important;
  }
  
  .booking-main {
    background-size: 100%;
    min-height: 930px;
  }
  
  .corner-block:after {
    content: '';
    background-image: url('../images/blocks/kuhioline.png');
    width: 60px;
    height: 50px;
    position: relative;
    display: block;
    bottom: -115px;
    left: -30px;
    background-size: contain;
  }
  
  .main-frame {
    position: absolute;
    top: 325px;
    height: 930px;
    width: 100%;
  }
  
  .block-floating-frame {
    width: 100%;
    float: right;
    z-index: 1;
    height: 100%;
    position: relative;
    padding: 40px 55px;
  }
  
  .loadedblocks {
    width: 100%;
    height: 800px;
    position: relative;
  }
  
  .east-block {
    position: absolute;
    bottom: 0px;
    z-index: 2;
    left: 200px;
  }
  
  .loadedblocks .east-block {
    left: 140px;
    bottom: 0px;
  }
  
  .east-block .block {
    display: inline-block;
    width: 70px;
    padding-left: 30px;
    min-height: 95px;
    float: left;
    padding-right: 5px;
  }
  
  .south-block {
    position: absolute;
    left: 220px;
    bottom: 150px;
  }
  
  .loadedblocks .south-block {
    left: 140px;
    bottom: 150px;
  }
  
  .south-block .block {
    padding-top: 5px;
    padding-bottom: 32px;
    padding-left: 15px;
  }
  
  .corner-block {
    position: absolute;
    left: 340px;
    bottom: 150px;
  }
  
  .loadedblocks .corner-block {
    left: 260px;
    bottom: 150px;
  }
  
  .corner-block .block {
    display: inline-block;
    padding-top: 12px;
    padding-left: 40px;
    height: 50px;
    float: left;
    padding-right: 40px;
  }
  
  .east-block .block.block09:after {
    display: none;
  }
}

/* ==========================================
   LARGE DESKTOP (1024px+)
   ========================================== */

@media screen and (min-width: 1024px) {
  .east-block {
    position: absolute;
    bottom: 100px;
    z-index: 2;
    left: 200px;
  }
  
  .loadedblocks .east-block {
    left: 0px;
  }
  
  .east-block .block {
    display: inline-block;
    width: 70px;
    padding-left: 30px;
    min-height: 95px;
    float: left;
    padding-right: 5px;
  }
  
  .south-block {
    position: absolute;
    left: 220px;
    bottom: 250px;
  }
  
  .loadedblocks .south-block {
    left: 20px;
  }
  
  .south-block .block {
    padding-top: 5px;
    padding-bottom: 32px;
    padding-left: 15px;
  }
  
  .corner-block {
    position: absolute;
    left: 340px;
    bottom: 250px;
  }
  
  .loadedblocks .corner-block {
    left: 150px;
  }
}

/* ==========================================
   XLARGE DESKTOP (1115px+)
   ========================================== */

@media screen and (min-width: 1115px) {
  .booking-main {
    background-size: cover;
    background-color: rgba(0,0,0,.75);
    padding: 40px;
    margin: auto;
    min-height: 750px;
  }
  
  .booking-side-wrapper {
    width: 280px;
    flex-shrink: 0;
  }
  
  .booking-main-wrapper {
    flex: 1;
    min-width: 0;
    background: transparent !important;
  }
  
  .main-frame {
    position: absolute;
    top: 325px;
    right: 0;
    height: 930px;
    width: 77%;
    padding: 40px 0;
  }
  
  .loadedblocks {
    width: 100%;
    height: 700px;
    position: relative;
    min-width: 700px;
  }
  
  .block-floating-frame {
    width: 100%;
    float: none;
    z-index: 1;
    height: 100%;
    position: relative;
    margin: 0 auto;
    padding: 40px;
  }
  
  .east-block {
    position: absolute;
    bottom: 0px;
    z-index: 2;
    left: 40px;
  }
  
  .loadedblocks .east-block {
    bottom: 0px;
  }
  
  .south-block {
    position: absolute;
    left: 60px;
    bottom: 150px;
  }
  
  .loadedblocks .south-block {
    bottom: 150px;
  }
  
  .south-block .block {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  
  .corner-block {
    position: absolute;
    left: 180px;
    bottom: 150px;
  }
  
  .loadedblocks .corner-block {
    bottom: 150px;
  }
  
  .corner-block .block {
    display: inline-block;
    padding-top: 12px;
    padding-left: 40px;
    height: 50px;
    float: left;
    padding-right: 40px;
  }
}

/* ==========================================
   MID-WIDTH BREAKPOINT (768px - 1114px) - MAINTAIN L-SHAPE WITH SCROLL
   Keep the L-shape building layout and allow horizontal scrolling
   ========================================== */

@media screen and (min-width: 768px) and (max-width: 1114px) {
  .booking-main {
    min-height: auto;
    padding: 20px;
  }
  
  /* Keep desktop L-shape layout visible with horizontal scroll */
  .loadedblocks {
    display: block !important;
    min-width: 750px;
  }
  
  .loadedblocks-xs {
    display: none !important;
  }
  
  .main-frame {
    display: block;
  }
}

/* ==========================================
   MOBILE BREAKPOINT (< 767px)
   ========================================== */

@media screen and (max-width: 767px) {
  .booking-main {
    background: none;
    min-height: auto;
    padding: 0;
  }
  
  .booking-main-wrapper {
    background: transparent !important;
  }
  
  .main-frame {
    display: none;
  }
  
  .loadedblocks-xs > div {
    position: relative;
  }
  
  .loadedblocks-xs .south-block:before {
    content: "SOUTH FACING WING";
    position: absolute;
    right: 0;
    color: #dadada;
    top: 50%;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    width: 37%;
    text-align: center;
  }
  
  .south-block .southwing {
    display: block;
    text-transform: uppercase;
    color: #dadada;
    font-size: 20px;
    padding-top: 50px;
    padding-left: 80px;
    background: url('../images/blocks/arrow.png') no-repeat;
    background-position: 60px 5px;
  }
  
  .loadedblocks-xs .east-block:before {
    content: "EAST FACING WING";
    position: absolute;
    right: 65px;
    color: #dadada;
    top: 50%;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    width: 37%;
    text-align: center;
  }
  
  .east-block .eastwing {
    display: block;
    text-transform: uppercase;
    color: #dadada;
    font-size: 20px;
    padding-top: 50px;
    padding-left: 80px;
    background: url('../images/blocks/arrow2.png') no-repeat;
    background-position: 60px 5px;
  }
  
  .loadedblocks-xs .south-block {
    margin-bottom: 30px;
    padding: 30px;
    width: 100%;
    background-color: rgba(0,0,0,.5);
  }
  
  .south-block .block {
    padding: 15px 20px;
    height: 80px;
    display: flex;
    align-items: flex-start;
  }
  
  .responsive-eastface {
    display: flex;
    flex-direction: row;
    padding: 30px;
    width: 100%;
    background-color: rgba(0,0,0,.5);
  }
  
  .east-block {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
  }
  
  .east-block .block.block09 {
    margin-top: 0;
  }
  
  .east-block .block {
    position: relative;
    float: right !important;
    background: none;
    height: 126px;
    display: flex !important;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: flex-end;
    border: none;
    height: 75px;
    padding: 10px 0px 10px 17px;
    width: 125px;
  }
  
  .east-block .block:before {
    content: '';
    background: url('../images/blocks/eastblock.png');
    background-repeat: no-repeat;
    background-size: contain;
    width: 130px;
    height: 130px !important;
    position: absolute;
    z-index: 0;
    transform: rotate(90deg);
    top: 0;
    left: 0;
  }
  
  .east-block .block.block09 {
    margin-top: 0;
    background: none;
  }
  
  .east-block .block.block09:before {
    background: none;
    background-image: url('../images/blocks/block09.png');
    background-size: contain;
    background-repeat: no-repeat;
  }
  
  a.buttoncust {
    transform: rotate(90deg);
    height: 18px;
    margin-left: 0 !important;
  }
  
  .east-block .block > a:nth-child(2) {
    margin-bottom: 10px !important;
  }
  
  .east-block .block > a:nth-child(3) {
    margin-bottom: 15px;
  }
  
  .east-block .block > a:nth-child(4) {
    margin-bottom: 20px;
  }
  
  .corner-block {
    background: none;
    display: block;
    position: relative;
    justify-content: flex-start;
    height: 150px;
    position: absolute;
    top: 140px;
    left: 170px;
  }
  
  .corner-block:before {
    background-image: url('../images/blocks/floor.png');
    background-repeat: no-repeat;
    background-size: contain;
    min-height: 70px;
    content: '';
    width: 136px;
    height: 132px;
    position: absolute;
    left: 0;
    top: 5px;
    right: 0;
    transform: rotate(90deg);
    bottom: 0;
    margin-left: -20px;
  }
  
  .corner-block .block.block20 {
    margin-top: 20px;
    margin-left: 60px;
  }
  
  .corner-block .block.block21 {
    margin-top: 70px;
    margin-left: 40px;
  }
  
  .crossline {
    content: '';
    background-image: url('../images/blocks/kuhioline.png');
    width: 60px;
    height: 50px;
    position: absolute;
    display: block;
    top: 110px;
    left: 155px;
    background-size: contain;
    transform: rotate(80deg);
    background-repeat: no-repeat;
    z-index: 1;
  }
  
  .crossline2 {
    content: '';
    background-image: url('../images/blocks/kuhioline.png');
    width: 70px;
    height: 70px;
    position: absolute;
    display: block;
    top: 265px;
    transform: rotate(164deg);
    left: 145px;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 1;
  }
  
  .corner-block:before {
    z-index: 0;
  }
  
  a.buttoncust, .east-block .block:before, .corner-block {
    z-index: 2;
  }
  
  .loadedblocks-xs {
    display: block;
  }
  
  .loadedblocks {
    display: none;
  }
}

@media screen and (max-width: 668px) {
  .booking-page-wrapper {
    background: url('../images/blocks/mobilebg.png') no-repeat;
    background-size: 100% 100%;
  }
  
  .south-block .southwing {
    display: block;
    text-transform: uppercase;
    color: #dadada;
    font-size: 20px;
    padding-top: 50px;
    padding-left: 80px;
    background: url('../images/blocks/arrow.png') no-repeat;
    background-position: 60px 5px;
  }
  
  .more-info {
    font-size: 14px;
    position: absolute;
    bottom: 30%;
    width: 50%;
    color: #dadada;
    text-align: right;
    right: 10px;
  }
}

/* Button colors on loadedblocks - inherit from main buttoncust styles */
.loadedblocks .buttoncust.not-participating,
.loadedblocks-xs .buttoncust.not-participating {
  background-color: #222;
  color: #444;
}

/* Legend for building map */
.map-legend {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding: 15px 25px;
  margin-bottom: 15px;
  color: #fff;
  background: rgba(0,0,0,0.7);
  border-radius: 8px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.map-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.map-legend .legend-box {
  width: 20px;
  height: 16px;
  border-radius: 4px;
}

.map-legend .legend-box.br1 { background: #2e7d32; }
.map-legend .legend-box.br2 { background: #1565c0; }
.map-legend .legend-box.np { background: #222; }

/* ==========================================
   AVAILABILITY CALENDAR GRID
   ========================================== */

.availability-grid-section {
  background: #0d1a2e;
  padding: 20px 0;
}

.calendar-view-modal {
  width: 100%;
  overflow-x: auto;
  max-height: 500px;
  overflow-y: auto;
}

.calendar-view-modal table {
  background-color: #0d2444;
}

.calendar-view-modal table td,
.calendar-view-modal table th {
  border: 1px solid blue;
  padding: 5px;
  z-index: 11;
  color: #fff;
  max-width: 35px;
}

.calendar-view-modal table tr th a {
  color: #fff !important;
}

.calendar-view-modal table tbody th {
  position: sticky;
  left: 0;
}

.calendar-view-modal table thead > tr.sh_month_labels th {
  color: white;
  text-indent: -10000px;
  border-left: 0;
  border-right: 0;
}

.calendar-view-modal table thead > tr.sh_month_labels th:nth-child(1),
.calendar-view-modal table thead > tr.sh_month_labels th:nth-child(2) {
  color: #fff;
  text-indent: 0;
  border-left: 1px solid blue;
}

.calendar-view-modal table thead > tr.sh_month_labels th.next_month_label {
  text-indent: 0;
  color: #fff;
  border-left: 1px solid blue;
}

.calendar-view-modal table tbody tr th {
  background-color: #0d2444;
  z-index: 12;
}

.calendar-view-modal table thead > tr.sh_month_labels {
  border-right: 1px solid blue;
}

/* Availability Cell Colors */
.calendar-view-modal td.booked {
  background-color: red;
  position: relative;
  width: 38px;
  height: 35px;
  min-width: 38px;
}

.calendar-view-modal td.not-booked {
  background-color: green;
}

.calendar-view-modal td.disabled-room {
  background-color: gray;
}

/* First day of booking (check-in day): 
   - Green triangle in upper-left (available for checkout from previous booking)
   - Red triangle in lower-right (booked starting this day)
*/
td.booked.first_day {
  background: linear-gradient(to bottom right, green 50%, red 50%);
}

td.booked.first_day:before,
td.booked.first_day:after {
  display: none;
}

/* Last day of booking (check-out day):
   - Red triangle in lower-left (booking ends)
   - Green triangle in upper-right (available for check-in)
*/
td.booked.last_day {
  background: linear-gradient(to top right, red 50%, green 50%);
}

td.booked.last_day:before,
td.booked.last_day:after {
  display: none;
}

/* When a cell is both first_day and last_day (single day booking or transition):
   Show as fully booked (red) since it's occupied
*/
td.booked.last_day.first_day {
  background: red;
}

/* Link to view calendar */
a.availability_modal_link {
  text-decoration: underline !important;
  float: right;
}

/* Edit Search Button */
.edit-step-2-button {
  background-color: #b19f6a;
  color: #fff;
  font-size: 16px;
  padding: 12px 32px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
}

/* ==========================================
   SEARCH FORM / BOOKING SIDEBAR
   ========================================== */

.booking-side {
  font-family: 'Playfair Display', serif;
}

.booking-form {
  background: rgba(0,0,0,.75);
  padding: 20px;
}

.booking-form label {
  color: #fff;
  margin-bottom: 5px;
}

.booking-form input,
.booking-form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  background: #424242;
  border: 1px solid #1c1c1c;
  color: #fff;
  border-radius: 3px;
}

.booking-form input:focus,
.booking-form select:focus {
  outline: none;
  border-color: var(--ks-gold);
}

.booking-form .btn-search {
  background-color: var(--ks-gold);
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  width: 100%;
}

.booking-form .btn-search:hover {
  background-color: #9a8a5c;
}

/* ==========================================
   DATEPICKER STYLES
   ========================================== */

.datepicker {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
  position: absolute;
  width: calc(100% - 20px);
  z-index: 1;
  background-color: #fff;
  -webkit-box-shadow: 8px 8px 40px 5px rgba(0, 0, 0, 0.08);
  box-shadow: 8px 8px 40px 5px rgba(0, 0, 0, 0.08);
  color: #484c55;
  font-size: 14px;
  line-height: 14px;
}

.datepicker__inner {
  overflow: hidden;
  padding: 20px;
  background: #1c1c1c;
}

.datepicker__month-caption {
  border-bottom: 1px solid #424242;
  height: 2.5em;
  vertical-align: middle;
}

.datepicker__month-name {
  color: #fff;
  font-size: 15px;
}

.datepicker__week-days {
  height: 2em;
  vertical-align: middle;
  border-bottom: 1px solid #424242;
  color: #fff;
}

.datepicker__week-name {
  font-size: 14px;
  font-weight: 400;
  padding: 12px 0;
}

.datepicker__month-day {
  -webkit-transition-duration: 0.2s;
  transition-duration: 0.2s;
  -webkit-transition-property: color, background-color, border-color;
  transition-property: color, background-color, border-color;
  -webkit-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  color: #fff;
  padding: 11px 7px;
  background: #424242;
  border-right: #1c1c1c 1px solid;
  border-bottom: #1c1c1c 1px solid;
  font-size: 13px;
}

.datepicker__month-day--valid:hover {
  background: #b19f6a;
}

.datepicker__month-day--invalid {
  background: #292929;
  color: #7b7b7b;
}

.datepicker__month-day--disabled {
  background: url('../images/unavailable.png') #292929 center;
  color: #7b7b7b;
  color: rgba(255, 255, 255, 0);
  border-right: #1c1c1c 1px solid;
  border-bottom: #1c1c1c 1px solid;
  pointer-events: none;
}

.datepicker__month-day--selected {
  background: #b19f6a;
  color: #fff;
}

.datepicker__month-day--hovering {
  background: #83795a;
  color: #fff;
}

.datepicker__month-day--first-day-selected,
.datepicker__month-day--last-day-selected {
  background-color: #b19f6a;
  color: #fff;
}

/* ==========================================
   UNIT DETAIL PAGE
   ========================================== */

.unit-detail {
  background: #1c1c1c;
  color: #fff;
}

.unit-detail .main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.unit-detail .gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.unit-detail .gallery-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  border-radius: 4px;
}

.unit-detail .gallery-thumb:hover,
.unit-detail .gallery-thumb.active {
  border-color: var(--ks-gold);
}

.unit-detail .info-section {
  background: rgba(66, 66, 66, 0.5);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.unit-detail .btn-action {
  background-color: var(--ks-gold);
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  margin: 5px;
}

.unit-detail .btn-action:hover {
  background-color: #9a8a5c;
  color: #fff;
}

/* Calendar in Unit Detail */
.unit-calendar {
  background: rgba(66, 66, 66, 0.5);
  padding: 20px;
  border-radius: 8px;
}

.unit-calendar .cal-month {
  margin-bottom: 20px;
}

.unit-calendar .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.unit-calendar .cal-day {
  padding: 8px;
  text-align: center;
  font-size: 12px;
  border-radius: 4px;
}

.unit-calendar .cal-day.available {
  background-color: green;
  color: #fff;
}

.unit-calendar .cal-day.booked {
  background-color: #666;
  color: #999;
}

.unit-calendar .cal-day.empty {
  background: transparent;
}

.unit-calendar .cal-day-header {
  font-weight: bold;
  background: #424242;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background: #1c1c1c;
  color: #dadada;
  padding: 40px 0;
}

footer a {
  color: #dadada;
  text-decoration: none;
}

footer a:hover {
  color: var(--ks-gold);
}

/* ==========================================
   ADMIN/OWNER DASHBOARD
   ========================================== */

.dashboard {
  background: #f8f9fa;
  color: #333;
  min-height: 100vh;
}

.dashboard .sidebar {
  background: #1c1c1c;
  min-height: 100vh;
}

.dashboard .sidebar a {
  color: #dadada;
  padding: 15px 20px;
  display: block;
  text-decoration: none;
}

.dashboard .sidebar a:hover,
.dashboard .sidebar a.active {
  background: var(--ks-gold);
  color: #fff;
}

.dashboard .main-content {
  padding: 30px;
}

.dashboard .card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
}

/* ==========================================
   RESPONSIVE UTILITIES
   ========================================== */

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

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .unit-detail .main-image {
    height: 250px;
  }
}
