/*
Theme Name: Tourasco Hotel Theme
Theme URI: https://tourasco.travel
Author: Tourasco
Description: Simple, clean theme for the Tourasco Hotel Engine plugin.
Version: 1.1
Text Domain: tourasco-hotel-theme
*/

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f7fb;
    color: #222;
}

a {
    color: #0073aa;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e5ee;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
}

.site-tagline {
    font-size: 0.9rem;
    color: #6b7280;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}
.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
}
.main-nav a:hover {
    color: #111827;
}

.site-main {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 16px 40px;
}

/* Hero section on home */
.hero {
    background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
    color: #ffffff;
    border-radius: 18px;
    padding: 32px 28px;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}
.hero h1 {
    margin: 0 0 10px;
    font-size: 2.2rem;
}
.hero p {
    margin: 0 0 14px;
    font-size: 1rem;
    opacity: 0.95;
}
.hero-highlight {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.8;
}
.hero-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-primary {
    background: #ffffff;
    color: #1e40af;
}
.btn-primary:hover {
    background: #e5ecff;
}
.btn-secondary {
    background: rgba(15, 23, 42, 0.16);
    color: #e5e7eb;
}
.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.28);
}

.hero-card {
    background: rgba(15, 23, 42, 0.18);
    border-radius: 14px;
    padding: 16px 18px;
    font-size: 0.9rem;
}
.hero-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

/* Generic card */
.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    margin-bottom: 20px;
}

/* Home sections */
.section-title {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.section-subtitle {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 0.95rem;
    color: #6b7280;
}

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

.destination-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 12px 12px 10px;
    border: 1px solid #e5e7eb;
}
.destination-card h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}
.destination-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 6px;
}
.destination-chip {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    margin-top: 6px;
}

/* Who we are / partners */
.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 20px;
}
@media (max-width: 800px) {
    .split-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.partner-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.partner-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px dashed #cbd5f5;
    background: #eff6ff;
    font-size: 0.8rem;
    color: #1d4ed8;
}

/* Footer */
.site-footer {
    border-top: 1px solid #e2e5ee;
    padding: 16px 24px;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    background: #ffffff;
}

/* Plugin form styling: hotel_search shortcode (used on search / dashboard pages) */
.he-search-wrap {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 18px 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    margin-bottom: 20px;
}
.he-search-wrap form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}
.he-search-wrap input[type="text"],
.he-search-wrap input[type="date"],
.he-search-wrap input[type="number"],
.he-search-wrap input[type="email"],
.he-search-wrap input[type="password"] {
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
    min-width: 150px;
}
.he-search-wrap button[type="submit"] {
    padding: 9px 18px;
    border-radius: 999px;
    border: none;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}
.he-search-wrap button[type="submit"]:hover {
    background: #1e40af;
}

/* Search results styling */
#he-search-results {
    margin-top: 16px;
}
.he-hotel-result {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px 16px 12px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
}
.he-hotel-result h3 {
    margin: 0 0 6px;
}
.he-hotel-result img {
    border-radius: 10px;
}

.he-room-options {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 10px;
}
.he-room-options th,
.he-room-options td {
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 6px;
    vertical-align: top;
}
.he-room-options th {
    text-align: left;
    font-weight: 600;
    color: #4b5563;
}
.he-room-options strong {
    font-weight: 700;
}
.he-room-options button,
.he-book-form button {
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.he-room-options button:hover,
.he-book-form button:hover {
    background: #15803d;
}

/* Agent login/register */
.he-agent-register-form,
#loginform {
    max-width: 420px;
    margin: 0 auto;
}
.he-agent-register-form input,
#loginform input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
}
#loginform p {
    margin-bottom: 10px;
}
#loginform label {
    font-size: 0.85rem;
    color: #4b5563;
}
#loginform .submit #wp-submit {
    width: 100%;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}
#loginform .submit #wp-submit:hover {
    background: #1e40af;
}
.he-agent-register-form button {
    width: 100%;
    padding: 8px 16px;
    border-radius: 999px;
    border: none;
    background: #16a34a;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}
.he-agent-register-form button:hover {
    background: #15803d;
}
.he-success {
    background: #dcfce7;
    border-left: 3px solid #16a34a;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.he-error {
    background: #fee2e2;
    border-left: 3px solid #dc2626;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

/* Agent auth page layout */
.auth-intro {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 12px;
}
.auth-list {
    margin: 0;
    padding-left: 18px;
    font-size: 0.9rem;
    color: #4b5563;
}
.auth-list li {
    margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 800px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }
    .he-search-wrap form {
        flex-direction: column;
        align-items: stretch;
    }
    .site-main {
        margin-top: 16px;
    }
}
