/* Root Variables */
:root {
    --primary: #ff6b35;
    --primary-dark: #e55a28;
    --secondary: #f7931e;
    --accent: #c1502e;
    --bg: #fff8f0;
    --bg-light: #fffcf7;
    --card: #ffffff;
    --text: #2d2d2d;
    --text-light: #666;
    --text-lighter: #999;
    --border: #e0e0e0;
    --success: #4caf50;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-badge {
    background: white;
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#adminSection {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.btn-primary {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(193, 80, 46, 0.3);
}

.btn-secondary:hover {
    background: #a03d1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(193, 80, 46, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #45a049);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-search {
    width: 100%;
    justify-content: center;
    font-size: 16px;
}

.btn-tool {
    padding: 10px 16px;
    font-size: 14px;
    border: 2px solid transparent;
}

.btn-tool.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 10px 30px var(--shadow));
}

.ios-app-callout {
    width: 100%;
    max-width: 460px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid rgba(255, 107, 53, 0.2);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
}

.ios-device-icons {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    flex-shrink: 0;
}

.device-icon {
    width: 20px;
    height: 20px;
}

.phone-icon {
    width: 18px;
    height: 18px;
}

.tablet-icon {
    width: 22px;
    height: 22px;
}

.ios-app-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ios-app-title {
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 0;
}

.ios-app-link {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 8px 12px;
    white-space: nowrap;
}

.ios-app-link:visited {
    color: #fff;
}

/* Principles Section */
.principles-section {
    padding: 56px 0;
    background: white;
}

.principles-section .section-title {
    font-size: 30px;
    margin-bottom: 34px;
}

.section-title {
    font-size: 36px;
    color: var(--primary);
    text-align: center;
    margin-bottom: 50px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.principle-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
}

.principle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow);
    border-color: var(--primary);
}

.principle-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.principle-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
}

.principle-card p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Search Section */
.search-section {
    padding: 60px 0;
}

.search-section > .section-title {
    margin-bottom: 12px;
}

