/* =====================================================
   CATCETERA CAT LOUNGE - Stylesheet
   Color palette inspired by the Wix site screenshots:
   - Background: light blue-gray (#d5e6e8)
   - Accent: lavender/purple (#d4a5e5)
   - Text: dark (#2a2a2a)
   ===================================================== */

:root {
    --bg-main: #d5e6e8;
    --bg-white: #ffffff;
    --bg-alt: #c8dde0;
    --accent: #d4a5e5;
    --accent-hover: #c48dd8;
    --accent-light: #f0e0f7;
    --text: #2a2a2a;
    --text-light: #5a5a5a;
    --text-muted: #888;
    --border: #b8cfd2;
    --danger: #e85d5d;
    --success: #4caf50;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; }

a { color: var(--text); }
img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--text); }
.btn-outline:hover { background: var(--accent-light); }
.btn-lg { padding: 0.8rem 2rem; font-size: 1.1rem; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #d04444; }
.btn-back { background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--text-light); margin-bottom: 1rem; font-family: var(--font-body); }
.btn-back:hover { color: var(--text); }

/* ---- Navigation ---- */
.main-nav {
    background: var(--bg-white);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}
.logo-head {
    height: 38px;
    width: auto;
    margin-bottom: -4px;
}
.logo-wordmark {
    height: 24px;
    width: auto;
}
.logo-cat { font-size: 1.3em; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-light);
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ---- Hero (Homepage) ---- */
.page-home .hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('cat-background.png') center/cover no-repeat;
    text-align: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(213, 230, 232, 0.82);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem;
}
.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
.hero-tagline {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}
.hero-content .btn-primary {
    background: #a855c8;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}
.hero-content .btn-primary:hover {
    background: #9333b0;
}

/* ---- Sections ---- */
.section { padding: 4rem 0; }
.alt-bg { background: var(--bg-alt); }
.page-header {
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    background: var(--bg-alt);
}
.page-header p { color: var(--text-light); margin-top: 0.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---- Two Column Layout ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
.two-col.reverse .col-text { order: 2; }
.two-col.reverse .col-image { order: 1; }
.col-text p { margin-bottom: 1rem; }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); }

blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--accent-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}
blockquote cite { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: var(--text-light); }

.highlight-text {
    background: var(--accent-light);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
}

/* ---- CTA Section ---- */
.cta-section {
    background: var(--bg-alt);
    text-align: center;
}
.cta-section h2 { margin-bottom: 0.5rem; }
.cta-section p { margin-bottom: 1.5rem; color: var(--text-light); }

/* ---- Info Grid (About page) ---- */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.info-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.info-card h3 { margin-bottom: 1rem; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 0.4rem 0; border-bottom: 1px solid #eee; }
.hours-table td:last-child { text-align: right; font-weight: 500; }
.hours-table .closed td { color: var(--text-muted); }
address { font-style: normal; line-height: 1.8; }
.map-container { margin-top: 1.5rem; }

/* ---- Social Icons ---- */
.social-icons { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--text);
    transition: all 0.2s;
    text-decoration: none;
}
.social-icon:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.social-icons.large { justify-content: center; gap: 1.5rem; }
.social-icons.large .social-icon {
    width: auto;
    height: auto;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    gap: 0.5rem;
    background: var(--bg-white);
    box-shadow: var(--shadow);
}
.social-icons.large .social-icon span { font-size: 0.9rem; font-weight: 500; }

/* ---- Rescue Cards ---- */
.rescue-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.rescue-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.rescue-card h3 { margin: 1rem 0 0.5rem; }
.rescue-card p { color: var(--text-light); margin-bottom: 1rem; font-size: 0.95rem; }
.rescue-logo { width: 80px; height: 80px; object-fit: contain; }

/* ---- Booking Page ---- */
.booking-section { padding-bottom: 4rem; }

/* Service cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.service-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.service-image { height: 220px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; }
.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    padding: 1.2rem 1.5rem 0;
}
.service-divider {
    width: 60%;
    height: 1px;
    background: var(--border);
    margin: 0.8rem auto;
}
.service-description { padding: 0.4rem 1.8rem 0; font-size: 0.9rem; color: var(--text-light); line-height: 1.6; text-align: left; }
.service-details { padding: 0 1.5rem; }
.service-details p { margin: 0.2rem 0; color: var(--text-light); font-size: 0.95rem; }
.service-price { font-weight: 600; font-size: 1.1rem !important; color: var(--text) !important; }
.service-card .btn { margin: 1rem 0 1.5rem; }

/* Date & Time picker */
.datetime-layout {
    display: grid;
    grid-template-columns: auto 1fr 250px;
    gap: 2rem;
    align-items: start;
}

