/* VenueFind — Warm & Friendly Redesign */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,900&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
    --sand:       #f5efe6;
    --sand-dark:  #ede4d6;
    --terracotta: #c4714a;
    --terra-dark: #a85c39;
    --terra-light:#f0d5c4;
    --sage:       #7a9e7e;
    --sage-light: #d6e8d8;
    --cream:      #fdf9f4;
    --ink:        #2b2118;
    --bark:       #6b4f3a;
    --mist:       #94867a;
    --border:     #e8ddd2;
    --white:      #ffffff;
    --danger:     #c0392b;
    --success:    #3d7a4a;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    --radius:     14px;
    --radius-sm:  8px;
    --shadow:     0 2px 12px rgba(43,33,24,0.07);
    --shadow-md:  0 6px 24px rgba(43,33,24,0.10);
    --shadow-lg:  0 12px 40px rgba(43,33,24,0.14);
}

body {
    font-family: var(--font-body);
    background: var(--sand);
    color: var(--ink);
    line-height: 1.65;
    min-height: 100vh;
}

a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
nav {
    background: var(--cream);
    border-bottom: 1.5px solid var(--border);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(43,33,24,0.06);
}
.nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.nav-brand {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-brand span { color: var(--terracotta); }
.nav-links { display: flex; align-items: center; gap: 0.3rem; }
.nav-links a {
    color: var(--bark);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.45rem 0.9rem;
    border-radius: 99px;
    transition: all 0.18s;
    text-decoration: none;
}
.nav-links a:hover { color: var(--terracotta); background: var(--terra-light); }

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 99px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    letter-spacing: 0.01em;
}
.btn-primary { background: var(--terracotta); color: var(--white); box-shadow: 0 2px 8px rgba(196,113,74,0.3); }
.btn-primary:hover { background: var(--terra-dark); color: var(--white); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(196,113,74,0.35); }
.btn-secondary { background: var(--sage); color: var(--white); }
.btn-secondary:hover { background: #658b69; color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid var(--terracotta); color: var(--terracotta); }
.btn-outline:hover { background: var(--terracotta); color: var(--white); text-decoration: none; }
.btn-ghost { background: var(--sand-dark); color: var(--bark); }
.btn-ghost:hover { background: var(--border); text-decoration: none; }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-sm { padding: 0.35rem 0.95rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 2.2rem; font-size: 1rem; }

/* LAYOUT */
.container { max-width: 1240px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.container-sm { max-width: 520px; margin: 0 auto; padding: 2rem 1.5rem; }

/* HERO */
.hero {
    background: var(--ink);
    background-image:
        radial-gradient(ellipse at 70% 50%, rgba(196,113,74,0.35) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(122,158,126,0.2) 0%, transparent 50%);
    color: var(--white);
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    position: relative;
}
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero p { font-size: 1.1rem; opacity: 0.8; margin-bottom: 2.5rem; max-width: 480px; margin-left: auto; margin-right: auto; position: relative; }
.hero-search {
    background: var(--cream);
    border-radius: 99px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    display: flex;
    max-width: 540px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    border: 1.5px solid var(--border);
    position: relative;
}
.hero-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--ink);
}
.hero-search input::placeholder { color: var(--mist); }
.hero-stats {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    opacity: 0.65;
    font-size: 0.88rem;
    position: relative;
}

/* CATEGORY PILLS */
.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bark);
    text-decoration: none;
    transition: all 0.18s;
    box-shadow: var(--shadow);
}
.cat-pill:hover { background: var(--terra-light); border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-md); }

/* CARDS */
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }

.card {
    background: var(--cream);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--terracotta); }

.card-img-wrap { position: relative; overflow: hidden; }
.card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}
.card:hover .card-img { transform: scale(1.04); }
.card-img-placeholder {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, var(--terra-light) 0%, var(--sage-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}
.card-category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(253,249,244,0.92);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bark);
}
.card-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.card-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; margin-bottom: 0.25rem; line-height: 1.3; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--terracotta); text-decoration: none; }
.card-meta { font-size: 0.82rem; color: var(--mist); margin-bottom: 0.65rem; }
.card-desc { font-size: 0.88rem; color: var(--bark); margin-bottom: 1rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.55; }
.card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.9rem; border-top: 1px solid var(--sand-dark); margin-top: auto; }
.price { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--terracotta); }
.price span { font-family: var(--font-body); font-size: 0.78rem; font-weight: 400; color: var(--mist); }

