/**
 * Additional Custom Styles for Love Dorset Theme
 *
 * @package LoveDorset
 */

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #666;
}

.breadcrumbs a {
    color: #0066cc;
}

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

/* ==========================================================================
   Field Groups (for single pages)
   ========================================================================== */

.field-group {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.field-label {
    font-weight: 600;
    color: #333;
}

.field-value {
    color: #555;
}

/* ==========================================================================
   Single Page Layouts
   ========================================================================== */

.single-attraction .entry-header,
.single-accommodation .entry-header,
.single-activity .entry-header,
.single-event .entry-header {
    margin-bottom: 2rem;
}

.single-attraction .attraction-details,
.single-accommodation .accommodation-details,
.single-activity .activity-details,
.single-event .event-details {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.single-attraction .entry-content h2,
.single-accommodation .entry-content h2,
.single-activity .entry-content h2,
.single-event .entry-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* ==========================================================================
   Comments Section
   ========================================================================== */

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ddd;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.comment-reply-link {
    font-size: 0.875rem;
    color: #0066cc;
}

/* ==========================================================================
   Menu Toggle (Mobile)
   ========================================================================== */

.menu-toggle {
    display: none;
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.menu-toggle.active {
    background-color: #004499;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        padding: 1rem;
    }

    .main-navigation.active {
        display: flex;
    }

    .main-navigation a {
        display: block;
        padding: 0.75rem 1rem;
    }
}

/* ==========================================================================
   Archive Page Headers
   ========================================================================== */

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #333;
    transition: background-color 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #0066cc;
    color: #fff;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.footer-content {
    text-align: center;
}

.footer-navigation {
    margin: 2rem 0;
}

.footer-navigation a {
    margin: 0 1rem;
    color: #fff;
}

.site-info {
    margin-top: 2rem;
    opacity: 0.8;
}

.site-info p {
    margin: 0.5rem 0;
}

/* ==========================================================================
   Widgets
   ========================================================================== */

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.widget ul li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .breadcrumbs,
    .filter-bar,
    .btn,
    .comments-area {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }
}
