/* ==========================================
   COMPONENTS.CSS - Reusable Components
   All reusable UI components consolidated here
   ========================================== */

/* ==========================================
   POI CARDS
   ========================================== */

.poi-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.poi-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.poi-card h3 {
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
}

.poi-card .category {
    display: inline-block;
    padding: var(--space-xs) 0.75rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-sm);
}

.poi-card .description {
    color: var(--color-text-muted);
    margin: var(--space-sm) 0;
}

.poi-card .features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: 0.75rem;
}

.poi-card .feature-tag {
    background-color: var(--color-secondary-faded);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    color: var(--color-secondary-dark);
}

/* ==========================================
   CATEGORY & FEATURE BADGES
   ========================================== */

.poi-category {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) 0.75rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}

.poi-category .category-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

.feature-badge {
    background: var(--color-secondary-faded);
    color: var(--color-secondary-dark);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: var(--font-size-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.feature-badge .feature-icon,
.feature-badge-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    filter: none;
    opacity: 0.7;
}

.category-badge-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

.poi-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.poi-features-label {
    width: 100%;
    margin-bottom: var(--space-sm);
    font-weight: var(--font-weight-semibold);
}

.feature-tag {
    background: var(--color-secondary-faded);
    color: var(--color-secondary-dark);
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
}

/* ==========================================
   STAR RATING COMPONENT
   ========================================== */

.stars {
    display: inline-flex;
    gap: 2px;
    align-items: center;
}

.star {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
}

.star svg {
    width: 100%;
    height: 100%;
}

.star--filled svg {
    fill: var(--color-star-filled);
}

.star--empty svg {
    fill: var(--color-star-empty);
}

.star--large {
    width: 28px;
    height: 28px;
}

/* Interactive star rating for forms */
.star-rating-input {
    display: flex;
    gap: 4px;
    direction: rtl;
    justify-content: flex-end;
}

.star-rating-input input[type="radio"] {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: none;
    transition: transform var(--transition-fast);
}

.star-rating-input label svg {
    width: 100%;
    height: 100%;
    fill: var(--color-star-empty);
    transition: fill var(--transition-fast);
}

.star-rating-input label:hover svg,
.star-rating-input label:hover ~ label svg,
.star-rating-input input[type="radio"]:checked ~ label svg {
    fill: var(--color-star-filled);
}

.star-rating-input label:hover {
    transform: scale(1.15);
}

/* ==========================================
   RATING COMPONENTS
   ========================================== */

.rating-summary {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: var(--color-background);
    border-radius: var(--radius-md);
}

.rating-number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.rating-stars {
    font-size: var(--font-size-xl);
}

.rating-count {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.rating-options {
    display: flex;
    gap: var(--space-md);
}

.rating-options input[type="radio"] {
    display: none;
}

.rating-options label {
    padding: 0.75rem var(--space-lg);
    background: var(--color-surface);
    border: 2px solid var(--color-border-input);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rating-options input[type="radio"]:checked + label {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border-color: var(--color-primary);
}

.rating-options label:hover {
    border-color: var(--color-primary);
}

/* ==========================================
   REVIEW COMPONENTS
   ========================================== */

.review-item {
    padding: var(--space-lg);
    background: var(--color-background);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

.review-card {
    background: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-user {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-dark);
}

.review-date {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.review-rating {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.review-comment {
    color: var(--color-text-body);
    line-height: var(--line-height-normal);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border-light);
}

.review-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Pending review */
.pending-review {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.pending-review .pending-notice {
    margin-top: var(--space-sm);
    color: var(--color-warning-text);
}

.feedback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.feedback-link-toggle {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--color-primary);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
    cursor: pointer;
}

.feedback-form-container {
    display: none;
    margin-top: var(--space-md);
}

.feedback-form-container.is-active {
    display: block;
}

.feedback-toggle.is-active {
    box-shadow: 0 0 0 3px rgba(98, 116, 186, 0.18);
    transform: translateY(-1px);
}

.feedback-panel {
    display: none;
}

.feedback-panel.is-active {
    display: block;
}

.feedback-form {
    background: var(--color-background);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
}

/* ==========================================
   STATUS BADGES
   ========================================== */

.status-badge {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-pill);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.status-approved,
.status-confirmed {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.status-pending {
    background: var(--color-warning-bg);
    color: var(--color-warning-text);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-fast);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.btn-submit {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    padding: 0.75rem var(--space-xl);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    min-height: 48px;
}

.btn-submit:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-primary);
}

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

.btn-primary,
.submit-button,
.submit-new-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    padding: 0.75rem var(--space-lg);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    min-height: 48px;
}

.btn-primary:hover,
.submit-button:hover,
.submit-new-button:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-primary);
}

.btn-primary:active,
.submit-button:active,
.submit-new-button:active {
    transform: scale(0.98);
}

.btn-secondary,
.cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary-faded);
    color: var(--color-secondary-dark);
    padding: 0.75rem var(--space-lg);
    border: 1.5px solid var(--color-secondary-light);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    min-height: 48px;
}

