/* ==========================================================================
   AIRBNB DESIGN SYSTEM — TRAMITE.LOCAL STYLE TOKENS & FRAMEWORK
   Quiet white gallery wall with one coral-red bookmark (Rausch: #ff385c)
   ========================================================================== */

/* Google Fonts is preloaded asynchronously in HTML <head> for zero render-blocking */

:root {
    /* --- AIRBNB COLOR TOKENS --- */
    --color-rausch: #ff385c;        /* Red decorative accent, brand punctuation, search submit */
    --color-rausch-600: #e00b41;    /* Pressed/hover state of Rausch */
    --color-hof: #222222;           /* Primary text, body copy, headings, icon strokes */
    --color-foggy: #6a6a6a;         /* Secondary text, muted labels, helper copy */
    --color-grey-500: #c1c1c1;      /* Disabled text, placeholder text */
    --color-bebe: #ebebeb;          /* Hairline borders, dividers, subtle separators */
    --color-deco: #dddddd;          /* Card surface backgrounds for muted containers */
    --color-faint: #f7f7f7;         /* Page canvas background, footer surface */
    --color-white: #ffffff;         /* Elevated card surfaces, inputs, modals */

    /* --- SEMANTIC MAPPINGS --- */
    --bg-base: var(--color-faint);
    --bg-surface: var(--color-white);
    --bg-surface-hover: var(--color-faint);
    --text-primary: var(--color-hof);
    --text-secondary: var(--color-foggy);
    --border-color: var(--color-bebe);
    
    /* Brand Accent */
    --brand-primary: var(--color-rausch);
    --brand-primary-hover: var(--color-rausch-600);
    --brand-primary-text: #ffffff;
    
    /* System Status */
    --status-warning: #f59e0b;
    --status-warning-text: #222222;
    --status-warning-bg: #fffbeb;
    --status-success: #10b981;
    --status-success-bg: #ecfdf5;
    --status-error: #ef4444;
    --status-error-bg: #fef2f2;

    /* Subtle Category Chips (Monochrome / Soft Tint) */
    --cat-blue-bg: #f0f7ff;
    --cat-blue-text: #222222;
    --cat-green-bg: #f2fbf6;
    --cat-green-text: #222222;
    --cat-orange-bg: #fff7ed;
    --cat-orange-text: #222222;
    --cat-violet-bg: #faf5ff;
    --cat-violet-text: #222222;
    --cat-magenta-bg: #fdf2f8;
    --cat-magenta-text: #222222;
    --cat-yellow-bg: #fefce8;
    --cat-yellow-text: #222222;
    --cat-aqua-bg: #f0fdfa;
    --cat-aqua-text: #222222;
    --cat-red-bg: #fff1f2;
    --cat-red-text: #222222;

    /* --- SHAPES & RADII --- */
    --radius-cards: 12px;
    --radius-card: 12px;
    --radius-inputs: 8px;
    --radius-control: 9999px;      /* Pill controls */
    --radius-badges: 9999px;
    --radius-buttons: 9999px;
    --radius-search-bar: 9999px;

    /* --- BORDERS & SHADOWS --- */
    --border-thin: 1px solid var(--color-bebe);
    --shadow-subtle: 0px 0px 0px 1px rgba(0, 0, 0, 0.02), 0px 2px 6px 0px rgba(0, 0, 0, 0.04), 0px 4px 8px 0px rgba(0, 0, 0, 0.10);
    --shadow-hover: 0px 0px 0px 1px rgba(0, 0, 0, 0.04), 0px 6px 20px 0px rgba(0, 0, 0, 0.12);
    --shadow-elevated: 0 8px 28px rgba(0, 0, 0, 0.12);

    /* Touch targets */
    --touch-size: 40px;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--color-faint);
    color: var(--color-hof);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-hof);
}

h2 {
    font-size: 22px;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: var(--color-hof);
}

h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.009em;
    color: var(--color-hof);
}

h4, h5, h6 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--color-hof);
}

p {
    font-size: 14px;
    line-height: 1.43;
    color: var(--color-hof);
}

a {
    color: var(--color-hof);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: var(--radius-buttons);
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    background: transparent;
    color: var(--color-hof);
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

/* Primary Action: Single Rausch Accent */
.btn-primary {
    background-color: var(--color-rausch);
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: var(--color-rausch-600);
    color: #ffffff !important;
}

/* Ghost Outline Button */
.btn-outline {
    border: 1px solid var(--color-hof);
    background-color: transparent;
    color: var(--color-hof);
    border-radius: 8px;
}

.btn-outline:hover {
    background-color: var(--color-faint);
    color: var(--color-hof);
}

/* Filled Inverse Button */
.btn-inverse {
    background-color: var(--color-hof);
    color: #ffffff !important;
    border-radius: 8px;
}

.btn-inverse:hover {
    background-color: #000000;
}

/* Circular Nav / Icon Button */
.btn-circle {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 9999px;
    padding: 0;
    background-color: var(--color-faint);
    border: 1px solid var(--color-bebe);
    color: var(--color-hof);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-circle:hover {
    background-color: var(--color-bebe);
}

/* Form Controls */
button, input, select, textarea {
    font-family: inherit;
    font-size: 14px;
    color: var(--color-hof);
    border-radius: var(--radius-inputs);
}

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

.input-control {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--color-bebe);
    background-color: var(--color-white);
    color: var(--color-hof);
    border-radius: var(--radius-inputs);
    transition: border-color 0.15s ease;
}

.input-control:focus {
    border-color: var(--color-hof);
    outline: none;
}

/* --- CARDS & SURFACES --- */
.card {
    background-color: var(--color-white);
    border: 1px solid var(--color-bebe);
    border-radius: var(--radius-cards);
    padding: 24px;
    box-shadow: none; /* Airbnb relies on whitespace and hairlines */
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-subtle);
}

