/* ============================================================
   Technopark Hotel — Custom CSS Overrides
   ============================================================ */

/* ── Hero Banner: 100vh when screen < 1000px, else 1000px ── */
.hero-carousel {
    position: relative;
}
.hero-carousel .image-wrapper {
    height: 100vh;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    /* No background needed — .hero-bg-zoom handles it */
    background-image: none !important;
}
@media (min-height: 1000px) {
    .hero-carousel .image-wrapper {
        height: 1000px;
        min-height: 1000px;
    }
}

/* ── Hero background zoom element ── */
.hero-bg-zoom {
    position: absolute;
    inset: -8% -8%;
    background-size: cover;
    background-position: center 50%;
    z-index: 0;
    will-change: transform, background-position-y;
    transform: scale(1.06);
    transition: transform 6s ease-out;
}
/* When a slide becomes active, smoothly zoom to normal — no flicker */
.hero-carousel .carousel-item.active .hero-bg-zoom {
    transform: scale(1.00);
}

/* Keep overlay and content above the bg-zoom div */
.hero-carousel .image-wrapper::before { z-index: 1; }
.hero-carousel .bg-content { position: relative; z-index: 2; }

/* ── Booking form: float 200px above the bottom of the hero ── */
section#checkRooms.check-room {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 30;
    width: 100%;
}

/* ── Overlay: 50% dark translucent for ALL bg-image sections ── */
.bg-overlay::before {
    opacity: 0.50 !important;
}
.bg-overlay-300::before { opacity: 0.50 !important; }
.bg-overlay-400::before { opacity: 0.50 !important; }
.bg-overlay-500::before { opacity: 0.50 !important; }
.bg-overlay-700::before { opacity: 0.50 !important; }

/* ── Sub-banner on inner pages: 400px, vertically & horizontally centered ── */
.page-sub-banner {
    height: 400px !important;
    min-height: 400px !important;
    background-size: cover !important;
    background-position: center 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    will-change: background-position;
}
/* Override theme: bg-content fills 100% height, which kills flex centering */
.page-sub-banner .bg-content {
    height: auto !important;
    width: 100%;
    text-align: center;
}
@media (max-width: 991.98px) {
    .page-sub-banner { height: 300px !important; min-height: 300px !important; }
}
@media (max-width: 575.98px) {
    .page-sub-banner { height: 220px !important; min-height: 220px !important; }
}

/* ── Discover section: cover ── */
#filler-quote {
    background-size: cover !important;
    background-position: center 50% !important;
    will-change: background-position;
}

/* ── Rooms slider: equal height, cover ── */
.room-slider-1 .card-img {
    height: 500px;
    width: 100%;
    object-fit: cover;
    object-position: center center;
}

