/* ===== Kerala Miles design system ===== */
:root {
  --sky: #079BEF;
  --blue: #0875D1;
  --deep: #07539B;
  --lime: #A5E51B;
  --white: #FFFFFF;
  --bg: #F8FAFC;
  --text: #172033;
  --muted: #5B6679;
  --line: #E3E9F1;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(7, 83, 155, .10);
  --shadow-lg: 0 18px 50px rgba(7, 83, 155, .18);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--deep); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--text); font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--white); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); background: rgba(165, 229, 27, .35); padding: .3rem .75rem; border-radius: 999px; margin-bottom: .9rem; }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); }
.brand img { height: 56px; width: auto; max-height: 56px; object-fit: contain; }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--deep); }
.nav-links { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: .5rem .85rem; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue); background: rgba(7, 155, 239, .09); }
.nav-cta { display: flex; gap: .5rem; align-items: center; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--deep); }
.menu-btn svg { width: 22px; height: 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.25rem; border-radius: 12px; font: 700 .95rem var(--font); border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none; line-height: 1.2; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(8, 117, 209, .28); }
.btn-primary:hover { background: var(--deep); color: #fff; }
.btn-whatsapp { background: #fff; color: var(--deep); border-color: var(--blue); }
.btn-whatsapp:hover { background: var(--deep); color: #fff; border-color: var(--deep); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--bg); color: var(--deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.btn-danger { background: #fff; color: #B42318; border-color: #F3C9C5; }
.btn-sm { padding: .5rem .85rem; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(160deg, var(--deep) 0%, var(--blue) 55%, var(--sky) 100%); }
.hero.has-photo::before { content: ""; position: absolute; inset: 0; background: var(--hero-img) center/cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 83, 155, .85), rgba(7, 83, 155, .35) 70%, rgba(7, 83, 155, .1)); }
.hero .scenic { position: absolute; inset: auto 0 0 0; width: 100%; height: 55%; z-index: 1; opacity: .9; }
.hero-inner { position: relative; z-index: 2; padding: clamp(4rem, 10vw, 8rem) 0 clamp(6rem, 12vw, 10rem); max-width: 720px; }
.hero h1, .hero h2 { color: #fff; }
.hero p { font-size: 1.15rem; color: rgba(255, 255, 255, .92); max-width: 560px; }
.hero .eyebrow { background: var(--lime); color: #12301a; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.6rem; font-size: .9rem; color: rgba(255, 255, 255, .92); }
.hero-badges span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); margin-right: .5rem; }
.page-hero { background: linear-gradient(160deg, var(--deep), var(--blue)); color: #fff; padding: clamp(2.8rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .4rem; }
.page-hero p { color: rgba(255, 255, 255, .9); max-width: 620px; margin: 0; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(165, 229, 27, .18); }
.crumbs { font-size: .85rem; margin-bottom: .8rem; color: rgba(255, 255, 255, .8); }
.crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* Cards and grids */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--deep); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: .8rem; top: .8rem; background: var(--lime); color: #12301a; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .28rem .65rem; border-radius: 999px; z-index: 2; }
.card-body { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card-body h3 { margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.card-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-actions { margin-top: auto; padding-top: .6rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--deep); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; background: rgba(7, 155, 239, .1); color: var(--deep); }

/* Scenic fallback when no photo is set */
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Why-us / features */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(7, 155, 239, .12); color: var(--blue); margin-bottom: 1rem; }
.feature .ico svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: .8rem; }
.gallery .g { position: relative; border-radius: 14px; overflow: hidden; background: var(--deep); }
.gallery .g:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery .g:nth-child(6) { grid-column: span 4; }
.gallery .g::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(transparent, rgba(7,83,155,.65)); z-index: 1; pointer-events: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-label { position: absolute; left: .8rem; bottom: .7rem; z-index: 2; color: #fff; font-weight: 700; font-size: .85rem; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--deep), var(--blue)); color: #fff; border-radius: 24px; padding: clamp(2rem, 5vw, 3.2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(165, 229, 27, .22); }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .9); }
.cta-band > * { position: relative; z-index: 1; }

/* Forms */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid #CBD5E1; border-radius: 10px; font: inherit; color: var(--text); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sky); outline: 3px solid rgba(7, 155, 239, .2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hint { font-size: .85rem; color: var(--muted); }
.notice { padding: .8rem 1rem; border-radius: 10px; font-size: .9rem; margin-bottom: 1rem; }
.notice.info { background: rgba(7, 155, 239, .1); color: var(--deep); }
.notice.error { background: #FDECEA; color: #B42318; }
.notice.ok { background: rgba(165, 229, 27, .3); color: #28470a; }

/* Package detail */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.detail-hero-media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 8; background: var(--deep); box-shadow: var(--shadow); margin-bottom: 1.6rem; }
.detail-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.side-card { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.side-card .btn { margin-bottom: .6rem; }
.day { display: grid; grid-template-columns: 52px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.day:last-child { border-bottom: 0; }
.day-n { width: 52px; height: 52px; border-radius: 14px; background: var(--blue); color: #fff; display: grid; place-items: center; text-align: center; font-size: .65rem; font-weight: 700; line-height: 1.1; }
.day-n b { display: block; font-size: 1.2rem; }
.day h4 { margin: 0 0 .2rem; font-family: var(--font); font-size: 1.02rem; }
.day p { margin: 0; color: var(--muted); font-size: .95rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.checklist li { padding-left: 1.7rem; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 4px var(--deep); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--text); font: 600 .88rem var(--font); padding: .5rem 1rem; border-radius: 999px; cursor: pointer; }
.chip:hover { border-color: var(--blue); }
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Footer */
.site-footer { background: var(--deep); color: rgba(255, 255, 255, .85); padding: 3.5rem 0 1.2rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-logo { display: inline-flex; background: #fff; border-radius: 16px; padding: .5rem .8rem; margin-bottom: 1rem; }
.footer-logo img { height: 64px; width: auto; object-fit: contain; }
.site-footer h4 { font-family: var(--font); color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--lime); }
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--deep); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.footer-contact { display: grid; gap: .6rem; }

/* Floating WhatsApp */
.float-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.float-wa:hover { color: #fff; transform: scale(1.06); }
.float-wa svg { width: 30px; height: 30px; }

/* Admin */
.admin-login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: linear-gradient(160deg, var(--deep), var(--blue) 60%, var(--sky)); }
.login-card { width: min(430px, 100%); background: #fff; border-radius: 22px; padding: 2rem; box-shadow: var(--shadow-lg); text-align: center; }
.login-card .logo { height: 120px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 1rem; }
.login-card form { text-align: left; }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--deep); color: #fff; padding: 1.2rem; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1rem; }
.admin-side .logo-box { background: #fff; border-radius: 14px; padding: .5rem; display: flex; justify-content: center; }
.admin-side .logo-box img { height: 70px; width: auto; object-fit: contain; }
.admin-nav { display: grid; gap: .3rem; }
.admin-nav button { text-align: left; background: transparent; border: 0; color: rgba(255, 255, 255, .85); font: 600 .95rem var(--font); padding: .7rem .9rem; border-radius: 10px; cursor: pointer; }
.admin-nav button:hover { background: rgba(255, 255, 255, .1); }
.admin-nav button.active { background: var(--lime); color: #12301a; }
.admin-main { padding: 1.8rem; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.4rem; }
.admin-top h1 { font-size: 1.8rem; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; }
.stat b { display: block; font-size: 1.9rem; font-family: var(--serif); color: var(--deep); }
.stat span { color: var(--muted); font-size: .88rem; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; margin-bottom: 1.4rem; }
.modal-back { position: fixed; inset: 0; background: rgba(23, 32, 51, .55); display: none; place-items: center; z-index: 100; padding: 1rem; }
.modal-back.open { display: grid; }
.modal { background: #fff; border-radius: 18px; padding: 1.5rem; width: min(640px, 100%); max-height: 90vh; overflow: auto; }
.mobile-admin-bar { display: none; }

.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* Responsive */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery .g:nth-child(1) { grid-column: span 2; }
  .gallery .g:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: .6rem 1rem 1rem; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-cta .btn span.lbl { display: none; }
  .nav-cta .btn { padding: .65rem; }
  .brand span { display: none; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-nav { display: flex; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 48px; }
  .hero-inner { padding-bottom: 7rem; }
  .gallery { grid-auto-rows: 140px; }
  .btn-row .btn { flex: 1 1 100%; }
  .admin-main { padding: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
