/* International Traveller Portal — theme */
:root {
    --ink: #17203a;
    --ink-soft: #4a5578;
    --saffron: #e07b12;
    --saffron-deep: #b45309;
    --indigo: #232b6d;
    --indigo-deep: #1a2156;
    --gold: #f2b544;
    --paper: #fdfaf5;
    --card: #ffffff;
    --line: #e9e2d4;
    --green: #15803d;
    --red: #b91c1c;
    font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.55;
}

/* ---------------- nav ---------------- */
.itp-nav {
    position: sticky; top: 0; z-index: 900;
    display: flex; align-items: center; gap: 1.2rem;
    padding: .65rem 1.4rem;
    background: rgba(26, 33, 86, .97);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    flex-wrap: wrap;
}
.itp-nav .brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.02rem; white-space: nowrap; }
.itp-nav .brand .globe { font-size: 1.35rem; }
.itp-nav .brand small { display: block; font-weight: 400; font-size: .66rem; color: #c7cdf0; letter-spacing: .06em; text-transform: uppercase; }
.itp-tabs { display: flex; gap: .2rem; flex-wrap: wrap; }
.itp-tab {
    border: none; background: transparent; color: #dfe3ff;
    padding: .5rem .8rem; border-radius: 8px; font-size: .82rem; font-weight: 600;
    cursor: pointer; transition: background .15s;
}
.itp-tab:hover { background: rgba(255,255,255,.12); }
.itp-tab.active { background: var(--saffron); color: #fff; }
#mahayatra-auth-slot { display: flex; align-items: center; }

/* ---------------- hero ---------------- */
.itp-hero {
    position: relative; color: #fff; text-align: center;
    padding: 4.5rem 1.5rem 5rem;
    background:
        linear-gradient(180deg, rgba(26,33,86,.55) 0%, rgba(26,33,86,.35) 45%, rgba(26,33,86,.85) 100%),
        url('/static/images/hero.jpg') center 30% / cover no-repeat,
        linear-gradient(135deg, var(--indigo-deep) 0%, var(--indigo) 55%, #33306e 100%);
    overflow: hidden;
}
.itp-hero .kicker { letter-spacing: .28em; text-transform: uppercase; font-size: .78rem; color: var(--gold); font-weight: 700; }
.itp-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 4.6vw, 3.4rem); margin: .6rem 0 .8rem; line-height: 1.12; }
.itp-hero p.sub { max-width: 760px; margin: 0 auto 1.6rem; color: #d7dbff; font-size: 1.02rem; }
.hero-stats { display: flex; justify-content: center; gap: 2.6rem; flex-wrap: wrap; margin: 1.8rem 0 2rem; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat b { display: block; font-size: 1.7rem; color: var(--gold); font-family: 'Playfair Display', serif; }
.hero-stats .stat span { font-size: .72rem; color: #c7cdf0; text-transform: uppercase; letter-spacing: .08em; }
.hero-ctas { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

.btn { border: none; border-radius: 10px; padding: .8rem 1.5rem; font-size: .92rem; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s; text-decoration: none; display: inline-block; }
.btn-saffron { background: var(--saffron); color: #fff; box-shadow: 0 6px 18px rgba(224,123,18,.4); }
.btn-saffron:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-outline { background: #fff; color: var(--indigo); border: 1.5px solid var(--line); }
.btn-green { background: var(--green); color: #fff; }
.btn-red { background: var(--red); color: #fff; }

/* ---------------- layout ---------------- */
.itp-main { max-width: 1180px; margin: 0 auto; padding: 2rem 1.2rem 4rem; }
.tab-section { display: none; }
.tab-section.active { display: block; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; } }

.section-head { text-align: center; margin: 1.2rem 0 1.8rem; }
.section-head h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--indigo-deep); }
.section-head p { color: var(--ink-soft); max-width: 720px; margin: .4rem auto 0; font-size: .95rem; }

/* ---------------- cards ---------------- */
.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px;
    padding: 1.2rem 1.3rem; box-shadow: 0 2px 10px rgba(23,32,58,.05);
    overflow: hidden;
}
.card-img {
    display: block; width: calc(100% + 2.6rem);
    margin: -1.2rem -1.3rem 1rem;
    height: 175px; object-fit: cover;
    border-radius: 14px 14px 0 0;
}
.itin-card .card-img { height: 150px; }
.card h3 { font-size: 1.06rem; color: var(--indigo-deep); margin-bottom: .45rem; }
.card .icon { font-size: 1.7rem; }
.card p, .card li { font-size: .87rem; color: var(--ink-soft); }
.card ul { padding-left: 1.1rem; margin-top: .4rem; }
.card ul li { margin-bottom: .28rem; }

.why-card { border-top: 4px solid var(--saffron); }
.attr-card { position: relative; }
.attr-card .badge-unesco {
    position: absolute; top: .9rem; right: .9rem;
    background: var(--indigo); color: var(--gold); font-size: .62rem; font-weight: 800;
    padding: .22rem .55rem; border-radius: 999px; letter-spacing: .06em;
}
.attr-card .meta { display: flex; gap: .9rem; margin: .5rem 0 .6rem; font-size: .75rem; color: var(--ink-soft); }
.attr-card .meta b { color: var(--saffron-deep); }
.attr-card .notes {
    margin-top: .6rem; padding: .55rem .7rem; background: #fff7ec; border-left: 3px solid var(--gold);
    border-radius: 6px; font-size: .8rem; color: #6b5312;
}
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.4rem; }
.chip {
    border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
    padding: .42rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 600; cursor: pointer;
}
.chip.active { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* ---------------- story / 101 ---------------- */
.story {
    background: linear-gradient(180deg, #fffdf8, #fff);
    border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem 2rem; margin-bottom: 1.4rem;
}
.story h3 { font-family: 'Playfair Display', serif; color: var(--indigo-deep); font-size: 1.35rem; margin-bottom: .6rem; }
.story p { color: var(--ink-soft); font-size: .94rem; margin-bottom: .6rem; }
.story .drop { font-family: 'Playfair Display', serif; font-size: 2.6rem; color: var(--saffron); float: left; line-height: 1; padding: .1rem .5rem 0 0; }

.glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .8rem; }
.glossary-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .8rem .95rem; }
.glossary-item b { color: var(--saffron-deep); font-size: .88rem; }
.glossary-item p { font-size: .8rem; color: var(--ink-soft); margin-top: .2rem; }

.etiquette { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 720px) { .etiquette { grid-template-columns: 1fr; } }
.etiquette .do { border-top: 4px solid var(--green); }
.etiquette .dont { border-top: 4px solid var(--red); }

/* ---------------- itineraries ---------------- */
.itin-card { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.itin-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(23,32,58,.12); }
.itin-card .days { display: inline-block; background: var(--indigo); color: #fff; font-size: .72rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px; margin-bottom: .5rem; }
.itin-detail { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.6rem; margin-top: 1.2rem; }
.itin-day { display: flex; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.itin-day:last-child { border-bottom: none; }
.itin-day .dnum {
    min-width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--saffron); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ---------------- essentials ---------------- */
.ess-block { margin-bottom: 1.3rem; }
.ess-block h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; color: var(--indigo-deep); margin-bottom: .55rem; }
.advisory { border-left: 4px solid var(--saffron); background: #fff7ec; }
.advisory.critical { border-left-color: var(--red); background: #fef2f2; }
.advisory.high { border-left-color: #ea580c; background: #fff7ed; }
.phrase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .7rem; }
.phrase { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .85rem; }
.phrase b { color: var(--indigo); font-size: .9rem; }
.phrase span { display: block; font-size: .76rem; color: var(--ink-soft); }
.phrase small { color: var(--saffron-deep); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.number-list .num-row { display: flex; justify-content: space-between; padding: .45rem .2rem; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.number-list .num-row b { color: var(--indigo); }

/* ---------------- my trip ---------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-size: .75rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .28rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: .65rem .8rem; border: 1.5px solid var(--line); border-radius: 9px;
    font-size: .9rem; font-family: inherit; background: #fffdfc;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--saffron); }
.field.full { grid-column: 1 / -1; }

.monitor-card { border: 2px solid var(--green); background: linear-gradient(180deg, #f2fdf6, #fff); }
.monitor-card .status {
    display: inline-flex; align-items: center; gap: .35rem; background: var(--green); color: #fff;
    font-size: .72rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px;
}
.monitor-card .tid { font-family: monospace; font-size: .85rem; background: #eef2ff; padding: .2rem .5rem; border-radius: 6px; color: var(--indigo); }
.timeline { margin-top: 1rem; }
.timeline .t-item { display: flex; gap: .8rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .86rem; }
.timeline .t-item .t-time { color: var(--ink-soft); font-size: .74rem; white-space: nowrap; }
.timeline .t-item .t-loc { font-weight: 700; color: var(--indigo-deep); }

/* ---------------- visa & flights ---------------- */
.visa-lookup { max-width: 680px; margin: 0 auto 1.6rem; }
.visa-lookup .row { display: flex; gap: .6rem; }
.visa-lookup input {
    flex: 1; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 10px; font-size: .95rem; background: #fff;
}
.visa-result { max-width: 760px; margin: 0 auto 1.8rem; border-left: 5px solid var(--saffron); background: linear-gradient(180deg,#fffdf6,#fff); }
.visa-result .cat { display: inline-block; background: var(--indigo); color: #fff; font-size: .7rem; font-weight: 800; padding: .25rem .7rem; border-radius: 999px; letter-spacing: .04em; }
.visa-result a.ref, .ref-link { color: var(--saffron-deep); font-weight: 700; font-size: .82rem; text-decoration: none; }
.visa-result a.ref:hover, .ref-link:hover { text-decoration: underline; }
.visa-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: .9rem; margin-bottom: 1.8rem; }
.route-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.route-table th { text-align: left; color: var(--ink-soft); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; padding: .4rem .5rem; border-bottom: 2px solid var(--line); }
.route-table td { padding: .5rem; border-bottom: 1px solid #f1ead9; vertical-align: top; }
.route-table td:first-child { font-weight: 700; color: var(--indigo-deep); white-space: nowrap; }
.region-block { margin-bottom: 1.2rem; }
.region-block h4 { font-size: .95rem; color: var(--saffron-deep); margin-bottom: .5rem; letter-spacing: .04em; text-transform: uppercase; }
.prov-grid .card a { color: var(--saffron-deep); font-weight: 700; font-size: .8rem; text-decoration: none; }
.prov-grid .card a:hover { text-decoration: underline; }
.note-bar { background: #fff7ec; border: 1px solid #f2ddb8; border-radius: 10px; padding: .8rem 1rem; font-size: .84rem; color: #6b5312; margin-bottom: 1.4rem; }

/* toast */
.itp-toast {
    position: fixed; bottom: 22px; right: 22px; z-index: 30000;
    background: var(--ink); color: #fff; padding: .8rem 1.2rem; border-radius: 10px;
    font-size: .85rem; box-shadow: 0 8px 24px rgba(0,0,0,.3); display: none; max-width: 380px;
}
.itp-toast.show { display: block; animation: fadein .25s ease; }
.itp-toast.ok { background: var(--green); }
.itp-toast.err { background: var(--red); }

footer { text-align: center; padding: 2rem 1rem; color: var(--ink-soft); font-size: .8rem; border-top: 1px solid var(--line); background: #fff; }