.btn-secondary:hover,
.cancel-button:hover {
    background: var(--color-secondary-light);
    color: var(--color-secondary-dark);
}

.btn-secondary:active,
.cancel-button:active {
    transform: scale(0.98);
}

.btn-edit,
.edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    color: var(--color-text-on-primary);
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-edit:hover,
.edit-link:hover {
    background: var(--color-secondary-hover);
}

.btn-edit:active,
.edit-link:active {
    transform: scale(0.98);
}

.btn-delete,
.delete-button,
.delete-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-danger);
    color: var(--color-text-on-primary);
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-delete:hover,
.delete-button:hover,
.delete-link:hover {
    background: var(--color-danger-dark);
}

.btn-delete:active,
.delete-button:active,
.delete-link:active {
    transform: scale(0.98);
}

.btn-view,
.view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    padding: var(--space-sm) var(--space-md);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-view:hover,
.view-link:hover {
    background: var(--color-primary-hover);
}

.btn-view:active,
.view-link:active {
    transform: scale(0.98);
}

.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    padding: 0.75rem var(--space-xl);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    min-height: 48px;
}

.btn-login:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-primary);
}

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

/* Outline/Ghost Button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-sm) var(--space-md);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    background: var(--color-primary-faded);
}

/* Button Groups */
.button-group {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-xl);
}

/* ==========================================
   FORM COMPONENTS
   ========================================== */

.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
    color: var(--color-text-body);
}

textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--color-border-input);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    resize: vertical;
    min-height: 48px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(186, 125, 98, 0.1);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 0.75rem;
    border: 1.5px solid var(--color-border-input);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    min-height: 48px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(186, 125, 98, 0.1);
}

.helptext {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Checkbox rows (e.g. email-notification opt-in) */
.form-check .form-check-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-weight: var(--font-weight-normal);
    cursor: pointer;
    margin-bottom: 0;
}

.form-check input[type="checkbox"] {
    width: auto;
    min-height: 0;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

/* ==========================================
   SECTION CONTAINERS
   ========================================== */

.section {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
}

.section h2 {
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
}

/* ==========================================
   STATS DISPLAY
   ========================================== */

.stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-md);
}

.stat-item {
    padding: var(--space-md);
    background: var(--color-background);
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* ==========================================
   MESSAGE/ALERT BOXES
   ========================================== */

.message-info {
    background: var(--color-info-bg);
    border-left: 4px solid var(--color-info);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
}

.message-success {
    background: var(--color-success-bg);
    border-left: 4px solid var(--color-success);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
}

.message-warning {
    background: var(--color-warning-bg);
    border-left: 4px solid var(--color-warning);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
}

.message-error {
    background: var(--color-danger-bg);
    border-left: 4px solid var(--color-danger);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
}

/* Alert styles for forms */
.alert {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid;
}

.alert-danger {
    background: var(--color-danger-bg);
    border-color: var(--color-danger);
    color: var(--color-danger-text);
}

.alert-info {
    background: var(--color-info-bg);
    border-color: var(--color-info);
    color: var(--color-info-text);
}

.alert strong {
    font-weight: var(--font-weight-semibold);
}

/* Error list styling */
.errorlist {
    margin: var(--space-sm) 0 0 0;
    padding: 0;
    list-style: none;
    color: var(--color-danger);
}

.errorlist li {
    margin: var(--space-xs) 0;
}

/* Field-level errors */
.form-group .errorlist {
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

/* ==========================================
   LOADING STATES & SPINNERS
   ========================================== */

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(186, 125, 98, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border-width: 6px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: var(--z-dropdown);
    border-radius: var(--radius-lg);
}

.loading-overlay.hidden {
    display: none;
}

.loading-text {
    margin-top: var(--space-md);
    color: var(--color-primary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
}

/* ==========================================
   EMPTY STATE
   ========================================== */

.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-state h3,
.empty-state h2 {
    color: var(--color-text-dark);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-xl);
}

.empty-state p {
    color: var(--color-text-muted);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-lg);
}

/* ==========================================
   SKELETON LOADING
   ========================================== */

.skeleton {
    background: linear-gradient(90deg, var(--color-background-alt) 25%, var(--color-border) 50%, var(--color-background-alt) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-md);
}

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

.skeleton-text {
    height: var(--font-size-base);
    margin-bottom: var(--space-sm);
}

.skeleton-title {
    height: var(--font-size-xl);
    width: 60%;
    margin-bottom: var(--space-md);
}

.skeleton-card {
    height: 200px;
    margin-bottom: var(--space-md);
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    color: var(--color-text-on-primary);
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-toast);
    max-width: 400px;
}

