:root {
    --bg-color: #ffffff;
    --button-bg: #f5ebe1;
    --text-color: #031B18;
    --icon-color: #042420;
    --hover-shadow: rgba(3, 27, 24, 0.08);
}

body {
    margin: 0;
    padding: 0;
    background-color: #e8eceb;
    /* Light grey background for desktop context */
    font-family: 'Montserrat', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container simulating a mobile device */
.app-container {
    width: 100%;
    max-width: 414px;
    /* Typical mobile width */
    background-color: var(--bg-color);
    min-height: 100vh;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Adjustments for actual mobile devices */
@media screen and (max-width: 420px) {
    .app-container {
        box-shadow: none;
        min-height: 100vh;
    }

    body {
        background-color: var(--bg-color);
        align-items: flex-start;
    }
}

.scrollable-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.scrollable-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.header {
    text-align: center;
    padding: 56px 24px 32px;
}

.header h1 {
    font-family: 'Kalam', cursive;
    font-weight: 700;
    font-size: 3.25rem;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0;
}

.header p {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-color);
    margin: 12px 0 0;
    opacity: 0.8;
    font-weight: 600;
}

.header-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.location-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-tap-highlight-color: transparent;
}

.location-link:hover,
.location-link:active {
    cursor: pointer;
}

.location-link i {
    color: #e63946;
    margin-right: 8px;
    font-size: 1.1rem;
}

.wifi-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
    margin-bottom: 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-tap-highlight-color: transparent;
}

.wifi-link:hover,
.wifi-link:active {
    cursor: pointer;
}

.wifi-link i {
    color: #007bff;
    margin-right: 8px;
    font-size: 1.1rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 16px;
    padding: 0 24px 40px;
}

.card {
    background-color: var(--button-bg);
    border-radius: 16px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.card:hover,
.card:active {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--hover-shadow);
}

.card i {
    font-size: 1.4rem;
    color: var(--icon-color);
    margin-bottom: 12px;
    opacity: 0.85;
}

.card span {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
    word-wrap: break-word;
    max-width: 100%;
}

.footer {
    text-align: center;
    padding: 10px 24px 40px;
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: 600;
}

.footer i {
    color: #e63946;
    margin: 0 3px;
    font-size: 0.85rem;
}

.footer-text {
    margin-top: 10px;
    display: block;
}

/* --- SPA Views & Category Template Styles --- */
.view {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
}

.top-bar {
    display: flex;
    align-items: center;
    padding: 56px 24px 20px;
    /* Matched the 56px top padding from Home header for consistency */
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.back-btn {
    background: var(--button-bg);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--icon-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.back-btn:hover,
.back-btn:active {
    transform: scale(1.05);
    box-shadow: 0 4px 10px var(--hover-shadow);
}

.top-bar h2 {
    margin: 0;
    margin-left: 20px;
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tabs-title {
    display: flex;
    padding: 0 24px;
    gap: 20px;
    background-color: var(--bg-color);
    flex-shrink: 0;
}

.tabs-header {
    display: flex;
    overflow-x: auto;
    padding: 0 24px;
    gap: 20px;
    background-color: var(--bg-color);
    border-bottom: 1px solid #e0e0e0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex-shrink: 0;
}

.tabs-header::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: none;
    border: none;
    padding: 14px 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.5;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.tab-btn.active {
    opacity: 1;
    border-bottom-color: var(--text-color);
}

.tab-content {
    padding: 24px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-top: 0;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.tab-content p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 16px;
}

.rules-list {
    list-style: none;
    padding-left: 0;
}

.rules-list li {
    margin-bottom: 28px;
    line-height: 1.6;
    position: relative;
    padding-left: 36px;
    /* Offset for the emoji */
}

.rules-list .emoji-icon,
.rules-list .image-icon {
    position: absolute;
    left: 0;
    top: 0;
}

.rules-list .emoji-icon {
    font-size: 1.1em;
}

.rules-list .image-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    /* Adjust left to align visually with emojis given the larger image size */
    left: -4px;
    top: -3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.rules-list .image-icon.no-radius {
    border-radius: 0;
    box-shadow: none;
}

.rules-list a {
    color: #0000EE;
    text-decoration: underline;
    font-weight: 600;
}

.rules-list a:hover,
.rules-list a:active {
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Form Styles --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--text-color);
    box-shadow: 0 0 0 2px var(--hover-shadow);
}

.submit-btn {
    background-color: var(--button-bg);
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    -webkit-tap-highlight-color: transparent;
    margin-top: 8px;
}

.contact-form:invalid .submit-btn {
    cursor: pointer;
    opacity: 0.6;
}

.contact-form:valid .submit-btn {
    background-color: #042420;
    color: white;
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(4, 36, 32, 0.2);
}

.contact-form:valid .submit-btn:hover,
.contact-form:valid .submit-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px var(--hover-shadow);
}

.recaptcha-container {
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    gap: 10px;
    color: var(--text-color);
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--text-color);
}

.checkbox-group a {
    color: var(--text-color);
    text-decoration: underline;
    font-weight: 700;
}