/* ==========================================================
   Priyadarshika - UI enhancements (loaded after main.css)
   Animations, hover effects, floating actions, responsive polish
   ========================================================== */

:root {
    --pd-accent: var(--main-600, hsl(39, 100%, 69%));
    --pd-accent-dark: #b8860b;
    --pd-ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; }
::selection { background: var(--pd-accent); color: #111; }
img { max-width: 100%; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--pd-accent);
    outline-offset: 3px;
}

/* ---------- Scroll reveal (driven by enhance.js) ---------- */
.pd-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .8s var(--pd-ease), transform .8s var(--pd-ease);
    transition-delay: var(--pd-delay, 0ms);
}
.pd-reveal.pd-in { opacity: 1; transform: none; }

/* ---------- Room cards ---------- */
.room-card .service-two-wrapper {
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    transition: transform .45s var(--pd-ease), box-shadow .45s var(--pd-ease);
    position: relative;
    text-align: center;
}

.room-card .service-two-wrapper::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pd-accent), #fff3d1, var(--pd-accent));
    transform: scaleX(0);
    transition: transform .5s var(--pd-ease);
}

.room-card .service-two-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 40px rgba(0, 0, 0, .15);
}
.room-card .service-two-wrapper:hover::after { transform: scaleX(1); }

.room-card .service-two-thumb { overflow: hidden; margin-bottom: 20px !important; }
.room-card .service-two-thumb img {
    border-radius: 20px 20px 0 0 !important;
    transition: transform .8s var(--pd-ease), filter .5s ease;
}
.room-card .service-two-wrapper:hover .service-two-thumb img {
    transform: scale(1.1);
    filter: brightness(1.05) saturate(1.1);
}

.room-card .service-two-content h4 a { transition: color .3s ease, letter-spacing .3s ease; }
.room-card .service-two-wrapper:hover .service-two-content h4 a { color: var(--pd-accent-dark); }
.room-card .service-two-content p { color: #5b5b5b; line-height: 1.7; }

/* ---------- Buttons: shine sweep + lift ---------- */
.tw-btn-hover-black, .tw-btn-hover-white, .tw-btn-hover-yellow {
    position: relative;
    overflow: hidden;
    transition: transform .3s var(--pd-ease), box-shadow .3s ease;
}
.tw-btn-hover-black::after, .tw-btn-hover-white::after, .tw-btn-hover-yellow::after {
    content: "";
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}
.tw-btn-hover-black:hover, .tw-btn-hover-white:hover, .tw-btn-hover-yellow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}
.tw-btn-hover-black:hover::after, .tw-btn-hover-white:hover::after, .tw-btn-hover-yellow:hover::after {
    left: 130%;
    transition: left .7s ease;
}
.tw-btn-hover-black .ph, .tw-btn-hover-white .ph, .tw-btn-hover-yellow .ph { transition: transform .3s ease; }
.tw-btn-hover-black:hover .ph, .tw-btn-hover-white:hover .ph, .tw-btn-hover-yellow:hover .ph {
    transform: translate(3px, -3px);
}

/* ---------- Section headings: accent line ---------- */
.section-two-wrapper .section-two-subtitle {
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-two-wrapper .section-two-subtitle::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 56px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--pd-accent), transparent);
    transform: translateX(-50%);
    animation: pdLinePulse 3s ease-in-out infinite;
}
@keyframes pdLinePulse {
    0%, 100% { width: 36px; }
    50% { width: 92px; }
}

/* ---------- Images: soft zoom on hover ---------- */
.service-two-thumb, .gallery-two-thumb, .about-two-thumb, .seqrimg { overflow: hidden; border-radius: 16px; }
.service-two-thumb img, .gallery-two-thumb img, .seqrimg img, .igqroom, .detqroomimg {
    transition: transform .8s var(--pd-ease);
}
.service-two-thumb:hover img, .gallery-two-thumb:hover img, .seqrimg:hover img,
.igqroom:hover, .detqroomimg:hover { transform: scale(1.06); }
.igqroom, .detqroomimg { border-radius: 16px; }