/* BADGE */
.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--sand-dark);
    color: var(--bark);
}
.badge-primary { background: var(--terra-light); color: var(--terracotta); }
.badge-sage { background: var(--sage-light); color: var(--sage); }

/* FORMS */
.form-card {
    background: var(--cream);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 2.2rem;
}
.form-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1.6rem;
    text-align: center;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.form-group { margin-bottom: 1.2rem; }
label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem; color: var(--ink); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], select, textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: var(--white);
    color: var(--ink);
    transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(196,113,74,0.12);
}
textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.8rem; color: var(--mist); margin-top: 0.3rem; }

/* ALERTS */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-error   { background: #fde8e8; color: #8b1a1a; border-left: 4px solid var(--danger); }
.alert-success { background: var(--sage-light); color: #2a5c34; border-left: 4px solid var(--sage); }
.alert-info    { background: var(--terra-light); color: var(--terra-dark); border-left: 4px solid var(--terracotta); }

/* VENUE DETAIL */
.venue-hero img, .venue-hero .img-placeholder {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
}
.venue-hero .img-placeholder {
    background: linear-gradient(135deg, var(--terra-light), var(--sage-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}
.venue-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; margin-top: 2rem; }
.venue-info h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.venue-info .location { color: var(--mist); margin-bottom: 1rem; font-size: 0.95rem; }
.venue-info h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; color: var(--ink); }
.venue-info p { color: var(--bark); line-height: 1.75; }
.sidebar-card {
    background: var(--cream);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 1.8rem;
    position: sticky;
    top: 84px;
}
.price-big { font-family: var(--font-display); font-size: 2.3rem; font-weight: 900; color: var(--terracotta); letter-spacing: -0.03em; }
.price-big span { font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--mist); }
.amenity-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }

/* SECTION HEADERS */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.section-header h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

/* PAGE HEADER */
.page-header { background: var(--cream); border-bottom: 1.5px solid var(--border); padding: 2rem 1.5rem; }
.page-header h1 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); }
.page-header p { color: var(--mist); margin-top: 0.3rem; }

/* FILTERS */
.filters {
    background: var(--cream);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.3rem 1.6rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}
.filters .form-group { margin-bottom: 0; min-width: 150px; }

/* TABLE */
table { width: 100%; border-collapse: collapse; background: var(--cream); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1.5px solid var(--border); }
th, td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
th { background: var(--sand-dark); font-weight: 700; color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--sand); }

/* EMPTY STATE */
.empty { text-align: center; padding: 5rem 2rem; color: var(--mist); }
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }

/* CTA BANNER */
.cta-banner {
    background: var(--ink);
    background-image: radial-gradient(ellipse at 80% 50%, rgba(196,113,74,0.3) 0%, transparent 60%);
    border-radius: var(--radius);
    padding: 3.5rem 2.5rem;
    text-align: center;
    color: var(--white);
    margin-top: 3.5rem;
}
.cta-banner h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.cta-banner p { opacity: 0.75; margin-bottom: 1.8rem; }

/* FOOTER */
footer { background: var(--ink); color: var(--mist); text-align: center; padding: 2.5rem; margin-top: 5rem; font-size: 0.88rem; }
footer a { color: var(--mist); }
footer a:hover { color: var(--terracotta); }

/* UTILS */
hr.divider { border: none; border-top: 1.5px solid var(--border); margin: 1.2rem 0; }
.status-active { color: var(--sage); font-weight: 700; }
.status-hidden { color: var(--mist); font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 820px) {
    .venue-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .filters { flex-direction: column; }
    .hero-search { flex-direction: column; border-radius: var(--radius); padding: 1rem; gap: 0.6rem; }
    .hero-search input { padding: 0.4rem 0; }
    .hero-stats { flex-direction: column; gap: 0.5rem; }
}
