/* ============================================
   DECABAYAN RESORT – Custom Supplemental CSS
   ============================================ */

/* ---- Global: Prevent Horizontal Scroll ---- */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Owl Carousel internal tracks must not leak outside their container */
.owl-carousel,
.owl-stage-outer {
    overflow: hidden !important;
}

/* ---- Highlights (Why Choose Section) ---- */
.deca-highlights {
    padding: 60px 0;
    background: #f9f7f4;
}
.highlights-row {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
}
.highlight-item {
    background: #fff;
    border-radius: 10px;
    padding: 34px 28px;
    text-align: center;
    margin-bottom: 28px;
    box-shadow: 0 2px 16px rgba(60,40,20,.06);
    transition: box-shadow .25s;
    height: calc(100% - 28px);
}
.highlight-item:hover {
    box-shadow: 0 6px 32px rgba(60,40,20,.13);
}
.highlight-icon {
    font-size: 2.3em;
    color: #8b5d33;
    margin-bottom: 14px;
}
.highlight-item h4 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2a2a2a;
}
.highlight-item p {
    font-size: .93em;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ---- Room Amenities (inline checklist) ---- */
.deca-amenities {
    margin: 18px 0;
}
.deca-amenities ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
}
.deca-amenities ul li {
    padding: 5px 0;
    font-size: .93em;
    color: #3a3a3a;
}
.deca-amenities ul li i {
    color: #8b5d33;
    margin-right: 7px;
}

/* ---- Room Table (Capacity Summary) ---- */
.deca-room-summary {
    background: #f9f7f4;
    padding: 58px 0 50px;
}
.room-table-wrap {
    overflow-x: auto;
    margin-top: 30px;
}
.room-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(60,40,20,.07);
}
.room-table thead tr {
    background: #8b5d33;
    color: #fff;
}
.room-table th,
.room-table td {
    padding: 15px 22px;
    text-align: left;
    font-size: .96em;
    border-bottom: 1px solid #f0ebe4;
}
.room-table tbody tr:last-child td {
    border-bottom: none;
}
.room-table tbody tr:hover {
    background: #fdf8f3;
}

/* ---- Common Amenities Icons ---- */
.deca-common-amenities {
    padding: 80px 0 60px;
    background: #fff;
    overflow: hidden; /* Clears floats and ensures container expands to full height */
    position: relative;
    z-index: 2;
}
.amenities-icons-row {
    margin-top: 30px;
}
.amenity-icon-item {
    text-align: center;
    padding: 24px 20px;
}
.amenity-icon-item i {
    font-size: 2.4em;
    color: #8b5d33;
    margin-bottom: 12px;
}
.amenity-icon-item p {
    font-size: .97em;
    font-weight: 600;
    color: #2a2a2a;
    margin: 0;
}