/* ---------- CTA sections ---------- */
.cta-area .cta-title { text-shadow: 0 4px 24px rgba(0, 0, 0, .45); }
.cta-area::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 120%, rgba(255, 201, 107, .25), transparent 60%);
    z-index: -1;
    animation: pdGlow 6s ease-in-out infinite alternate;
}
@keyframes pdGlow { from { opacity: .4; } to { opacity: 1; } }

/* ---------- Footer links ---------- */
.footer ul li a { display: inline-block; transition: transform .3s ease, color .3s ease; }
.footer ul li a:hover { transform: translateX(6px); }

/* ---------- Floating call / WhatsApp buttons (bottom-right; tabs on mobile) ---------- */
.pd-float {
    position: fixed;
    right: 13px;
    bottom: 76px;               /* sits above the scroll-to-top button */
    z-index: 9980;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.pd-float a {
    position: relative;
    height: 52px;
    min-width: 52px;
    display: flex;
    flex-direction: row-reverse;   /* icon stays on the right, label grows to the left */
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0 15px;
    border-radius: 30px;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
    transition: transform .3s var(--pd-ease), gap .3s ease, padding .3s ease;
    animation: pdBounceIn .8s var(--pd-ease) both;
}
.pd-float a span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    transition: max-width .35s ease;
}
.pd-float a:hover, .pd-float a:focus-visible { color: #fff; transform: translateY(-3px); gap: 10px; padding-left: 20px; }
.pd-float a:hover span, .pd-float a:focus-visible span { max-width: 110px; }
.pd-float a::before {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    background: inherit;
    z-index: -1;
    animation: pdPulse 2.2s ease-out infinite;
}
.pd-float .pd-wa { background: #25d366; animation-delay: 1.2s; }
.pd-float .pd-call { background: #c9962b; animation-delay: 1.4s; }
.pd-float .pd-call::before { animation-delay: .6s; }

@keyframes pdPulse {
    0% { transform: scale(1); opacity: .55; }
    100% { transform: scale(1.45, 1.7); opacity: 0; }
}
@keyframes pdBounceIn {
    0% { opacity: 0; transform: translateY(60px) scale(.6); }
    70% { transform: translateY(-6px) scale(1.05); }
    100% { opacity: 1; transform: none; }
}

/* Mobile: two tabs side by side along the bottom edge */
@media (max-width: 767px) {
    .pd-float {
        left: 0; right: 0; bottom: 0;
        flex-direction: row;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 -6px 22px rgba(0, 0, 0, .22);
    }
    .pd-float a {
        flex: 1 1 50%;
        height: 54px;
        border-radius: 0;
        flex-direction: row;
        gap: 10px;
        padding: 0 10px;
        font-size: 20px;
        box-shadow: none;
        animation: pdSlideUp .6s var(--pd-ease) both;
    }
    .pd-float a span { max-width: none; font-size: 15px; text-transform: uppercase; letter-spacing: .6px; }
    .pd-float a:hover, .pd-float a:focus-visible { transform: none; gap: 10px; padding-left: 10px; }
    .pd-float a::before { display: none; }
    .pd-float .pd-wa { border-right: 1px solid rgba(255, 255, 255, .35); }
    .pd-float .pd-call { color: #1b1a17; background: var(--main-600, #ffc96b); }
    .pd-float .pd-call:hover { color: #000; }
    body:has(.pd-float) { padding-bottom: 54px; }
    body:has(.pd-float) .progress-wrap { inset-block-end: 70px !important; inset-inline-end: 14px !important; }
}
@keyframes pdSlideUp { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Responsive polish ---------- */
@media (max-width: 991px) {
    .py-120 { padding-block: 70px !important; }
    .pt-120 { padding-top: 70px !important; }
    .pb-120 { padding-bottom: 70px !important; }
    .cta-area { margin-inline: 16px !important; }
}

@media (max-width: 575px) {
    .py-120 { padding-block: 50px !important; }
    .pt-120 { padding-top: 50px !important; }
    .pb-120 { padding-bottom: 50px !important; }
    .cta-area { margin-inline: 10px !important; border-radius: 20px !important; }
    .room-card .service-two-wrapper:hover { transform: translateY(-4px); }
    .btn.p-1 { display: block; text-align: center; }
}

@media (hover: none) {
    .room-card .service-two-wrapper:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pd-reveal { opacity: 1; transform: none; transition: none; }
    .pd-float a, .pd-float a::before, .cta-area::after,
    .section-two-wrapper .section-two-subtitle::after { animation: none; }
}

/* ---------- Enquiry form message ---------- */
.pd-enq-msg { display: none; margin-bottom: 18px; padding: 12px 16px; border-radius: 10px; font-weight: 500; font-size: 15px; }
.pd-enq-msg--ok, .pd-enq-msg--err { display: block; animation: pdBounceIn .5s var(--pd-ease) both; }
.pd-enq-msg--ok { background: #dcf5ea; color: #137a52; }
.pd-enq-msg--err { background: #fde3e8; color: #a3202f; }

/* Floating buttons: hidden until the hero has been scrolled past (class set by enhance.js) */
.pd-js .pd-float {
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    pointer-events: none;
    transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .6s;
}
.pd-js.pd-past-hero .pd-float {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition: opacity .5s ease, transform .6s cubic-bezier(.16, 1, .3, 1), visibility 0s;
}
@media (max-width: 767px) {
    .pd-js .pd-float { transform: translateY(100%); }
    .pd-js.pd-past-hero .pd-float { transform: none; }
    /* no empty gap under the page until the bar appears */
    body:has(.pd-float) { padding-bottom: 0; }
    .pd-past-hero body:has(.pd-float) { padding-bottom: 54px; }
}
@media (prefers-reduced-motion: reduce) {
    .pd-js .pd-float, .pd-js.pd-past-hero .pd-float { transition: opacity .2s; transform: none; }
}

/* ---------- Uniform gallery tiles: same size for every image ---------- */
.gallery-home .gallery-two-thumb img,
.gallery-grid-link img {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
}

/* ---------- Footer: all rooms in two rows ---------- */
.footer-rooms { margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .15); }
.footer-rooms h4 { margin-bottom: 18px; }
.footer-rooms__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;     /* 5 per row = 2 rows for 10 rooms */
}
.footer-rooms__list a {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 100%; min-height: 46px; padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; color: #fff; text-align: center; line-height: 1.25; font-size: 15px;
    text-decoration: none; transition: background .3s, color .3s, transform .3s, border-color .3s;
}
.footer-rooms__list a i { color: var(--main-600, #ffc96b); font-size: 17px; flex: 0 0 auto; transition: color .3s; }
.footer-rooms__list a:hover { background: var(--main-600, #ffc96b); border-color: var(--main-600, #ffc96b); color: #1b1a17; transform: translateY(-3px); }
.footer-rooms__list a:hover i { color: #1b1a17; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact li i { color: var(--main-600, #ffc96b); font-size: 20px; margin-top: 3px; flex: 0 0 auto; }
@media (max-width: 991px) {
    .footer-rooms__list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 575px) {
    .footer-rooms { margin-top: 30px; padding-top: 24px; }
    .footer-rooms__list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .footer-rooms__list a { font-size: 13.5px; padding: 9px 8px; min-height: 44px; }
}

/* ---------- Room pictures: one shape everywhere ---------- */
.room-card .service-two-thumb img.room-thumb-img,
.room-details-sideber .room-detail-img,
.igqroom, .detqroomimg {
    width: 100%;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

/* the template draws a vertical divider through the whole footer; with the rooms band underneath it just cuts through the buttons */
.footer-center-space::before { display: none; }
