/*
Theme Name: Morocco Dreams Travel
Description: A beautiful WordPress theme for Morocco travel agency featuring Sahara desert tours and imperial city exploration. Includes trip booking system and stunning Morocco-inspired design.
Author: Morocco Dreams Team
Version: 1.0.2
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: morocco-dreams
Tags: travel, tourism, Morocco, desert, responsive, modern, booking
*/

/* WordPress specific styles */
.wp-block-image {
    margin: 1.5rem 0;
}

.wp-block-quote {
    border-left: 4px solid hsl(var(--morocco-gold));
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

.aligncenter {
    text-align: center;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

/* WordPress admin bar compatibility */
.admin-bar .navigation {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navigation {
        top: 46px;
    }
}

/* WordPress gallery styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.gallery-item {
    break-inside: avoid;
}

.gallery-caption {
    text-align: center;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
}

/* Comments styles */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: bold;
    color: hsl(var(--morocco-gold));
}

.comment-content {
    margin-top: 0.5rem;
}

/* Form styles (Contact Form 7 and Reservation Form) */
.wpcf7-form,
.reservation-form {
    max-width: 600px;
    margin: 0 auto;
}

.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select,
.reservation-form input,
.reservation-form textarea,
.reservation-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsl(var(--border));
    border-radius: 0.375rem;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    font-size: 1rem;
}

.wpcf7-form input[type="submit"],
.reservation-form input[type="submit"] {
    background: linear-gradient(135deg, hsl(var(--morocco-gold)), hsl(var(--morocco-terracotta)));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover,
.reservation-form input[type="submit"]:hover {
    background: linear-gradient(135deg, hsl(var(--morocco-terracotta)), hsl(var(--morocco-gold)));
    transform: translateY(-1px);
}

.wpcf7-form .wpcf7-response-output,
.reservation-form .form-response {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.9rem;
}

.wpcf7-form .wpcf7-validation-errors,
.reservation-form .error {
    border: 1px solid hsl(var(--destructive));
    background: hsla(var(--destructive), 0.1);
    color: hsl(var(--destructive-foreground));
}

.wpcf7-form .wpcf7-mail-sent-ok,
.reservation-form .success {
    border: 1px solid hsl(var(--morocco-gold));
    background: hsla(var(--morocco-gold), 0.1);
    color: hsl(var(--foreground));
}

/* Trip Archive Page */
.trips-archive {
    padding: 4rem 0;
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.trip-card {
    background: hsl(var(--card));
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow-warm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trip-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.trip-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.trip-card-image.placeholder-bg {
    background: hsl(var(--morocco-sand));
    height: 200px;
}

.trip-card-content {
    padding: 1.5rem;
}

.trip-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: hsl(var(--card-foreground));
}

.trip-card-title a {
    color: inherit;
    text-decoration: none;
}

.trip-card-title a:hover {
    color: hsl(var(--morocco-gold));
}

.trip-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: hsl(var(--muted-foreground));
}

.trip-card-meta span {
    background: hsla(var(--morocco-blue), 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
}

.trip-card-excerpt {
    font-size: 0.95rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.5;
}

.trip-card-button {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--gradient-desert);
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.trip-card-button:hover {
    background: linear-gradient(135deg, hsl(var(--morocco-terracotta)), hsl(var(--morocco-gold)));
    transform: translateY(-1px);
}

/* Single Trip Page */
.single-trip {
    padding: 2rem 0;
}

.trip-details {
    display: grid;
    gap: 2rem;
}

.trip-details-content {
    max-width: 800px;
    margin: 0 auto;
}

.trip-details-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.trip-details-meta span {
    background: hsla(var(--morocco-blue), 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    color: hsl(var(--foreground));
}

.trip-highlights {
    margin: 2rem 0;
}

.trip-highlights h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: hsl(var(--morocco-gold));
}

.trip-highlights ul {
    list-style: none;
    padding: 0;
}

.trip-highlights li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: hsl(var(--foreground));
    transition: transform 0.3s ease;
}

.trip-highlights li:hover {
    transform: translateX(5px);
}

.trip-highlights li:before {
    content: '✔';
    position: absolute;
    left: 0;
    color: hsl(var(--morocco-gold));
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    text-decoration: none;
    color: hsl(var(--foreground));
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: hsl(var(--morocco-gold));
    color: hsl(var(--primary-foreground));
}

.pagination .current {
    background: hsl(var(--morocco-gold));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--morocco-gold));
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 1rem;
    background: hsl(var(--morocco-gold));
    color: white;
    text-decoration: none;
    z-index: 999999;
}

/* Print styles */
@media print {
    .navigation,
    .footer,
    .no-print,
    .reservation-form,
    .filter-buttons {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}

@media (max-width: 768px) {
    .trip-hero {
        min-height: 40vh;
    }

    .trip-hero h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .trip-details {
        grid-template-columns: 1fr;
    }

    .trip-details-content {
        max-width: 100%;
    }

    .trips-grid {
        grid-template-columns: 1fr;
    }

    .trip-card-image {
        height: 150px;
    }
}
/* Add to existing style.css */
.reserve-btn {
    display: block; /* Ensure block-level for centering */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Override w-full for trip summary card to allow centering */
.trip-details .card .reserve-btn.w-full {
    width: auto; /* Remove full-width to allow centering */
    max-width: 300px; /* Optional: limit width for aesthetics */
}

/* Ensure hero section button is centered */
.trip-hero .reserve-btn {
    display: block;
    margin: 1rem auto; /* Add margin for spacing */
}

/* Existing styles (for context, not modified) */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-desert);
    color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
    background: linear-gradient(135deg, hsl(var(--morocco-terracotta)), hsl(var(--morocco-gold)));
    transform: translateY(-1px);
}