/* ── Primary color: #0876B5 ── */
:root {
    --bs-primary: #0876B5;
    --bs-primary-rgb: 8, 118, 181;
    --bs-link-color: #0876B5;
    --bs-link-color-rgb: 8, 118, 181;
    --bs-link-hover-color: #065a8a;
}
.btn-primary,
.btn-primary:focus,
.btn-primary:active {
    --bs-btn-bg: #0876B5;
    --bs-btn-border-color: #0876B5;
    --bs-btn-hover-bg: #065a8a;
    --bs-btn-hover-border-color: #065a8a;
    --bs-btn-active-bg: #054f7a;
    --bs-btn-active-border-color: #054f7a;
    background-color: #0876B5 !important;
    border-color: #0876B5 !important;
}
.btn-primary:hover { background-color: #065a8a !important; border-color: #065a8a !important; }
.btn-outline-primary {
    --bs-btn-color: #0876B5;
    --bs-btn-border-color: #0876B5;
    --bs-btn-hover-bg: #0876B5;
    --bs-btn-hover-border-color: #0876B5;
    color: #0876B5 !important;
    border-color: #0876B5 !important;
}
.btn-outline-primary:hover { background-color: #0876B5 !important; color: #fff !important; }
.text-primary { color: #0876B5 !important; }
.bg-primary { background-color: #0876B5 !important; }
a:not(.btn):not(.nav-link):not(.card-link):not(.navbar-brand) { color: #0876B5; }
/* Splide arrow background */
.splide__arrow { background: #0876B5 !important; }
.splide__arrow svg { fill: #fff !important; }

/* ── Services cards: 2×2 grid, image+text side by side ── */
#extra-services .svc-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
#extra-services .svc-card .row { flex: 1; min-height: 220px; }
#extra-services .svc-img-col {
    overflow: hidden;
    min-height: 200px;
}
#extra-services .svc-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    min-height: 200px;
}
#extra-services .svc-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.75rem;
}
#extra-services .svc-placeholder {
    background: var(--bs-secondary-bg);
    border: 2px dashed var(--bs-border-color) !important;
    opacity: 0.5;
}
#extra-services .svc-placeholder .svc-img-col {
    background: var(--bs-tertiary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Attractions: compact cards, equal-height images ── */
#attractions .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
#attractions figure {
    height: 240px;
    overflow: hidden;
    margin-bottom: 0;
    border-radius: 0.5rem 0.5rem 0 0;
}
#attractions figure img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center center;
}
#attractions .card-body {
    padding: 1rem 1.25rem;
}

/* ── Attraction modal: image left, content right, fits viewport ── */
.modal-attraction .modal-dialog { max-width: 780px; }
.modal-attraction .modal-header { border-bottom: 0; padding-bottom: 0; }
.modal-attraction .modal-body { padding: 0; }
.modal-attraction .modal-img-col {
    min-height: 280px;
    max-height: 380px;
    overflow: hidden;
}
.modal-attraction .modal-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.modal-attraction .modal-text-col {
    padding: 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.modal-attraction .attraction-distance-badge {
    display: inline-block;
    background: var(--bs-primary);
    color: #fff;
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ── Promos Splide carousel: full image, no crop ── */
#promos-section .promo-splide .splide__slide {
    display: flex;
    flex-direction: column;
    padding: 0 0.5rem;
}
#promos-section .promo-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 0;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
#promos-section .promo-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1; /* tallest images are 1080×1080 — container matches their height at any card width */
    background: #f4f4f4;
    position: relative;
    overflow: hidden;
}
#promos-section .promo-img-wrap a {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
#promos-section .promo-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    cursor: zoom-in;
}
#promos-section .promo-card .card-body {
    padding: 1.25rem;
    flex: 1;
}

/* ── Promo popup modal ── */
#promoPopupModal .modal-dialog {
    max-width: 680px;
}
#promoPopupModal .modal-content {
    background: transparent;
    border: 0;
    box-shadow: none;
}
#promoPopupModal .popup-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
#promoPopupModal .popup-close-btn:hover {
    background: rgba(0,0,0,0.9);
}
#promoPopupModal .modal-body {
    padding: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}
#promoPopupModal .popup-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #f4f4f4;
}
/* Backdrop 30% */
#promoPopupModal ~ .modal-backdrop,
.modal-backdrop.show { opacity: 0.30 !important; }

/* ── Footer social icons: larger ── */
#footer .follow-us .list-inline-item a svg,
#footer ul.list-inline .list-inline-item a svg {
    width: 28px;
    height: 28px;
}

/* ── Booking sidebar: contact info block — primary bg, white text ── */
.booking-contact-info {
    background: var(--bs-primary);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}
.booking-contact-info h5,
.booking-contact-info p,
.booking-contact-info small,
.booking-contact-info span,
.booking-contact-info i {
    color: #fff !important;
}
.booking-contact-info .text-body-secondary { color: rgba(255,255,255,.75) !important; }

/* ── Footer copyright: centered ── */
#footer .footer-copyright {
    text-align: center;
    padding-top: 1rem;
}
#footer .footer-copyright p { margin-bottom: 0; }

/* ── Task 1: Booking form promo code placeholder white ── */
.check-room input::placeholder { color: rgba(255,255,255,0.75) !important; }
.check-room input[placeholder]  { color: rgba(255,255,255,0.75) !important; }

