/*
Theme Name: Pibbles Nook Exact
Theme URI: https://www.rutland-holidaycottage.co.uk/
Author: Web Modernization Team
Description: Precise modern replica of the original Pibbles Nook website with modern PHP 8+ support, fixed two-column layout, custom image borders, animated mobile navigation (950px trigger), smaller smartphone breakpoint (<481px), contact form adjustments, precise table styling, global link and h3 rules, page-id-65 specific enhancements, and updated explore menu flexbox rules with 50px icons and 1.5rem font-weight 100 links.
Version: 3.34.1
License: GNU General Public License v2 or later
Text Domain: pibbles-nook-exact
*/

/* --- Font Declarations --- */
@font-face {
    font-family: 'helveticaneue_ultralight';
    src: url('fonts/helveticaneue-ultralight-webfont.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- Color & Typography Setup --- */
:root {
    --primary-color: #464644;         /* Dark grey primary color */
    --secondary-color: #747473;       /* 75% tint of primary color */
    --bg-color: #C5C2B9;              /* Equivalent to rgb(197, 194, 185) */
    --header-bg: transparent;
    --footer-bg: transparent;
    --menu-bg: transparent;
    --border-color: #b0aca1;
    --even-bg-color: red!important;
    --font-heading: 'helveticaneue_ultralight', "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body: "Georgia", "Times New Roman", serif;
    --font-nav: "Courier New", Courier, monospace;
    --container-max-width: 1040px;
}


.tablepress.tablepress-id-1,.tablepress.tablepress-id-2{
--text-color: #111;
    --head-text-color: var(--text-color);
    --head-bg-color: #d9edf7;
    --odd-text-color: var(--text-color);
    --odd-bg-color: #E2E1DD;
    --even-text-color: var(--text-color);
    --even-bg-color: #E9E8E5;
    --hover-text-color: var(--text-color);
    --hover-bg-color: #F1F0EE;
    --border-color: #ddd;	
}




* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body setup */
body {
   /* color: var(--primary-color);*/
   color: #000000;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Global Container Rules */
.site-container,
.header-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Global Hyperlink Rules --- */
a, 
a:visited {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, 
a:active {
    color: var(--secondary-color);
}

/* --- Utility Classes --- */
.align-left {
    float: left;
}

/* --- Image & Slider Container Border Rules --- */
.entry-content img {
    border: 6px solid #FFFFFF;
    margin: 7px;
    max-width: 100%;
    height: auto;
}


/* --- Master Slider Fringe Fix --- */
.master-slider,
.ms-container,
.ms-slide-container,
.ms-slide {
    background-color: transparent !important;
    box-shadow: none !important;
}

.master-slider img,
.ms-slide img {
    border: none !important;
    margin: 0 !important;
}

/* --- Custom Slider Styles --- */
.master-slider-parent.msl.wideslider {
    border: 7px solid #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    margin-bottom: 20px;
    width: 100%;
}

.master-slider-parent.msl.homeslider {
    margin-left: 30px;
    margin-right: 30px;
    margin-bottom: 20px;
    border: 7px solid #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    transform: rotate(5deg);
    width: 280px;
}

.master-slider-parent.msl.homeslider .master-slider,
.master-slider-parent.msl.homeslider .ms-container,
.master-slider-parent.msl.homeslider .ms-slide-container {
    width: 100% !important;
    max-width: 100% !important;
}

.master-slider-parent.msl.homeslider img.ms-slide-img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover;
}

 #floatR {
        float: right;
    }








/* --- Header Section --- */
.site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

/* Inner Header Container with Background Image */
.header-container {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide header title text when background image banner is active */
.site-branding h1 {
    display: none;
}

.site-branding a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Typography Rules --- */
h1 {
    color: #FFFFFF;
    margin: 15px 10px;
    font-size: 3rem;
    font-family: 'helveticaneue_ultralight', helvetica_neueregular, Muli, Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
    font-weight: normal;
    font-style: normal;
    letter-spacing: -1px;
    text-transform: lowercase;
}

h2, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 400;
    margin-bottom: 1rem;
}

h2 {
font-size:2rem;	
}

h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 400;
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

p {
    color: var(--primary-color);
    font-size:0.95rem;
    margin-bottom: 1.5rem;
}

.subtext, 
.entry-meta,
.site-caption {
    color: var(--secondary-color);
}

/* --- Horizontal Navigation Bar & Dropdowns (Desktop Default >= 950px) --- */
.menu-toggle {
    display: none;
}

.main-navigation {
    display: block;
    background-color: var(--menu-bg);
    border-top: 1px dashed var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

/* Menu items formatted with Courier, 18px, lowercase, white normal state */
.main-navigation a {
    display: block;
    padding: 8px 18px;
    font-family: var(--font-nav);
    font-size: 1.2rem;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
}

/* Active and Hover states */
.main-navigation a:hover,
.main-navigation li:hover > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.25);
}



/* =================================================
   Explore Round Homepage images Flexbox Rules (#rounds-container)
   ================================================= */
#rounds-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    flex-direction: row;
    align-items: center;
   
    justify-content: space-between;
}

   #rounds-container a  {
     display: flex;
    width: 15%;
    flex: 0 0 15%;
    padding: 0;
    margin-left: 0;
   margin-right: 0;
    justify-content: center;
    margin-bottom: 20px;
        
}

