:root {
    --primary: #4e89af;
    --primary-dark: #3d6d8a;
    --primary-light: #7eab85;
    --accent: #7eab85;
    --success: #22c55e;
    --whatsapp: #25D366;
    --bg: #f0f5ff;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(78, 137, 175, 0.15);
    --radius: 16px;
    --radius-lg: 24px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    padding-bottom: 90px;
}

/* HEADER */
.app-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 15px 20px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-greeting {
    color: #fff;
}

.user-greeting small {
    font-size: 0.75rem;
    opacity: 0.9;
}

.user-greeting h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.header-logo img {
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.header-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* PAGE HEADER (for internal pages) */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.page-header .btn-back {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header h1 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
}

.page-header .header-logo img {
    height: 35px;
}

/* BANNER CAROUSEL */
.banner-section {
    padding: 15px 20px;
}

.banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide .banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide .banner-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    max-width: 60%;
}

.banner-slide h2 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.banner-slide p {
    color: rgba(255,255,255,0.9);
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.btn-banner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-banner:hover {
    transform: scale(1.05);
}

.banner-slide .banner-illustration {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 120px;
    height: 120px;
    object-fit: contain;
    z-index: 1;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
}

/* MAIN CONTENT */
.main-content {
    padding: 10px 0 20px;
}

/* SECTION */
.section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 15px;
}

.section-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.section-header a {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

/* CATEGORIES */
.categories-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 0 20px 15px;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    text-decoration: none;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: var(--bg-card);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    font-size: 1.8rem;
}

.category-item:hover .category-icon {
    transform: translateY(-5px);
}

.category-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* Category colors */
.cat-hospedagem .category-icon { color: #3b82f6; background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); }
.cat-transporte .category-icon { color: #8b5cf6; background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); }
.cat-passeios .category-icon { color: #22c55e; background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); }
.cat-gastronomia .category-icon { color: #f59e0b; background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); }
.cat-aventura .category-icon { color: #ef4444; background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); }
.cat-cultura .category-icon { color: #ec4899; background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%); }
.cat-bem-estar .category-icon { color: #14b8a6; background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); }
.cat-eventos .category-icon { color: #6366f1; background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%); }

/* PLACES GRID */
.places-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 20px;
}

.place-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.3s;
}

.place-card:hover {
    transform: translateY(-5px);
}

.place-card .image {
    height: 120px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.place-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-card .price-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.place-card .info {
    padding: 12px;
}

.place-card .info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-card .info .location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.place-card .info .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.place-card .info .rating i {
    color: #f59e0b;
    font-size: 0.75rem;
}

.place-card .info .rating span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* FEATURED LIST */
.featured-list {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-card {
    display: flex;
    gap: 15px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.2s;
}

.featured-card:hover {
    transform: translateX(5px);
}

.featured-card .thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.featured-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-card .details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-card .details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.featured-card .details .location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.featured-card .details .bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.featured-card .details .rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-card .details .rating i {
    color: #f59e0b;
}

.featured-card .details .rating span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* BOTTOM NAV */
.spa-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 8px 0 12px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.spa-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #666;
    text-decoration: none;
    font-size: 11px;
    padding: 5px 10px;
    cursor: pointer;
    transition: color 0.2s;
}

.spa-nav-item:hover, .spa-nav-item.active {
    color: var(--primary);
}

.spa-nav-item i {
    font-size: 22px;
}

.spa-nav-central {
    margin-top: -20px;
}

.spa-nav-icon-central {
    background: var(--whatsapp);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(37,211,102,0.4);
    margin-bottom: 4px;
}

/* SKELETONS */
.skeleton-cat {
    width: 80px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    flex-shrink: 0;
}

.skeleton-card {
    height: 180px;
    border-radius: 16px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-featured {
    height: 100px;
    border-radius: 16px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

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

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state.full {
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.9rem;
}

/* PAGE CONTENT */
.page-content {
    padding: 20px;
}

/* CARDS LIST */
.cards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* SERVICE CARD */
.service-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.service-card .image {
    height: 150px;
    background: var(--border);
    position: relative;
}

.service-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card .content {
    padding: 15px;
}

.service-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.service-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.service-card .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* FORMS */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* ALERTS */
.alert {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #dc2626;
}

/* UTILITIES */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-2 { margin-top: 10px; }
.mt-4 { margin-top: 20px; }
.mb-2 { margin-bottom: 10px; }
.mb-4 { margin-bottom: 20px; }

/* Banner sem título sobreposto quando tem imagem */
.banner-slide .banner-content {
    display: none;
}
.banner-slide:not(:has(.banner-bg)) .banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
