/* ==============================
   Laravel-specific UI additions
   Bổ sung cho các class có trong views nhưng chưa có CSS
   ============================== */

/* Page hero (cho các trang con) */
.page-hero {
    position: relative;
    padding: 8rem 2rem 4rem;
    text-align: center;
    background: var(--color-cream, #f8f4ed);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 1rem 0;
}

.page-hero-content p {
    color: var(--color-text-muted, #666);
    font-size: 1.1rem;
}

/* Page content wrapper */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.page-content h2 {
    font-family: 'Playfair Display', serif;
    margin: 2.5rem 0 1rem;
}

.page-content h3 {
    font-family: 'Playfair Display', serif;
    margin: 2rem 0 0.75rem;
}

.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Meta row (cabin/itinerary detail header info) */
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(10, 110, 159, 0.05);
    border-radius: 8px;
    margin: 2rem 0;
    font-size: 1rem;
}

.meta-row span {
    color: var(--color-primary, #0d6e94);
    font-weight: 500;
}

/* Amenities */
.amenities-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    list-style: none;
    padding: 0 !important;
    margin: 1.5rem 0 !important;
}

.amenities-list li {
    color: var(--color-primary, #0d6e94);
    padding: 0.5rem 0;
    margin: 0 !important;
}

/* Card price */
.card-price {
    color: var(--color-accent, #d4a373);
    font-weight: 600;
    margin: 0.5rem 0;
    font-size: 1.05rem;
}

/* Schedule */
.schedule {
    margin: 2rem 0;
}

.schedule-day {
    background: #fff;
    border-left: 4px solid var(--color-accent, #d4a373);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.schedule-day h3 {
    color: var(--color-primary, #0d6e94);
    margin: 0 0 0.75rem !important;
}

.schedule-day ul {
    list-style: none;
    padding: 0 !important;
}

.schedule-day li {
    padding: 0.4rem 0;
    border-bottom: 1px dashed #e5e5e5;
}

.schedule-day li:last-child {
    border-bottom: none;
}

/* Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.contact-list li {
    padding: 0.5rem 0;
    font-size: 1.05rem;
}

.contact-list a {
    color: var(--color-primary, #0d6e94);
    text-decoration: none;
}

.contact-list a:hover {
    text-decoration: underline;
}

.contact-form,
.booking-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.25rem;
}

.form-row {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--color-primary, #0d6e94);
    font-size: 0.95rem;
}

.form-row input,
.form-row textarea,
.form-row select {
    padding: 0.7rem 0.9rem;
    border: 1px solid #d4d4d4;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--color-accent, #d4a373);
    box-shadow: 0 0 0 3px rgba(92, 200, 240, 0.15);
}

.form-row .error {
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

.gallery-grid figure {
    margin: 0;
}

.gallery-grid figcaption {
    text-align: center;
    color: var(--color-text-muted, #666);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Lang switch active state */
.lang-btn.active {
    background: var(--color-accent, #d4a373);
    color: #fff;
}

/* CTA section */
.cta-section.bg-deep {
    background: var(--color-primary, #0d6e94);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin-bottom: 1rem;
}

.cta-content p {
    margin-bottom: 1.75rem;
    opacity: 0.92;
    font-size: 1.1rem;
}

/* Footer additions */
.footer-tagline {
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    font-family: 'Cormorant Garamond', serif;
}
