/* Manswa Ocean View - Core Design System */

:root {
    /* Color Palette - Tropical Luxe */
    --primary: #0f4c5c; /* Deep Ocean */
    --secondary: #e36414; /* Tropical Sunset */
    --accent: #fb8b24; /* Golden Sand */
    --bg-light: #f8f9fa;
    --bg-dark: #212529;
    --text-main: #333;
    --text-muted: #666;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-dark: rgba(0, 0, 0, 0.4);
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 15px;
    --radius-lg: 30px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&family=Playfair+Display:wght@700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Reusable Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #083a47;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #c45612;
    transform: translateY(-2px);
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 120px;
    width: auto;
    mix-blend-mode: multiply; /* Removes white background from image */
    transition: var(--transition);
}

header.scrolled .logo img {
    height: 80px;
}

.logo span {
    display: none; /* Removed brand text as requested */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

header.scrolled .nav-links a {
    color: var(--text-main);
    text-shadow: none;
}

.nav-links a:hover {
    color: var(--secondary) !important;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
}

header.scrolled .menu-toggle {
    color: var(--text-main);
}

.mobile-admin-login {
    display: none;
}

header.scrolled .desktop-admin-login {
    color: var(--text-main) !important;
    text-shadow: none !important;
}

.desktop-admin-login:hover {
    color: var(--secondary) !important;
}

@media (max-width: 768px) {
    .desktop-admin-login {
        display: none !important;
    }
    .mobile-admin-login {
        display: block;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Room Cards */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.room-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.room-card:hover {
    transform: translateY(-10px);
}

.room-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.room-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.room-info h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
    min-height: 4rem;
    display: flex;
    align-items: center;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    min-height: 4.5rem;
    align-content: flex-start;
}

.room-features span {
    font-size: 0.8rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f4f5;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #e0e7e9;
    font-weight: 500;
}

.room-features span i { color: var(--secondary); margin-right: 4px; }

.room-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.room-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* WhatsApp Floating Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Gallery Styles */
.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: white;
}

.gallery-item {
    height: 250px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Forms */
form {
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Dark theme inputs for Contact section */
.dark-input {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.25) !important;
    color: #fff !important;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

select.dark-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23fff' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 32px !important;
}

.dark-input option {
    background: #1a2a3a;
    color: #fff;
}

.dark-input::placeholder { color: rgba(255,255,255,0.5); }
.dark-input:focus { outline: none; border-color: var(--secondary) !important; box-shadow: 0 0 0 3px rgba(227,100,20,0.2); }

/* Phone field with country code */
.phone-wrapper {
    display: flex;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.phone-wrapper select {
    flex-shrink: 0;
    width: auto;
    padding: 13px 10px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
}

.phone-wrapper input {
    flex: 1;
    min-width: 0;
}

label {
    margin-bottom: 5px;
    font-weight: 600;
}

input, textarea, select {
    padding: 13px 14px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.1);
}

/* Admin Styles */
.admin-header {
    background: var(--primary);
    color: var(--white);
    padding: 20px 0;
    text-align: center;
}

.admin-container {
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    margin-top: 20px;
    box-shadow: var(--shadow);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background: #f4f4f4;
    color: var(--primary);
}

/* Grid Layouts */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .desktop-book-btn {
        display: none !important;
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    .nav-links {
        display: none; /* hidden by default on mobile */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 15px;
        text-align: center;
        z-index: 2000;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        color: var(--text-main);
        text-shadow: none;
        font-size: 1.2rem;
        padding: 10px 0;
        display: block;
    }
    
    .section-title h2 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Photo Slider Styles */
.slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.photo-slider {
    display: flex;
    width: max-content;
    animation: slide 40s linear infinite;
}

.photo-slider:hover {
    animation-play-state: paused;
}

.photo-slider img {
    height: 250px;
    width: 350px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.photo-slider img:hover {
    transform: scale(1.05);
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Room Image Overlay */
.room-img {
    position: relative;
    overflow: hidden;
}

.room-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.room-img:hover .room-img-overlay {
    opacity: 1;
}

.room-img-overlay span {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 30px;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.room-photo-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 5;
}

#lightboxImg {
    transition: opacity 0.3s ease;
}

/* Admin Multi-image Preview */
.preview-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin: 5px;
}

/* Sightseeing Section */
.sightseeing-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.sight-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sight-card:hover {
    transform: translateY(-5px);
}

.sight-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.sight-distance {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.sight-img-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    cursor: pointer;
}

.sight-img:hover .sight-img-overlay {
    opacity: 1;
}

.sight-img-overlay span {
    color: white;
    border: 1px solid white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(5px);
}

.sight-info {
    padding: 25px;
}

.sight-info h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.sight-loc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.sight-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sight-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.sight-map-btn:hover {
    gap: 12px;
}