.entry-content #rounds-container i {
	display:flex;
}

.entry-content #rounds-container img {
    border-radius: 50%;
    margin: 0px;
}


/* Desktop Submenu Dropdown Styling and round links of homepage(Active at >= 950px) */
@media screen and (min-width: 950px) {
    .main-navigation ul ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--secondary-color);
        min-width: 200px;
        border: 1px solid var(--border-color);
        z-index: 999;
        flex-direction: column;
    }

    .main-navigation ul ul li {
        text-align: left;
        width: 100%;
        position: relative;
    }

    .main-navigation ul ul li:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 4%;
        width: 92%;
        height: 1px;
        background-color: var(--border-color);
    }

    .main-navigation ul ul a {
        padding: 8px 15px;
        text-transform: lowercase;
        font-size: 1rem;
        text-align: left;
        width: 100%;
        border-bottom: none;
        color: #ffffff;
    }

    .main-navigation ul ul a:hover,
    .main-navigation ul ul .current-menu-item > a {
     /*   color: var(--primary-color); */
     color:#ffffff;
        background-color: rgba(255, 255, 255, 0.25);
    }

    .main-navigation li:hover > ul {
        display: flex;
    }
    
   

   
}

.widget-title{
    color: #fff;
    font-size: 2.6rem;
    font-family: 'helveticaneue_ultralight', helvetica_neueregular, Muli, Arial, 'Arial Unicode MS', Helvetica, Sans-Serif;
    font-weight: normal;
    font-style: normal;
    text-transform: lowercase;
    margin-top: 40px;
}

/* --- Content Section & Two-Column Desktop Layout --- */
.site-content {
    padding: 0;
}

.page-layout-wrapper {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

/* Desktop Two-Column Flexbox Grid */
@media screen and (min-width: 769px) {
    .page-layout-wrapper.page-content-with-sidebar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        column-gap: 10px !important;
    }

    .page-layout-wrapper.page-content-with-sidebar .site-main {
        width: 78% !important;
        max-width: 78% !important;
        flex: 0 0 78% !important;
    }

    .page-layout-wrapper.page-content-with-sidebar .widget-area {
        width: 18% !important;
        max-width: 18% !important;
        flex: 0 0 18% !important;
    }
}

