* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #F7FAFC;
    min-height: 100vh;
}

/* Header */
.header {
    background: white;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.logo-small {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-small img {
    width: 40px;
    height: 40px;
}

.logo-small span {
    font-size: 20px;
    font-weight: 700;
    color: #2D3748;
}

.user-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #dc143c 0%, #da0027 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Search Bar */
.search-container {
    position: relative;
    margin-bottom: 12px;
}

.search-bar {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    background: #F7FAFC;
}

.search-bar:focus {
    outline: none;
    border-color: #dc143c;
    background: white;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: #718096;
}

/* Location */
.location-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-size: 14px;
}

.location-bar svg {
    width: 16px;
    height: 16px;
    fill: #dc143c;
}

/* Filter and Sort Bar */
.filter-sort-bar {
    background: white;
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-sort-bar::-webkit-scrollbar {
    display: none;
}

.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #F7FAFC;
    border: 2px solid #E2E8F0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #4A5568;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chip.active {
    background: #dc143c;
    border-color: #dc143c;
    color: white;
}

.chip svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Restaurant List */
.restaurant-list {
    padding: 16px 20px 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2D3748;
}

.results-count {
    font-size: 14px;
    color: #718096;
}

/* Restaurant Card */
.restaurant-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.restaurant-card:active {
    transform: scale(0.98);
}

.restaurant-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #dc143c 0%, #da0027 100%);
    position: relative;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #dc143c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.restaurant-info {
    padding: 16px;
}

.restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.restaurant-name {
    font-size: 18px;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 4px;
}

.restaurant-cuisine {
    font-size: 13px;
    color: #718096;
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #48BB78;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.rating-badge svg {
    width: 14px;
    height: 14px;
    fill: white;
}

.restaurant-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #E2E8F0;
    font-size: 13px;
    color: #718096;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.meta-item.open {
    color: #48BB78;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #718096;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-item.active {
    color: #dc143c;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (max-width: 480px) {
    .header {
        padding: 12px 16px;
    }

    .restaurant-list {
        padding: 12px 16px 80px;
    }
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

input:focus {
    outline: none;
    border-color: #dc143c;
    background: white;
}

/* Account layouts (login/register) */

body.gh-account-body {
    background: linear-gradient(135deg, #fff5f2 0%, #ffe8e0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.gh-account-container {
    width: 100%;
    max-width: 400px;
    background: rgb(252, 251, 244);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(234, 96, 69, 0.15);
}

.gh-account-logo {
    text-align: center;
}

.gh-account-logo img {
    width: 140px;
    height: 140px;
    margin-bottom: 0;
}

.gh-account-logo h1 {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.gh-account-logo p,
.gh-account-subtitle {
    color: #718096;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.gh-account-form-group {
    margin-bottom: 20px;
}

.gh-account-form-group label {
    display: block;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.gh-account-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.gh-account-input:focus {
    outline: none;
    border-color: #dc143c;
    background: white;
}

.gh-account-forgot {
    text-align: right;
    margin-top: 8px;
}

.gh-account-forgot a {
    color: #dc143c;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.gh-account-password-requirements {
    margin-top: 8px;
    padding: 12px;
    background: #f7fafc;
    border-radius: 8px;
    font-size: 12px;
    color: #718096;
}

.gh-account-password-requirements ul {
    list-style: none;
    margin-top: 4px;
}

.gh-account-password-requirements li {
    padding: 2px 0;
}

.gh-account-password-requirements li::before {
    content: '✓ ';
    color: #48bb78;
    font-weight: bold;
}

.gh-account-checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 20px;
}

.gh-account-checkbox-group input[type='checkbox'] {
    width: auto;
    margin-right: 8px;
    margin-top: 2px;
}

.gh-account-checkbox-group label {
    font-size: 13px;
    font-weight: 400;
    color: #4a5568;
    margin-bottom: 0;
}

.gh-account-checkbox-group a {
    color: #dc143c;
    text-decoration: none;
    font-weight: 600;
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #dc143c 0%, #da0027 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(234, 96, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 96, 69, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.gh-account-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.gh-account-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.gh-account-divider span {
    background: rgb(252, 251, 244);
    padding: 0 16px;
    color: #718096;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.gh-account-footer-text {
    text-align: center;
    color: #718096;
    font-size: 14px;
}

.gh-account-footer-text a {
    color: #dc143c;
    text-decoration: none;
    font-weight: 600;
}

/* Login form specific styles */
.gh-login-form {
    width: 100%;
}

.gh-form-group {
    margin-bottom: 20px;
}

.gh-form-group label {
    display: block;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.gh-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.gh-input:focus {
    outline: none;
    border-color: #dc143c;
    background: white;
}

.gh-error-message {
    color: #dc143c;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

.gh-forgot-password {
    text-align: right;
    margin-top: 8px;
}

.gh-forgot-password a {
    color: #dc143c;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
}

.gh-forgot-password a:hover {
    text-decoration: underline;
}

.gh-btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #dc143c 0%, #da0027 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(234, 96, 69, 0.3);
}

.gh-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 96, 69, 0.4);
}

.gh-btn-primary:active {
    transform: translateY(0);
}

.gh-account-errors {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
}
.gh-account-errors  ul {
    list-style: none;
}

.gh-external-login-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    text-align: center;
}

.gh-external-login-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gh-btn-external {
    width: 100%;
    padding: 12px 16px;
    background: white;
    color: #2d3748;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gh-btn-external:hover {
    border-color: #dc143c;
    color: #dc143c;
}

/* Override default OrchardCore/Bootstrap styles in account forms */
.gh-account-container .form-label,
.gh-account-container label {
    display: block;
    color: #2d3748;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.gh-account-container .form-control,
.gh-account-container input[type="text"],
.gh-account-container input[type="email"],
.gh-account-container input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.gh-account-container .form-control:focus,
.gh-account-container input:focus {
    outline: none;
    border-color: #dc143c;
    background: white;
}

.gh-account-container .btn-primary {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #dc143c 0%, #da0027 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(234, 96, 69, 0.3);
}

.gh-account-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 96, 69, 0.4);
}

.gh-account-container .btn-primary:active {
    transform: translateY(0);
}

.gh-account-container .mb-3 {
    margin-bottom: 20px;
}

.gh-account-container .text-danger {
    color: #dc143c;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* Hide default Bootstrap layout containers in registration form */
.gh-account-container .row {
    margin: 0;
}

.gh-account-container .col-md-offset-4,
.gh-account-container .col-md-8 {
    padding: 0;
    width: 100%;
}

.gh-account-container h2 {
    display: none; /* Hide "Register a new account" title */
}

@media (max-width: 480px) {
    .gh-account-container {
        padding: 30px 20px;
    }

    .gh-account-logo h1 {
        font-size: 24px;
    }
}

