/**
 * Hotel Sonuraj - Master UI/UX Touch & Harmonious Border-Radius System
 * File: css/ui-ux-touch.css
 * Standardizes border-radius across all components according to purpose & adds mobile touch polish
 */

/* =========================================================
   1. GLOBAL TOUCH & INTERACTION POLISH
   ========================================================= */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: "Fraunces", serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
    font-family: "Fraunces", serif;
}

/* Touch-action and tap sizing for mobile interaction */
a,
button,
input,
select,
textarea,
.hero-chip-glass,
.navbar-toggle {
    touch-action: manipulation;
}

/* Smooth tactile feedback on touch/click */
.hero-btn-primary-pill,
.hero-btn-glass-pill,
.navbar-book,
.offcanvas-btn-primary,
.offcanvas-btn-whatsapp,
.policy-btn-gold,
.policy-btn-glass,
.reviews-arrows button,
.footer-social a,
.hero-chip-glass,
.room-card,
.gallery-card {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.22s ease,
        border-color 0.22s ease;
}

.hero-btn-primary-pill:active,
.hero-btn-glass-pill:active,
.navbar-book:active,
.offcanvas-btn-primary:active,
.offcanvas-btn-whatsapp:active,
.policy-btn-gold:active,
.policy-btn-glass:active {
    transform: scale(0.96) !important;
}

.reviews-arrows button:active,
.footer-social a:active,
#navbarToggle:active,
#offcanvasClose:active {
    transform: scale(0.90) !important;
}

/* Elegant focus rings */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary, #9f0201) !important;
    outline-offset: 3px !important;
}

/* =========================================================
   2. BORDER-RADIUS ACCORDING TO COMPONENT NEED
   ========================================================= */

/* --- TIER 1: FULL PILL (border-radius: 9999px) --- */
/* Used for floating bars, primary action buttons, status badges, chips, tags */
.navbar,
.navbar-container,
.hero-btn-primary-pill,
.hero-btn-glass-pill,
.navbar-book,
.offcanvas-btn-primary,
.offcanvas-btn-whatsapp,
.policy-btn-gold,
.policy-btn-glass,
.hero-badge-glass,
.hero-chip-glass,
.hero-glass-pill,
.policy-badge,
.section-eyebrow,
.pickup-ticker-item,
.reviews-counter,
.hero-scroll,
.badge-pill,
.btn-pill,
.room-badge,
.hero-actions a {
    border-radius: var(--radius-pill, 9999px) !important;
}

/* --- TIER 2: MASTER SHOWCASE & LARGE CARDS (border-radius: 28px - 32px) --- */
/* Used for hero card, room cards, dining section, form wrappers, booking blocks */
#dining,
.dining-section,
.dining-container,
.dining-images,
.dining-image-main,
.dining-image-main img,
.dining-decoration,
.hero-container,
.hero-visual-card,
.room-card,
.room-showcase-card,
.room-grid-card,
.about-feature-card,
.sonuraj-menu-card,
.dining-card,
.contact-form-card,
.contact-container,
.reviews-card,
.gallery-item-large,
.gallery-item-large img,
.attractions-featured,
.attractions-image-wrap,
.policy-nav-card,
.policy-card,
.policy-support-box,
.footer-booking {
    border-radius: 28px !important;
}

/* --- TIER 3: INNER MEDIA, IMAGES & SUB-CARDS (border-radius: 18px - 22px) --- */
/* Geometrically nested to match outer 28px container minus padding */
.hero-showcase-img,
.hero-glass-badge,
.room-card img,
.room-image-wrap,
.room-image-wrap img,
.dining-image-small,
.dining-image-small img,
.dining-category,
.gallery-card,
.gallery-card img,
.gallery-item,
.gallery-item img,
.gallery-overlay,
.attractions-image-wrap img,
.attractions-image-overlay,
.attraction-item,
.about-image-card img,
.dish-card,
.menu-item-img,
.contact-info-card,
.review-item,
.feature-box {
    border-radius: 20px !important;
}