.toast {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: toast-in 0.3s ease-out;
    border-left: 4px solid var(--color-primary);
}

.toast.toast-success {
    border-left-color: var(--color-success);
}

.toast.toast-error {
    border-left-color: var(--color-danger);
}

.toast.toast-warning {
    border-left-color: var(--color-warning);
}

.toast.toast-info {
    border-left-color: var(--color-info);
}

.toast-icon {
    font-size: var(--font-size-xl);
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.toast-message {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.toast-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: var(--font-size-lg);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.toast-close:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

@keyframes toast-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.removing {
    animation: toast-out 0.3s ease-in forwards;
}

/* ==========================================
   PROFILE CARD (Dashboard)
   ========================================== */

.profile-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--color-primary-faded);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.profile-avatar svg,
.profile-avatar img {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.profile-avatar .avatar-initial {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.profile-info {
    flex: 1;
}

.profile-card h1 {
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.profile-subtitle {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* Stats card grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stats-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
}

.stats-card h3 {
    color: var(--color-text-dark);
    margin-bottom: var(--space-md);
    font-size: var(--font-size-lg);
}

.stats-card .stats {
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: 0;
}

.stats-card .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
}

.stats-card .stat-number {
    font-size: var(--font-size-xl);
}

/* Quick actions */
.quick-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

/* Section heading */
.section-heading {
    margin: var(--space-xl) 0 var(--space-md) 0;
    color: var(--color-text-dark);
    font-size: var(--font-size-lg);
}

/* ==========================================
   CATEGORY CHIP SELECTOR (Submit form)
   ========================================== */

.chip-selector {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.chip-selector .chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    transition: all var(--transition-fast);
    user-select: none;
}

.chip-selector .chip:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-faded);
}

.chip-selector .chip.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-text-on-primary);
}

.chip-selector .chip .chip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chip-selector .chip.active .chip-dot {
    background: var(--color-text-on-primary) !important;
}

/* Feature chip toggles */
.feature-chip-selector {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.feature-chip-selector .chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    cursor: pointer;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    transition: all var(--transition-fast);
    user-select: none;
}

.feature-chip-selector .chip:hover {
    border-color: var(--color-secondary);
    background: var(--color-secondary-faded);
}

.feature-chip-selector .chip.active {
    border-color: var(--color-secondary);
    background: var(--color-secondary-faded);
    color: var(--color-secondary-dark);
}

/* ==========================================
   INFO CARD (replaces inline info boxes)
   ========================================== */

.info-card {
    background: var(--color-info-bg);
    border-left: 4px solid var(--color-info);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
}

.info-card ul {
    margin: var(--space-sm) 0 0 var(--space-lg);
    line-height: var(--line-height-normal);
}

/* Coordinate help */
.coordinate-help {
    background: var(--color-success-bg);
    border-left: 4px solid var(--color-success);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

/* Coordinates grid */
.coordinates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    background: var(--color-background);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.coordinates-grid label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    display: block;
    margin-bottom: var(--space-xs);
}

/* Location label */
.location-label {
    font-size: 1.1rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
    display: block;
}

/* Location picker map */
.location-picker-map {
    height: 400px;
    border-radius: var(--radius-md);
    border: 3px solid var(--color-primary);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-md);
}

/* Image preview */
.image-preview-container {
    margin-top: var(--space-md);
}

.image-preview-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inline-form {
    display: inline;
}

.btn-sm {
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size-sm);
    min-height: auto;
}

