/* Visit Bournemouth Mega Module - Responsive Styles */

:root {
    --vb-primary: #1f567d;
    --vb-secondary: #ffce54;
    --vb-accent: #4b7c59;
    --vb-light-bg: #F5F5F5;
    --vb-border: #DDDDDD;
    --vb-text: #333333;
    --vb-text-light: #666666;
    --vb-spacing: 1.5rem;
    --vb-radius: 8px;
    --vb-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --vb-transition: all 0.3s ease;
}

/* ========== BASE STYLES ========== */

.vb-mega-module {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--vb-text);
    line-height: 1.6;
}

.vb-mega-module * {
    box-sizing: border-box;
}

/* ========== INTRO SECTION ========== */

.vb-intro-section {
    background: linear-gradient(135deg, var(--vb-primary) 0%, var(--vb-accent) 100%);
    color: white;
    padding: 2.5rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: var(--vb-radius);
    box-shadow: var(--vb-shadow);
}

.vb-intro-content {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.vb-intro-content p {
    margin: 0;
}

/* ========== CONTAINER & SECTIONS ========== */

.vb-mega-container {
    max-width: 1200px;
    margin: 0 auto;
}

.vb-section {
    margin-bottom: 3rem;
}

.vb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.vb-section-header .vb-section-title {
    margin: 0;
    padding-bottom: 0.75rem;
}

.vb-see-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--vb-primary);
    color: #ffffff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--vb-transition);
}

.vb-see-all-btn:hover {
    background: var(--vb-accent);
    color: #ffffff !important;
    text-decoration: none;
}

.vb-see-all-btn i {
    font-size: 0.85rem;
    color: #ffffff;
}

.vb-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--vb-primary);
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--vb-secondary);
    display: inline-block;
}

/* ========== NEWS SECTION ========== */

.vb-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.vb-news-card {
    background: white;
    border-radius: var(--vb-radius);
    overflow: hidden;
    box-shadow: var(--vb-shadow);
    transition: var(--vb-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.vb-card-image {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--vb-light-bg);
}

.vb-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--vb-transition);
}

.vb-news-card:hover .vb-card-image img {
    transform: scale(1.05);
}

.vb-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.vb-card-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.vb-card-title a {
    color: var(--vb-primary);
    text-decoration: none;
    transition: var(--vb-transition);
}

.vb-card-title a:hover {
    color: var(--vb-accent);
    text-decoration: underline;
}

.vb-card-excerpt {
    font-size: 0.95rem;
    color: var(--vb-text-light);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    flex-grow: 1;
}

.vb-card-date {
    color: var(--vb-text-light);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.vb-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.vb-tag {
    background: var(--vb-light-bg);
    color: var(--vb-accent);
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--vb-border);
}

/* ========== ATTRACTIONS SECTION ========== */

.vb-attractions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.vb-attraction-card {
    background: white;
    border-radius: var(--vb-radius);
    overflow: hidden;
    box-shadow: var(--vb-shadow);
    transition: var(--vb-transition);
    display: flex;
    flex-direction: column;
}

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

.vb-attraction-image {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--vb-light-bg);
}

.vb-attraction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--vb-transition);
}

.vb-attraction-card:hover .vb-attraction-image img {
    transform: scale(1.08);
}

.vb-attraction-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vb-attraction-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.vb-attraction-content h3 a {
    color: var(--vb-primary);
    text-decoration: none;
    transition: var(--vb-transition);
}

.vb-attraction-content h3 a:hover {
    color: var(--vb-accent);
}

.vb-attraction-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

/* ========== HOTELS SECTION ========== */

.vb-hotels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.vb-hotel-card {
    background: white;
    border-radius: var(--vb-radius);
    overflow: hidden;
    box-shadow: var(--vb-shadow);
    transition: var(--vb-transition);
    display: flex;
    flex-direction: column;
}

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

.vb-hotel-image {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--vb-light-bg);
}

.vb-hotel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--vb-transition);
}

.vb-hotel-card:hover .vb-hotel-image img {
    transform: scale(1.08);
}

.vb-hotel-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vb-hotel-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.vb-hotel-content h3 a {
    color: var(--vb-primary);
    text-decoration: none;
    transition: var(--vb-transition);
}

.vb-hotel-content h3 a:hover {
    color: var(--vb-accent);
}

.vb-hotel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

/* ========== RESTAURANTS SECTION ========== */
/* ========== RESTAURANTS SECTION ========== */

.vb-restaurants-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vb-restaurant-item {
    background: white;
    border-radius: var(--vb-radius);
    overflow: hidden;
    box-shadow: var(--vb-shadow);
    transition: var(--vb-transition);
    display: grid;
    grid-template-columns: 180px 1fr; /* Increased width for 16:9 */
}

.vb-restaurant-item:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.vb-restaurant-image {
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 9/16 = 0.5625 (for 16:9 aspect ratio) */
    position: relative;
    overflow: hidden;
    background: var(--vb-light-bg);
}

.vb-restaurant-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--vb-transition);
}

.vb-restaurant-item:hover .vb-restaurant-image img {
    transform: scale(1.1);
}

.vb-restaurant-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.vb-restaurant-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.vb-restaurant-content h3 a {
    color: var(--vb-primary);
    text-decoration: none;
    transition: var(--vb-transition);
}

.vb-restaurant-content h3 a:hover {
    color: var(--vb-accent);
}