/* Dining Category Icons & Highlight Icons */
.dining-category-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
    color: #9f0201 !important;
    background: linear-gradient(135deg, rgba(159, 2, 1, 0.08) 0%, rgba(243, 238, 231, 0.95) 100%) !important;
    border: 1.5px solid rgba(159, 2, 1, 0.22) !important;
    box-shadow: 0 4px 14px rgba(159, 2, 1, 0.08) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.dining-category:hover .dining-category-icon {
    background: linear-gradient(135deg, #780100 0%, #9f0201 100%) !important;
    color: #ffffff !important;
    border-color: #780100 !important;
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 8px 20px rgba(159, 2, 1, 0.30) !important;
}

/* --- TIER 4: FORM CONTROLS & INPUTS (border-radius: 14px) --- */
/* Ergonomic touch-friendly inputs with smooth luxury corners */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea,
.form-control,
.enquiry-input,
.enquiry-select,
.form-group input,
.form-group textarea,
.form-group select {
    border-radius: 14px !important;
    min-height: 48px;
    padding: 12px 18px;
    border: 1.5px solid rgba(159, 2, 1, 0.16) !important;
    background: #ffffff !important;
    font-size: 15px;
    transition: all 0.25s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color: #9f0201 !important;
    box-shadow: 0 0 0 4px rgba(159, 2, 1, 0.12), 0 4px 12px rgba(159, 2, 1, 0.06) !important;
    outline: none !important;
}

textarea,
.form-group textarea {
    min-height: 120px;
    border-radius: 16px !important;
}

/* About Highlight Icons */
.about-highlight-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 !important;
    color: #9f0201 !important;
    background: linear-gradient(135deg, rgba(159, 2, 1, 0.08) 0%, rgba(243, 238, 231, 0.95) 100%) !important;
    border: 1.5px solid rgba(159, 2, 1, 0.22) !important;
    box-shadow: 0 4px 14px rgba(159, 2, 1, 0.08) !important;
}

