/* themes/karamhillview/style.css */

/* Reset & base */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Roboto',sans-serif; }
body { background:#f5f5f5; color:#333; line-height:1.6; }

/* Header */
.kh-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 40px;
    background:#00695c;
    flex-wrap:wrap;
}

.kh-header-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kh-logo img { height:60px; margin-right:15px; vertical-align:middle; }
.kh-logo h1 { color:#fff; font-size:1.8em; display:inline-block; vertical-align:middle; }

.kh-nav a {
    color:#d0f0ea;
    text-decoration:none;
    margin-left:20px;
    font-weight:500;
    transition: color 0.3s;
}
.kh-nav a:hover { color:#fff; }

/* Mobile Menu Toggle Button (Desktop Hidden) */
.kh-menu-toggle {
    display: none;
}

/* Hero */
.kh-hero {
    position:relative;
    text-align:center;
    overflow:hidden;
}
.kh-hero img {
    width:100%;
    max-height:500px;
    object-fit:cover;
    display:block;
}
.kh-hero-text {
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    color:#fff;
    text-shadow:0 2px 6px rgba(0,0,0,0.6);
}
.kh-hero-text h2 { font-size:2em; margin-bottom:10px; }
.kh-hero-text p { font-size:1.2em; }

/* Main Content */
.kh-main {
    max-width:1200px;
    margin:40px auto;
    padding:0 20px;
}

/* Footer */
.kh-footer {
    background:#004d40;
    color:#d0f0ea;
    text-align:center;
    padding:20px;
}

/* Responsive Header / Mobile Navigation */
@media(max-width:768px){
    .kh-header { 
        flex-direction: column; 
        align-items: stretch; 
        padding: 15px 20px; 
    }
    
    .kh-header-brand {
        width: 100%;
    }

    .kh-logo h1 { 
        font-size: 1.25em; 
        line-height: 1.2;
    }

    /* Give hero image proper height on mobile */
    .kh-hero img {
        height: 320px;
        object-fit: cover;
        object-position: center;
    }

    /* Hamburger Toggle Button */
    .kh-menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid #d0f0ea;
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        padding: 6px 12px;
        border-radius: 6px;
        cursor: pointer;
        outline: none;
    }

    /* Mobile Collapsible Navigation Drawer */
    .kh-nav { 
        display: none; 
        flex-direction: column;
        width: 100%;
        margin-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.2);
        padding-top: 8px;
    }

    .kh-nav.active { 
        display: flex !important; 
    }

    .kh-nav a { 
        margin: 0; 
        display: block; 
        padding: 10px 4px;
        font-size: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .kh-hero-text h2 { font-size:1.5em; }
    .kh-hero-text p { font-size:1em; }
}

/* ===== CUSTOM INDEX DESIGN ===== */

.kh-intro {
    background: #ffffff;
    padding: 60px 20px;
    text-align: center;
}

.kh-intro-box {
    max-width: 800px;
    margin: auto;
}

.kh-highlight {
    background: #e0f2f1;
    padding: 50px 20px;
}

.kh-highlight-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.kh-card {
    background: #ffffff;
    padding: 25px;
    width: 280px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.kh-split {
    display: flex;
    flex-wrap: wrap;
    margin: 50px 0;
}

.kh-split-img,
.kh-split-text {
    width: 50%;
    padding: 20px;
}

.kh-split-img img {
    width: 100%;
    border-radius: 10px;
}

.kh-btn {
    display: inline-block;
    margin-top: 15px;
    background: #00695c;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.kh-contact-box {
    background: #ffffff;
    padding: 40px;
    text-align: center;
}

.kh-float-call {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #00695c;
    color: white;
    padding: 15px;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
}

/* Responsive */
@media(max-width:768px){
    .kh-split-img,
    .kh-split-text {
        width: 100%;
    }
}

/* ===================================================== */
/* 🔥 FIXED PROFESSIONAL SLIDER */
/* ===================================================== */

.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 20px 0;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 0 0 25%;
    padding: 10px;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.03);
}

.caption {
    text-align: center;
    margin-top: 8px;
    font-size: 14px;
    color: #333;
}

/* TABLET */
@media(max-width: 992px) {
    .slide {
        flex: 0 0 50%;
    }
}

/* MOBILE */
@media(max-width: 768px) {
    .slide {
        flex: 0 0 100%;
    }
}

/* ================= ROOMS SECTION FIX ================= */

.rooms {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
}

.room-card {
    width: 300px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-5px);
}

.room-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.room-card-content {
    padding: 15px;
    text-align: center;
}

.room-card-content h3 {
    margin-bottom: 8px;
    font-size: 18px;
    color: #00695c;
}

.room-card-content p {
    font-size: 14px;
    margin-bottom: 12px;
    color: #555;
}

.room-card-content .btn {
    display: inline-block;
    background: #00695c;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
}

.room-card-content .btn:hover {
    background: #004d40;
}

@media(max-width: 768px) {
    .room-card {
        width: 90%;
    }
}