.calendar-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    min-width: 280px;
}
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}
.cal-nav {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    transition: background 0.2s;
}
.cal-nav:hover { background: var(--bg-alt); }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    text-align: center;
}
.cal-day-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.3rem;
}
#cal-days {
    display: contents;
}
.cal-day {
    padding: 0.5rem 0.3rem;
    border-radius: 50%;
    font-size: 0.9rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1px auto;
}
.cal-day.available { cursor: pointer; color: #7b2d8e; font-weight: 700; }
.cal-day.available:hover { background: var(--accent-light); }
.cal-day.selected { background: var(--accent); color: #fff !important; }
.cal-day.past, .cal-day.unavailable { color: #ccc; }
.cal-day.today { border: 2px solid var(--accent); }
.cal-day.empty { visibility: hidden; }

.timeslots-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.timeslots-panel h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.timezone-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.timeslots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.timeslot-btn {
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    background: var(--bg-white);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.slot-time { font-size: 0.95rem; font-weight: 500; }
.slot-remaining { font-size: 0.7rem; color: var(--text-light); }
.timeslot-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.timeslot-btn.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.timeslot-btn.selected .slot-remaining { color: rgba(255,255,255,0.85); }
.timeslot-btn.low .slot-remaining { color: var(--danger); font-weight: 600; }
.timeslot-btn.low.selected .slot-remaining { color: #ffd3d3; }
.timeslot-btn.full { opacity: 0.45; cursor: not-allowed; background: #e8e8e8; border-color: #ddd; }
.timeslot-btn.full .slot-time { color: var(--text-light); }
.timeslot-btn.full .slot-remaining { color: var(--text-muted); font-style: italic; }

.service-summary {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.service-summary h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.summary-name { font-weight: 600; }
.service-summary #btn-next {
    margin-top: 1.5rem;
    padding: 0.85rem 2.5rem;
    width: 100%;
}

/* Booking form */
.booking-form {
    max-width: 500px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg-white);
}
.form-group select, .admin-table select, select.styled-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 2.5rem 12px 1rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}
.select-wrapper {
    position: relative;
}
.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 12px 2.5rem 12px 1rem !important;
    width: 100%;
    cursor: pointer;
}
.select-wrapper::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-light);
    pointer-events: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ---- Form Validation Errors ---- */
.field-error {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.3rem;
    margin-bottom: 0;
}
.input-error, .input-error:focus {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(224, 88, 88, 0.15) !important;
}
.waiver-checkbox-row.input-error { border: none !important; box-shadow: none !important; }

/* ---- Waiver Section ---- */
.waiver-section {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: #f9f5fc;
    border-radius: var(--radius);
    border: 1.5px solid var(--accent-light);
}
.waiver-section h4 { margin-bottom: 0.25rem; }
.waiver-instruction { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.75rem; }
.waiver-scroll-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow-y: auto;
    max-height: 300px;
    padding: 1.25rem 1.5rem;
    background: #fff;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
}
.waiver-scroll-box p { margin-bottom: 0.8rem; }
.waiver-scroll-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
    transition: opacity 0.3s;
    animation: bounce-hint 1.5s ease infinite;
}
.waiver-scroll-hint.hidden { opacity: 0; pointer-events: none; }
@keyframes bounce-hint {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}
.waiver-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}
.waiver-checkbox-row input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}
.waiver-checkbox-row input[type="checkbox"]:disabled + label {
    color: #999;
}
.waiver-checkbox-row label {
    font-size: 0.85rem;
    line-height: 1.4;
    cursor: pointer;
}
.waiver-alt-link { font-size: 0.8rem; color: var(--text-light); margin-top: 0.5rem; }
.waiver-alt-link a { color: var(--accent); }

.booking-summary-box {
    background: var(--accent-light);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
}
.booking-summary-box h4 { margin-bottom: 0.3rem; }

.confirmation-box {
    text-align: center;
    padding: 3rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 0 auto;
}
.confirm-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--success);
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* ---- Footer ---- */
.site-footer {
    background: #2a2a2a;
    color: #ccc;
    padding: 3rem 0 0;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}
