/* ============================================================
   TownhouseTheme Custom CSS
   Adapted from Hotale Hotel Template for a 5-unit townhouse complex
   Color scheme: #193573 accent, Jost/Amiri/Allison fonts
   ============================================================ */

/* ── Reset & Typography ─────────────────────────────────────── */
.hotale-body h1,
.hotale-body h2,
.hotale-body h3,
.hotale-body h4,
.hotale-body h5,
.hotale-body h6 {
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    font-family: "Jost", sans-serif;
}

.hotale-body h1 { font-size: 52px; }
.hotale-body h2 { font-size: 42px; }
.hotale-body h3 { font-size: 32px; }
.hotale-body h4 { font-size: 24px; }
.hotale-body h5 { font-size: 20px; }
.hotale-body h6 { font-size: 17px; }

.hotale-body,
.hotale-body .gdlr-core-content-font,
.hotale-body input,
.hotale-body textarea,
.hotale-body button,
.hotale-body select {
    font-family: "Jost", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #424242;
}

.hotale-body .gdlr-core-quote-font,
blockquote {
    font-family: "Amiri", serif;
}

.hotale-additional-font {
    font-family: "Allison", cursive !important;
}

/* ── Layout & Container ─────────────────────────────────────── */
.hotale-container,
.gdlr-core-container {
    max-width: 1320px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.hotale-item-pdlr,
.gdlr-core-item-pdlr { padding-left: 20px; padding-right: 20px; }
.hotale-item-mglr,
.gdlr-core-item-mglr { margin-left: 20px; margin-right: 20px; }
.hotale-item-rvpdlr,
.gdlr-core-item-rvpdlr { margin-left: -20px; margin-right: -20px; }

.hotale-body-wrapper.hotale-with-frame { margin: 40px; }

/* ── Form inputs ────────────────────────────────────────────── */
.tourmaster-form-field input[type="text"],
.tourmaster-form-field input[type="email"],
.tourmaster-form-field input[type="password"],
.tourmaster-form-field input[type="tel"],
.tourmaster-form-field textarea,
.tourmaster-form-field select {
    border-radius: 5px;
    font-size: 16px;
    font-family: "Jost", sans-serif;
    border: 1px solid #dadada;
    padding: 10px 16px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}

.tourmaster-form-field input[type="text"]:focus,
.tourmaster-form-field input[type="email"]:focus,
.tourmaster-form-field input[type="password"]:focus,
.tourmaster-form-field input[type="tel"]:focus,
.tourmaster-form-field textarea:focus,
.tourmaster-form-field select:focus {
    border-color: #193573;
}

.tourmaster-form-field input[type="text"],
.tourmaster-form-field input[type="email"],
.tourmaster-form-field input[type="password"],
.tourmaster-form-field input[type="tel"],
.tourmaster-form-field select { height: 56px; }

/* ── Buttons ────────────────────────────────────────────────── */
.tourmaster-button.tourmaster-style-1,
.tourmaster-button {
    display: inline-block;
    background-color: #193573;
    color: #ffffff !important;
    border: 2px solid #193573;
    padding: 12px 30px;
    font-family: "Jost", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.25s, color 0.25s, border-color 0.25s;
    line-height: 1.4;
}

.tourmaster-button.tourmaster-style-1:hover,
.tourmaster-button:hover {
    background-color: #0e2050;
    border-color: #0e2050;
    color: #ffffff !important;
}

.hotale-border-radius,
.tourmaster-button.hotale-border-radius {
    border-radius: 4px;
}

.gdlr-core-button {
    display: inline-block;
    font-family: "Jost", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 11px 26px;
    text-decoration: none;
    transition: all 0.25s;
    cursor: pointer;
    line-height: 1.4;
}

.gdlr-core-button-transparent {
    background-color: transparent;
    color: #193573;
    border: 2px solid #193573;
}
.gdlr-core-button-transparent:hover {
    background-color: #193573;
    color: #fff;
}

.gdlr-core-button-border {
    background-color: transparent;
    color: #141414;
    border: 1px solid #141414;
}
.gdlr-core-button-border:hover {
    background-color: #141414;
    color: #fff;
}

/* ── Top Bar ────────────────────────────────────────────────── */
.hotale-top-bar-background { background-color: #ffffff; }

.hotale-top-bar {
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 15px;
    border-bottom: 1px solid #efefef;
    color: #424242;
    position: relative;
    z-index: 200;
    background-color: #ffffff;
}

.hotale-top-bar a { color: #191919; text-decoration: none; }
.hotale-top-bar a:hover { color: #193573; }

.hotale-top-bar-left,
.hotale-top-bar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hotale-top-bar-left { float: left; }
.hotale-top-bar-right { float: right; }
.hotale-top-bar-left-right-wrap { overflow: hidden; }

.hotale-top-bar-logo { display: flex; align-items: center; }
.hotale-top-bar-logo img { display: block; }

.hotale-top-bar-item-right a {
    color: #424242;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s;
    margin-left: 6px;
}
.hotale-top-bar-item-right a:hover { color: #193573; }

.hotale-top-bar-text { color: #5b5b5b; font-size: 14px; }
.hotale-top-bar-text i { color: #193573; margin-right: 4px; }

/* ── Header / Navigation ────────────────────────────────────── */
.hotale-header-wrap {
    background-color: #ffffff;
    position: relative;
    z-index: 150;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.hotale-header-container { max-width: 1320px; margin: 0 auto; }
.hotale-header-container-inner { display: flex; align-items: center; padding: 0 20px; }

.hotale-navigation { flex: 1; padding-top: 0; }
.hotale-navigation-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sf-menu { list-style: none; margin: 0; padding: 0; display: flex; }
.sf-menu > li {
    position: relative;
    padding: 0 20px;
}

.sf-menu > li > a {
    display: block;
    padding: 22px 0;
    font-family: "Jost", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #5b5b5b;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.sf-menu > li > a:hover,
.sf-menu > li.current-menu-item > a,
.sf-menu > li.current-menu-ancestor > a { color: #141414; }

/* Dropdown sub-menu */
.sf-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #f4f4f4;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 300;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.sf-menu li:hover > .sub-menu { display: block; }

.sf-menu .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #757575;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}
.sf-menu .sub-menu li a:hover { color: #141414; background-color: #eaeaea; }

/* Slide bar underline */
.hotale-navigation-slide-bar {
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #193573;
    transition: left 0.25s, width 0.25s;
    margin-top: -2px;
}

/* Sticky navigation — handled by script-core.js (style_slide).
   JS adds .hotale-fixed-navigation on scroll → CSS in style-core.css applies position:fixed */

.hotale-main-menu-right-wrap { flex-shrink: 0; padding: 16px 0; }

/* ── Mobile Header ──────────────────────────────────────────── */
.hotale-mobile-header-wrap { display: none; }

.hotale-mobile-header {
    background-color: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #efefef;
    position: relative;
    z-index: 400;
}

.hotale-mobile-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hotale-mobile-menu-right { display: flex; align-items: center; gap: 12px; }

#hotale-mobile-menu-button {
    font-size: 22px;
    color: #3a3a3a;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

/* mmenu overrides */
.mm-menu { background-color: #1f1f1f; }
.mm-navbar .mm-title,
.mm-navbar .mm-btn,
ul.mm-listview li > a,
ul.mm-listview li > span { color: #979797; }
ul.mm-listview li { border-color: #3f3f3f; }

/* ── Page wrapper ────────────────────────────────────────────── */
.hotale-page-wrapper {
    min-height: 400px;
    overflow: hidden;
}

/* ── Footer ─────────────────────────────────────────────────── */
.hotale-footer-wrapper {
    background-color: #1a1a1a;
    padding-top: 93px;
    padding-bottom: 66px;
    color: #8a8a8a;
    font-size: 15px;
}

.hotale-footer-wrapper a {
    color: #8a8a8a;
    text-decoration: none;
    transition: color 0.2s;
}
.hotale-footer-wrapper a:hover { color: #ffffff; }

.hotale-footer-wrapper h3.hotale-widget-title,
.hotale-footer-wrapper .hotale-widget-title {
    font-family: "Jost", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.hotale-footer-wrapper .widget_text p { line-height: 1.7; margin-bottom: 16px; }
.hotale-footer-wrapper ul { list-style: none; padding: 0; margin: 0; }
.hotale-footer-wrapper ul li { margin-bottom: 8px; }
.hotale-footer-wrapper ul.hotale-footer-contact-list li i { color: #193573; margin-right: 8px; }

.hotale-footer-socials { margin-top: 18px; display: flex; gap: 10px; }
.hotale-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #2a2a2a;
    color: #8a8a8a !important;
    border-radius: 50%;
    font-size: 15px;
    transition: background-color 0.2s, color 0.2s;
}
.hotale-footer-socials a:hover { background: #193573; color: #fff !important; }

/* footer columns */
.hotale-footer-column { padding: 0 15px 30px; }

/* Copyright */
.hotale-copyright-wrapper {
    background-color: #111111;
    padding: 16px 0;
    font-size: 14px;
    color: #666;
}

.hotale-copyright-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.hotale-copyright-left { color: #666; }
.hotale-copyright-left ul.hotale-copyright-menu,
.hotale-copyright-right ul.hotale-copyright-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.hotale-copyright-left ul.hotale-copyright-menu a,
.hotale-copyright-right ul.hotale-copyright-menu a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    transition: color 0.2s;
}
.hotale-copyright-right ul.hotale-copyright-menu a:hover { color: #fff; }

/* ── Hero Section ────────────────────────────────────────────── */
.townhouse-hero-wrapper { overflow: hidden; }

.townhouse-hero-flexslider .slides { list-style: none; margin: 0; padding: 0; }

.townhouse-hero-slide {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* FlexSlider nav arrows */
.townhouse-hero-flexslider .flex-direction-nav a {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: background 0.2s;
}
.townhouse-hero-flexslider .flex-direction-nav a:hover { background: rgba(255,255,255,0.35); }

/* ── Flexslider base overrides ───────────────────────────────── */
.flexslider { margin: 0; padding: 0; background: transparent; border: none; }

.gdlr-core-flexslider .flex-control-nav {
    bottom: 20px;
    position: absolute;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.gdlr-core-flexslider .flex-control-nav li { display: inline-block; margin: 0 4px; }
.gdlr-core-flexslider .flex-control-nav li a {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    outline: none;
}
.gdlr-core-flexslider .flex-control-nav li a.flex-active { background: #193573; }

/* FlexSlider prev/next arrows */
.flex-direction-nav { margin: 0; padding: 0; list-style: none; }
.flex-direction-nav .flex-prev,
.flex-direction-nav .flex-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.flex-direction-nav .flex-prev { left: 20px; }
.flex-direction-nav .flex-next { right: 20px; }
.flex-direction-nav .flex-prev:hover,
.flex-direction-nav .flex-next:hover { opacity: 1; }

/* ── Events slider (homepage) ────────────────────────────────── */
.townhouse-events-slide-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.townhouse-events-slide-photo {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.12);
}

.townhouse-events-slide-photo img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

.townhouse-events-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.2) 45%, transparent 70%);
}

.townhouse-events-slide-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 32px 32px;
    color: #fff;
    text-align: left;
}

.townhouse-events-slide-date {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 8px;
}

.townhouse-events-slide-title {
    display: block;
    font-family: "Jost", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
}

.townhouse-events-slide-summary {
    display: block;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 12px;
}

.townhouse-events-slide-cta {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 2px solid #193573;
    padding-bottom: 2px;
}

.townhouse-events-slide-link:hover .townhouse-events-slide-cta {
    color: #c5d4f0;
}

@media only screen and (max-width: 767px) {
    .townhouse-events-slide-photo img {
        height: 320px;
    }
}

/* ── Rooms section ───────────────────────────────────────────── */
.townhouse-rooms-description {
    padding-right: 20px;
}

.townhouse-gallery-body p {
    margin-bottom: 20px;
}

.townhouse-gallery-body p:last-child {
    margin-bottom: 0;
}

@media only screen and (max-width: 999px) {
    .townhouse-rooms-description {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .townhouse-rooms-flexslider li img {
        height: 360px !important;
    }
}

@media only screen and (max-width: 767px) {
    .townhouse-rooms-flexslider li img {
        height: 260px !important;
    }
}

/* ── Room cards ─────────────────────────────────────────────── */
.gdlr-core-blog-grid {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: box-shadow 0.25s;
}
.gdlr-core-blog-grid:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.13); }

.gdlr-core-blog-grid-wrap { padding: 0 10px; }

.gdlr-core-zoom-on-hover { overflow: hidden; }
.gdlr-core-zoom-on-hover img { transition: transform 0.4s ease; }
.gdlr-core-zoom-on-hover:hover img { transform: scale(1.05); }

/* ── Testimonials ─────────────────────────────────────────────  */
.gdlr-core-testimonial-item {
    padding: 30px;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* ── Blog preview zone ───────────────────────────────────────── */
.townhouse-blog-preview-section {
    padding: 70px 0;
    background-color: #f9f9f9;
}

/* ── Columns ─────────────────────────────────────────────────── */
.gdlr-core-column-60 { width: 100%; float: left; box-sizing: border-box; }
.gdlr-core-column-30 { width: 50%; float: left; box-sizing: border-box; }
.gdlr-core-column-20 { width: 33.333%; float: left; box-sizing: border-box; }
.gdlr-core-column-15 { width: 25%; float: left; box-sizing: border-box; }
.gdlr-core-column-first { /* no extra */ }
.clearfix::after { content: ""; display: table; clear: both; }

/* ── Responsive ──────────────────────────────────────────────── */
@media only screen and (max-width: 999px) {
    .hotale-mobile-header-wrap { display: block; }
    .hotale-header-wrap { display: none; }
    .hotale-top-bar { display: none; }
    .hotale-body-wrapper.hotale-with-frame { margin: 0; }

    .gdlr-core-column-30,
    .gdlr-core-column-20,
    .gdlr-core-column-15 {
        width: 100%;
        float: none;
        padding: 0 !important;
    }

    .hotale-footer-column { width: 50% !important; }

    .hotale-body h1 { font-size: 36px; }
    .hotale-body h2 { font-size: 30px; }
    .hotale-body h3 { font-size: 24px; }

    .townhouse-hero-slide { min-height: 480px !important; }
    .townhouse-hero-content { padding-top: 120px !important; padding-bottom: 80px !important; }
    .townhouse-hero-title { font-size: 34px !important; }
}

@media only screen and (max-width: 767px) {
    .hotale-footer-column { width: 100% !important; }

    .hotale-copyright-container {
        flex-direction: column;
        text-align: center;
    }

    .hotale-copyright-left ul.hotale-copyright-menu,
    .hotale-copyright-right ul.hotale-copyright-menu {
        justify-content: center;
    }

    .gdlr-core-column-30,
    .gdlr-core-column-20,
    .gdlr-core-column-15 {
        width: 100%;
        float: none;
        padding: 0 !important;
    }

    .townhouse-hero-title { font-size: 28px !important; }
    .townhouse-hero-subtitle { font-size: 36px !important; }
}

/* ── Page Title (inner pages) ────────────────────────────────── */

/* Override the remote background image from hotale-style-custom.css */
.hotale-page-title-wrap {
    background-image: url(../images/upload/home-hotel-hero-bg.jpg) !important;
}

.hotale-header-transparent-substitute {
    height: 80px; /* same height as the sticky header */
}

.hotale-page-title-wrap {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hotale-page-title-wrap .hotale-page-title-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.52);
    opacity: 1 !important; /* override hotale-style-custom.css which sets 0 */
}

.hotale-page-title-container {
    position: relative;
    z-index: 2;
}

.hotale-page-title-content {
    text-align: center;
    padding: 100px 20px 80px;
}

.hotale-page-title {
    color: #ffffff;
    font-size: 52px;
    font-weight: 700;
    font-family: "Jost", sans-serif;
    margin: 0 0 14px;
    text-transform: none;
    letter-spacing: 2px;
}

.hotale-page-caption {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
}

.hotale-page-caption a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.hotale-page-caption a:hover { color: #ffffff; }

.hotale-page-caption .hotale-page-caption-divider {
    margin: 0 8px;
}

/* ── Contact form .input class (CF7 style) ───────────────────── */
.gdlr-core-contact-form-7-item .input,
form .input {
    display: block;
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 1px solid #dadada;
    border-radius: 0;
    font-family: "Jost", sans-serif;
    font-size: 15px;
    color: #424242;
    background: #ffffff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.gdlr-core-contact-form-7-item .input:focus,
form .input:focus {
    border-color: #193573;
}

.gdlr-core-contact-form-7-item textarea.input,
form textarea.input {
    resize: vertical;
    min-height: 150px;
    height: auto;
}

.gdlr-core-contact-form-7-item form p,
form.tourmaster-form-field p {
    margin: 0 0 6px;
}

.gdlr-core-contact-form-7-item form p label,
form.tourmaster-form-field p label {
    display: none; /* template hides labels, uses placeholders */
}

.submit-button.tourmaster-button {
    margin-top: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 14px 40px;
    letter-spacing: 3px;
}

/* ── Skin / color tokens ─────────────────────────────────────── */
.gdlr-core-skin-title { color: #141414; }
.gdlr-core-skin-divider { background-color: #193573; }

a { color: #193573; }
a:hover { color: #0e2050; }

/* Rating stars */
.gdlr-core-rating i { color: #f4b942; }

/* Preloader */
.hotale-page-preload {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Amenities grid (flexbox, always equal top alignment) ─────── */
.townhouse-amenities-grid {
    display: flex;
    align-items: flex-start;
}

.townhouse-amenity-col {
    flex: 1;
    box-sizing: border-box;
}

@media only screen and (max-width: 767px) {
    .townhouse-amenities-grid {
        flex-direction: column;
        gap: 32px;
    }
    .townhouse-amenity-col {
        border-left: none !important;
        border-right: none !important;
        padding: 0 !important;
    }
}
