/* ==========================================================================
   Base Responsive & Layout Adjustments
   ========================================================================== */

/* Universal box-sizing and responsive images/media */
*, *:before, *:after {
  box-sizing: border-box;
}

img:not(#cp-bg-slide img):not(.imgslide):not(.slideimg img), video, iframe:not(#contact-map iframe), embed, object {
  max-width: 100%;
  height: auto;
}

#cp-bg-slide img, .imgslide, .slideimg img {
  max-width: none !important;
}

/* Clearfix */
.clr, #top01:after, #bottom:after, #banner:after, #about:after, #promotion:after, ul:after {
  clear: both;
  display: table;
  content: '';
}

/* ==========================================================================
   Desktop Wide (1200px and up)
   ========================================================================== */
@media (min-width: 1200px) {
  .hidden-wide { display: none !important; }
  #gallery .photo { width: 31%; margin: 1%; }
  #logo img { height: 180px; max-height: 180px; }
}

/* ==========================================================================
   Desktop / Landscape Tablet (980px - 1199px)
   ========================================================================== */
@media (min-width: 980px) and (max-width: 1199px) {
  .hidden-normal { display: none !important; }
  .mainnav ul.ide_menu, .moduletable_menu ul.ide_menu li { font-size: 13px; }
  .mainnav ul.ide_menu li { margin: 0 1%; }
  .mainnav ul.ide_menu li a { padding: 15px; }
  #gallery .photo { width: 48%; margin: 1%; }
  #logo img { height: 165px; max-height: 165px; }
}

/* ==========================================================================
   Tablet (768px - 979px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 979px) {
  .hidden-xtablet { display: none !important; }
  .mainnav ul.ide_menu, .moduletable_menu ul.ide_menu li { font-size: 12px; }
  .mainnav ul.ide_menu li { margin: 0 1%; }
  .mainnav ul.ide_menu li a { padding: 10px; }
  #gallery .photo { width: 48%; margin: 1%; }
  #logo img { height: 150px; max-height: 150px; }
}

/* ==========================================================================
   Small Tablet (600px - 767px)
   ========================================================================== */
@media (min-width: 600px) and (max-width: 767px) {
  .hidden-tablet { display: none !important; }
  #gallery .photo { width: 48%; margin: 1%; }
}

/* ==========================================================================
   Mobile (max-width: 599px)
   ========================================================================== */
@media (max-width: 599px) {
  .hidden-mobile { display: none !important; }
  #gallery .photo { width: 100%; margin: 8px 0; }
}

.hidden { display: none !important; visibility: hidden; }

/* ==========================================================================
   Breakpoints < 1200px
   ========================================================================== */
