/* localtable.eu - Mobile-first CSS */
/* South Tyrol hotel aesthetic: earth tones, serif fonts, generous padding */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #f5f5f0;
}

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

/* Header */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #d4c5b0;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: normal;
    color: #5a4a3a;
    text-decoration: none;
    margin: 0;
}

.nav {
    margin-top: 15px;
}

.nav a {
    color: #6b5d4f;
    text-decoration: none;
    margin-right: 20px;
    font-size: 15px;
}

.nav a:hover {
    text-decoration: underline;
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Typography */
h1 {
    font-size: 28px;
    font-weight: normal;
    color: #5a4a3a;
    margin: 0 0 20px 0;
}

h2 {
    font-size: 22px;
    font-weight: normal;
    color: #5a4a3a;
    margin: 30px 0 15px 0;
}

h3 {
    font-size: 18px;
    font-weight: normal;
    color: #5a4a3a;
    margin: 20px 0 10px 0;
}

p {
    margin: 0 0 16px 0;
}

/* Links */
a {
    color: #6b5d4f;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #6b5d4f;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    font-size: 15px;
    font-family: Georgia, 'Times New Roman', serif;
    cursor: pointer;
    min-height: 44px; /* Mobile touch target */
}

.btn:hover {
    background-color: #5a4a3a;
}

.btn-secondary {
    background-color: #9a8a7a;
}

.btn-secondary:hover {
    background-color: #7a6a5a;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #5a4a3a;
    font-size: 15px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px; /* Prevent iOS zoom */
    font-family: Georgia, 'Times New Roman', serif;
    border: 1px solid #d4c5b0;
    border-radius: 2px;
    background-color: #ffffff;
    min-height: 44px; /* Mobile touch target */
}

textarea {
    resize: vertical;
    min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #6b5d4f;
}

/* Hotel cards */
.hotel-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.hotel-card {
    background-color: #ffffff;
    padding: 24px;
    border: 1px solid #d4c5b0;
    text-decoration: none;
    color: inherit;
    display: block;
}

.hotel-card:hover {
    border-color: #6b5d4f;
}

.hotel-card h2 {
    margin-top: 0;
}

.hotel-meta {
    color: #7a6a5a;
    font-size: 14px;
    margin-top: 10px;
}

/* Detail boxes (like in emails) */
.details {
    margin: 24px 0;
    padding: 20px;
    background-color: #faf8f5;
    border-left: 3px solid #6b5d4f;
}

.details-row {
    margin: 8px 0;
}

.details-label {
    color: #7a6a5a;
    font-size: 14px;
}

.details-value {
    color: #2c2c2c;
    font-weight: normal;
}

/* Messages */
.messages {
    margin: 20px 0;
}

.message {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 3px solid #6b5d4f;
}

.message-success {
    background-color: #e8f5e9;
    border-color: #4caf50;
}

.message-error {
    background-color: #ffebee;
    border-color: #f44336;
}

.message-info {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

/* Footer */
footer {
    background-color: #ffffff;
    border-top: 1px solid #d4c5b0;
    padding: 30px 0;
    margin-top: 60px;
    color: #7a6a5a;
    font-size: 14px;
}

/* Tablet and up */
@media (min-width: 768px) {
    .hotel-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .nav {
        display: inline-block;
        margin-top: 0;
        margin-left: 30px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hotel-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Language switcher */
.lang-switcher {
    margin-top: 15px;
}

.lang-switcher a {
    color: #6b5d4f;
    text-decoration: none;
    margin-right: 10px;
    font-size: 14px;
}

.lang-switcher a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Menu and booking layout */
.menu-and-booking {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.menu-section,
.booking-section {
    width: 100%;
}

.pdf-viewer {
    background-color: #ffffff;
    border: 1px solid #d4c5b0;
    margin-bottom: 20px;
}

.pdf-viewer iframe {
    border: none;
    display: block;
}

/* Desktop: keep stacked but make PDF larger */
@media (min-width: 1024px) {
    .menu-section {
        max-width: 900px;
        margin: 0 auto;
    }

    .booking-section {
        max-width: 700px;
        margin: 0 auto;
    }
}

/* Time slot selection buttons */
.time-slot-btn {
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border: 2px solid #8B7355;
    border-radius: 6px;
    color: #5a4a3a;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 44px; /* Touch target minimum */
    font-weight: 500;
}

.time-slot-btn:hover:not([disabled]):not(.active) {
    background-color: #f5f0eb;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.time-slot-btn:active:not([disabled]) {
    transform: translateY(0);
}

button.time-slot-btn.active {
    background-color: #8B7355 !important;
    color: white !important;
    font-weight: bold !important;
    border-color: #6b5a45 !important;
    box-shadow: 0 2px 8px rgba(139, 115, 85, 0.3) !important;
}

.time-slot-btn.time-slot-unavailable {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
    color: #999;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Mobile: larger touch targets */
@media (max-width: 768px) {
    .time-slot-btn {
        padding: 1rem;
        font-size: 16px;
    }
}