/* ── Task 5: Footer — all text white, links white, hover stays primary ── */
#footer,
#footer p,
#footer span,
#footer li,
#footer small,
#footer h5,
#footer h6,
#footer em,
#footer .text-body-tertiary,
#footer .text-body-secondary,
#footer .text-body-emphasis {
    color: #fff !important;
}
#footer a.nav-link,
#footer a.text-body {
    color: #fff !important;
}
#footer a.nav-link:hover,
#footer .link-hover-primary:hover,
#footer a.text-body:hover {
    color: var(--bs-primary) !important;
}
#footer a.text-primary,
#footer .text-primary {
    color: var(--bs-primary) !important;
}

/* ── Contact page: icon-only social buttons ── */
.contact-social-btn {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    flex-shrink: 0;
}
.contact-social-btn svg { display: block; }

/* ── Meeting page: services "Maybe You Are Interested" carousel ── */
.meeting-svc-wrap { padding: 0 3rem; }
.meeting-svc-card { min-height: 220px; border-color: var(--bs-border-color-translucent) !important; }
.meeting-svc-img-col { overflow: hidden; min-height: 220px; }
.meeting-svc-splide .splide__arrow {
    background: rgba(0,0,0,.12) !important;
    box-shadow: none !important;
    border: 1px solid rgba(0,0,0,.15);
    width: 2.5rem;
    height: 2.5rem;
}
.meeting-svc-splide .splide__arrow:hover { background: rgba(0,0,0,.22) !important; }
.meeting-svc-splide .splide__arrow svg { fill: #555 !important; }
.meeting-svc-splide .splide__arrow--prev { left: -3rem; }
.meeting-svc-splide .splide__arrow--next { right: -3rem; }
.meeting-svc-splide .splide__pagination { margin-top: 1.5rem; }
.meeting-svc-splide .splide__pagination__page { background: rgba(0,0,0,.2); }
.meeting-svc-splide .splide__pagination__page.is-active {
    background: var(--bs-primary);
    transform: scale(1.2);
}
@media (max-width: 767px) {
    .meeting-svc-wrap { padding: 0 2.25rem; }
    .meeting-svc-splide .splide__arrow--prev { left: -2.25rem; }
    .meeting-svc-splide .splide__arrow--next { right: -2.25rem; }
}

/* ── Task 6: Body text dark gray on light backgrounds ── */
:root {
    --bs-secondary-color: #494949;
}
.text-body-secondary { color: #0f0f0f !important; }
[data-bs-theme="dark"] .text-body-secondary { color: rgba(255,255,255,0.72) !important; }

/* ── Testimonials section — full-width, centered, 1 per slide ── */
#testimonials {
    background: #0876B5 !important;
    position: relative;
}
/* Splide root fills the section with generous vertical padding */
#testimonials .testimonial-splide {
    padding: 4rem 0 5rem;
}
/* Track: no overflow clip so slide is full-width */
#testimonials .splide__track {
    overflow: visible;
}
/* Each slide centered with readable max-width */
#testimonials .splide__list {
    display: flex;
    align-items: center;
}
.testimonial-slide-inner {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
}
/* Quote text */
.testimonial-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.85;
    color: #fff !important;
    font-weight: 400;
}
/* 5 stars */
.testimonial-stars {
    color: #fff;
    font-size: 1.4rem;
    letter-spacing: 4px;
}
/* Customer name */
.testimonial-name {
    color: rgba(255,255,255,.85);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
/* Arrows — positioned at the vertical center of the section */
#testimonials .splide__arrow {
    background: transparent !important;
    box-shadow: none !important;
    top: 50%;
    width: 2.5rem;
    height: 2.5rem;
}
#testimonials .splide__arrow--prev { left: 1rem; }
#testimonials .splide__arrow--next { right: 1rem; }
#testimonials .splide__arrow svg { fill: #fff !important; width: 1.1rem; height: 1.1rem; }
/* Pagination dots */
.testimonial-pagination {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    justify-content: center;
}
#testimonials .splide__pagination__page {
    background: rgba(255,255,255,.4);
    width: 10px;
    height: 10px;
}
#testimonials .splide__pagination__page.is-active {
    background: #fff;
    transform: scale(1.2);
}