/* ---- Facilities Page – Row Layout ---- */
.facilities-container {
    padding: 60px 0;
}
.facilities-rows {
    margin-top: 30px;
}
.facilities-row {
    margin-bottom: 56px;
    padding-bottom: 50px;
    border-bottom: 1px solid #f0ebe4;
}
.facilities-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.fc-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(60,40,20,.10);
}
.fc-img img {
    display: block;
    width: 100%;
}
.fac-detail {
    background: #fff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Soft premium shadow */
    position: relative;
    z-index: 5; /* Ensure text card stays clearly above the image */
    transition: transform 0.3s ease;
}
.fac-detail:hover {
    transform: translateY(-5px); /* Subtle micro-interaction */
}
.fac-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}
.fac-title .fac-top {
    color: #8b5d33;
    font-size: 0.8em;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.fac-detail p {
    font-size: 1em;
    color: #4a4a4a;
    line-height: 1.8;
}

/* Staggered overlapping effect for desktop */
@media (min-width: 992px) {
    /* For odd rows (image left, text right) */
    .facilities-row:nth-child(odd) .fac-detail {
        margin-left: -100px; /* Controlled overlap */
    }
    /* For even rows (image right, text left) */
    .facilities-row:nth-child(even) .fac-detail {
        margin-right: -100px; /* Controlled overlap */
    }
}

/* Responsiveness: Remove overlap on mobile to prevent clipping */
@media (max-width: 991px) {
    .fac-detail {
        margin: 20px 15px 0 !important;
        padding: 25px 20px;
    }
    .facilities-row {
        margin-bottom: 40px;
    }
}

/* ---- Room Amenities Grid (Facilities Page) ---- */
.deca-room-amenities-section {
    padding: 60px 0 40px;
    background: #f9f7f4;
    overflow: hidden; /* Ensures all amenity cards are fully contained and white background expands */
    position: relative;
    z-index: 2;
}
.amenities-grid {
    margin-top: 30px;
}
.amenity-item-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px 22px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 2px 16px rgba(60,40,20,.06);
    transition: box-shadow .25s, transform .25s;
}
.amenity-item-card:hover {
    box-shadow: 0 6px 28px rgba(60,40,20,.13);
    transform: translateY(-3px);
}
.amenity-icon i {
    font-size: 2.5em;
    color: #8b5d33;
    margin-bottom: 14px;
    display: block;
}
.amenity-item-card h4 {
    font-size: 1em;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 8px;
}
.amenity-item-card p {
    font-size: .92em;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ---- Contact Page ---- */
.contact-container {
    padding: 80px 0 120px !important;
}
.deca-contact-row {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}
.reach-us-wrap {
    background: #1a1a1a !important; /* Premium dark background instead of red */
    padding: 35px 40px !important;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.reach-us-wrap .rght-txt {
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.reach-us-wrap .contact-item {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.reach-us-wrap .contact-item:last-child {
    border-bottom: none;
}

.reach-us-wrap p, 
.reach-us-wrap .c-item2 p,
.reach-us-wrap .c-item2 a {
    color: rgba(255,255,255,0.8) !important;
}

.reach-us-wrap .c-item2 a:hover {
    color: #fff !important;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}
.con-left .cicon {
    width: 36px;
    height: auto;
    margin-top: 4px;
}
.c-item2 p {
    margin: 0;
    font-size: .95em;
    color: #444;
    line-height: 1.7;
}
.c-item2 a {
    color: #8b5d33;
    text-decoration: none;
}
.c-item2 a:hover { text-decoration: underline; }

.deca-whatsapp-book {
    background: #25d366;
    border-radius: 10px;
    padding: 28px 26px;
    margin-top: 28px;
    color: #fff;
}
.deca-whatsapp-book h4 {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}
.deca-whatsapp-book p {
    font-size: .93em;
    margin-bottom: 16px;
    color: rgba(255,255,255,.9);
}
.deca-whatsapp-btn {
    display: inline-block;
    background: #fff;
    color: #25d366 !important;
    font-weight: 700;
    font-size: .97em;
    padding: 11px 26px;
    border-radius: 50px;
    text-decoration: none !important;
    transition: background .2s, color .2s;
}
.deca-whatsapp-btn i {
    margin-right: 7px;
    font-size: 1.1em;
}
.deca-whatsapp-btn:hover {
    background: #e5f9ed;
}

/* Enquiry Form */
.enq-span {
    font-size: .88em;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8b5d33;
    display: block;
    margin-bottom: 6px;
}
.en-head2 {
    font-size: 1.9em;
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 12px;
    line-height: 1.3;
}
.enq-txt p {
    font-size: .96em;
    color: #666;
    margin-bottom: 22px;
}
.contact-form .input-box {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: .95em;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    margin-bottom: 14px;
    transition: border-color .2s;
    display: block;
}
.contact-form .input-box:focus {
    outline: none;
    border-color: #8b5d33;
    background: #fff;
}
.submit-btn {
    background: #8b5d33;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    margin-top: 6px;
}
.submit-btn:hover {
    background: #6e4726;
    transform: translateY(-2px);
}
.map-box {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(60,40,20,.10);
}

/* ---- Villa page tweaks ---- */
.villa-container2 {
    padding: 60px 0;
}
.villa-divs .villa-rows {
    margin-bottom: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid #f0ebe4;
}
.villa-divs .villa-rows:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.villa-img {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(60,40,20,.10);
}
.v-span {
    font-size: .82em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8b5d33;
    background: rgba(139,93,51,.1);
    padding: 5px 14px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 12px;
}
.villa-h {
    font-size: 1.8em;
    font-weight: 700;
    color: #2a2a2a;
    line-height: 1.2;
    margin-bottom: 16px;
}
.villa-h span { color: #8b5d33; }
.villa-det { padding: 16px 22px; }
.villa-det p {
    font-size: .96em;
    color: #555;
    line-height: 1.8;
    margin-bottom: 14px;
}
.img-icon2 {
    max-width: 80px;
    margin-bottom: 14px;
    display: block;
}
.buk-btn2 {
    display: inline-block;
    background: #8b5d33;
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: .95em;
    font-weight: 700;
    letter-spacing: .5px;
    transition: background .2s, transform .15s;
    margin-top: 14px;
}
.buk-btn2:hover {
    background: #6e4726;
    transform: translateY(-2px);
}

/* ============================================================
   IMAGE CROPPING & OBJECT-FIT — Proper focal-point control
   ============================================================ */

/* --- Hero/Banner images --- */
.banner-wraper .desk-view,
.banner-wraper .mob-view,
.banner-wraper img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
}

/* Banner slide-specific focal points */
.banner-slide-entrance img  { object-position: center 60%; }
.banner-slide-pool img      { object-position: center 45%; }
.banner-slide-night img     { object-position: center 40%; }
.banner-slide-balcony img   { object-position: center 30%; }
.banner-slide-building img  { object-position: center 55%; }

/* --- About background image --- */
.abt-bg, .abt-bg-mob {
    object-fit: cover;
    object-position: center 40%;
    width: 100%;
}

/* --- Activity/Recreation background --- */
.activity-bg {
    object-fit: cover;
    object-position: center 30%;
}

/* --- Room carousel card images --- */
.ser-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.ser-img img.room-ac-suite    { object-position: center 40%; }
.ser-img img.room-nonac-suite { object-position: center 35%; }
.ser-img img.room-pool-villa  { object-position: center 50%; }
.ser-img img.room-single      { object-position: center 40%; }

/* --- Facilities carousel images --- */
.facility-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.facility-img img.fac-pool      { object-position: center 35%; }
.facility-img img.fac-hall      { object-position: center 50%; }
.facility-img img.fac-play      { object-position: center 40%; }
.facility-img img.fac-bbq       { object-position: center 45%; }
.facility-img img.fac-kitchen   { object-position: center 30%; }

/* --- Recreation/Activity slider images --- */
.lux-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.lux-img img.act-pool   { object-position: center 30%; }
.lux-img img.act-night  { object-position: center 40%; }
.lux-img img.act-play   { object-position: center 55%; }
.lux-img img.act-bbq    { object-position: center 40%; }

/* --- Gallery slider images --- */
.gal-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.gal-item img.gal-pool      { object-position: center 30%; }
.gal-item img.gal-entrance  { object-position: center 55%; }
.gal-item img.gal-night     { object-position: center 35%; }
.gal-item img.gal-room      { object-position: center 40%; }
.gal-item img.gal-play      { object-position: center 45%; }

/* --- Package section left image --- */
.package-lft img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 10px;
    display: block;
}

/* --- Welcome/about thumbnail --- */
.welcome-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center 50%;
    border-radius: 8px;
    display: block;
}

/* --- Rooms page: villa detail images --- */
.villa-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    object-position: center 65%;  /* pull focus DOWN toward bed/furniture, away from ceiling */
    display: block;
}

/* --- Rooms page: per-room mini photo gallery --- */
.room-mini-gallery {
    margin-bottom: 24px;
}
.room-mini-gallery .owl-carousel .item {
    border-radius: 10px;
    overflow: hidden;
}
.room-mini-gallery img {
    width: 100%;
    aspect-ratio: 3 / 2;  /* matches native 1200x800 photo resolution */
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.room-mini-gallery .owl-dots {
    margin-top: 8px;
}

/* --- Facilities page: large facility photos --- */
.fc-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.fc-img img.fc-pool   { object-position: center 30%; }
.fc-img img.fc-hall   { object-position: center 45%; }
.fc-img img.fc-play   { object-position: center 50%; }
.fc-img img.fc-board  { object-position: center 40%; }
.fc-img img.fc-bbq    { object-position: center 45%; }
.fc-img img.fc-kitch  { object-position: center 35%; }
.fc-img img.fc-sound  { object-position: center 40%; }

/* --- Rooms page banner image crop --- */
.inner-container img.desk-view {
    object-fit: cover;
    object-position: center 38%;
    width: 100%;
}

/* --- Hero Slider Styling --- */
.page-hero {
    padding: 30px 40px;
}
.page-hero .carousel-inner {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

/* --- Combined Header & Hero Overlay (DESKTOP ONLY) --- */
@media (min-width: 769px) {
    body.home .top-wraper {
        position: absolute;
        top: 30px;
        left: 40px;
        right: 40px;
        z-index: 999;
        background: transparent !important;
    }
    body.home .nav-menu > li > a {
        color: #fff !important;
        text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    }
    body.home .header-contact {
        border-bottom: 1px solid rgba(255,255,255,0.2);
        padding-bottom: 5px;
        margin-bottom: 5px;
    }
    .hero-text-area.inner-txt {
        padding-top: 100px;
    }
}

/* --- Menu Scrolled (Detached) State Overrides --- */
.sexy-menu.detached .nav-menu > li > a {
    color: #1c1c1c !important; /* Force black on scroll */
    font-size: 1.1em;           /* Further increased for prominence */
    text-shadow: none !important; /* Remove shadow on white background */
}

.owl-nav .owl-prev,
.owl-nav .owl-next {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3) !important;
    color: #fff !important;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin: 0 !important;
}

.owl-nav .owl-prev {
    left: 10px;
}

.owl-nav .owl-next {
    right: 10px;
}

.owl-nav .owl-prev:hover,
.owl-nav .owl-next:hover {
    opacity: 1;
}

/* --- Navigation Mobile Number Style --- */
.header-phone-nav {
    font-weight: 600;
    color: #1c1c1c;
}
.header-phone-nav i {
    color: #25d366; /* WhatsApp Green */
    margin-right: 5px;
}
body.home .header-phone-nav {
    color: #fff !important;
}
.sexy-menu.detached .header-phone-nav {
    color: #1c1c1c !important;
}

/* --- Bento Hero Grid Styling --- */
.bento-right {
    display: none;
}
@media (min-width: 992px) {
    .hero-bento-grid {
        display: grid;
        grid-template-columns: 2fr 1fr; /* Left slider = 2x size of right side */
        gap: 15px;
        align-items: stretch;
    }
    .bento-right {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .bento-left .carousel, .bento-left .carousel-inner, .bento-left .item {
        height: 100%;
    }
    .bento-left .item img.desk-view {
        height: 100%;
        object-fit: cover;
    }
    .bento-img-box {
        flex: 1; /* Split remaining space 50/50 vertically */
        overflow: hidden;
        border-radius: 24px;
        box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    }
    .bento-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    /* Hero: full-width, no padding, no border-radius on mobile */
    .page-hero {
        padding: 0;
    }
    .page-hero .carousel-inner {
        border-radius: 0;
    }
    /* Hero slides: fixed shorter height on mobile */
    .page-hero .carousel-inner .item {
       
        overflow: hidden;
    }
    .page-hero .carousel-inner .item img {
        width: 100%;
        height: 360px;
        object-fit: cover;
        object-position: center center;
        display: block;
    }
    /* Mobile header: back to normal flow — no overlay, no shift/blink */
    body.home .top-wraper {
        position: relative !important;
        top: auto;
        left: auto;
        right: auto;
        background: #fff !important;
       
        z-index: auto;
    }
    body.home .nav-menu > li > a {
        color: #333 !important;
        text-shadow: none;
    }
    body.home .hide-menu a {
        color: #333 !important;
    }
    .deca-amenities ul {
        columns: 1;
    }
    .fac-detail {
        padding: 22px 0 0;
    }
    /* Room Gallery Mobile Fixes */
    .villa-rows, .villa-rows:nth-child(2n) {
        flex-direction: column !important;
        display: block !important;
    }

    .villa-img, .room-mini-gallery {
        height: auto !important;
    }

    .room-mini-gallery .owl-carousel {
        display: block !important;
        min-height: 250px;
        background: #fdfdfd;
        overflow: hidden;
    }
    
    .room-mini-gallery .owl-item img {
        height: 250px;
        object-fit: cover;
    }

    .room-mini-gallery .owl-nav {
        display: block !important;
    }

    .villa-det {
        padding: 20px 0 0;
    }
    .deca-contact-row .col-md-5,
    .deca-contact-row .col-md-7 {
        margin-bottom: 30px;
    }
    .deca-whatsapp-book {
        margin-top: 0;
    }
    .room-table th, .room-table td {
        padding: 11px 14px;
        font-size: .88em;
    }
    .amenity-icon-item {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    .amenities-icons-row {
        margin-top: 10px;
    }
}