.about-highlight:hover .about-highlight-icon {
    background: linear-gradient(135deg, #780100 0%, #9f0201 100%) !important;
    color: #ffffff !important;
    border-color: #780100 !important;
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 8px 20px rgba(159, 2, 1, 0.30) !important;
}

/* --- TIER 5: CIRCULAR CONTROLS & AVATARS (border-radius: 50%) --- */
.navbar-logo-img,
.offcanvas-logo-img,
#navbarToggle,
#offcanvasClose,
#review-prev,
#review-next,
.reviews-arrows button,
.footer-social a,
.offcanvas-social a,
.hero-badge-pulse,
.badge-icon-star,
.badge-icon-car,
.contact-icon-circle,
.footer-contact-icon {
    border-radius: 50% !important;
}

/* --- TIER 6: OFFCANVAS MOBILE DRAWER & NAVIGATION --- */
.offcanvas-backdrop {
    z-index: 1500 !important;
}

.offcanvas-drawer {
    z-index: 1600 !important;
    border-radius: 28px 0 0 28px !important;
    box-shadow: -12px 0 40px rgba(61, 0, 0, 0.25) !important;
}

.offcanvas-nav-list a {
    border-radius: 14px !important;
    padding: 12px 16px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.offcanvas-nav-list a:active {
    transform: scale(0.98);
}

.offcanvas-nav-list a.active,
.offcanvas-nav-list a:hover {
    background: rgba(159, 2, 1, 0.08) !important;
    color: #9f0201 !important;
}

/* =========================================================
   3. UNIFIED LUXURY BRAND HERO OVERLAY (REPLACING GREEN TINTS)
   ========================================================= */
.about-page-hero .page-hero-overlay,
.rooms-page-hero .page-hero-overlay,
.contact-page-hero .page-hero-overlay,
.gallery-page-hero .page-hero-overlay,
.menu-page-hero .page-hero-overlay,
.room-detail-hero-overlay {
    background: linear-gradient(90deg,
            rgba(56, 0, 0, 0.88) 0%,
            rgba(159, 2, 1, 0.65) 55%,
            rgba(159, 2, 1, 0.28) 100%) !important;
}

@media (max-width: 768px) {

    .about-page-hero .page-hero-overlay,
    .rooms-page-hero .page-hero-overlay,
    .contact-page-hero .page-hero-overlay,
    .gallery-page-hero .page-hero-overlay,
    .menu-page-hero .page-hero-overlay,
    .room-detail-hero-overlay {
        background: linear-gradient(180deg,
                rgba(56, 0, 0, 0.35) 0%,
                rgba(159, 2, 1, 0.75) 50%,
                rgba(56, 0, 0, 0.94) 100%) !important;
    }

    .hero-container,
    .hero-visual-card,
    .room-card,
    .contact-form-card,
    .footer-booking {
        border-radius: 22px !important;
    }

    .hero-showcase-img,
    .room-card img,
    .gallery-card {
        border-radius: 16px !important;
    }
}

/* =========================================================
   4. LUXURY FLOATING TOUCH ACTION FOR MOBILE (TAP TO BOOK)
   ========================================================= */
.floating-touch-bar {
    display: none;
}

@media (max-width: 768px) {
    .floating-touch-bar {
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        z-index: 1050;
        display: flex;
        gap: 10px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 8px 12px;
        border-radius: var(--radius-pill, 9999px);
        box-shadow: 0 10px 30px rgba(159, 2, 1, 0.22), 0 0 0 1px rgba(159, 2, 1, 0.12);
        animation: floatSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .floating-touch-bar a {
        flex: 1;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        font-family: var(--font-body);
        font-size: 13.5px;
        font-weight: 700;
        text-decoration: none;
        border-radius: var(--radius-pill, 9999px);
        transition: transform 0.2s ease;
    }

    .floating-touch-bar a:active {
        transform: scale(0.95);
    }

    .floating-btn-call {
        background: #ffffff;
        color: #9f0201 !important;
        border: 1.5px solid rgba(159, 2, 1, 0.25);
    }

    .floating-btn-whatsapp {
        background: linear-gradient(135deg, #780100 0%, #9f0201 100%);
        color: #ffffff !important;
        box-shadow: 0 4px 14px rgba(159, 2, 1, 0.35);
    }

    @keyframes floatSlideUp {
        from {
            transform: translateY(100px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* ==========================================================================
   BOOTSTRAP ATTRACTIONS CAROUSEL ENHANCEMENTS
   ========================================================================== */
.attractions-featured,
#attractionsCarousel,
#attractionsCarousel .carousel-inner,
#attractionsCarousel .carousel-item {
    border-radius: 28px !important;
    overflow: hidden !important;
}

#attractionsCarousel {
    position: relative;
    box-shadow: 0 20px 50px -10px rgba(159, 2, 1, 0.22);
}

#attractionsCarousel .carousel-item {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

/* Glassmorphism Controls (Prev / Next Buttons) */
.attractions-carousel-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.40) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.30) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    opacity: 0.75;
    z-index: 15 !important;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.attractions-carousel-prev {
    left: 20px !important;
    right: auto !important;
}

.attractions-carousel-next {
    right: 20px !important;
    left: auto !important;
}

.attractions-carousel-btn:hover,
.attractions-carousel-btn:focus-visible {
    opacity: 1 !important;
    background: var(--primary, #9f0201) !important;
    border-color: var(--primary, #9f0201) !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.12) !important;
    box-shadow: 0 10px 25px rgba(159, 2, 1, 0.45) !important;
}

/* Luxury Pill Indicators */
.attractions-indicators {
    bottom: 20px !important;
    margin-bottom: 0 !important;
    gap: 8px !important;
    z-index: 15 !important;
}

.attractions-indicators button {
    width: 22px !important;
    height: 4px !important;
    border-radius: 9999px !important;
    border: none !important;
    background-color: rgba(255, 255, 255, 0.42) !important;
    opacity: 0.75 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.attractions-indicators button.active {
    width: 40px !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6) !important;
}

@media (max-width: 768px) {
    .attractions-carousel-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 13px !important;
        opacity: 0.85 !important;
    }

    .attractions-carousel-prev {
        left: 14px !important;
    }

    .attractions-carousel-next {
        right: 14px !important;
    }

    .attractions-indicators {
        bottom: 14px !important;
    }
}

/* ==========================================================================
   5. MASTER FOOTER POLISH & FINAL TOUCH
   ========================================================================== */
.site-footer {
    position: relative;
    width: 100%;
    background: linear-gradient(180deg, #480101 0%, #2b0000 48%, #140000 100%) !important;
    border-top: 1px solid rgba(243, 238, 231, 0.22) !important;
    border-radius: 36px 36px 0 0 !important;
    color: #f3eee7 !important;
    overflow: hidden;
    box-shadow: 0 -15px 45px rgba(24, 0, 0, 0.45);
    margin-top: 40px;
}

.footer-container {
    width: min(calc(100% - 60px), 1260px) !important;
    margin-inline: auto;
}

.footer-top {
    display: grid !important;
    grid-template-columns: 1.4fr 0.8fr 1.1fr 1.1fr !important;
    gap: 48px !important;
    padding: 75px 0 55px !important;
    align-items: start;
}

.footer-logo {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-size: 26px !important;
    font-weight: 700;
    color: #ffffff !important;
    line-height: 1;
}

.footer-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(243, 238, 231, 0.6);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.footer-logo-accent {
    color: #f5cf92 !important;
    font-style: italic;
}

.footer-description {
    font-size: 13.5px !important;
    line-height: 1.75 !important;
    color: rgba(243, 238, 231, 0.80) !important;
    margin: 18px 0 24px !important;
    max-width: 320px;
}

/* Social Buttons */
.footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social a {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.20) !important;
    color: #f3eee7 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px !important;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.footer-social a:hover {
    background: #f5cf92 !important;
    border-color: #f5cf92 !important;
    color: #480101 !important;
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* Footer Column Headings */
.footer-column h3 {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    color: #f5cf92 !important;
    margin: 0 0 20px !important;
}

/* Navigation Links */
.footer-column ul {
    gap: 11px !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li a {
    font-size: 14px !important;
    color: rgba(243, 238, 231, 0.78) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.25s ease !important;
}

.footer-column li a i {
    font-size: 10px;
    opacity: 0.6;
    transition: transform 0.25s ease;
}

.footer-column li a:hover {
    color: #ffffff !important;
    padding-left: 5px !important;
}

.footer-column li a:hover i {
    opacity: 1;
    transform: translateX(3px);
    color: #f5cf92;
}

/* Contact Items */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px !important;
    color: rgba(243, 238, 231, 0.85) !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    text-decoration: none;
    transition: color 0.25s ease;
}

.footer-contact-item:hover {
    color: #f5cf92 !important;
}

.footer-contact-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #f5cf92 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px !important;
}

/* Booking Card Final Touch */
.footer-booking {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 26px !important;
    padding: 28px 24px !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.40) !important;
}

.footer-booking-eyebrow {
    font-size: 11px !important;
    letter-spacing: 2px !important;
    color: #f5cf92 !important;
    font-weight: 700 !important;
}

.footer-booking h3 {
    font-size: 24px !important;
    line-height: 1.25 !important;
    margin: 10px 0 20px !important;
    color: #ffffff !important;
}

.footer-booking h3 span {
    color: #f3eee7 !important;
    font-style: italic;
}

.footer-whatsapp {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    border-radius: var(--radius-pill, 9999px) !important;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 13px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35) !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.footer-whatsapp:hover {
    background: linear-gradient(135deg, #1ebe5d 0%, #0d6e62 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45) !important;
}

/* Footer Divider */
.footer-divider {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent) !important;
    height: 1px !important;
    margin: 10px 0 0 !important;
}

/* Footer Bottom Final Touch */
.footer-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 24px 0 28px !important;
    gap: 20px !important;
}

.footer-bottom p {
    font-size: 12.5px !important;
    color: rgba(243, 238, 231, 0.70) !important;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-bottom-links a {
    font-size: 12.5px !important;
    color: rgba(243, 238, 231, 0.76) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: #f5cf92 !important;
}

.footer-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f3eee7;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--radius-pill, 9999px);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.footer-back-to-top:hover {
    background: #f5cf92;
    color: #480101;
    border-color: #f5cf92;
    transform: translateY(-2px);
}

.footer-credit {
    font-size: 12px !important;
    color: rgba(243, 238, 231, 0.65) !important;
}

.footer-credit i {
    color: #e63946 !important;
    margin: 0 4px;
}

/* Responsive Footer Polish */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
    }
}

@media (max-width: 768px) {
    .site-footer {
        border-radius: 28px 28px 0 0 !important;
        padding-bottom: 110px !important; /* Prevents floating touch bar overlap */
    }

    .footer-container {
        width: calc(100% - 36px) !important;
    }

    .footer-top {
        grid-template-columns: 1fr !important;
        gap: 36px !important;
        padding: 50px 0 35px !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
    }
}