/* Hero Section: Quiet Gallery Wall */
.hero {
    background-color: var(--color-faint) !important;
    color: var(--color-hof) !important;
    padding: 56px 24px 64px !important;
    text-align: center;
    border-bottom: 1px solid var(--color-bebe);
}

.hero h1 {
    color: var(--color-hof) !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin-bottom: 32px !important;
    letter-spacing: -0.02em !important;
}

.hero-pre {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--color-foggy) !important;
    margin-bottom: 12px !important;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em !important;
}

.hero-desc, .hero p {
    color: var(--color-foggy) !important;
    font-size: 16px !important;
    margin-bottom: 32px !important;
}

/* Floating Search Capsule */
.hero-search {
    max-width: 860px !important;
    margin: 0 auto;
    position: relative;
    background: #ffffff !important;
    border-radius: var(--radius-search-bar) !important;
    border: 1px solid var(--color-bebe) !important;
    box-shadow: var(--shadow-subtle) !important;
    transition: box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1) !important;
}

.hero-search:hover, .hero-search:focus-within {
    box-shadow: var(--shadow-hover) !important;
}

.hero-search input {
    width: 100%;
    height: 64px !important;
    border-radius: var(--radius-search-bar) !important;
    border: none !important;
    padding: 0 68px 0 32px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--color-hof) !important;
    background: transparent !important;
    outline: none !important;
}

.hero-search input::placeholder {
    color: var(--color-foggy) !important;
    font-weight: 400 !important;
}

/* Rausch Search Submit Pill/Button */
.hero-search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    background-color: var(--color-rausch);
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    z-index: 5;
}

.hero-search-submit:hover {
    background-color: var(--color-rausch-600);
}

.hero-search-submit:active {
    transform: translateY(-50%) scale(0.96);
}

/* Search Dropdown Panel */
#search-panel {
    background: #ffffff !important;
    border: 1px solid var(--color-bebe) !important;
    border-radius: 24px !important;
    box-shadow: var(--shadow-elevated) !important;
    margin-top: 12px;
}

/* Badges / Pills */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-badges);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    background-color: var(--color-faint);
    color: var(--color-hof);
    border: 1px solid var(--color-bebe);
}

.badge-warning {
    background-color: var(--status-warning-bg);
    color: var(--status-warning-text);
    border-color: #fef3c7;
}

/* Category Grid & Cards */
.cat-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: var(--radius-cards);
    background-color: var(--color-white);
    border: 1px solid var(--color-bebe);
    color: var(--color-hof);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.cat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
    border-color: var(--color-deco);
    color: var(--color-hof);
}

.cat-icon {
    font-size: 1.1rem;
    margin-right: 12px;
    color: var(--color-hof);
}

.cat-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-hof);
}

/* Quick Access Cards */
.quick-card {
    background: var(--color-white);
    border: 1px solid var(--color-bebe);
    border-radius: var(--radius-cards);
    padding: 24px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-hof);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.quick-card:hover {
    box-shadow: var(--shadow-subtle);
    transform: translateY(-2px);
    color: var(--color-hof);
}

.quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    background: var(--color-faint);
    border: 1px solid var(--color-bebe);
    color: var(--color-hof);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex { display: flex; }
.grid { display: grid; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }

/* ==========================================================================
   Google AdSense Layout & Format Protection
   ========================================================================== */
.adsense-wrapper {
    box-sizing: border-box;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.adsense-pos-AD_TOP {
    max-height: 120px;
    margin-top: 16px;
    margin-bottom: 22px;
}

.adsense-pos-AD_BOTTOM {
    max-height: 140px;
    margin-top: 28px;
    margin-bottom: 24px;
}

.adsense-pos-AD_TOP ins.adsbygoogle,
.adsense-pos-AD_BOTTOM ins.adsbygoogle {
    max-height: 100px !important;
}

/* Auto-colapsar anuncios que no devuelvan creatividad para evitar cajas vacías */
ins.adsbygoogle[data-ad-status="unfilled"],
ins.adsbygoogle[data-ad-status="unfilled"] * {
    display: none !important;
    height: 0 !important;
    visibility: hidden !important;
}

.adsense-wrapper:has(ins[data-ad-status="unfilled"]) {
    display: none !important;
}