@media (max-width: 1199px) {
  .hidden-normal { display: none !important; }

  #top-Full {
    position: relative;
    height: auto;
    min-height: 75px;
  }

  #top {
    width: 100%;
    padding: 0 15px;
  }

  #about-L, #about-R, #contact-L, #contact-R, #about ul li {
    float: none;
    width: 100%;
    margin: 15px 0;
  }

  #banner .box01, #banner .box04 {
    float: none;
    width: 100%;
    margin: 0;
    text-align: center;
    height: auto;
    padding: 20px 10px;
    align-items: center;
  }

  #banner .box02, #banner .box03 {
    float: none;
    width: 50%;
    margin: 0;
    text-align: center;
    height: 200px;
    padding: 0;
    align-items: center;
  }

  #top01 {
    width: 100%;
    position: static;
    left: auto;
    top: auto;
    text-align: right;
  }

  #header .mainnav { display: none !important; }
  #open-button { display: block; }

  #lang-switch, .mainnav, #top-R #lang, #top-R #social, #top-R #callcenter, .menu-wrap #tools { display: none; }
  
  .menu-wrap .menu-wrap-lang {
    display: block;
    margin: 10px 15px 15px 15px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .menu-wrap .menu-wrap-lang ul.lang-inline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .menu-wrap .menu-wrap-lang ul.lang-inline li {
    display: inline-block;
  }
  .menu-wrap .menu-wrap-lang ul.lang-inline li a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #eae19f;
    font-size: 13px;
    padding: 3px 6px;
    text-decoration: none;
  }
  .menu-wrap .menu-wrap-lang ul.lang-inline li.lang-active a {
    font-weight: bold;
    border-bottom: 2px solid #eae19f;
  }
  .menu-wrap .menu-wrap-lang ul.lang-inline img {
    width: 20px;
    height: auto;
    border-radius: 2px;
  }

  .menu-wrap #social {
    float: left;
    margin: 10px 15px;
    display: block;
  }
  .menu-wrap #social a {
    width: 36px;
    height: 36px;
    line-height: 36px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #eae19f;
    border-radius: 4px;
    margin-right: 8px;
    text-align: center;
  }
  .menu-wrap #social a i {
    line-height: 36px;
    font-size: 16px;
  }
  .menu-wrap #social a.skype:hover {
    background: #0078CA;
    color: #fff;
  }
  .menu-wrap #social a.trip:hover {
    background: #589442;
    color: #fff;
  }
  .menu-wrap #social a.fb:hover {
    background: #3b5998;
    color: #fff;
  }
  .menu-wrap #callcenter {
    float: none;
    width: 100%;
    margin-bottom: 10px;
    padding: 8px 10px;
    font-family: 'rsu', Kanit, sans-serif;
    font-size: 90%;
    background: rgba(230, 207, 94, 1.0);
    color: #000;
    box-shadow: 0 0 5px #000;
  }

  #content {
    width: 100%;
    max-width: 100%;
  }

  #about, #contact, #home, #job, #review-trip, #room, #promotion {
    padding: 20px 15px;
  }

  #review-trip-L, #review-trip-R, #contact-L, #contact-R {
    float: none;
    width: 100%;
    padding: 0;
  }

  #banner-L, #banner-R {
    float: none;
    width: 100%;
    padding: 0;
  }

  #TA_excellent69 #CDSWIDEXC {
    width: 100% !important;
    margin: 0;
    padding: 0 0 10px 0;
  }

  .gkwCurrent { float: left !important; width: 50% !important; }
  ul.gkwNextDays { float: right !important; width: 50% !important; }

  #bottom .box1, #bottom .box2 {
    float: none;
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }
  
  #info {
    text-align: left;
  }
}

/* ==========================================================================
   Breakpoints < 980px
   ========================================================================== */
@media (max-width: 979px) {
  #content #col01, #content #col02, #content #col03 {
    float: none;
    width: 100%;
    margin: 10px 0;
  }

  #roomrate .col1, #roomrate .col2, #roomrate .col3, #roomrate .col4 {
    width: 50%;
    margin: 0;
  }
}

/* ==========================================================================
   Breakpoints < 768px (Mobile & Portrait Tablets)
   ========================================================================== */