.vb-restaurant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 768px) {
    .vb-restaurant-item {
        grid-template-columns: 140px 1fr; /* Adjusted for 16:9 */
    }
    
    .vb-restaurant-image {
        padding-bottom: 56.25%; /* Maintains 16:9 ratio */
    }
}

@media (max-width: 480px) {
    .vb-restaurant-item {
        grid-template-columns: 120px 1fr; /* Adjusted for 16:9 */
    }
    
    .vb-restaurant-image {
        padding-bottom: 56.25%; /* Maintains 16:9 ratio */
    }
}

/* ========== TAG STYLES ========== */

/* Add this for responsive adjustments */
@media (max-width: 768px) {
    .vb-restaurant-item {
        grid-template-columns: 120px 1fr;
    }

    .vb-restaurant-image {
        width: 120px;
        height: 67.5px; /* 120 * 9/16 = 67.5px */
    }
}

@media (max-width: 480px) {
    .vb-restaurant-item {
        grid-template-columns: 100px 1fr;
    }

    .vb-restaurant-image {
        width: 100px;
        height: 56.25px; /* 100 * 9/16 = 56.25px */
    }
}
/* ========== TAG STYLES ========== */

/* Add this for responsive adjustments */
@media (max-width: 768px) {
    .vb-restaurant-item {
        grid-template-columns: 120px 1fr;
    }

    .vb-restaurant-image {
        width: 120px;
        height: 67.5px; /* 120 * 9/16 = 67.5px */
    }
}

@media (max-width: 480px) {
    .vb-restaurant-item {
        grid-template-columns: 100px 1fr;
    }

    .vb-restaurant-image {
        width: 100px;
        height: 56.25px; /* 100 * 9/16 = 56.25px */
    }
}

/* ========== TAG STYLES ========== */

.vb-tags-text {
    font-size: 0.85rem;
    color: var(--vb-text-light);
    margin: 0;
    line-height: 1.4;
}

.vb-tags-links {
    font-size: 0.85rem;
    color: var(--vb-text-light);
    margin: 0;
    line-height: 1.4;
}

.vb-tags-links a {
    color: var(--vb-text-light);
    text-decoration: none;
    transition: var(--vb-transition);
}

.vb-tags-links a:hover {
    color: var(--vb-accent);
    text-decoration: underline;
}

/* ========== NEWS META BAR ========== */

.vb-card-meta {
    background: #f8f8f8;
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    color: var(--vb-text-light);
    border-top: 1px solid var(--vb-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.vb-meta-author a {
    color: var(--vb-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--vb-transition);
}

.vb-meta-author a:hover {
    color: var(--vb-accent);
    text-decoration: underline;
}

.vb-meta-separator {
    color: #ccc;
}

.vb-meta-date,
.vb-meta-readtime {
    color: var(--vb-text-light);
}

.vb-tag-small {
    background: linear-gradient(135deg, var(--vb-primary), var(--vb-accent));
    color: white;
    padding: 0.35rem 0.7rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}

/* ========== TABLET/MEDIUM SCREENS ========== */

@media (max-width: 992px) {
    .vb-attractions-grid,
    .vb-hotels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --vb-spacing: 1.25rem;
    }

    .vb-intro-section {
        padding: 2rem 1.25rem;
        margin-bottom: 1.5rem;
    }

    .vb-section-title {
        font-size: 1.5rem;
    }

    .vb-news-grid {
        grid-template-columns: 1fr;
    }

    .vb-attractions-grid,
    .vb-hotels-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vb-restaurant-item {
        grid-template-columns: 120px 1fr;
    }

    .vb-restaurant-image {
        width: 120px;
        height: 120px;
    }
}

/* ========== MOBILE SCREENS ========== */

@media (max-width: 480px) {
    .vb-intro-section {
        padding: 1.5rem 1rem;
        margin-bottom: 1.25rem;
    }

    .vb-intro-content {
        font-size: 1rem;
    }

    .vb-section-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .vb-news-grid,
    .vb-attractions-grid,
    .vb-hotels-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .vb-news-card,
    .vb-attraction-card,
    .vb-hotel-card {
        border-radius: 6px;
    }

    .vb-card-image {
        height: 150px;
    }

    .vb-card-title {
        font-size: 1.1rem;
    }

    .vb-card-excerpt {
        font-size: 0.9rem;
    }

    .vb-restaurant-item {
        grid-template-columns: 100px 1fr;
    }

    .vb-restaurant-image {
        width: 100px;
        height: 100px;
    }

    .vb-restaurant-content {
        padding: 1rem;
    }

    .vb-card-content {
        padding: 1rem;
    }

    .vb-attraction-content,
    .vb-hotel-content {
        padding: 1rem;
    }

    .vb-section {
        margin-bottom: 2rem;
    }
}

/* ========== ACCESSIBILITY ========== */

.vb-mega-module a {
    color: var(--vb-primary);
    text-decoration: none;
}

.vb-mega-module a:focus {
    outline: 2px solid var(--vb-secondary);
    outline-offset: 2px;
}

.vb-news-card:focus-within,
.vb-attraction-card:focus-within,
.vb-restaurant-item:focus-within,
.vb-hotel-card:focus-within {
    box-shadow: 0 0 0 3px rgba(31, 86, 125, 0.3);
}

/* ========== PRINT STYLES ========== */

@media print {
    .vb-mega-module {
        color: black;
    }

    .vb-news-card,
    .vb-attraction-card,
    .vb-restaurant-item,
    .vb-hotel-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .vb-card-image,
    .vb-attraction-image,
    .vb-restaurant-image,
    .vb-hotel-image {
        display: none;
    }
}
