/*
Theme Name: JBayLet Hostings
Author: JBayLet Team
Description: Custom theme for JBayLet Hostings
Version: 1.0
*/

/* Base Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #7f8c8d;
    --heading-color: #2c3e50;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --hero-padding: 100px 0;
    --section-margin: 80px;
    --primary-light-bg: #e8f4fc;
    --text-muted: #bdc3c7;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
    --border-color: #eaeaea;
    --success-light-bg: #e8f5e9;
    --warning-light-bg: #fff3e0;
    --danger-light-bg: #ffebee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: #333;
    background-color: #f5f7fa;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Standardized Checkbox Style (Global) */
.amenity-checkbox,
.checkbox-item,
.featured-toggle,
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
    margin-top: 5px;
    min-height: 50px;
    width: fit-content;
    cursor: pointer;
}

.amenity-checkbox:hover,
.checkbox-item:hover,
.featured-toggle:hover,
.checkbox-group:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.amenity-checkbox input[type="checkbox"],
.checkbox-item input[type="checkbox"],
.featured-toggle input[type="checkbox"],
.checkbox-group input[type="checkbox"] {
    margin-right: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    border: none;
    padding: 0;
    flex-shrink: 0; /* Prevent squishing */
}

.amenity-checkbox label,
.checkbox-item label,
.featured-toggle label,
.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

header {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.logo span {
    color: #3498db;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

nav a:hover, nav a.active {
    color: #3498db;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    border: none;
    transition: all 0.3s;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background-color: #3498db;
    color: #fff;
}

.btn-primary {
    background-color: #3498db;
    color: #fff;
    border: 1px solid #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Submenu Styles */
nav ul li {
    position: relative;
}

nav ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 200px;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
}

nav ul li:hover .submenu {
    display: flex;
}

nav ul li .submenu li {
    width: 100%;
}

nav ul li .submenu a {
    display: block;
    padding: 10px 20px;
    color: #333;
}

nav ul li .submenu a:hover {
    background-color: #f5f7fa;
    color: #3498db;
}

/* Search Form Styles */
.form-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-section h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #3498db;
    outline: none;
}

/* Checkbox Styles */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    background-color: white;
}

input[type="checkbox"]:checked {
    background-color: #3498db;
    border-color: #3498db;
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

input[type="checkbox"]:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.checkbox-row {
    display: flex;
    gap: 30px;
    align-items: center;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}


.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

/* New Checkbox Wrapper Styles */
.checkbox-wrapper {
    display: flex;
    gap: 20px;
    align-items: center;
    height: 45px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-item input[type="checkbox"] {
    /* Inherit global styles */
}

.checkbox-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: normal;
}

/* Amenities Grid */
.amenities-section {
    margin-top: 20px;
}

.amenities-section label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.amenity-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amenity-checkbox label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
    font-weight: normal;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

/* Tabbed Search Form Styles */
.search-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
    gap: 5px;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #777;
    background: #f9f9f9;
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
}

.tab-item:hover {
    background: #eee;
    color: #333;
}

.tab-item.active {
    background: #3498db;
    color: #fff;
}

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

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

.amenities-category {
    margin-bottom: 20px;
}

.amenities-category h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

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

.form-footer {
    margin-top: 20px;
    text-align: right;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #3498db;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #3498db;
    padding-left: 5px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: #3498db;
    transform: translateY(-3px);
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 0.9rem;
}

.newsletter-form button {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #2980b9;
}

/* Copyright */
.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}