@media (max-width: 767px) {
  #top {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  #top-L {
    float: none;
    width: auto;
    max-width: 35%;
    margin: 0;
    padding: 0;
    order: 1;
    flex: 1;
  }
  
  #top-R {
    display: contents;
  }
  
  #top01 {
    order: 2;
    text-align: center;
    margin: 0 5px;
    width: auto;
    flex: 1;
  }
  
  #tools {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    gap: 4px;
  }
  
  #top03 {
    width: auto;
    float: none;
    margin: 0;
  }
  
  #open-button {
    order: 3;
    margin-left: 0;
    flex: 0 0 44px;
  }

  #logo { padding: 8px 0; }
  #logo img {
    max-height: 120px;
    height: auto;
    width: auto;
    padding: 5px;
  }

  #open-button {
    position: relative;
    right: auto;
    top: auto;
    display: inline-block;
    width: 44px;
    height: 44px;
    line-height: 44px;
    background: #1b1b1a;
    border: 1px solid #eae19f;
    border-radius: 4px;
    cursor: pointer;
  }
  #open-button:before {
    content: '\f0c9';
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: 900;
    font-size: 22px;
    line-height: 42px;
    color: #eae19f;
  }

  .moduletable_menu ul.ide_menu { padding: 0 15px; }

  #banner-L, #banner-R .box01, #banner-R .box02 {
    float: none;
    width: 100%;
    margin: 0;
    padding: 10px;
    min-height: auto;
    text-align: center !important;
  }

  #contact .btqc-field-container, #booking .btqc-field-container {
    float: none;
    width: 100%;
    margin: 5px 0;
  }

  #contact .btqc-field-container input[type=text],
  #contact .btqc-field-container textarea,
  #contact .btqc-field-container select,
  #booking .btqc-field-container input[type=text],
  #booking .btqc-field-container textarea,
  #booking .btqc-field-container select {
    width: 100%;
    max-width: 100%;
  }

  #contact input.btqc_submit,
  #booking input.btqc_submit {
    width: 100%;
  }

  .page-header h2 {
    font-size: 22px;
    color: #3b2e2f;
    padding: 10px 0;
    margin: 10px 0 0 0;
  }

  .col-xs-6 { width: 100%; }

  #banner .box01 p { padding-right: 0; }
  #banner .box04 p.booking { padding-left: 0; padding-top: 10px; }
  #banner .box04 p.phone { padding-left: 0; text-align: center; }

  /* Room rate table on mobile */
  #roomrate .topic {
    font-size: 110%;
    display: flex;
    justify-content: space-between;
    height: auto;
    padding: 8px 0;
  }

  #roomrate .detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 10px 0;
  }

  #roomrate .col1 {
    float: none;
    width: 60%;
    font-size: 100%;
  }

  #roomrate .col4, #roomrate .col2, #roomrate .col3 {
    float: none;
    width: 40%;
    text-align: right;
  }

  /* Extra charges definition list */
  dl.charge dt {
    width: 65%;
    padding: 8px 3%;
    font-size: 90%;
  }

  dl.charge dd {
    width: 35%;
    padding: 8px 3%;
    font-size: 90%;
  }

  #info .address, #info .email, #info .phone, #info .line {
    display: block;
    margin: 5px 0;
    text-align: left;
  }

  h1#topic, .page-header h1, .item-page h1 {
    font-size: 140%;
  }

  h2#topic span {
    font-size: 85%;
    white-space: normal;
  }

  #slideshow-bg {
    height: 50vh;
    min-height: 260px;
  }

}

/* ==========================================================================
   Breakpoints < 480px (Small Mobile)
   ========================================================================== */
@media (max-width: 479px) {
  #logo img {
    max-height: 100px;
  }

  #slideshow-bg {
    height: 40vh;
    min-height: 220px;
  }

  #tools a {
    font-size: 85%;
    padding: 0 10px;
  }

  dl.charge dt {
    width: 60%;
    font-size: 85%;
  }

  dl.charge dd {
    width: 40%;
    font-size: 85%;
  }

  .remark {
    width: 100%;
    padding: 8px;
    font-size: 90%;
  }

  #contact ul.info li p {
    padding: 5px 0 0 5px;
    word-break: break-word;
  }
}

/* ==========================================================================
   Orientation styles
   ========================================================================== */
@media screen and (max-width: 1199px) and (orientation: landscape) {
  #banner .box01, #banner .box04 { align-items: center; }
  #banner .box04 { height: auto; padding: 20px 0; }
  #banner .box04 p.phone { display: inline-block; margin: 10px 10px 0 0; }
  #banner .box04 p.booking { padding: 0; text-align: center; }
  #tools a { height: auto; font-size: 80%; line-height: 100%; padding: 10px; }
  #tools a i { font-size: 120%; }
}

@media screen and (orientation: portrait) {
  /* #top03 { width: 98%; } */
  #banner .box01 { height: auto; padding: 25px 0; text-align: center; align-items: center; }
  #banner .box01 p { padding-right: 0; }
  #banner .box04 { height: auto; padding: 25px 0; align-items: center; }
  #banner .box04 p.phone { text-align: center; padding: 0; }
  #banner .box04 p.booking { padding: 0; }
  #tools a { height: auto; font-size: 75%; line-height: 100%; padding: 8px; }
  #tools a i { font-size: 120%; }
}