.page-layout-wrapper.page-content-full .site-main {
    width: 100%;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.widget_recent_entries li {
	margin-bottom:10px;
}

.widget_recent_entries li:after {
    content: "";
    display: block !important;
    width: 80%;
    /* margin-left: auto; */
    /* margin-right: auto; */
    border-bottom: 1px dashed white;
    margin-top: 10px;
}

/* --- Responsive Media Query: Navigation Mobile Toggle (< 950px) --- */
@media screen and (max-width: 949px) {
    .menu-toggle {
        display: block;
        width: 100%;
        background: var(--menu-bg);
        border: none;
        border-top: 1px dashed var(--secondary-color);
        border-bottom: 1px solid var(--border-color);
        padding: 8px 12px;
        font-family: var(--font-nav);
        font-size: 1.6rem;
       /* text-transform: lowercase;*/
        cursor: pointer;
        color: #ffffff;
        text-align: center;
    }

    .menu-toggle-text {
        background-color: var(--secondary-color);
        width: auto;
        display: inline-block;
        padding: 1px 10px 5px 10px;
        margin-left: auto;
        margin-right: auto;
        border-radius: 4px;
        transition: background-color 0.2s ease;
    }

    .menu-toggle-text:hover,
    .menu-toggle:hover .menu-toggle-text {
        background-color: var(--primary-color);
    }

    .main-navigation {
        display: block;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
    }

    .main-navigation.toggled {
        max-height: 600px;
        opacity: 1;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: stretch;
    }

    .main-navigation a {
        padding: 8px 20px;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.3rem;
    }

    .main-navigation ul ul {
        position: static;
        box-shadow: none;
        border: none;
        background-color: var(--secondary-color);
        padding-left: 15px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out;
        display: flex;
        flex-direction: column;
    }

    .main-navigation li.menu-item-has-children.active > ul {
        max-height: 300px;
        opacity: 1;
    }

    .main-navigation ul ul li {
        text-align: left;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

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

    .main-navigation ul ul a {
        font-size: 1.3rem;
        text-align: left;
        width: 100%;
        border-bottom: none;
        color:#ffffff;
    }
}

/* --- Responsive Media Queries (Mobile Viewports <= 768px) --- */
@media screen and (max-width: 768px) {
    .page-layout-wrapper.page-content-with-sidebar {
        display: block !important;
    }

    .page-layout-wrapper.page-content-with-sidebar .site-main,
    .page-layout-wrapper.page-content-with-sidebar .widget-area {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .page-layout-wrapper.page-content-with-sidebar .widget-area {
        margin-top: 40px;
    }
    
  
    .master-slider-parent.msl.homeslider {
        transform: none !important;
        width: 200px!important;
        margin-left: 20px !important;
        margin-right: 20px !important;
        margin-bottom: 20px !important;
    }

 	#floatR {
        float: right;
    }
#rounds-container a  {
    
    width: 33.333%;
    flex: 0 0 33.333%;
   
	}
   

    h1 {
        font-size: 2.5rem;
    }
    
  }

/* --- Smaller Smartphone Breakpoint (< 481px) --- */
@media screen and (max-width: 480px) {
    .site-container,
    .header-container {
        padding: 0 12px;
    }

    h1 {
        font-size: 2.5rem;
        line-height:2.5rem;
    }

    .main-navigation a {
        font-size: 1.3rempx;
        padding: 4px 15px;
    }
    
    p {
		font-size:1.2rem;
		line-height:auto;
	}
	
	#rounds-container a  {
    
    width: 50%;
    flex: 0 0 50%;
   
	}
	

	  /* SLIDERRR SMARTPHONE */


    #floatR {
        float: none !important;
        clear: both !important;
    }
    

    .master-slider-parent.msl.homeslider {
        transform: none !important;
        width: 150px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 20px !important;
    }

 }

/*#Contact Form 7 styling */

.wpcf7 {
    margin-top: 20px;
    max-width: 700px;
}

.wpcf7-form p {
    margin-bottom: 20px;
}

.wpcf7-form label {
    display: block;
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 6px;
    text-transform: lowercase;
}

/* Input Fields & Textareas */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-url,
.wpcf7-form-control.wpcf7-textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--primary-color);
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7-form-control.wpcf7-text, .wpcf7-form-control.wpcf7-email {
	width: 350px !important;
}

.wpcf7-form-control.wpcf7-text.sml{
	width: 200px !important;
	margin-right: 15px;
}

.wpcf7-form-control.wpcf7-text.sml2{
	width: 80px !important;
	margin-right: 15px;
}

/* Focus State */
.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-url:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(70, 70, 68, 0.1);
}

.wpcf7-form-control.wpcf7-textarea {
    min-height: 140px;
    resize: vertical;
}

/* Submit Button */
.wpcf7-form-control.wpcf7-submit {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: var(--font-nav);
    font-size: 1rem;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.wpcf7-form-control.wpcf7-submit:hover {
    background-color: var(--secondary-color);
}

/* Validation & Error Messages */
.wpcf7-not-valid-tip {
    color: #a94442;
    font-size: 13px;
    margin-top: 5px;
    font-family: var(--font-body);
}

.wpcf7-response-output {
    border-radius: 4px;
    padding: 12px 15px;
    margin-top: 20px !important;
    font-family: var(--font-body);
    font-size: 14px;
}

.wpcf7-mail-sent-ok {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d0e9c6;
}

.wpcf7-mail-sent-ng, 
.wpcf7-aborted, 
.wpcf7-validation-errors {
    background-color: #f2dede;
    color: #a94442;
    border: 1px solid #ebccd1;
}

/* --- Contact Form 7: Name and Email Max Width (Desktop View) --- */
@media screen and (min-width: 769px) {
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"] {
        max-width: 800px;
    }
}

