:root { --primary-color: #06b6d4; /* cyan-500 */ --secondary-color: #0f172a; /* slate-900 */ --accent-color: #6366f1; /* indigo-500 */ --text-color: #0f172a; --muted: #64748b; --bg: #f8fafc; --card-bg: rgba(255, 255, 255, 0.65); --success-color: #10b981; --danger-color: #ef4444; --white: #ffffff; --glass-shadow: 0 8px 30px rgba(2, 6, 23, 0.12); } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Kanit', 'Inter', sans-serif; line-height: 1.6; color: var(--text-color); background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; } .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; } /* Header & Navigation */ .header { position: sticky; top: 0; z-index: 1000; padding: 0.6rem 0; background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(6px); box-shadow: var(--glass-shadow); border-bottom: 1px solid rgba(15, 23, 42, 0.04); } .nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; } .logo { font-size: 1.6rem; font-weight: 700; color: var(--secondary-color); display: flex; align-items: center; gap: 0.6rem; } .nav-menu { display: flex; list-style: none; gap: 0.6rem; align-items: center; } .nav-link { color: var(--secondary-color); text-decoration: none; padding: 0.45rem 0.9rem; border-radius: 999px; transition: all 0.18s ease; cursor: pointer; font-weight: 600; font-size: 0.95rem; } .nav-link:hover, .nav-link.active { background: linear-gradient(90deg, rgba(6, 182, 212, 0.12), rgba(99, 102, 241, 0.08)); color: var(--primary-color); transform: translateY(-2px); } .mobile-menu { display: none; flex-direction: column; cursor: pointer; } /* Main Content */ .main-content { margin-top: 74px; min-height: calc(100vh - 74px); } .page { display: none; min-height: calc(100vh - 80px); } .page.active { display: block; } /* Hero Section */ .hero { background: url('https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat; height: 72vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); position: relative; } .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, 0.45), rgba(6, 182, 212, 0.06)); } .hero-content { z-index: 1; } .hero-content h1 { position: relative; z-index: 1; font-size: 3rem; margin-bottom: 0.6rem; font-weight: 700; letter-spacing: -0.02em; } .hero-content p { position: relative; z-index: 1; font-size: 1.05rem; margin-bottom: 1.2rem; color: rgba(255, 255, 255, 0.92); } .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 10px 18px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); color: white; text-decoration: none; border-radius: 10px; font-weight: 700; transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease; border: none; cursor: pointer; font-size: 0.95rem; box-shadow: 0 6px 18px rgba(6, 182, 212, 0.12); } .btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(6, 182, 212, 0.14); } .btn-outline { background: transparent; color: var(--secondary-color); border: 1px solid rgba(15, 23, 42, 0.06); backdrop-filter: blur(4px); } .btn-outline:hover { background: rgba(99, 102, 241, 0.08); } /* Search Form */ .search-form { background: var(--card-bg); padding: 1.6rem 1.4rem; margin: -48px auto 0; border-radius: 14px; box-shadow: var(--glass-shadow); position: relative; z-index: 10; max-width: 980px; border: 1px solid rgba(15, 23, 42, 0.04); backdrop-filter: blur(6px) saturate(120%); } .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; } .form-group { display: flex; flex-direction: column; } .form-group label { margin-bottom: 0.5rem; font-weight: 600; color: var(--secondary-color); } .form-control { padding: 12px 14px; border: 1px solid rgba(15, 23, 42, 0.06); border-radius: 10px; font-size: 0.98rem; transition: box-shadow 0.14s ease, border-color 0.14s ease; background: white; } .form-control:focus { outline: none; border-color: rgba(6, 182, 212, 0.9); box-shadow: 0 8px 20px rgba(6, 182, 212, 0.06); } /* Room Cards */ .rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.6rem; padding: 3rem 0; } .room-card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.82)); border-radius: 14px; overflow: hidden; box-shadow: var(--glass-shadow); transition: transform 0.22s ease, box-shadow 0.22s ease; display: flex; flex-direction: column; } .room-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(2, 6, 23, 0.12); } .room-image { height: 200px; background-size: cover; background-position: center; position: relative; overflow: hidden; } .room-price { position: absolute; top: 14px; right: 14px; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); color: white; padding: 8px 12px; border-radius: 12px; font-weight: 800; font-size: 0.95rem; } .room-content { padding: 1.1rem 1.2rem 1.5rem 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; } .room-content p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.35rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; } .room-title { font-size: 1.25rem; margin-bottom: 0.2rem; color: var(--secondary-color); } .room-features { display: flex; gap: 1rem; margin: 1rem 0; flex-wrap: wrap; } .feature { display: flex; align-items: center; gap: 0.3rem; color: #666; } /* Gallery */ .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; padding: 2rem 0; } /* Main Gallery Slideshow */ .main-gallery-slideshow { margin-bottom: 3rem; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(2, 6, 23, 0.15); background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95)); backdrop-filter: blur(10px) saturate(120%); border: 1px solid rgba(255, 255, 255, 0.2); } .gallery-slideshow-container { position: relative; height: 500px; overflow: hidden; } .gallery-slides { position: relative; width: 100%; height: 100%; } .gallery-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.05) translateX(20px); transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; } .gallery-slide.active { opacity: 1; transform: scale(1) translateX(0); z-index: 2; } .gallery-slide.prev { transform: scale(0.95) translateX(-20px); } .gallery-slide.next { transform: scale(0.95) translateX(20px); } .gallery-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; } .gallery-slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent); color: white; padding: 2rem 2rem 1.5rem; text-align: center; } .gallery-slide-caption h3 { font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 600; } .gallery-slide-caption p { font-size: 1rem; opacity: 0.9; } .gallery-prev, .gallery-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.9); border: none; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; box-shadow: 0 8px 25px rgba(2, 6, 23, 0.15); transition: all 0.3s ease; z-index: 10; color: var(--secondary-color); } .gallery-prev:hover, .gallery-next:hover { background: white; transform: translateY(-50%) scale(1.1); box-shadow: 0 12px 35px rgba(2, 6, 23, 0.2); color: var(--primary-color); } .gallery-prev { left: 20px; } .gallery-next { right: 20px; } .gallery-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 20px; display: flex; gap: 12px; z-index: 10; } .gallery-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); border: none; cursor: pointer; transition: all 0.3s ease; } .gallery-dot.active { background: var(--primary-color); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.3); transform: scale(1.2); } .gallery-dot:hover:not(.active) { background: rgba(255, 255, 255, 0.8); transform: scale(1.1); } .gallery-info { text-align: center; margin-bottom: 3rem; padding: 1.5rem; background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(249, 250, 251, 0.8)); border-radius: 12px; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.3); } .gallery-info h3 { font-size: 1.8rem; color: var(--secondary-color); margin-bottom: 0.5rem; font-family: 'Cormorant Garamond', serif; } .gallery-info p { color: var(--muted); font-size: 1.1rem; text-transform: capitalize; } .gallery-thumbnails h3 { color: var(--secondary-color); margin-bottom: 1.5rem; text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 2rem; } @media (max-width: 768px) { .gallery-slideshow-container { height: 350px; } .gallery-prev, .gallery-next { width: 44px; height: 44px; font-size: 1rem; } .gallery-prev { left: 15px; } .gallery-next { right: 15px; } .gallery-slide-caption { padding: 1.5rem 1rem 1rem; } .gallery-slide-caption h3 { font-size: 1.2rem; } .gallery-slide-caption p { font-size: 0.9rem; } } .slideshow { position: relative; width: 100%; overflow: hidden; border-radius: 12px; } .slides { position: relative; width: 100%; height: 420px; } .slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.02); transition: opacity 0.6s ease, transform 0.6s ease; display: flex; align-items: center; justify-content: center; } .slide.active { opacity: 1; transform: scale(1); z-index: 2; } .slide img { width: 100%; height: 100%; object-fit: cover; display: block; } .slide-caption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(0, 0, 0, 0.45); color: white; padding: 0.6rem 0.9rem; border-radius: 8px; font-weight: 600; } .sl-prev, .sl-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.85); border: none; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; box-shadow: 0 8px 20px rgba(2, 6, 23, 0.08); } .sl-prev { left: 12px; } .sl-next { right: 12px; } .sl-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; display: flex; gap: 8px; } .sl-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); border: none; cursor: pointer; } .sl-dot.active { background: var(--primary-color); box-shadow: 0 6px 14px rgba(6, 182, 212, 0.12); } @media (max-width: 768px) { .slides { height: 260px; } .slideshow { border-radius: 8px; } .sl-prev, .sl-next { width: 38px; height: 38px; } } .gallery-item { position: relative; height: 220px; border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.22s ease, box-shadow 0.22s ease; } .gallery-item:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 18px 40px rgba(2, 6, 23, 0.08); } .gallery-item img { width: 100%; height: 100%; object-fit: cover; } .gallery-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7)); display: flex; align-items: flex-end; padding: 1rem; opacity: 0; transition: opacity 0.3s ease; } .gallery-item:hover .gallery-overlay { opacity: 1; } .gallery-title { color: white; font-size: 1.2rem; font-weight: 600; } /* Modal */ .modal { display: none; position: fixed; z-index: 2200; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(2, 6, 23, 0.6); backdrop-filter: blur(4px) saturate(120%); } .modal-content { background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98)); margin: 6% auto; padding: 1.6rem; border-radius: 14px; width: 92%; max-width: 820px; max-height: 84vh; overflow-y: auto; box-shadow: 0 30px 70px rgba(2, 6, 23, 0.14); border: 1px solid rgba(15, 23, 42, 0.04); } /* Gallery fullscreen modal styles */ .modal.gallery-open { background-color: rgba(0, 0, 0, 0.95); } .modal.gallery-open .modal-content { background: transparent; margin: 0; padding: 0; width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0; overflow: hidden; box-shadow: none; display: flex; align-items: center; justify-content: center; } .modal.gallery-open .modal-header { display: none; } .modal.gallery-open .slideshow { width: 92%; height: 92vh; } .modal.gallery-open .slide img { object-fit: contain; background: transparent; max-height: 92vh; } .modal.gallery-open .sl-prev, .modal.gallery-open .sl-next { background: rgba(255, 255, 255, 0.06); color: #fff; border: 1px solid rgba(255, 255, 255, 0.08); } .modal.gallery-open .sl-dot { background: rgba(255, 255, 255, 0.18); } .modal.gallery-open .sl-dot.active { background: var(--primary-color); } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } .close { color: var(--muted); float: right; font-size: 24px; font-weight: 700; cursor: pointer; background: rgba(255, 255, 255, 0.8); padding: 4px 8px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; } .close:hover { transform: translateY(-2px); color: var(--danger-color); } /* Booking Form */ .booking-summary { background: rgba(247, 250, 252, 0.9); padding: 1.2rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid rgba(15, 23, 42, 0.03); } .summary-item { display: flex; justify-content: space-between; margin-bottom: 0.5rem; } .total { font-size: 1.3rem; font-weight: 700; color: var(--primary-color); border-top: 2px solid var(--primary-color); padding-top: 1rem; } /* Admin Panel */ .admin-nav { background: transparent; padding: 0.6rem 0 1.2rem 0; margin-bottom: 2rem; } .admin-nav ul { display: flex; list-style: none; gap: 0.6rem; } .admin-nav a { color: var(--secondary-color); text-decoration: none; padding: 0.45rem 0.9rem; border-radius: 8px; transition: background 0.18s ease; } .admin-nav a:hover, .admin-nav a.active { background: linear-gradient(90deg, rgba(6, 182, 212, 0.12), rgba(99, 102, 241, 0.08)); color: var(--primary-color); } .data-table { width: 100%; border-collapse: collapse; background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 0.98)); border-radius: 10px; overflow: hidden; box-shadow: var(--glass-shadow); } .data-table th, .data-table td { padding: 0.9rem 1rem; text-align: left; border-bottom: 1px solid rgba(15, 23, 42, 0.04); } .data-table th { background: rgba(6, 182, 212, 0.06); color: var(--secondary-color); font-weight: 700; } .status { padding: 0.3rem 0.8rem; border-radius: 15px; font-size: 0.9rem; font-weight: 600; } .status.confirmed { background: #d4edda; color: #155724; } .status.pending { background: #fff3cd; color: #856404; } .status.cancelled { background: #f8d7da; color: #721c24; } /* Notifications */ .notification { position: fixed; top: 96px; right: 20px; padding: 0.9rem 1.1rem; border-radius: 10px; color: white; font-weight: 700; z-index: 2500; transform: translateX(320px); transition: transform 0.26s ease, opacity 0.18s ease; } .notification.show { transform: translateX(0); } .notification.success { background: linear-gradient(90deg, rgba(16, 185, 129, 1), rgba(6, 182, 212, 0.9)); } .notification.error { background: linear-gradient(90deg, rgba(239, 68, 68, 1), rgba(236, 72, 153, 0.9)); } .notification.info { background: linear-gradient(90deg, rgba(99, 102, 241, 1), rgba(6, 182, 212, 0.9)); } /* Loading */ .loading { display: flex; justify-content: center; align-items: center; padding: 3rem; } .spinner { border: 4px solid #f3f3f3; border-top: 4px solid var(--primary-color); border-radius: 50%; width: 50px; height: 50px; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Responsive */ @media (max-width: 992px) { .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); flex-direction: column; padding: 1rem; gap: 0.6rem; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06); } .nav-menu.active { display: flex; } .mobile-menu { display: flex; color: var(--secondary-color); font-size: 1.2rem; } .hero-content h1 { font-size: 2rem; } .form-row { grid-template-columns: 1fr; } .rooms-grid { grid-template-columns: 1fr; } .modal-content { margin: 8% auto; width: 95%; } } .section { padding: 4rem 0; } .section-title { font-size: 3rem; text-align: center; margin-bottom: 3rem; color: var(--secondary-color); } .fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; } .fade-in.visible { opacity: 1; transform: translateY(0); } /* Home additions: features, amenities, offers, testimonials */ .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; } .feature-card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(249, 250, 251, 0.95)); border-radius: 12px; padding: 1.2rem; text-align: center; box-shadow: var(--glass-shadow); } .feature-card .icon { font-size: 1.6rem; color: var(--primary-color); margin-bottom: 0.6rem; } .feature-card h4 { margin-bottom: 0.4rem; color: var(--secondary-color); } .feature-card p { color: var(--muted); font-size: 0.95rem; } .amenities-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.6rem; margin-top: 0.6rem; } .amenity { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; background: white; border-radius: 10px; justify-content: center; box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04); } .amenity i { color: var(--primary-color); } .offers-banner { display: grid; grid-template-columns: 1fr min(360px, 35%); gap: 1.2rem; align-items: stretch; padding: 1rem; background: linear-gradient(90deg, rgba(6, 182, 212, 0.06), rgba(99, 102, 241, 0.04)); border-radius: 12px; border: 1px solid rgba(15, 23, 42, 0.03); } .offer-left h3 { margin-bottom: 0.4rem; color: var(--secondary-color); } .offer-left p { color: var(--muted); margin-bottom: 0.8rem; } .offer-right { overflow: hidden; border-radius: 10px; height: 100%; display: block; min-height: 180px; } .offer-right img { display: block; width: 100%; height: 100%; object-fit: cover; } .test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; } .testimonial { background: white; padding: 1rem; border-radius: 10px; box-shadow: 0 12px 28px rgba(2, 6, 23, 0.04); color: var(--muted); } .testimonial .author { margin-top: 0.6rem; font-weight: 700; color: var(--secondary-color); } /* Footer */ .site-footer { background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.02)); padding: 2.2rem 0; margin-top: 3rem; border-top: 1px solid rgba(15, 23, 42, 0.03); } .footer-inner { display: flex; gap: 2rem; align-items: flex-start; justify-content: space-between; } .footer-col { flex: 1; min-width: 220px; } .footer-col h4 { color: var(--secondary-color); margin-bottom: 0.6rem; } .footer-col p, .footer-col a { color: var(--muted); font-size: 0.95rem; text-decoration: none; } .footer-bottom { margin-top: 1.2rem; text-align: center; color: var(--muted); font-size: 0.9rem; } @media (max-width: 768px) { .features-grid, .test-grid { grid-template-columns: 1fr; } .amenities-grid { grid-template-columns: repeat(3, 1fr); } .offers-banner { grid-template-columns: 1fr; } .offer-right img { height: 160px; } .footer-inner { flex-direction: column; gap: 1rem; } }