.image-preview-container h4 {
    margin-bottom: var(--space-sm);
}

.image-previews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-md);
}

.image-preview-item {
    position: relative;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.image-preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.image-preview-item .image-preview-label {
    padding: var(--space-sm);
    font-size: var(--font-size-sm);
    background: var(--color-background);
}

/* Auth separator */
.auth-or {
    margin: 0 var(--space-sm);
    color: var(--color-text-muted);
}

/* ==========================================
   RESPONSIVE DESIGN - Components
   ========================================== */

/* Tablet and Below (768px) */
@media (max-width: 768px) {
    /* POI Cards */
    .poi-card {
        padding: var(--space-md);
    }

    .poi-card h3 {
        font-size: 1.1rem;
    }

    /* Rating Components */
    .rating-summary {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.75rem;
    }

    .rating-number {
        font-size: var(--font-size-2xl);
    }

    .rating-options {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .rating-options label {
        padding: var(--space-sm) var(--space-md);
        font-size: var(--font-size-sm);
    }

    /* Review Components */
    .review-item,
    .review-card {
        padding: var(--space-md);
    }

    .review-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .review-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .review-actions .btn {
        flex: 1;
        min-width: 120px;
    }

    /* Buttons */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: var(--font-size-sm);
    }

    .btn-submit,
    .btn-login {
        padding: 0.75rem var(--space-lg);
        font-size: 0.95rem;
    }

    /* Form Components */
    .form-group label {
        font-size: var(--font-size-sm);
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Stats Display */
    .stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .stat-item {
        flex: 1;
        min-width: 140px;
    }

    .stat-number {
        font-size: var(--font-size-xl);
    }

    /* Section Containers */
    .section {
        padding: var(--space-lg);
    }

    /* POI Features */
    .poi-features {
        gap: 0.35rem;
    }

    .feature-badge {
        font-size: var(--font-size-xs);
        padding: 0.3rem 0.6rem;
    }

    /* Toast Notifications */
    .toast-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .toast {
        padding: 0.875rem var(--space-md);
    }

    /* Profile card */
    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Quick actions */
    .quick-actions {
        flex-direction: column;
    }

    .quick-actions .btn-primary,
    .quick-actions .btn-secondary,
    .quick-actions .btn-outline {
        width: 100%;
        text-align: center;
    }

    /* Coordinates grid */
    .coordinates-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Only (480px and below) */
@media (max-width: 480px) {
    /* Make touch targets bigger */
    .btn {
        padding: 0.75rem var(--space-md);
        min-height: var(--touch-target-min);
    }

    .rating-options label {
        min-width: 48px;
        min-height: var(--touch-target-min);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Stack review actions vertically */
    .review-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .review-actions .btn {
        width: 100%;
    }

    /* Reduce card padding on very small screens */
    .poi-card,
    .review-card,
    .section {
        padding: 0.75rem;
    }

    /* Smaller badges */
    .status-badge,
    .poi-category {
        font-size: var(--font-size-xs);
        padding: 0.35rem 0.65rem;
    }
}

/* Touch device optimization */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for all interactive elements */
    .btn,
    button,
    a.btn,
    input[type="checkbox"],
    input[type="radio"] {
        min-height: var(--touch-target-min);
        min-width: var(--touch-target-min);
    }

    /* Remove hover states on touch devices */
    .btn:hover,
    .poi-card:hover {
        transform: none;
    }

    /* Add tap highlight */
    .btn,
    button,
    a {
        -webkit-tap-highlight-color: rgba(186, 125, 98, 0.2);
    }
}

/* ===== Beta launch banner ===== */

.beta-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    background: color-mix(in srgb, var(--color-primary, #4f733b) 8%, white 92%);
    border-bottom: 1px solid color-mix(in srgb, var(--color-primary, #4f733b) 22%, transparent 78%);
    font-size: var(--font-size-sm, 0.875rem);
    color: var(--color-text-dark, #1E2A3A);
}

.beta-banner[hidden] {
    display: none;
}

.beta-banner-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.beta-banner-text {
    flex: 1;
    margin: 0;
    line-height: 1.4;
}

.beta-banner-close {
    flex-shrink: 0;
    appearance: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.15rem 0.4rem;
    color: var(--color-text-muted, #65707E);
    border-radius: 6px;
    transition: background 120ms ease;
}

.beta-banner-close:hover {
    background: rgba(30, 42, 58, 0.08);
}
