/* =========================================================
   Tour Agency — Base & Design Tokens
   ========================================================= */

:root {
    --primary-color: #1E80FF;
    --primary-hover: #0F6AE6;
    --primary-soft: #E8F2FF;
    --text-dark: #111111;
    --text-muted: #666666;
    --text-light: #999999;
    --background-light: #F7F8FA;
    --background-white: #FFFFFF;
    --border-color: #E5E5E5;
    --success-color: #1F9D55;
    --warning-color: #F0B429;
    --danger-color: #E12D39;
    --sale-color: #E12D39;
    --featured-color: #1E80FF;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(17, 17, 17, 0.06);
    --shadow-md: 0 8px 24px rgba(17, 17, 17, 0.08);
    --shadow-lg: 0 16px 40px rgba(17, 17, 17, 0.10);
    --container: 1200px;
    --header-height: 80px;
    --font-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --transition: 0.2s ease;
    --fallback-hero: url("https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1600");
    --fallback-card: url("https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?w=800");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.5em;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1em;
    color: var(--text-muted);
}

ul, ol {
    margin: 0 0 1em;
    padding-left: 1.25em;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

figure {
    margin: 0;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 72px 0;
}

.section--light {
    background: var(--background-light);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}

.section-header__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.section-header__title {
    margin-bottom: 12px;
}

.section-header__subtitle {
    margin: 0;
    font-size: 1.05rem;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-dark { color: var(--text-dark); }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.alert-success {
    background: #E3F9E5;
    color: #0E6245;
    border: 1px solid #C6F6D5;
}

.alert-error,
.alert-danger {
    background: #FFF5F5;
    color: #9B2C2C;
    border: 1px solid #FED7D7;
}

.alert-info {
    background: var(--primary-soft);
    color: #1A4B8C;
    border: 1px solid #BEE3F8;
}

.alert-warning {
    background: #FFFAF0;
    color: #9C4221;
    border: 1px solid #FEEBC8;
}

.toast-stack {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.toast {
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 14px 16px;
    border-left: 4px solid var(--primary-color);
    animation: slideIn 0.25s ease;
}

.toast--success { border-left-color: var(--success-color); }
.toast--error { border-left-color: var(--danger-color); }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