/* --- Mobile View Inputs (< 768px): --- */
@media screen and (max-width: 768px) {
    .wpcf7-form-control.wpcf7-text, .wpcf7-form-control.wpcf7-email {
        width: 100% !important;
    }

    .wpcf7-form-control.wpcf7-text.sml{
        width: 100% !important;
        margin-right: 0;
    }

    .wpcf7-form-control.wpcf7-text.sml2{
        width: 80px !important;
        margin-right: 15px;
    }
}


/* --- Custom Table Styling for Pibbles Nook --- */

.entry-content table th,
.entry-content table td {
    border: 2px solid #FFFFFF;
        text-align: center;
}

.entry-content table th {
    background-color: var(--secondary-color);
    color: #ffffff !important;
 /*   font-family: var(--font-heading); */
    font-weight: normal;
}




/* --- Page-ID-65 Specific Rules --- */
body.page-id-65 .alignleft,
body.page-id-65 .align-left {
    float: left;
    margin-right: 15px;
    margin-bottom: 25px;
}

body.page-id-65 hr {
    border-color: #ffffff;
    border-style: dashed;
    margin-bottom: 20px;
    clear: both;
}

body.page-id-65 h3 {
    margin-bottom: 0;
}

/* =================================================
   Footer Menu Custom Styling (Matched to footer.php structure)
   ================================================= */
.site-footer .footer-sidebar-widget-area .widget_nav_menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.site-footer .footer-sidebar-widget-area .widget_nav_menu li {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.site-footer .footer-sidebar-widget-area .widget_nav_menu li a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    white-space: nowrap;
}

.site-footer .footer-sidebar-widget-area .widget_nav_menu li a:hover,
.site-footer .footer-sidebar-widget-area .widget_nav_menu li a:active {
    color: #ffffff;
}

.site-footer .footer-sidebar-widget-area .widget_nav_menu li:not(:last-child)::after {
    content: "|";
    display: inline-block;
    margin: 0 12px;
    color: var(--secondary-color);
    font-weight: normal;
}

/* =================================================
   Explore Menu Flexbox Rules (#menu-explore-menu)
   ================================================= */
#menu-explore-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}


#menu-explore-menu li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 100;
}

#menu-explore-menu li a i {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    margin-right: 0px;
    flex-shrink: 0;
}





/* Desktop View (min-width: 769px): Single column vertical layout */
@media screen and (min-width: 769px) {
    #menu-explore-menu {
        flex-direction: column;
    }
    #menu-explore-menu li {
        width: 100%;
        margin-bottom: 12px;
    }
    
}

/* Tablet / Below Desktop View (max-width: 768px down to 481px): 3 Columns */
@media screen and (max-width: 768px) and (min-width: 481px) {
    #menu-explore-menu {
        flex-direction: row;
    }
    #menu-explore-menu li {
        width: 33.333%;
        flex: 0 0 33.333%;
        margin-bottom: 15px;
        padding: 0 5px;
    }
        #menu-explore-menu li a {
       font-size: 1.6rem!important;
	}
	
	
}

/* Small Smartphone View (below smartphone breakpoint of 481px): 2 Columns */
@media screen and (max-width: 480px) {
    #menu-explore-menu {
        flex-direction: row;
    }
    #menu-explore-menu li {
        width: 50%;
        flex: 0 0 50%;
        margin-bottom: 12px;
        padding: 0 4px;
    }
        #menu-explore-menu li a {
       font-size: 1.5rem!important;
	}
    
    

}



/* Individual Icon Background Images (Assumed path inside theme folder) */
#menu-explore-menu .icon-lounge {
    background-image: url('img/icons/lounge.png');
}

#menu-explore-menu .icon-kitchen {
    background-image: url('img/icons/kitchen.png');
}

#menu-explore-menu .icon-cloakroom {
    background-image: url('img/icons/cloakroom.png');
}

#menu-explore-menu .icon-courtyard {
    background-image: url('img/icons/courtyard.png');
}

#menu-explore-menu .icon-bedrooms {
    background-image: url('img/icons/bedrooms.png');
}

#menu-explore-menu .icon-shower {
    background-image: url('img/icons/shower.png');
}