:root {
    --bg-primary: #FAFAF9;
    --bg-card: #FFFFFF;
    --bg-code: #F5F5F4;
    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-muted: #A8A29E;
    --accent: #059669;
    --accent-light: #D1FAE5;
    --accent-dark: #047857;
    --border: #E7E5E4;
    --border-dark: #D6D3D1;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'IBM Plex Sans Thai', 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.logo-text span {
    color: var(--accent);
}

/* Breadcrumb */
.breadcrumb {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 24px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    margin: 0 8px;
}

/* Main Content */
.main {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

/* Location Header */
.location-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.location-badge svg {
    width: 14px;
    height: 14px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.location-english {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
}

.location-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.meta-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Input Section */
.input-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.input-section h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-section h2 svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group.full {
    grid-column: 1 / -1;
}

.input-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-field {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg-primary);
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
    background: var(--bg-card);
}

.input-field::placeholder {
    color: var(--text-muted);
}

/* Format Tabs */
.format-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.format-header {
    padding: 20px 24px 0;
    border-bottom: 1px solid var(--border);
}

.format-header h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-header h2 svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.format-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
}

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

.format-tab {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}

.format-tab:hover {
    color: var(--text-primary);
    background: var(--bg-primary);
}

.format-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.format-content {
    padding: 24px;
}

.format-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.format-description svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.use-cases {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.use-case {
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Address Output */
.address-output {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.7;
    position: relative;
    white-space: pre-wrap;
    color: var(--text-primary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    border: none;
}

.btn svg {
    width: 18px;
    height: 18px;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Copy Success */
.copy-success {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.copy-success.show {
    transform: translateX(-50%) translateY(0);
}

.copy-success svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

/* Tips Section */
.tips-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.tips-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tips-section h3 svg {
    width: 20px;
    height: 20px;
    color: #F59E0B;
}

.tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tips-list li {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.tips-list li svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Footer */
.footer {
    max-width: 800px;
    margin: 48px auto 0;
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Home Page */
.home-hero {
    text-align: center;
    padding: 48px 0;
}

.home-hero h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    box-shadow: var(--shadow-lg);
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    display: block;
}

.search-result-item:hover {
    background: var(--bg-primary);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Province Grid */
.province-grid {
    margin-top: 48px;
}

.province-grid h2 {
    font-size: 20px;
    margin-bottom: 24px;
}

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

.province-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.province-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.province-name {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.province-name-en {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

/* List Grid */
.list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.list-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.list-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.item-name-en {
    font-size: 13px;
    color: var(--text-muted);
}

.item-zip {
    font-size: 12px;
    color: var(--accent);
    margin-top: 8px;
    font-weight: 500;
}

.district-list h2,
.subdistrict-list h2 {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Quick Copy Section */
.quick-copy-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.quick-copy-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.quick-copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.quick-copy-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
}

.btn-copy-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-copy-small:hover {
    background: var(--accent-dark);
}

.btn-copy-small svg {
    width: 14px;
    height: 14px;
}

/* Section Header with Export */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    margin-bottom: 0;
}

.export-buttons {
    display: flex;
    gap: 8px;
}

.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-export:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
    color: var(--accent);
}

.btn-export svg {
    width: 16px;
    height: 16px;
}

/* District Table */
.district-table-wrapper {
    overflow-x: auto;
}

.district-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.district-table th,
.district-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.district-table th {
    background: var(--bg-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.district-table tbody tr:hover {
    background: var(--accent-light);
}

.district-table tbody tr:last-child td {
    border-bottom: none;
}

.district-table td:first-child {
    font-weight: 500;
}

.district-table td:nth-child(2) {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--accent);
}

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

/* FAQ Section */
.faq-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
    box-shadow: var(--shadow-sm);
}

.faq-section h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 15px;
}

.faq-question::before {
    content: "Q: ";
    color: var(--accent);
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    padding-left: 24px;
}

.faq-answer::before {
    content: "A: ";
    color: var(--accent);
    font-weight: 500;
    margin-left: -24px;
}

/* Related Districts */
.related-districts {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
}

.related-districts h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.district-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.district-link {
    display: flex;
    flex-direction: column;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}

.district-link:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.district-link-th {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.district-link-en {
    font-size: 12px;
    color: var(--accent);
}

.district-link-more {
    background: var(--accent-light);
    border-color: var(--accent);
}

.district-link-more .district-link-th {
    color: var(--accent);
}

/* Secondary Button */
.btn-secondary {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--accent);
    color: var(--accent);
}

/* QR Code Modal */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.qr-modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.qr-modal-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.qr-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

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

#qrcode {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

#qrcode canvas {
    border-radius: 8px;
}

.qr-hint {
    font-size: 13px;
    color: var(--text-muted);
}

.qr-download {
    margin-top: 16px;
    width: 100%;
}

/* Section Description */
.section-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Address Card Section */
.address-card-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h2 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.card-header h2 svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    gap: 6px;
    background: var(--bg-primary);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.theme-btn svg {
    width: 16px;
    height: 16px;
}

.theme-btn:hover {
    color: var(--text-primary);
}

.theme-btn.active {
    background: var(--bg-card);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* SEO Image (hidden visually but indexable) */
.seo-image {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Square Address Card */
.address-card-square {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto 20px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.address-card-square[data-theme="light"] {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
}

.address-card-square[data-theme="dark"] {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 2px solid #334155;
}

.card-address-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Subdistrict */
.address-subdistrict {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.address-card-square[data-theme="light"] .address-subdistrict { color: #1e293b; }
.address-card-square[data-theme="dark"] .address-subdistrict { color: #f8fafc; }

/* District */
.address-district {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.address-card-square[data-theme="light"] .address-district { color: #475569; }
.address-card-square[data-theme="dark"] .address-district { color: #cbd5e1; }

/* Province */
.address-province {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.2;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 12px;
}

.address-card-square[data-theme="light"] .address-province { color: #64748b; }
.address-card-square[data-theme="dark"] .address-province { color: #94a3b8; }

/* Zip Code (largest) */
.address-zipcode {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 8px 0;
}

.address-card-square[data-theme="light"] .address-zipcode { color: #1e293b; }
.address-card-square[data-theme="dark"] .address-zipcode { color: #f8fafc; }

/* Thailand */
.address-country {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.address-card-square[data-theme="light"] .address-country { color: #64748b; }
.address-card-square[data-theme="dark"] .address-country { color: #94a3b8; }

.card-watermark {
    position: absolute;
    bottom: 16px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.address-card-square[data-theme="light"] .card-watermark {
    color: #94a3b8;
}

.address-card-square[data-theme="dark"] .card-watermark {
    color: #64748b;
}

/* Card Actions */
.card-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.card-actions .btn {
    min-width: 140px;
}

/* Responsive */
@media (max-width: 640px) {
    .input-grid {
        grid-template-columns: 1fr;
    }

    .input-group {
        grid-column: 1;
    }

    h1 {
        font-size: 24px;
    }

    .location-meta {
        gap: 16px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    /* Card responsive */
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .theme-toggle {
        width: 100%;
    }

    .theme-btn {
        flex: 1;
        justify-content: center;
    }

    .address-card-square {
        max-width: 320px;
        padding: 30px;
    }

    .address-subdistrict { font-size: 20px; }
    .address-district { font-size: 17px; }
    .address-province { font-size: 14px; }
    .address-zipcode { font-size: 44px; }
    .address-country { font-size: 14px; letter-spacing: 4px; }

    .card-actions {
        flex-direction: column;
    }

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