.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}
.footer-logo-head { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-logo-wordmark { height: 22px; width: auto; filter: brightness(0) invert(1); display: block; margin-top: 2px; }
.footer-brand p { font-family: var(--font-body); font-size: 0.9rem; font-weight: 400; color: #aaa; margin-top: 0.5rem; }
.footer-links h4, .footer-social h4 { color: #fff; margin-bottom: 0.8rem; font-size: 1rem; }
.footer-links a { display: block; color: #aaa; text-decoration: none; margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent); }
.footer-social .social-icon { background: #444; color: #ccc; }
.footer-social .social-icon:hover { background: var(--accent); color: #fff; }
.footer-bottom {
    border-top: 1px solid #444;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}

/* ---- Admin ---- */
.admin-page { background: #f0f2f5; }
.admin-login {
    max-width: 380px;
    margin: 8rem auto;
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.admin-login h1 { margin-bottom: 1.5rem; }
.admin-login .btn { width: 100%; margin-top: 0.5rem; }

.admin-nav {
    background: #2a2a2a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem;
    flex-wrap: wrap;
}
.admin-nav .nav-logo { color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }
.admin-nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.admin-nav-links a { color: #aaa; text-decoration: none; font-size: 0.9rem; padding: 0.3rem 0.5rem; border-radius: 4px; }
.admin-nav-links a:hover { color: #fff; background: #444; }
.admin-nav-links a.active { color: #fff; background: var(--accent); }

.admin-content {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.admin-content h1 { margin-bottom: 1.5rem; }
.admin-content h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.3rem; }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.stat-card h3 { font-size: 2rem; color: var(--accent); }
.stat-card p { font-size: 0.9rem; color: var(--text-light); }
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-light); margin-top: 0.25rem; }

.analytics-chart { background: var(--bg-white); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 768px) { .analytics-grid { grid-template-columns: 1fr; } }
.quick-filters { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.quick-filters a { padding: 0.4rem 1rem; border-radius: 50px; text-decoration: none; font-size: 0.9rem; font-weight: 500; background: var(--bg-alt); color: var(--text); }
.quick-filters a.active { background: var(--accent); color: #fff; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.admin-table th, .admin-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
.admin-table th { background: #f8f8f8; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; color: var(--text-light); }
.admin-table input[type="time"], .admin-table input[type="number"] {
    padding: 0.3rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}
.row-cancelled td { opacity: 0.5; }
.notes-row td { font-size: 0.85rem; color: var(--text-light); padding-top: 0; border-bottom: 2px solid #eee; }
.has-notes td { border-bottom: none !important; }
.has-notes + tr td { border-top: none !important; }

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-confirmed { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #fbe9e7; color: #c62828; }
.status-completed { background: #e3f2fd; color: #1565c0; }

.admin-msg {
    padding: 0.8rem 1.2rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.admin-msg.success { background: #e8f5e9; color: #2e7d32; }
.admin-msg.error, .error { background: #fbe9e7; color: #c62828; }
p.error { padding: 0.8rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }

.admin-form { max-width: 400px; }
.inline-form { display: flex; gap: 0.5rem; align-items: end; flex-wrap: wrap; }
.inline-form input { padding: 0.5rem 0.8rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); }

.filter-tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.filter-tabs a {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    background: var(--bg-white);
    color: var(--text-light);
    border: 1.5px solid var(--border);
}
.filter-tabs a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-white); padding: 1rem; box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .two-col { grid-template-columns: 1fr; }
    .two-col.reverse .col-text, .two-col.reverse .col-image { order: unset; }
    .info-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .datetime-layout { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .service-cards { grid-template-columns: 1fr; }
    .admin-nav { flex-direction: column; gap: 0.5rem; }
    .admin-nav-links { justify-content: center; }
}

/* ---- Spinner animation ---- */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}
.confirmation-box .spinner {
    border-color: rgba(0,0,0,0.15);
    border-top-color: var(--accent);
    width: 20px;
    height: 20px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Confirmation spacing ---- */
.confirmation-box p {
    margin-bottom: 1rem;
}
.confirmation-box .btn {
    margin-top: 0.5rem;
}

/* ---- Adoptable Cats Grid ---- */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}
.cat-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text);
    display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.cat-card-image { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cat-card-info { padding: 1rem 1.25rem; }
.cat-card-info h3 { margin: 0 0 0.25rem; font-family: var(--font-heading); }
.cat-card-meta { font-size: 0.85rem; color: var(--text-light); }
.cat-card-meta span { display: inline-block; }
.cat-card-meta span:not(:last-child)::after { content: ' \00b7 '; }
.cat-card.adopted { opacity: 0.6; position: relative; }
.cat-card.adopted::after {
    content: 'Adopted!';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: var(--font-heading);
}
.cat-card-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

/* ---- Individual Cat Page ---- */
.cat-detail { max-width: 900px; margin: 0 auto; }
.cat-gallery { margin-bottom: 2rem; }
.cat-gallery-main { width: 100%; max-height: 500px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.cat-gallery-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; overflow-x: auto; }
.cat-gallery-thumb {
    width: 80px; height: 80px; object-fit: cover; border-radius: 8px;
    cursor: pointer; border: 2px solid transparent; transition: border-color 0.15s;
}
.cat-gallery-thumb:hover, .cat-gallery-thumb.active { border-color: var(--accent); }
.cat-info-header h1 { margin-bottom: 0.25rem; }
.cat-info-meta { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; color: var(--text-light); font-size: 0.95rem; flex-wrap: wrap; }
.cat-info-meta span strong { color: var(--text); }
.cat-bio { line-height: 1.7; margin-bottom: 2rem; }
.cat-bio p { margin-bottom: 1rem; }
.cat-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cat-rescue-info { background: var(--bg-alt); padding: 1.25rem; border-radius: var(--radius); margin-bottom: 2rem; }
.cat-rescue-info h4 { margin-bottom: 0.5rem; }

/* Admin cats */
.cat-photo-grid { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1rem 0; }
.cat-photo-item { position: relative; }
.cat-photo-item img { width: 100px; height: 100px; object-fit: cover; border-radius: 8px; }
.cat-photo-delete {
    position: absolute; top: -6px; right: -6px;
    background: var(--danger); color: #fff; border: none; border-radius: 50%;
    width: 22px; height: 22px; font-size: 0.7rem; cursor: pointer; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