.search-container {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--shadow);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.search-grid.is-dimmed {
    opacity: 0.55;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

label svg {
    color: var(--primary);
}

input, select, textarea {
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    font-family: inherit;
    background: white;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

input::placeholder {
    color: var(--text-lighter);
}

.suggestion-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 1600;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    max-height: 220px;
    overflow-y: auto;
}

.suggestion-menu.hidden {
    display: none;
}

.suggestion-item {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item:focus {
    background: var(--bg-light);
    color: var(--primary);
    outline: none;
}

textarea {
    resize: vertical;
}

small {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
    display: block;
}

/* Radio Button Styling */
.search-filters {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fffaf4 0%, #fffefb 100%);
    border: 1px solid #f0dbc9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.08);
}

.search-mode-helper {
    margin: 0 0 18px 0;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.search-tools {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-mode-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.maps-autofill-row {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-maps-autofill,
.btn-maps-clear {
    flex: 0 0 160px;
    width: 160px;
    padding: 9px 14px;
    font-size: 13px;
    white-space: nowrap;
}

.maps-autofill-status {
    flex: 1 1 200px;
    min-width: 170px;
    font-size: 12px;
    color: var(--text-light);
}

.maps-autofill-status.success {
    color: #2e7d32;
}

.maps-autofill-status.warn {
    color: #9a6b09;
}

.maps-autofill-status.error {
    color: #c62828;
}

.radius-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg-light);
}

.radius-control label {
    margin: 0;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.radius-control select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    font-size: 13px;
}

.segmented-control {
    display: inline-flex;
    border-radius: 10px;
    border: 2px solid var(--border);
    overflow: hidden;
}

.segment-btn {
    border: none;
    background: white;
    color: var(--text-light);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.segment-btn.active {
    background: var(--primary);
    color: white;
}

.search-action-row {
    display: flex;
    gap: 12px;
}

.search-action-row .btn-search {
    width: auto;
    flex: 1;
}

.btn-search-clear {
    min-width: 120px;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-label {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    user-select: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.radio-label:hover {
    background: white;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    background: white;
}

.radio-label:hover .radio-custom {
    border-color: var(--primary);
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary);
    border-width: 2px;
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

.radio-label input[type="radio"]:focus + .radio-custom {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.radio-label input[type="radio"]:focus {
    outline: none;
}

/* Prevent scroll jump when radio button is clicked */
.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

/* Results Section */
.results-section {
    padding: 60px 0;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.results-count {
    color: var(--text-light);
    font-size: 16px;
}

.results-map-wrapper {
    display: none;
    margin-bottom: 28px;
}

.results-map-wrapper.active {
    display: block;
}

.results-map {
    width: 100%;
    height: 520px;
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow);
}

.map-diagnostics {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.restaurant-grid.hidden-results {
    display: none;
}

/* Other Resources */
.resources-section {
    margin: 12px 0 32px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.resources-header {
    margin-bottom: 18px;
}

.resources-header .section-title {
    margin-bottom: 8px;
}

.resources-card-list {
    display: flex;
    justify-content: center;
}

.resource-hub-card {
    width: auto;
    border: 1px solid #e9ddd2;
    box-shadow: 0 2px 10px rgba(40, 24, 14, 0.08);
}

.resource-hub-card:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(40, 24, 14, 0.08);
}

.resource-badge {
    display: none;
}

.resource-hub-card .resource-hub-image {
    height: 68px;
    object-position: right center;
    object-fit: cover;
    filter: saturate(0.72) brightness(0.98);
}

.resource-links-box {
    margin-top: 10px;
    padding: 12px;
}

.resource-links-stack {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.resource-hub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    padding: 7px 10px;
    border: 1px solid #f0d8c4;
    border-radius: 8px;
    background: #fff;
    transition: var(--transition);
    width: 100% !important;
}

.resource-hub-link:hover {
    transform: none;
    background: #fff6ef;
}

/* Restaurant Cards */
.restaurant-card {
    background: var(--card);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
}

.restaurant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.preferred-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b6914;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.restaurant-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-light) 100%);
}

.restaurant-body {
    padding: 24px;
}

.restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
    gap: 15px;
}

.restaurant-name {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
    color: var(--secondary);
    white-space: nowrap;
    background: var(--bg);
    padding: 6px 12px;
    border-radius: 8px;
}

.stars {
    color: var(--secondary);
}

.restaurant-location {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.restaurant-address {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.distance-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 12px 0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #0f766e;
    background: #d1fae5;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--bg);
    transform: translateY(-2px);
}

.contact-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.restaurant-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.restaurant-contact a {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.restaurant-contact a:hover {
    text-decoration: underline;
}

.liked-items {
    background: var(--bg);
    padding: 16px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 14px;
    border-left: 4px solid var(--primary);
    position: relative;
}

.liked-items strong {
    color: var(--primary);
    display: block;
    margin-bottom: 6px;
}

.btn-suggest-dishes {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    transition: var(--transition);
    width: fit-content;
}

.favorite-toggle {
    margin-top: 12px;
    margin-bottom: 6px;
    border: 2px solid var(--border);
    background: white;
    color: var(--text-light);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.favorite-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.favorite-toggle.active {
    border-color: #f59e0b;
    background: #fff7e6;
    color: #b45309;
}

.map-popup a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.map-popup a:hover {
    text-decoration: underline;
}

.scroll-top-btn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1800;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

.btn-suggest-dishes:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-suggest-dishes svg {
    width: 14px;
    height: 14px;
}

.restaurant-notes {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 12px;
    font-style: italic;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 8px;
}

.dietary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: var(--success);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}

.dietary-badge.vegan {
    background: #e1f5e1;
    color: #2e7d32;
}

.dietary-badge.both {
    background: linear-gradient(135deg, #e8f5e9 0%, #e1f5e1 100%);
    color: var(--success);
}

/* Admin Action Buttons */
.admin-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.btn-edit, .btn-delete {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-edit {
    background: #2196f3;
    color: white;
}

.btn-edit:hover {
    background: #1976d2;
    transform: translateY(-2px);
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.modal-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-icon {
    width: 32px;
    height: 32px;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--bg);
    color: var(--primary);
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 12px;
}

.form-section-title {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 0;
}

.form-section .form-group:not(:last-child) {
    margin-bottom: 20px;
}

/* Photo Upload */
input[type="file"] {
    padding: 10px;
    border: 2px dashed var(--border);
    cursor: pointer;
}

input[type="file"]:hover {
    border-color: var(--primary);
}

.photo-preview {
    margin-top: 15px;
    display: none;
}

.photo-preview.show {
    display: block;
}

.photo-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
}

/* Success Message */
.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    color: #155724;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: none;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message.show {
    display: flex;
}

.success-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.coordinate-status {
    display: block;
    font-size: 12px;
    color: #1f6f2f;
    font-weight: 500;
}

/* Dietary Note */
.dietary-note {
    background: #fff3e0;
    border-left: 4px solid var(--secondary);
    padding: 16px;
    margin: 25px 0;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
}

.dietary-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Loading & Empty States */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 25px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-ahimsa {
    font-size: 16px;
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-image {
        order: -1;
    }

    .ios-app-callout {
        max-width: 100%;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .header-content {
        justify-content: center;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        gap: 8px;
    }
    
    .logo-title {
        font-size: 24px;
    }

    .search-grid {
        grid-template-columns: 1fr;
    }

    .search-action-row {
        flex-direction: column;
    }

    .btn-search-clear {
        width: 100%;
    }

    .results-map {
        height: 420px;
    }

    .resources-card-list {
        justify-content: stretch;
    }

    .resource-hub-card {
        width: 100%;
    }

    .restaurant-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ios-app-callout {
        align-items: center;
        padding: 10px 12px;
    }

    .ios-app-copy {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
