:root {
    --navy: #092D40;
    --teal: #007F82;
    --gold: #F3BB65;
    --cloud: #F5F8FA;
    --white: #FFFFFF;
    --muted: #607581;
    --border: #DCE6E9;
    --shadow: 0 15px 45px rgba(9,45,64,.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font: 16px/1.6 system-ui, -apple-system, sans-serif;
    color: var(--navy);
    background: var(--cloud);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

header {
    background: var(--navy);
    color: white;
    padding: 20px max(5%, calc((100% - 1240px)/2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.brand {
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.1;
    text-decoration: none;
}

.brand small {
    display: block;
    color: #54D6C9;
    letter-spacing: 7px;
    font-size: 10px;
    margin-top: 7px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

nav a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

nav a:hover { color: var(--gold); }

.wrap {
    max-width: 1240px;
    margin: auto;
}

.hero {
    background:
        radial-gradient(ellipse at 85% 30%,
        rgba(48,192,177,.35), transparent 55%),
        linear-gradient(115deg,#092D40,#006D75);
    color: white;
    padding: 100px 5% 155px;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(42px,6vw,80px);
    letter-spacing: -2.5px;
    line-height: 1.08;
    margin: 18px 0;
}

.hero p {
    max-width: 600px;
    font-size: 19px;
    color: #DCEDEF;
}

.hero strong { color: var(--gold); }

.eyebrow {
    color: var(--gold);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 2.5px;
}

main { padding: 0 5% 60px; }

main.wrap { max-width: 1364px; }

section { margin: 65px 0; }

h2 {
    font-size: clamp(26px,3vw,36px);
    line-height: 1.2;
    letter-spacing: -.8px;
}

h3 { line-height: 1.3; }

p { line-height: 1.65; }

.panel {
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.search {
    position: relative;
    margin: -90px auto 45px;
    padding: 28px;
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

button {
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    border-radius: 10px;
    padding: 14px 22px;
    background: var(--teal);
    color: white;
    transition: background .2s, transform .2s;
}

button:hover { background: #00696C; }

.tabs button {
    background: #EDF4F4;
    color: var(--navy);
    min-width: 110px;
}

.tabs button.active {
    background: var(--teal);
    color: white;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

input, select {
    width: 100%;
    min-height: 52px;
    padding: 12px;
    border: 1px solid #C5D4D9;
    border-radius: 10px;
    font: inherit;
    background: white;
    color: var(--navy);
}

input:focus, select:focus {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}

.fields {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(155px,1fr));
    gap: 16px;
    align-items: end;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
    gap: 20px;
}

.tile {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    transition: transform .2s, box-shadow .2s;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.tile h3 {
    margin: 0 0 10px;
    font-size: 21px;
}

.tile p { color: var(--muted); }

.tile a {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
}

#destinations .tile {
    border-top: 4px solid var(--teal);
    min-height: 190px;
}

.banner {
    background: linear-gradient(120deg,#092D40,#075C66);
    color: white;
    border-radius: 20px;
    padding: 45px;
}

.banner a { color: var(--gold); }

.result {
    padding: 18px;
    background: #EDF7F6;
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    margin-top: 20px;
}

#budget {
    color: var(--teal);
    font-size: 25px;
    font-weight: 750;
}

#events {
    border-left: 5px solid var(--gold);
    padding: 35px;
}

footer {
    background: var(--navy);
    color: #BBD0D8;
    padding: 35px max(5%,calc((100% - 1240px)/2));
    font-size: 13px;
}

button:focus-visible, a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

@media(max-width:700px) {
    header { gap: 20px; }
    nav { gap: 15px; }
    nav a { font-size: 12px; }
    .hero { padding: 65px 5% 115px; }
    .hero h1 { letter-spacing: -1.5px; }
    .hero p { font-size: 16px; }
    .search { margin-top: -65px; }
    .panel { padding: 20px; }
    .tabs { display: grid; grid-template-columns: 1fr 1fr; }
    .tabs button { min-width: 0; }
    .fields { grid-template-columns: 1fr; }
    .grid { grid-template-columns: 1fr; }
    .banner { padding: 25px; }
    section { margin: 40px 0; }
}

@media(prefers-reduced-motion:reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

.brand img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

@media(max-width:700px) {
    .brand img { width: 180px; }
}

/* HasCover Travel Photography v0.2 */

.hero {
    background:
        linear-gradient(90deg,
        rgba(9,45,64,.88),
        rgba(9,45,64,.15)),
        url('../images/hero/thailand.webp')
        center center / cover no-repeat;
    min-height: 480px;
}

#destinations .destination-card {
    padding: 0;
    overflow: hidden;
    border-top: 0;
    transition: transform .25s, box-shadow .25s;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(9,45,64,.15);
}

.destination-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    object-fit: cover;
}

.destination-card h3 {
    margin: 20px 20px 8px;
}

.destination-card p {
    margin: 0 20px 15px;
}

.destination-card a {
    display: block;
    padding: 0 20px 22px;
}

@media(max-width:700px) {
    .hero {
        background:
            linear-gradient(
            rgba(9,45,64,.65),
            rgba(9,45,64,.35)),
            url('../images/hero/thailand-mobile.webp')
            center center / cover no-repeat;
        min-height: 420px;
    }
}

/* HasCover Travel - image layout correction */

#destinations .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

#destinations .destination-card {
    min-width: 0;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    box-sizing: border-box;
}

#destinations .destination-photo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
}

.hero {
    min-height: 0;
    padding: 85px 5% 130px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 1000px) {
    #destinations .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #destinations .grid {
        grid-template-columns: minmax(0, 1fr);
    }

    #destinations .destination-photo {
        height: 180px;
    }

    .hero {
        min-height: 0;
        padding: 65px 5% 115px;
    }
}


/* TDAC form improvements */

input[type="checkbox"] {
    appearance: auto;
    width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    max-width: 18px;
    padding: 0 !important;
    margin: 0 8px 0 0;
    display: inline-block !important;
    vertical-align: middle;
    accent-color: #007F82;
    box-shadow: none;
    flex-shrink: 0;
}

form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    padding: 12px 0;
    cursor: pointer;
}

form input:focus-visible,
form select:focus-visible {
    outline: 2px solid #007F82;
    outline-offset: 2px;
}


/* Dedicated TDAC registration layout */

body:has(form[action*="/tdac/register"]) {
    background: #F5F8FA;
}

.panel:has(form[action*="/tdac/register"]) {
    max-width: 680px;
    margin: 40px auto;
    padding: 36px;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 12px 40px rgba(9,45,64,.08);
}

form[action*="/tdac/register"] label {
    font-size: 14px;
    margin-bottom: 6px;
}

form[action*="/tdac/register"] input:not([type="checkbox"]):not([type="hidden"]),
form[action*="/tdac/register"] select {
    margin-bottom: 18px;
    min-height: 48px;
    font-size: 15px;
}

form[action*="/tdac/register"] button[type="submit"] {
    width: 100%;
    min-height: 50px;
    border-radius: 10px;
    font-size: 15px;
    background: #007F82;
    color: white;
}

@media (max-width: 700px) {
    .panel:has(form[action*="/tdac/register"]) {
        margin: 16px 12px;
        padding: 22px;
    }
}

