/* ═══════════════════════════════════════════════════════
   Homeland Bodrum — Frontend CSS (No Vite required)
   Replaces resources/css/app.css for shared hosting
   ═══════════════════════════════════════════════════════ */

:root {
    --brand-500: #1A45B6; --brand-700: #35457A; --brand-300: #7C89B3;
    --brand-100: #D3DCF1; --brand-50: #EEF2FC;
    --bg: #FFFFFF; --text: #0B1220;
    --muted-text: rgba(11,18,32,0.70); --border: rgba(11,18,32,0.10);
    --shadow-card: 0 2px 16px rgba(11,18,32,0.06);
    --shadow-card-hover: 0 8px 32px rgba(11,18,32,0.10);
    --shadow-sticky: 0 -2px 16px rgba(11,18,32,0.08);
    --font-sans: 'Inter',system-ui,-apple-system,sans-serif;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html { font-family: var(--font-sans); scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { color: var(--text); background: var(--bg); line-height: 1.6; }

/* ─── Touch targets (buttons/links only, NOT checkboxes) ─── */
a, button, [role="button"] { min-height: 44px; }
input, select, textarea { min-height: 44px; }
input[type="checkbox"], input[type="radio"] { min-height: auto; min-width: auto; }

/* ─── Utility ─── */
.text-muted { color: var(--muted-text); }
.text-brand-500 { color: var(--brand-500); }

/* ─── Card ─── */
.card { background: #fff; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow-card); transition: box-shadow .2s ease; }
.card:hover { box-shadow: var(--shadow-card-hover); }

/* ─── Buttons ─── */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.5rem; border-radius: 12px; font-weight: 600; color: #fff; background: var(--brand-500); transition: all .2s; min-height: 44px; text-decoration: none; border: none; cursor: pointer; font-size: .875rem; }
.btn-primary:hover { background: var(--brand-700); box-shadow: 0 4px 16px rgba(26,69,182,.25); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.5rem; border-radius: 12px; font-weight: 600; color: var(--brand-500); border: 1px solid var(--brand-500); background: transparent; transition: all .2s; min-height: 44px; text-decoration: none; cursor: pointer; font-size: .875rem; }
.btn-secondary:hover { background: var(--brand-100); }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; border-radius: 8px; font-weight: 500; color: var(--muted-text); transition: all .2s; min-height: 44px; text-decoration: none; cursor: pointer; border: none; background: none; font-size: .875rem; }
.btn-ghost:hover { background: rgba(0,0,0,.04); }

/* ─── Form Inputs ─── */
.form-input { display: block; width: 100%; padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--border); transition: all .2s; background: #fff; font-size: .875rem; min-height: 44px; outline: none; }
.form-input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(26,69,182,.1); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 40px; }

/* ─── Chip / Tag ─── */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 9999px; font-size: .875rem; font-weight: 500; background: var(--brand-100); color: var(--brand-700); transition: all .15s; }
.chip-active { background: var(--brand-500) !important; color: #fff !important; }
.chip-remove { margin-left: 4px; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; cursor: pointer; min-height: auto; min-width: auto; }

/* ─── Badge ─── */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 9999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.badge-brand { background: var(--brand-100); color: var(--brand-700); }

/* ─── Section ─── */
.section { padding: 4rem 0; }
@media(min-width:1024px) { .section { padding: 6rem 0; } }

/* ─── Sticky Bottom Bar ─── */
.sticky-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); z-index: 50; box-shadow: var(--shadow-sticky); padding-bottom: var(--safe-bottom); }

/* ─── Bottom Sheet ─── */
.bottom-sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 50; transition: opacity .3s ease; }
.bottom-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 20px 20px 0 0; z-index: 50; transition: transform .3s ease-out; max-height: 85vh; padding-bottom: var(--safe-bottom); transform: translateY(100%); }
.bottom-sheet.open { transform: translateY(0); }
.bottom-sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: #cbd5e1; margin: 12px auto 16px; }

/* ─── Page Transition ─── */
.page-enter { animation: pageIn .25s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-slide-up { animation: slideUp .4s ease-out; }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Scrollbar Hide ─── */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ─── Line Clamp ─── */
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ─── Aspect Ratio fallback ─── */
.aspect-\[4\/3\] { aspect-ratio: 4/3; }
.aspect-\[3\/2\] { aspect-ratio: 3/2; }
.aspect-\[16\/9\] { aspect-ratio: 16/9; }
.aspect-square { aspect-ratio: 1/1; }

/* ─── Filter checkbox proper sizing ─── */
.filter-checkbox { width: 16px !important; height: 16px !important; min-height: 16px !important; min-width: 16px !important; border-radius: 4px; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand-500); }

/* ─── Print ─── */
@media print { .no-print { display: none !important; } }
